VMware vSphere Automation SDK for .NET 7.0.0.1
vmware::vcenter::vm::storage::Policy Interface Reference

The Policy interface provides methods to configure the storage policies associated with the virtual machine home and/or its virtual disks. More...

Inherited by vmware::vcenter::vm::storage::PolicyStub.

List of all members.

Public Member Functions

void Update (string vm, vmware.vcenter.vm.storage.PolicyTypes.UpdateSpec spec)
 Updates the storage policy configuration of a virtual machine and/or its associated virtual hard disks.
void Update (string vm, vmware.vcenter.vm.storage.PolicyTypes.UpdateSpec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Updates the storage policy configuration of a virtual machine and/or its associated virtual hard disks.
global::System.Threading.Tasks.Task UpdateAsync (string vm, vmware.vcenter.vm.storage.PolicyTypes.UpdateSpec spec)
 Updates the storage policy configuration of a virtual machine and/or its associated virtual hard disks.
global::System.Threading.Tasks.Task UpdateAsync (string vm, vmware.vcenter.vm.storage.PolicyTypes.UpdateSpec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Updates the storage policy configuration of a virtual machine and/or its associated virtual hard disks.
vmware.vcenter.vm.storage.PolicyTypes.Info Get (string vm)
 Returns Information about Storage Policy associated with a virtual machine's home directory and/or its virtual hard disks.
vmware.vcenter.vm.storage.PolicyTypes.Info Get (string vm, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns Information about Storage Policy associated with a virtual machine's home directory and/or its virtual hard disks.
global::System.Threading.Tasks.Task
< vmware.vcenter.vm.storage.PolicyTypes.Info
GetAsync (string vm)
 Returns Information about Storage Policy associated with a virtual machine's home directory and/or its virtual hard disks.
global::System.Threading.Tasks.Task
< vmware.vcenter.vm.storage.PolicyTypes.Info
GetAsync (string vm, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns Information about Storage Policy associated with a virtual machine's home directory and/or its virtual hard disks.

Detailed Description

The Policy interface provides methods to configure the storage policies associated with the virtual machine home and/or its virtual disks.

This interface was added in vSphere API 6.7.


Member Function Documentation

vmware.vcenter.vm.storage.PolicyTypes.Info vmware::vcenter::vm::storage::Policy::Get ( string  vm)

Returns Information about Storage Policy associated with a virtual machine's home directory and/or its virtual hard disks.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user does not have the required privileges.
Parameters:
vmVirtual machine identifier The parameter must be an identifier for the resource type: VirtualMachine .
Returns:
Overview of Storage Policy associated with a virtual machine's home directory and/or its associated virtual hard disks.

Implemented in vmware::vcenter::vm::storage::PolicyStub.

vmware.vcenter.vm.storage.PolicyTypes.Info vmware::vcenter::vm::storage::Policy::Get ( string  vm,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Returns Information about Storage Policy associated with a virtual machine's home directory and/or its virtual hard disks.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user does not have the required privileges.
Parameters:
vmVirtual machine identifier The parameter must be an identifier for the resource type: VirtualMachine .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Overview of Storage Policy associated with a virtual machine's home directory and/or its associated virtual hard disks.

Implemented in vmware::vcenter::vm::storage::PolicyStub.

global::System.Threading.Tasks.Task<vmware.vcenter.vm.storage.PolicyTypes.Info> vmware::vcenter::vm::storage::Policy::GetAsync ( string  vm,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Returns Information about Storage Policy associated with a virtual machine's home directory and/or its virtual hard disks.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user does not have the required privileges.
Parameters:
vmVirtual machine identifier The parameter must be an identifier for the resource type: VirtualMachine .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Overview of Storage Policy associated with a virtual machine's home directory and/or its associated virtual hard disks.

Implemented in vmware::vcenter::vm::storage::PolicyStub.

global::System.Threading.Tasks.Task<vmware.vcenter.vm.storage.PolicyTypes.Info> vmware::vcenter::vm::storage::Policy::GetAsync ( string  vm)

Returns Information about Storage Policy associated with a virtual machine's home directory and/or its virtual hard disks.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user does not have the required privileges.
Parameters:
vmVirtual machine identifier The parameter must be an identifier for the resource type: VirtualMachine .
Returns:
Overview of Storage Policy associated with a virtual machine's home directory and/or its associated virtual hard disks.

Implemented in vmware::vcenter::vm::storage::PolicyStub.

void vmware::vcenter::vm::storage::Policy::Update ( string  vm,
vmware.vcenter.vm.storage.PolicyTypes.UpdateSpec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Updates the storage policy configuration of a virtual machine and/or its associated virtual hard disks.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user is not authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required priveleges.
vmware.vapi.std.errors.InvalidArgumentif the storage policy specified is invalid.
vmware.vapi.std.errors.ResourceBusyif the virtual machine or disk is busy performing another operation.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine or disk's configuration state cannot be accessed.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
specStorage Policy Specification for updating the virtual machine and virtual disks.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::vcenter::vm::storage::PolicyStub.

void vmware::vcenter::vm::storage::Policy::Update ( string  vm,
vmware.vcenter.vm.storage.PolicyTypes.UpdateSpec  spec 
)

Updates the storage policy configuration of a virtual machine and/or its associated virtual hard disks.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user is not authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required priveleges.
vmware.vapi.std.errors.InvalidArgumentif the storage policy specified is invalid.
vmware.vapi.std.errors.ResourceBusyif the virtual machine or disk is busy performing another operation.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine or disk's configuration state cannot be accessed.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
specStorage Policy Specification for updating the virtual machine and virtual disks.

Implemented in vmware::vcenter::vm::storage::PolicyStub.

global::System.Threading.Tasks.Task vmware::vcenter::vm::storage::Policy::UpdateAsync ( string  vm,
vmware.vcenter.vm.storage.PolicyTypes.UpdateSpec  spec 
)

Updates the storage policy configuration of a virtual machine and/or its associated virtual hard disks.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user is not authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required priveleges.
vmware.vapi.std.errors.InvalidArgumentif the storage policy specified is invalid.
vmware.vapi.std.errors.ResourceBusyif the virtual machine or disk is busy performing another operation.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine or disk's configuration state cannot be accessed.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
specStorage Policy Specification for updating the virtual machine and virtual disks.

Implemented in vmware::vcenter::vm::storage::PolicyStub.

global::System.Threading.Tasks.Task vmware::vcenter::vm::storage::Policy::UpdateAsync ( string  vm,
vmware.vcenter.vm.storage.PolicyTypes.UpdateSpec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Updates the storage policy configuration of a virtual machine and/or its associated virtual hard disks.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user is not authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required priveleges.
vmware.vapi.std.errors.InvalidArgumentif the storage policy specified is invalid.
vmware.vapi.std.errors.ResourceBusyif the virtual machine or disk is busy performing another operation.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine or disk's configuration state cannot be accessed.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
specStorage Policy Specification for updating the virtual machine and virtual disks.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::vcenter::vm::storage::PolicyStub.


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