VMware vSphere Automation SDK for .NET 7.0.0.1
vmware::vcenter::datastore::DefaultPolicy Interface Reference

The DefaultPolicy interface provides methods related to storage policies associated with datastore object. More...

Inherited by vmware::vcenter::datastore::DefaultPolicyStub.

List of all members.

Public Member Functions

string Get (string datastore)
 Returns the identifier of the current default storage policy associated with the specified datastore.
string Get (string datastore, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns the identifier of the current default storage policy associated with the specified datastore.
global::System.Threading.Tasks.Task
< string > 
GetAsync (string datastore)
 Returns the identifier of the current default storage policy associated with the specified datastore.
global::System.Threading.Tasks.Task
< string > 
GetAsync (string datastore, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns the identifier of the current default storage policy associated with the specified datastore.

Detailed Description

The DefaultPolicy interface provides methods related to storage policies associated with datastore object.

The DefaultPolicy.Get method provides information about the default storage policy associated with the specific datastore. This interface was added in vSphere API 6.7.


Member Function Documentation

string vmware::vcenter::datastore::DefaultPolicy::Get ( string  datastore)

Returns the identifier of the current default storage policy associated with the specified datastore.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the specified datastore does not exist.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user is not authenticated.
vmware.vapi.std.errors.Unauthorizedif the user does not have the required priveleges.
Parameters:
datastoreIdentifier of the datastore for which the default policy is requested. The parameter must be an identifier for the resource type: Datastore .
Returns:
Identifier of the default storage policy associated with the specified datastore. The result 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.

Implemented in vmware::vcenter::datastore::DefaultPolicyStub.

string vmware::vcenter::datastore::DefaultPolicy::Get ( string  datastore,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Returns the identifier of the current default storage policy associated with the specified datastore.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the specified datastore does not exist.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user is not authenticated.
vmware.vapi.std.errors.Unauthorizedif the user does not have the required priveleges.
Parameters:
datastoreIdentifier of the datastore for which the default policy is requested. The parameter must be an identifier for the resource type: Datastore .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Identifier of the default storage policy associated with the specified datastore. The result 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.

Implemented in vmware::vcenter::datastore::DefaultPolicyStub.

global::System.Threading.Tasks.Task<string> vmware::vcenter::datastore::DefaultPolicy::GetAsync ( string  datastore)

Returns the identifier of the current default storage policy associated with the specified datastore.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the specified datastore does not exist.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user is not authenticated.
vmware.vapi.std.errors.Unauthorizedif the user does not have the required priveleges.
Parameters:
datastoreIdentifier of the datastore for which the default policy is requested. The parameter must be an identifier for the resource type: Datastore .
Returns:
Identifier of the default storage policy associated with the specified datastore. The result 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.

Implemented in vmware::vcenter::datastore::DefaultPolicyStub.

global::System.Threading.Tasks.Task<string> vmware::vcenter::datastore::DefaultPolicy::GetAsync ( string  datastore,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Returns the identifier of the current default storage policy associated with the specified datastore.

This method was added in vSphere API 6.7.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the specified datastore does not exist.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user is not authenticated.
vmware.vapi.std.errors.Unauthorizedif the user does not have the required priveleges.
Parameters:
datastoreIdentifier of the datastore for which the default policy is requested. The parameter must be an identifier for the resource type: Datastore .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Identifier of the default storage policy associated with the specified datastore. The result 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.

Implemented in vmware::vcenter::datastore::DefaultPolicyStub.


The documentation for this interface was generated from the following file: