Class DatastoreClient
Service client instance for Datastore.
Implements
Inherited Members
Namespace: Oci.OcvpService
Assembly: OCI.DotNetSDK.Ocvp.dll
Syntax
public class DatastoreClient : RegionalClientBase, IDisposable
Constructors
DatastoreClient(IBasicAuthenticationDetailsProvider, ClientConfiguration, string)
Creates a new service instance using the given authentication provider and/or client configuration and/or endpoint. A client configuration can also be provided optionally to adjust REST client behaviors.
Declaration
public DatastoreClient(IBasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration clientConfiguration = null, string endpoint = null)
Parameters
Type | Name | Description |
---|---|---|
IBasicAuthenticationDetailsProvider | authenticationDetailsProvider | The authentication details provider. Required. |
ClientConfiguration | clientConfiguration | The client configuration that contains settings to adjust REST client behaviors. Optional. |
string | endpoint | The endpoint of the service. If not provided and the client is a regional client, the endpoint will be constructed based on region information. Optional. |
Properties
Paginators
Declaration
public DatastorePaginators Paginators { get; }
Property Value
Type | Description |
---|---|
DatastorePaginators |
Waiters
Declaration
public DatastoreWaiters Waiters { get; }
Property Value
Type | Description |
---|---|
DatastoreWaiters |
Methods
AddBlockVolumeToDatastore(AddBlockVolumeToDatastoreRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Add the specified Block Volume to the provided Datastore. <br/> Use the {@link WorkRequest} operations to track the addition of the block volume to the Datastore.
Declaration
public Task<AddBlockVolumeToDatastoreResponse> AddBlockVolumeToDatastore(AddBlockVolumeToDatastoreRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
AddBlockVolumeToDatastoreRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<AddBlockVolumeToDatastoreResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use AddBlockVolumeToDatastore API.
ChangeDatastoreCompartment(ChangeDatastoreCompartmentRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Moves an Datastore into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
Declaration
public Task<ChangeDatastoreCompartmentResponse> ChangeDatastoreCompartment(ChangeDatastoreCompartmentRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ChangeDatastoreCompartmentRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<ChangeDatastoreCompartmentResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ChangeDatastoreCompartment API.
CreateDatastore(CreateDatastoreRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Creates a Oracle Cloud VMware Solution Datastore. <br/> Use the {@link WorkRequest} operations to track the creation of the Datastore.
Declaration
public Task<CreateDatastoreResponse> CreateDatastore(CreateDatastoreRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
CreateDatastoreRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<CreateDatastoreResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use CreateDatastore API.
DeleteDatastore(DeleteDatastoreRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Deletes the specified Datastore. <br/> Use the {@link WorkRequest} operations to track the deletion of the Datastore.
Declaration
public Task<DeleteDatastoreResponse> DeleteDatastore(DeleteDatastoreRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
DeleteDatastoreRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<DeleteDatastoreResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use DeleteDatastore API.
GetDatastore(GetDatastoreRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Get the specified Datastore's information.
Declaration
public Task<GetDatastoreResponse> GetDatastore(GetDatastoreRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
GetDatastoreRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<GetDatastoreResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use GetDatastore API.
ListDatastores(ListDatastoresRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
List the Datastores in the specified compartment. The list can be filtered by compartment, datastore id, display name and lifecycle state.
Declaration
public Task<ListDatastoresResponse> ListDatastores(ListDatastoresRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ListDatastoresRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<ListDatastoresResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ListDatastores API.
UpdateDatastore(UpdateDatastoreRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Updates the specified Datastore.
<br/>
Important: Updating a Datastore affects only certain attributes in the Datastore
object and does not affect the VMware environment currently running.
Declaration
public Task<UpdateDatastoreResponse> UpdateDatastore(UpdateDatastoreRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
UpdateDatastoreRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<UpdateDatastoreResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use UpdateDatastore API.