VMware vSphere Automation SDK Perl
The VMware vSphere Automation SDK for Perl supports the client-side vSphere Automation API for access to vSphere services and capabilities
 All Classes Files Functions
Classes | List of all members
Com::Vmware::Vcenter::Datastore Class Reference
Inheritance diagram for Com::Vmware::Vcenter::Datastore:
Com::Vmware::Vapi::Bindings::VapiInterface

Classes

class  FilterSpec
 
class  Info
 
class  Summary
 
class  Type
 

Avaliable Methods

public method get ()
 
public method new ()
 
public method list ()
 

Detailed Description

The Datastore interface provides methods for manipulating a datastore. Constant String::RESOURCE_TYPE # The resource type for the vCenter datastore

Member Function Documentation

public method Com::Vmware::Vcenter::Datastore::get ( )

Retrieves information about the datastore indicated by datastore .

Parameters
datastore[REQUIRED] Identifier of the datastore for which information should be retrieved. The value must be an identifier for the resource type getQualifiedName(Datastore). . The value must be str.
Return values
informationabout the datastore. The return type will be Com::Vmware::Vcenter::Datastore::Info
Exceptions
Com::Vmware::Vapi::Std::Errors::NotFoundif the datastore indicated by datastore does not exist.
Com::Vmware::Vapi::Std::Errors::ServiceUnavailableif the system is unable to communicate with a service to complete the request.
Com::Vmware::Vapi::Std::Errors::Unauthenticatedif the user can not be authenticated.
Com::Vmware::Vapi::Std::Errors::Unauthorizedif the user doesn't have the required privileges.
Code:
click to view
public method Com::Vmware::Vcenter::Datastore::list ( )

Returns information about at most 1000 visible (subject to permission checks) datastores in vCenter matching the class Com::Vmware::Vcenter::Datastore::FilterSpec .

Parameters
filter[OPTIONAL] Specification of matching datastores for which information should be returned. If null , the behavior is equivalent to a class Com::Vmware::Vcenter::Datastore::FilterSpec with all fields null which means all datastores match the filter. . The value must be Com::Vmware::Vcenter::Datastore::FilterSpec or None.
Return values
Commonlyused information about the datastores matching the class Com::Vmware::Vcenter::Datastore::FilterSpec . The return type will be Array of Com::Vmware::Vcenter::Datastore::Summary
Exceptions
Com::Vmware::Vapi::Std::Errors::InvalidArgumentif the :attr:Com::Vmware::Vcenter::Datastore::FilterSpec.types field contains a value that is not supported by the server.
Com::Vmware::Vapi::Std::Errors::InvalidArgumentif the :attr:Com::Vmware::Vcenter::Datastore::FilterSpec.types field contains a value that is not supported by the server.
Com::Vmware::Vapi::Std::Errors::UnableToAllocateResourceif more than 1000 datastores match the class Com::Vmware::Vcenter::Datastore::FilterSpec .
Com::Vmware::Vapi::Std::Errors::ServiceUnavailableif the system is unable to communicate with a service to complete the request.
Com::Vmware::Vapi::Std::Errors::Unauthenticatedif the user can not be authenticated.
Com::Vmware::Vapi::Std::Errors::Unauthorizedif the user doesn't have the required privileges.
Code:
click to view
public method Com::Vmware::Vcenter::Datastore::new ( )

Constructor to initialize the object

Parameters
api_provider- protocol connection to use with stubs created by this factory
StubConfig- Stub's additional configuration
Return values
Blessedobject
Code:
click to view

The documentation for this class was generated from the following file: