VMware vSphere Automation SDK for .NET 7.0.0.1
|
The DefaultPolicy
interface provides methods related to storage policies associated with datastore object.
More...
Inherited by vmware::vcenter::datastore::DefaultPolicyStub.
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. |
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.
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.
vmware.vapi.std.errors.Error | if the system reports an error while responding to the request. |
vmware.vapi.std.errors.NotFound | if the specified datastore does not exist. |
vmware.vapi.std.errors.ServiceUnavailable | if the system is unable to communicate with a service to complete the request. |
vmware.vapi.std.errors.Unauthenticated | if the user is not authenticated. |
vmware.vapi.std.errors.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 . |
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.
vmware.vapi.std.errors.Error | if the system reports an error while responding to the request. |
vmware.vapi.std.errors.NotFound | if the specified datastore does not exist. |
vmware.vapi.std.errors.ServiceUnavailable | if the system is unable to communicate with a service to complete the request. |
vmware.vapi.std.errors.Unauthenticated | if the user is not authenticated. |
vmware.vapi.std.errors.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 . |
_progress | Progress notification call back |
_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. 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.
vmware.vapi.std.errors.Error | if the system reports an error while responding to the request. |
vmware.vapi.std.errors.NotFound | if the specified datastore does not exist. |
vmware.vapi.std.errors.ServiceUnavailable | if the system is unable to communicate with a service to complete the request. |
vmware.vapi.std.errors.Unauthenticated | if the user is not authenticated. |
vmware.vapi.std.errors.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 . |
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.
vmware.vapi.std.errors.Error | if the system reports an error while responding to the request. |
vmware.vapi.std.errors.NotFound | if the specified datastore does not exist. |
vmware.vapi.std.errors.ServiceUnavailable | if the system is unable to communicate with a service to complete the request. |
vmware.vapi.std.errors.Unauthenticated | if the user is not authenticated. |
vmware.vapi.std.errors.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 . |
_progress | Progress notification call back |
_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. Implemented in vmware::vcenter::datastore::DefaultPolicyStub.