|
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
|
Classes | |
| class | FilterSpec |
| class | Info |
| class | Summary |
Avaliable Methods | |
| public method | get () |
| public method | new () |
| public method | list () |
The Com::Vmware::Vcenter::Cluster interface provides methods to manage clusters in the vCenter Server. Constant String::RESOURCE_TYPE # The resource type for the vCenter Cluster
| public method Com::Vmware::Vcenter::Cluster::get | ( | ) |
Retrieves information about the cluster corresponding to cluster .
| cluster | [REQUIRED] Identifier of the cluster. The value must be an identifier for the resource type getQualifiedName(ClusterComputeResource). . The value must be str. |
| The | class Com::Vmware::Vcenter::Cluster::Info instances that corresponds to the cluster . The return type will be Com::Vmware::Vcenter::Cluster::Info |
| Com::Vmware::Vapi::Std::Errors::NotFound | if there is no cluster associated with cluster in the system. |
| Com::Vmware::Vapi::Std::Errors::ServiceUnavailable | if the system is unable to communicate with a service to complete the request. |
| Com::Vmware::Vapi::Std::Errors::Unauthenticated | if the session id is missing from the request or the corresponding session object cannot be found. |
| Com::Vmware::Vapi::Std::Errors::Unauthorized | if the user doesn't not have the required privileges. |
Code:
| public method Com::Vmware::Vcenter::Cluster::list | ( | ) |
Returns information about at most 1000 visible (subject to permission checks) clusters in vCenter matching the class Com::Vmware::Vcenter::Cluster::FilterSpec .
| filter | [OPTIONAL] Specification of matching clusters for which information should be returned. If null , the behavior is equivalent to a class Com::Vmware::Vcenter::Cluster::FilterSpec with all fields null which means all clusters match the filter. . The value must be Com::Vmware::Vcenter::Cluster::FilterSpec or None. |
| Commonly | used information about the clusters matching the class Com::Vmware::Vcenter::Cluster::FilterSpec . The return type will be Array of Com::Vmware::Vcenter::Cluster::Summary |
| Com::Vmware::Vapi::Std::Errors::UnableToAllocateResource | if more than 1000 clusters match the class Com::Vmware::Vcenter::Cluster::FilterSpec |
| Com::Vmware::Vapi::Std::Errors::ServiceUnavailable | if the system is unable to communicate with a service to complete the request. |
| Com::Vmware::Vapi::Std::Errors::Unauthenticated | if the user can not be authenticated. |
| Com::Vmware::Vapi::Std::Errors::Unauthorized | if the user doesn't have the required privileges. |
Code:
| public method Com::Vmware::Vcenter::Cluster::new | ( | ) |
Constructor to initialize the object
| api_provider | - protocol connection to use with stubs created by this factory |
| StubConfig | - Stub's additional configuration |
| Blessed | object |
Code: