VMware vSphere Automation SDK for .NET 7.0.0.1
vmware::vcenter::storage::policies::VM Interface Reference

The VM interface provides methods managing the storage policy association for a virtual machine and its virtual disks. More...

Inherited by vmware::vcenter::storage::policies::VMStub.

List of all members.

Public Member Functions

global::System.Collections.Generic.Dictionary
< string,
vmware.vcenter.storage.policies.VMTypes.Info
List (string policy)
 Returns information about the virtual machines and/or their virtual disks that are associated with the given storage policy.
global::System.Collections.Generic.Dictionary
< string,
vmware.vcenter.storage.policies.VMTypes.Info
List (string policy, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns information about the virtual machines and/or their virtual disks that are associated with the given storage policy.
global::System.Threading.Tasks.Task
< global::System.Collections.Generic.Dictionary
< string,
vmware.vcenter.storage.policies.VMTypes.Info > > 
ListAsync (string policy)
 Returns information about the virtual machines and/or their virtual disks that are associated with the given storage policy.
global::System.Threading.Tasks.Task
< global::System.Collections.Generic.Dictionary
< string,
vmware.vcenter.storage.policies.VMTypes.Info > > 
ListAsync (string policy, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns information about the virtual machines and/or their virtual disks that are associated with the given storage policy.

Detailed Description

The VM interface provides methods managing the storage policy association for a virtual machine and its virtual disks.

This interface was added in vSphere API 6.7.


Member Function Documentation

global::System.Collections.Generic.Dictionary<string, vmware.vcenter.storage.policies.VMTypes.Info> vmware::vcenter::storage::policies::VM::List ( string  policy)

Returns information about the virtual machines and/or their virtual disks that are associated with the given storage policy.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.NotFoundif there is no policy associated with policy in the system.
vmware.vapi.std.errors.UnableToAllocateResourceif more than 1000 virtual machines are associated with the specified policy.
vmware.vapi.std.errors.Unauthenticatedif the user cannot be authenticated.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service necessary to complete the request.
vmware.vapi.std.errors.Errorif the backend server encounters some an error while processing the request.
vmware.vapi.std.errors.Unauthorizedif the user does not have the required priveleges.
Parameters:
policystorage policy identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.StoragePolicy .
Returns:
Information about the virtual machines and/or their virtual disks that are associated with the given storage policy. The key in the result map will be an identifier for the resource type: VirtualMachine .

Implemented in vmware::vcenter::storage::policies::VMStub.

global::System.Collections.Generic.Dictionary<string, vmware.vcenter.storage.policies.VMTypes.Info> vmware::vcenter::storage::policies::VM::List ( string  policy,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Returns information about the virtual machines and/or their virtual disks that are associated with the given storage policy.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.NotFoundif there is no policy associated with policy in the system.
vmware.vapi.std.errors.UnableToAllocateResourceif more than 1000 virtual machines are associated with the specified policy.
vmware.vapi.std.errors.Unauthenticatedif the user cannot be authenticated.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service necessary to complete the request.
vmware.vapi.std.errors.Errorif the backend server encounters some an error while processing the request.
vmware.vapi.std.errors.Unauthorizedif the user does not have the required priveleges.
Parameters:
policystorage policy identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.StoragePolicy .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Information about the virtual machines and/or their virtual disks that are associated with the given storage policy. The key in the result map will be an identifier for the resource type: VirtualMachine .

Implemented in vmware::vcenter::storage::policies::VMStub.

global::System.Threading.Tasks.Task<global::System.Collections.Generic.Dictionary<string, vmware.vcenter.storage.policies.VMTypes.Info> > vmware::vcenter::storage::policies::VM::ListAsync ( string  policy)

Returns information about the virtual machines and/or their virtual disks that are associated with the given storage policy.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.NotFoundif there is no policy associated with policy in the system.
vmware.vapi.std.errors.UnableToAllocateResourceif more than 1000 virtual machines are associated with the specified policy.
vmware.vapi.std.errors.Unauthenticatedif the user cannot be authenticated.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service necessary to complete the request.
vmware.vapi.std.errors.Errorif the backend server encounters some an error while processing the request.
vmware.vapi.std.errors.Unauthorizedif the user does not have the required priveleges.
Parameters:
policystorage policy identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.StoragePolicy .
Returns:
Information about the virtual machines and/or their virtual disks that are associated with the given storage policy. The key in the result map will be an identifier for the resource type: VirtualMachine .

Implemented in vmware::vcenter::storage::policies::VMStub.

global::System.Threading.Tasks.Task<global::System.Collections.Generic.Dictionary<string, vmware.vcenter.storage.policies.VMTypes.Info> > vmware::vcenter::storage::policies::VM::ListAsync ( string  policy,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Returns information about the virtual machines and/or their virtual disks that are associated with the given storage policy.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.NotFoundif there is no policy associated with policy in the system.
vmware.vapi.std.errors.UnableToAllocateResourceif more than 1000 virtual machines are associated with the specified policy.
vmware.vapi.std.errors.Unauthenticatedif the user cannot be authenticated.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service necessary to complete the request.
vmware.vapi.std.errors.Errorif the backend server encounters some an error while processing the request.
vmware.vapi.std.errors.Unauthorizedif the user does not have the required priveleges.
Parameters:
policystorage policy identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.StoragePolicy .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Information about the virtual machines and/or their virtual disks that are associated with the given storage policy. The key in the result map will be an identifier for the resource type: VirtualMachine .

Implemented in vmware::vcenter::storage::policies::VMStub.


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