public interface Policy extends Service, PolicyTypes
Policy interface provides methods to manage local user accounts.
This interface was added in vSphere API 6.7.PolicyTypes.Info_VAPI_SERVICE_ID| Modifier and Type | Method and Description |
|---|---|
PolicyTypes.Info |
get()
Get the global password policy.
|
void |
get(AsyncCallback<PolicyTypes.Info> asyncCallback)
Get the global password policy.
|
void |
get(AsyncCallback<PolicyTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Get the global password policy.
|
PolicyTypes.Info |
get(InvocationConfig invocationConfig)
Get the global password policy.
|
void |
set(PolicyTypes.Info policy)
Set the global password policy.
|
void |
set(PolicyTypes.Info policy,
AsyncCallback<java.lang.Void> asyncCallback)
Set the global password policy.
|
void |
set(PolicyTypes.Info policy,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Set the global password policy.
|
void |
set(PolicyTypes.Info policy,
InvocationConfig invocationConfig)
Set the global password policy.
|
PolicyTypes.Info get()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Error - Generic errorPolicyTypes.Info get(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.
invocationConfig - Configuration for the method invocation.Error - Generic errorvoid get(AsyncCallback<PolicyTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
Global password policy
Operation Errors:
Error - Generic error
asyncCallback - Receives the status (progress, result or error) of the operation invocation.void get(AsyncCallback<PolicyTypes.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:
Global password policy
Operation Errors:
Error - Generic error
asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.void set(PolicyTypes.Info policy)
Synchronous method overload. Result of the invocation will be reported as a method return value.
policy - Global password policyInvalidArgument - if passed policy values are < -1 or > 99999Error - Generic errorvoid set(PolicyTypes.Info 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.
policy - Global password policyinvocationConfig - Configuration for the method invocation.InvalidArgument - if passed policy values are < -1 or > 99999Error - Generic errorvoid set(PolicyTypes.Info policy, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
InvalidArgument - if passed policy values are < -1 or > 99999
Error - Generic error
policy - Global password policyasyncCallback - Receives the status (progress, result or error) of the operation invocation.void set(PolicyTypes.Info policy, AsyncCallback<java.lang.Void> 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 Errors:
InvalidArgument - if passed policy values are < -1 or > 99999
Error - Generic error
policy - Global password policyasyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.