public interface Policies extends Service, PoliciesTypes
Policies
interface provides methods to query the status of policies
on virtual machines in VMware Cloud on AWS. Usage beyond VMware Cloud on AWS is
not supported. Warning: This interface is available as Technology
Preview. These are early access APIs provided to test, automate and provide
feedback on the feature. Since this can change based on feedback, VMware does
not guarantee backwards compatibility and recommends against using them in
production environments. Some Technology Preview APIs might only be applicable
to specific environments.PoliciesTypes.Info
_VAPI_SERVICE_ID
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 in VMware Cloud on AWS.
|
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 in VMware Cloud on AWS.
|
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 in VMware Cloud on AWS.
|
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 in VMware Cloud on AWS.
|
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.Resources.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.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.Resources.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.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
.
Invocation 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.
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.Resources.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.
Invocation 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.
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.Resources.COMPUTE_POLICY
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.