|
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 | Info |
| class | UpdateSpec |
| class | UpgradePolicy |
| class | UpgradeStatus |
| class | Version |
Avaliable Methods | |
| public method | get () |
| public method | upgrade () |
| public method | new () |
| public method | update () |
The Com::Vmware::Vcenter::Vm::Hardware interface provides methods for configuring the virtual hardware of a virtual machine.
| public method Com::Vmware::Vcenter::Vm::Hardware::get | ( | ) |
Returns the virtual hardware settings of a virtual machine.
| vm | [REQUIRED] Virtual machine identifier. The value must be an identifier for the resource type getQualifiedName(VirtualMachine). . The value must be str. |
| Virtual | hardware settings of the virtual machine. The return type will be Com::Vmware::Vcenter::Vm::Hardware::Info |
| Com::Vmware::Vapi::Std::Errors::Error | if the system reports an error while responding to the request. |
| Com::Vmware::Vapi::Std::Errors::NotFound | if the virtual machine is not found. |
| Com::Vmware::Vapi::Std::Errors::ResourceInaccessible | if the virtual machine's configuration state cannot be accessed. |
| 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::Vm::Hardware::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:
| public method Com::Vmware::Vcenter::Vm::Hardware::update | ( | ) |
Updates the virtual hardware settings of a virtual machine.
| vm | [REQUIRED] Virtual machine identifier. The value must be an identifier for the resource type getQualifiedName(VirtualMachine). . The value must be str. |
| spec | [REQUIRED] Specification for updating the virtual hardware settings of the virtual machine. . The value must be Com::Vmware::Vcenter::Vm::Hardware::UpdateSpec. |
| Com::Vmware::Vapi::Std::Errors::Error | if the system reports an error while responding to the request. |
| Com::Vmware::Vapi::Std::Errors::NotFound | if the virtual machine is not found. |
| Com::Vmware::Vapi::Std::Errors::AlreadyInDesiredState | if the virtual machine is already configured for the desired hardware version. |
| Com::Vmware::Vapi::Std::Errors::InvalidArgument | if the requested virtual hardware version is not newer than the current version. |
| Com::Vmware::Vapi::Std::Errors::Unsupported | if the requested virtual hardware version is not supported by the server. |
| Com::Vmware::Vapi::Std::Errors::ResourceBusy | if the virtual machine is busy performing another operation. |
| Com::Vmware::Vapi::Std::Errors::ResourceInaccessible | if the virtual machine's configuration state cannot be accessed. |
| 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::Vm::Hardware::upgrade | ( | ) |
Upgrades the virtual machine to a newer virtual hardware version.
| vm | [REQUIRED] Virtual machine identifier. The value must be an identifier for the resource type getQualifiedName(VirtualMachine). . The value must be str. |
| version | [OPTIONAL] New virtual machine version. If null , defaults to the most recent virtual hardware version supported by the server. . The value must be Com::Vmware::Vcenter::Vm::Hardware::Version or None. |
| Com::Vmware::Vapi::Std::Errors::Error | if the system reports an error while responding to the request. |
| Com::Vmware::Vapi::Std::Errors::NotFound | if the virtual machine is not found. |
| Com::Vmware::Vapi::Std::Errors::NotAllowedInCurrentState | if the virtual machine is not powered off. |
| Com::Vmware::Vapi::Std::Errors::AlreadyInDesiredState | if the virtual machine is already configured for the desired hardware version. |
| Com::Vmware::Vapi::Std::Errors::InvalidArgument | if version is older than the current virtual hardware version. |
| Com::Vmware::Vapi::Std::Errors::Unsupported | if version is not supported by the server. |
| Com::Vmware::Vapi::Std::Errors::ResourceBusy | if the virtual machine is busy performing another operation. |
| Com::Vmware::Vapi::Std::Errors::ResourceInaccessible | if the virtual machine's configuration state cannot be accessed. |
| 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: