public interface DefaultPolicy extends Service, DefaultPolicyTypes
DefaultPolicy
interface provides methods related to storage policies
associated with datastore object. The get(java.lang.String)
method provides information
about the default storage policy associated with the specific datastore. This
interface was added in vSphere API 6.7._VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get(java.lang.String datastore)
Returns the identifier of the current default storage policy associated with the
specified datastore.
|
void |
get(java.lang.String datastore,
AsyncCallback<java.lang.String> asyncCallback)
Returns the identifier of the current default storage policy associated with the
specified datastore.
|
void |
get(java.lang.String datastore,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Returns the identifier of the current default storage policy associated with the
specified datastore.
|
java.lang.String |
get(java.lang.String datastore,
InvocationConfig invocationConfig)
Returns the identifier of the current default storage policy associated with the
specified datastore.
|
java.lang.String get(java.lang.String datastore)
Synchronous method overload. Result of the invocation will be reported as a method return value.
datastore
- Identifier of the datastore for which the default policy is requested.
The parameter must be an identifier for the resource type: Datastore
.com.vmware.vcenter.StoragePolicy
.
this field is null
if there is no default storage policy associated with
the datastore.Error
- if the system reports an error while responding to the request.NotFound
- if the specified datastore does not exist.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user is not authenticated.Unauthorized
- if the user does not have the required priveleges.java.lang.String get(java.lang.String datastore, 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.
datastore
- Identifier of the datastore for which the default policy is requested.
The parameter must be an identifier for the resource type: Datastore
.invocationConfig
- Configuration for the method invocation.com.vmware.vcenter.StoragePolicy
.
this field is null
if there is no default storage policy associated with
the datastore.Error
- if the system reports an error while responding to the request.NotFound
- if the specified datastore does not exist.ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.Unauthenticated
- if the user is not authenticated.Unauthorized
- if the user does not have the required priveleges.void get(java.lang.String datastore, AsyncCallback<java.lang.String> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Identifier of the default storage policy associated with the specified
datastore.
The return value will be an identifier for the resource type: com.vmware.vcenter.StoragePolicy
.
this field is null
if there is no default storage policy associated with
the datastore.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the specified datastore does not exist.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user is not authenticated.
Unauthorized
- if the user does not have the required priveleges.
datastore
- Identifier of the datastore for which the default policy is requested.
The parameter must be an identifier for the resource type: Datastore
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String datastore, AsyncCallback<java.lang.String> 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:
Identifier of the default storage policy associated with the specified
datastore.
The return value will be an identifier for the resource type: com.vmware.vcenter.StoragePolicy
.
this field is null
if there is no default storage policy associated with
the datastore.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the specified datastore does not exist.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user is not authenticated.
Unauthorized
- if the user does not have the required priveleges.
datastore
- Identifier of the datastore for which the default policy is requested.
The parameter must be an identifier for the resource type: Datastore
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.