VMTypes.Info
Constructor and Description |
---|
VMStub(ApiProvider apiProvider,
StubConfigurationBase config) |
VMStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,VMTypes.Info> |
list(java.lang.String policy)
Returns information about the virtual machines and/or their virtual disks that
are associated with the given storage policy.
|
void |
list(java.lang.String policy,
AsyncCallback<java.util.Map<java.lang.String,VMTypes.Info>> asyncCallback)
Returns information about the virtual machines and/or their virtual disks that
are associated with the given storage policy.
|
void |
list(java.lang.String policy,
AsyncCallback<java.util.Map<java.lang.String,VMTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Returns information about the virtual machines and/or their virtual disks that
are associated with the given storage policy.
|
java.util.Map<java.lang.String,VMTypes.Info> |
list(java.lang.String policy,
InvocationConfig invocationConfig)
Returns information about the virtual machines and/or their virtual disks that
are associated with the given storage policy.
|
public VMStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public VMStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.Map<java.lang.String,VMTypes.Info> list(java.lang.String policy)
VM
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface VM
policy
- storage policy identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.StoragePolicy
.Map
will be an identifier for the
resource type: VirtualMachine
.public java.util.Map<java.lang.String,VMTypes.Info> list(java.lang.String policy, InvocationConfig invocationConfig)
VM
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
list
in interface VM
policy
- storage policy identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.StoragePolicy
.invocationConfig
- Configuration for the method invocation.Map
will be an identifier for the
resource type: VirtualMachine
.public void list(java.lang.String policy, AsyncCallback<java.util.Map<java.lang.String,VMTypes.Info>> asyncCallback)
VM
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Information about the virtual machines and/or their virtual disks that are
associated with the given storage policy.
The key in the return value Map
will be an identifier for the
resource type: VirtualMachine
.
Operation Errors:
NotFound
- if there is no policy associated with policy
in the system.
UnableToAllocateResource
- if more than 1000 virtual machines are associated with the specified policy.
Unauthenticated
- if the user cannot be authenticated.
ServiceUnavailable
- if the system is unable to communicate with a service necessary to complete the
request.
Error
- if the backend server encounters some an error while processing the request.
Unauthorized
- if the user does not have the required priveleges.
public void list(java.lang.String policy, AsyncCallback<java.util.Map<java.lang.String,VMTypes.Info>> asyncCallback, InvocationConfig invocationConfig)
VM
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
Information about the virtual machines and/or their virtual disks that are
associated with the given storage policy.
The key in the return value Map
will be an identifier for the
resource type: VirtualMachine
.
Operation Errors:
NotFound
- if there is no policy associated with policy
in the system.
UnableToAllocateResource
- if more than 1000 virtual machines are associated with the specified policy.
Unauthenticated
- if the user cannot be authenticated.
ServiceUnavailable
- if the system is unable to communicate with a service necessary to complete the
request.
Error
- if the backend server encounters some an error while processing the request.
Unauthorized
- if the user does not have the required priveleges.
list
in interface VM
policy
- storage policy identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.StoragePolicy
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.