public interface Policies extends Service, PoliciesTypes
Policies interface provides methods to query the status of policies
on virtual machines. Warning: This interface is available as technical
preview. It may be changed in a future release.PoliciesTypes.Info| Modifier and Type | Method and Description |
|---|---|
PoliciesTypes.Info |
get(java.lang.String vm,
java.lang.String policy)
Returns information about the compliance of a virtual machine with a compute
policy.
|
void |
get(java.lang.String vm,
java.lang.String policy,
AsyncCallback<PoliciesTypes.Info> asyncCallback)
Returns information about the compliance of a virtual machine with a compute
policy.
|
void |
get(java.lang.String vm,
java.lang.String policy,
AsyncCallback<PoliciesTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about the compliance of a virtual machine with a compute
policy.
|
PoliciesTypes.Info |
get(java.lang.String vm,
java.lang.String policy,
InvocationConfig invocationConfig)
Returns information about the compliance of a virtual machine with a compute
policy.
|
PoliciesTypes.Info get(java.lang.String vm, java.lang.String policy)
Synchronous method overload. Result of the invocation will be reported as a method return value.
vm - Identifier of the virtual machine to query the status for.
The parameter must be an identifier for the resource type: VirtualMachine.policy - Identifier of the policy to query the status for.
The parameter must be an identifier for the resource type: com.vmware.vcenter.compute.Policy.NotFound - if a virtual machine with the given identifier does not exist, or if a policy
with the given identifier does not exist.Unauthorized - if the user doesn't have the required privileges.Unauthorized - if you do not have all of the privileges described as follows: System.Read. PoliciesTypes.Info get(java.lang.String vm, java.lang.String policy, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
vm - Identifier of the virtual machine to query the status for.
The parameter must be an identifier for the resource type: VirtualMachine.policy - Identifier of the policy to query the status for.
The parameter must be an identifier for the resource type: com.vmware.vcenter.compute.Policy.invocationConfig - Configuration for the method invocation.NotFound - if a virtual machine with the given identifier does not exist, or if a policy
with the given identifier does not exist.Unauthorized - if the user doesn't have the required privileges.Unauthorized - if you do not have all of the privileges described as follows: System.Read. void get(java.lang.String vm,
java.lang.String policy,
AsyncCallback<PoliciesTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
Information about the compliance of the specified virtual machine with the
specified compute policy.
Operation Errors:
NotFound - if a virtual machine with the given identifier does not exist, or if a policy
with the given identifier does not exist.
Unauthorized - if the user doesn't have the required privileges.
Unauthorized - if you do not have all of the privileges described as follows:
System.Read. vm - Identifier of the virtual machine to query the status for.
The parameter must be an identifier for the resource type: VirtualMachine.policy - Identifier of the policy to query the status for.
The parameter must be an identifier for the resource type: com.vmware.vcenter.compute.Policy.asyncCallback - Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String vm,
java.lang.String policy,
AsyncCallback<PoliciesTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
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 compliance of the specified virtual machine with the
specified compute policy.
Operation Errors:
NotFound - if a virtual machine with the given identifier does not exist, or if a policy
with the given identifier does not exist.
Unauthorized - if the user doesn't have the required privileges.
Unauthorized - if you do not have all of the privileges described as follows:
System.Read. vm - Identifier of the virtual machine to query the status for.
The parameter must be an identifier for the resource type: VirtualMachine.policy - Identifier of the policy to query the status for.
The parameter must be an identifier for the resource type: com.vmware.vcenter.compute.Policy.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.