|
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
|
Avaliable Methods | |
| public method | cancel () |
| public method | new () |
The Com::Vmware::Vapi::Vcenter::Activation interface provides methods for tasks cancelation.
| public method Com::Vmware::Vapi::Vcenter::Activation::cancel | ( | ) |
Sends a request to cancel the task associated with the provided activation_id .
| activation_id | [REQUIRED] the activation_id associated with a vCenter Server task to be canceled. The value must be an identifier for the resource type getQualifiedName(com.vmware.Activation). . The value must be str. |
| Com::Vmware::Vapi::Std::Errors::NotFound | if a vCenter Server task with the given activation_id was not found. |
| Com::Vmware::Vapi::Std::Errors::NotAllowedInCurrentState | if the vCenter Server task associated with the given activation_id is not cancelable. |
| Com::Vmware::Vapi::Std::Errors::Unauthorized | if the user is not authorized to cancel the task. |
| Com::Vmware::Vapi::Std::Errors::Unauthenticated | if the user is not authenticated. |
| Com::Vmware::Vapi::Std::Errors::ServiceUnavailable | if the task cancelation cannot be performed due to vCenter server is unreachable or it is not properly configured. |
Code:
| public method Com::Vmware::Vapi::Vcenter::Activation::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: