VMware vSphere Automation SDK for .NET 6.5.0
vmware::vcenter::VM Interface Reference

The VM interface provides methods for managing the lifecycle of a virtual machine. More...

Inherited by vmware::vcenter::VMStub.

List of all members.

Public Member Functions

string Create (vmware.vcenter.VMTypes.CreateSpec spec)
 Creates a virtual machine.
string Create (vmware.vcenter.VMTypes.CreateSpec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Creates a virtual machine.
global::System.Threading.Tasks.Task
< string > 
CreateAsync (vmware.vcenter.VMTypes.CreateSpec spec)
 Creates a virtual machine.
global::System.Threading.Tasks.Task
< string > 
CreateAsync (vmware.vcenter.VMTypes.CreateSpec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Creates a virtual machine.
vmware.vcenter.VMTypes.Info Get (string vm)
 Returns information about a virtual machine.
vmware.vcenter.VMTypes.Info Get (string vm, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns information about a virtual machine.
global::System.Threading.Tasks.Task
< vmware.vcenter.VMTypes.Info
GetAsync (string vm)
 Returns information about a virtual machine.
global::System.Threading.Tasks.Task
< vmware.vcenter.VMTypes.Info
GetAsync (string vm, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns information about a virtual machine.
void Delete (string vm)
 Deletes a virtual machine.
void Delete (string vm, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Deletes a virtual machine.
global::System.Threading.Tasks.Task DeleteAsync (string vm)
 Deletes a virtual machine.
global::System.Threading.Tasks.Task DeleteAsync (string vm, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Deletes a virtual machine.
global::System.Collections.Generic.List
< vmware.vcenter.VMTypes.Summary
List (vmware.vcenter.VMTypes.FilterSpec filter)
 Returns information about at most 1000 visible (subject to permission checks) virtual machines in vCenter matching the VM.FilterSpec .
global::System.Collections.Generic.List
< vmware.vcenter.VMTypes.Summary
List (vmware.vcenter.VMTypes.FilterSpec filter, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns information about at most 1000 visible (subject to permission checks) virtual machines in vCenter matching the VM.FilterSpec .
global::System.Threading.Tasks.Task
< global::System.Collections.Generic.List
< vmware.vcenter.VMTypes.Summary > > 
ListAsync (vmware.vcenter.VMTypes.FilterSpec filter)
 Returns information about at most 1000 visible (subject to permission checks) virtual machines in vCenter matching the VM.FilterSpec .
global::System.Threading.Tasks.Task
< global::System.Collections.Generic.List
< vmware.vcenter.VMTypes.Summary > > 
ListAsync (vmware.vcenter.VMTypes.FilterSpec filter, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns information about at most 1000 visible (subject to permission checks) virtual machines in vCenter matching the VM.FilterSpec .

Detailed Description

The VM interface provides methods for managing the lifecycle of a virtual machine.


Member Function Documentation

string vmware::vcenter::VM::Create ( vmware.vcenter.VMTypes.CreateSpec  spec)

Creates a virtual machine.

Exceptions:
vmware.vapi.std.errors.AlreadyExistsif a virtual machine with the specified name already exists.
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.InvalidArgumentif any of the specified parameters are invalid.
vmware.vapi.std.errors.NotFoundif any of the resources specified in spec could not be found
vmware.vapi.std.errors.ResourceInaccessibleif a specified resource (eg. host) is not accessible.
vmware.vapi.std.errors.ResourceInUseif any of the specified storage addresses (eg. IDE, SATA, SCSI) result in a storage address conflict.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.UnableToAllocateResourceif any of the resources needed to create the virtual machine could not be allocated.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
vmware.vapi.std.errors.Unsupportedif guestOS is not supported for the requested virtual hardware version and spec includes null fields that default to guest-specific values.
Parameters:
specVirtual machine specification.
Returns:
ID of newly-created virtual machine. The result will be an identifier for the resource type: VirtualMachine .

Implemented in vmware::vcenter::VMStub.

string vmware::vcenter::VM::Create ( vmware.vcenter.VMTypes.CreateSpec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Creates a virtual machine.

Exceptions:
vmware.vapi.std.errors.AlreadyExistsif a virtual machine with the specified name already exists.
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.InvalidArgumentif any of the specified parameters are invalid.
vmware.vapi.std.errors.NotFoundif any of the resources specified in spec could not be found
vmware.vapi.std.errors.ResourceInaccessibleif a specified resource (eg. host) is not accessible.
vmware.vapi.std.errors.ResourceInUseif any of the specified storage addresses (eg. IDE, SATA, SCSI) result in a storage address conflict.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.UnableToAllocateResourceif any of the resources needed to create the virtual machine could not be allocated.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
vmware.vapi.std.errors.Unsupportedif guestOS is not supported for the requested virtual hardware version and spec includes null fields that default to guest-specific values.
Parameters:
specVirtual machine specification.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
ID of newly-created virtual machine. The result will be an identifier for the resource type: VirtualMachine .

Implemented in vmware::vcenter::VMStub.

global::System.Threading.Tasks.Task<string> vmware::vcenter::VM::CreateAsync ( vmware.vcenter.VMTypes.CreateSpec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Creates a virtual machine.

Exceptions:
vmware.vapi.std.errors.AlreadyExistsif a virtual machine with the specified name already exists.
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.InvalidArgumentif any of the specified parameters are invalid.
vmware.vapi.std.errors.NotFoundif any of the resources specified in spec could not be found
vmware.vapi.std.errors.ResourceInaccessibleif a specified resource (eg. host) is not accessible.
vmware.vapi.std.errors.ResourceInUseif any of the specified storage addresses (eg. IDE, SATA, SCSI) result in a storage address conflict.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.UnableToAllocateResourceif any of the resources needed to create the virtual machine could not be allocated.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
vmware.vapi.std.errors.Unsupportedif guestOS is not supported for the requested virtual hardware version and spec includes null fields that default to guest-specific values.
Parameters:
specVirtual machine specification.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
ID of newly-created virtual machine. The result will be an identifier for the resource type: VirtualMachine .

Implemented in vmware::vcenter::VMStub.

global::System.Threading.Tasks.Task<string> vmware::vcenter::VM::CreateAsync ( vmware.vcenter.VMTypes.CreateSpec  spec)

Creates a virtual machine.

Exceptions:
vmware.vapi.std.errors.AlreadyExistsif a virtual machine with the specified name already exists.
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.InvalidArgumentif any of the specified parameters are invalid.
vmware.vapi.std.errors.NotFoundif any of the resources specified in spec could not be found
vmware.vapi.std.errors.ResourceInaccessibleif a specified resource (eg. host) is not accessible.
vmware.vapi.std.errors.ResourceInUseif any of the specified storage addresses (eg. IDE, SATA, SCSI) result in a storage address conflict.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.UnableToAllocateResourceif any of the resources needed to create the virtual machine could not be allocated.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
vmware.vapi.std.errors.Unsupportedif guestOS is not supported for the requested virtual hardware version and spec includes null fields that default to guest-specific values.
Parameters:
specVirtual machine specification.
Returns:
ID of newly-created virtual machine. The result will be an identifier for the resource type: VirtualMachine .

Implemented in vmware::vcenter::VMStub.

void vmware::vcenter::VM::Delete ( string  vm)

Deletes a virtual machine.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine is not found.
vmware.vapi.std.errors.ResourceBusyif the virtual machine is busy performing another operation.
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 doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .

Implemented in vmware::vcenter::VMStub.

void vmware::vcenter::VM::Delete ( string  vm,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Deletes a virtual machine.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine is not found.
vmware.vapi.std.errors.ResourceBusyif the virtual machine is busy performing another operation.
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 doesn't 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

Implemented in vmware::vcenter::VMStub.

global::System.Threading.Tasks.Task vmware::vcenter::VM::DeleteAsync ( string  vm)

Deletes a virtual machine.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine is not found.
vmware.vapi.std.errors.ResourceBusyif the virtual machine is busy performing another operation.
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 doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .

Implemented in vmware::vcenter::VMStub.

global::System.Threading.Tasks.Task vmware::vcenter::VM::DeleteAsync ( string  vm,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Deletes a virtual machine.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine is not found.
vmware.vapi.std.errors.ResourceBusyif the virtual machine is busy performing another operation.
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 doesn't 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

Implemented in vmware::vcenter::VMStub.

vmware.vcenter.VMTypes.Info vmware::vcenter::VM::Get ( string  vm)

Returns information about a virtual machine.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine is not found.
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 doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
Returns:
Information about the specified virtual machine.

Implemented in vmware::vcenter::VMStub.

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

Returns information about a virtual machine.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine is not found.
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 doesn't 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:
Information about the specified virtual machine.

Implemented in vmware::vcenter::VMStub.

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

Returns information about a virtual machine.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine is not found.
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 doesn't 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:
Information about the specified virtual machine.

Implemented in vmware::vcenter::VMStub.

global::System.Threading.Tasks.Task<vmware.vcenter.VMTypes.Info> vmware::vcenter::VM::GetAsync ( string  vm)

Returns information about a virtual machine.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine is not found.
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 doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
Returns:
Information about the specified virtual machine.

Implemented in vmware::vcenter::VMStub.

global::System.Collections.Generic.List<vmware.vcenter.VMTypes.Summary> vmware::vcenter::VM::List ( vmware.vcenter.VMTypes.FilterSpec  filter)

Returns information about at most 1000 visible (subject to permission checks) virtual machines in vCenter matching the VM.FilterSpec .

Exceptions:
vmware.vapi.std.errors.InvalidArgumentif the VM.FilterSpec.powerStates field contains a value that is not supported by the server.
vmware.vapi.std.errors.UnableToAllocateResourceif more than 1000 virtual machines match the VM.FilterSpec .
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 doesn't have the required privileges.
Parameters:
filterSpecification of matching virtual machines for which information should be returned. If null, the behavior is equivalent to a VM.FilterSpec with all fields null which means all virtual machines match the filter.
Returns:
Commonly used information about the virtual machines matching the VM.FilterSpec .

Implemented in vmware::vcenter::VMStub.

global::System.Collections.Generic.List<vmware.vcenter.VMTypes.Summary> vmware::vcenter::VM::List ( vmware.vcenter.VMTypes.FilterSpec  filter,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Returns information about at most 1000 visible (subject to permission checks) virtual machines in vCenter matching the VM.FilterSpec .

Exceptions:
vmware.vapi.std.errors.InvalidArgumentif the VM.FilterSpec.powerStates field contains a value that is not supported by the server.
vmware.vapi.std.errors.UnableToAllocateResourceif more than 1000 virtual machines match the VM.FilterSpec .
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 doesn't have the required privileges.
Parameters:
filterSpecification of matching virtual machines for which information should be returned. If null, the behavior is equivalent to a VM.FilterSpec with all fields null which means all virtual machines match the filter.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Commonly used information about the virtual machines matching the VM.FilterSpec .

Implemented in vmware::vcenter::VMStub.

global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<vmware.vcenter.VMTypes.Summary> > vmware::vcenter::VM::ListAsync ( vmware.vcenter.VMTypes.FilterSpec  filter,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Returns information about at most 1000 visible (subject to permission checks) virtual machines in vCenter matching the VM.FilterSpec .

Exceptions:
vmware.vapi.std.errors.InvalidArgumentif the VM.FilterSpec.powerStates field contains a value that is not supported by the server.
vmware.vapi.std.errors.UnableToAllocateResourceif more than 1000 virtual machines match the VM.FilterSpec .
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 doesn't have the required privileges.
Parameters:
filterSpecification of matching virtual machines for which information should be returned. If null, the behavior is equivalent to a VM.FilterSpec with all fields null which means all virtual machines match the filter.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Commonly used information about the virtual machines matching the VM.FilterSpec .

Implemented in vmware::vcenter::VMStub.

global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<vmware.vcenter.VMTypes.Summary> > vmware::vcenter::VM::ListAsync ( vmware.vcenter.VMTypes.FilterSpec  filter)

Returns information about at most 1000 visible (subject to permission checks) virtual machines in vCenter matching the VM.FilterSpec .

Exceptions:
vmware.vapi.std.errors.InvalidArgumentif the VM.FilterSpec.powerStates field contains a value that is not supported by the server.
vmware.vapi.std.errors.UnableToAllocateResourceif more than 1000 virtual machines match the VM.FilterSpec .
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 doesn't have the required privileges.
Parameters:
filterSpecification of matching virtual machines for which information should be returned. If null, the behavior is equivalent to a VM.FilterSpec with all fields null which means all virtual machines match the filter.
Returns:
Commonly used information about the virtual machines matching the VM.FilterSpec .

Implemented in vmware::vcenter::VMStub.


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