Class DatabaseRecoveryClient
Service client instance for DatabaseRecovery.
Implements
Inherited Members
Namespace: Oci.RecoveryService
Assembly: OCI.DotNetSDK.Recovery.dll
Syntax
public class DatabaseRecoveryClient : RegionalClientBase, IDisposable
Constructors
DatabaseRecoveryClient(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 DatabaseRecoveryClient(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 DatabaseRecoveryPaginators Paginators { get; }
Property Value
Type | Description |
---|---|
DatabaseRecoveryPaginators |
Waiters
Declaration
public DatabaseRecoveryWaiters Waiters { get; }
Property Value
Type | Description |
---|---|
DatabaseRecoveryWaiters |
Methods
CancelProtectedDatabaseDeletion(CancelProtectedDatabaseDeletionRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Cancels the scheduled deletion of a protected database, and returns the protected database to an ACTIVE state. You can cancel the deletion only if the protected database is in the DELETE SCHEDULED state.
Declaration
public Task<CancelProtectedDatabaseDeletionResponse> CancelProtectedDatabaseDeletion(CancelProtectedDatabaseDeletionRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
CancelProtectedDatabaseDeletionRequest | 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<CancelProtectedDatabaseDeletionResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use CancelProtectedDatabaseDeletion API.
ChangeProtectedDatabaseCompartment(ChangeProtectedDatabaseCompartmentRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Moves a protected database resource from the existing compartment to the specified compartment. When provided, If-Match is checked against ETag values of the resource.
Declaration
public Task<ChangeProtectedDatabaseCompartmentResponse> ChangeProtectedDatabaseCompartment(ChangeProtectedDatabaseCompartmentRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ChangeProtectedDatabaseCompartmentRequest | 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<ChangeProtectedDatabaseCompartmentResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ChangeProtectedDatabaseCompartment API.
ChangeProtectedDatabaseSubscription(ChangeProtectedDatabaseSubscriptionRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Associates the protected database with a new cloud service environment, such as Microsoft Azure.
Declaration
public Task<ChangeProtectedDatabaseSubscriptionResponse> ChangeProtectedDatabaseSubscription(ChangeProtectedDatabaseSubscriptionRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ChangeProtectedDatabaseSubscriptionRequest | 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<ChangeProtectedDatabaseSubscriptionResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ChangeProtectedDatabaseSubscription API.
ChangeProtectionPolicyCompartment(ChangeProtectionPolicyCompartmentRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Moves a protection policy resource from the existing compartment to the specified compartment. When provided, If-Match is checked against ETag values of the resource.
Declaration
public Task<ChangeProtectionPolicyCompartmentResponse> ChangeProtectionPolicyCompartment(ChangeProtectionPolicyCompartmentRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ChangeProtectionPolicyCompartmentRequest | 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<ChangeProtectionPolicyCompartmentResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ChangeProtectionPolicyCompartment API.
ChangeRecoveryServiceSubnetCompartment(ChangeRecoveryServiceSubnetCompartmentRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Moves a recovery service subnet resource from the existing compartment to the specified compartment. When provided, If-Match is checked against ETag values of the resource.
Declaration
public Task<ChangeRecoveryServiceSubnetCompartmentResponse> ChangeRecoveryServiceSubnetCompartment(ChangeRecoveryServiceSubnetCompartmentRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ChangeRecoveryServiceSubnetCompartmentRequest | 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<ChangeRecoveryServiceSubnetCompartmentResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ChangeRecoveryServiceSubnetCompartment API.
CreateProtectedDatabase(CreateProtectedDatabaseRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Creates a new Protected Database.
Declaration
public Task<CreateProtectedDatabaseResponse> CreateProtectedDatabase(CreateProtectedDatabaseRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
CreateProtectedDatabaseRequest | 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<CreateProtectedDatabaseResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use CreateProtectedDatabase API.
CreateProtectionPolicy(CreateProtectionPolicyRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Creates a new Protection Policy.
Declaration
public Task<CreateProtectionPolicyResponse> CreateProtectionPolicy(CreateProtectionPolicyRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
CreateProtectionPolicyRequest | 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<CreateProtectionPolicyResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use CreateProtectionPolicy API.
CreateRecoveryServiceSubnet(CreateRecoveryServiceSubnetRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Creates a new Recovery Service Subnet.
Declaration
public Task<CreateRecoveryServiceSubnetResponse> CreateRecoveryServiceSubnet(CreateRecoveryServiceSubnetRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
CreateRecoveryServiceSubnetRequest | 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<CreateRecoveryServiceSubnetResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use CreateRecoveryServiceSubnet API.
DeleteProtectedDatabase(DeleteProtectedDatabaseRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Deletes a protected database based on the specified protected database ID.
Declaration
public Task<DeleteProtectedDatabaseResponse> DeleteProtectedDatabase(DeleteProtectedDatabaseRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
DeleteProtectedDatabaseRequest | 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<DeleteProtectedDatabaseResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use DeleteProtectedDatabase API.
DeleteProtectionPolicy(DeleteProtectionPolicyRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Deletes a specified protection policy. You can delete custom policies only. Deleting a Oracle predefined policies will result in status code 405 Method Not Allowed.
Declaration
public Task<DeleteProtectionPolicyResponse> DeleteProtectionPolicy(DeleteProtectionPolicyRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
DeleteProtectionPolicyRequest | 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<DeleteProtectionPolicyResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use DeleteProtectionPolicy API.
DeleteRecoveryServiceSubnet(DeleteRecoveryServiceSubnetRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Deletes a specified recovery service subnet.
Declaration
public Task<DeleteRecoveryServiceSubnetResponse> DeleteRecoveryServiceSubnet(DeleteRecoveryServiceSubnetRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
DeleteRecoveryServiceSubnetRequest | 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<DeleteRecoveryServiceSubnetResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use DeleteRecoveryServiceSubnet API.
FetchProtectedDatabaseConfiguration(FetchProtectedDatabaseConfigurationRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Downloads the network service configuration file 'tnsnames.ora' for a specified protected database. Applies to user-defined recovery systems only.
Declaration
public Task<FetchProtectedDatabaseConfigurationResponse> FetchProtectedDatabaseConfiguration(FetchProtectedDatabaseConfigurationRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
FetchProtectedDatabaseConfigurationRequest | 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<FetchProtectedDatabaseConfigurationResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use FetchProtectedDatabaseConfiguration API.
GetProtectedDatabase(GetProtectedDatabaseRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Gets information about a specified protected database.
Declaration
public Task<GetProtectedDatabaseResponse> GetProtectedDatabase(GetProtectedDatabaseRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
GetProtectedDatabaseRequest | 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<GetProtectedDatabaseResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use GetProtectedDatabase API.
GetProtectionPolicy(GetProtectionPolicyRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Gets information about a specified protection policy.
Declaration
public Task<GetProtectionPolicyResponse> GetProtectionPolicy(GetProtectionPolicyRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
GetProtectionPolicyRequest | 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<GetProtectionPolicyResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use GetProtectionPolicy API.
GetRecoveryServiceSubnet(GetRecoveryServiceSubnetRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Gets information about a specified recovery service subnet.
Declaration
public Task<GetRecoveryServiceSubnetResponse> GetRecoveryServiceSubnet(GetRecoveryServiceSubnetRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
GetRecoveryServiceSubnetRequest | 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<GetRecoveryServiceSubnetResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use GetRecoveryServiceSubnet API.
GetWorkRequest(GetWorkRequestRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Gets the status of the work request based on the specified ID
Declaration
public Task<GetWorkRequestResponse> GetWorkRequest(GetWorkRequestRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
GetWorkRequestRequest | 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<GetWorkRequestResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use GetWorkRequest API.
ListProtectedDatabases(ListProtectedDatabasesRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Lists the protected databases based on the specified parameters.
Declaration
public Task<ListProtectedDatabasesResponse> ListProtectedDatabases(ListProtectedDatabasesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ListProtectedDatabasesRequest | 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<ListProtectedDatabasesResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ListProtectedDatabases API.
ListProtectionPolicies(ListProtectionPoliciesRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Gets a list of protection policies based on the specified parameters.
Declaration
public Task<ListProtectionPoliciesResponse> ListProtectionPolicies(ListProtectionPoliciesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ListProtectionPoliciesRequest | 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<ListProtectionPoliciesResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ListProtectionPolicies API.
ListRecoveryServiceSubnets(ListRecoveryServiceSubnetsRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Returns a list of Recovery Service Subnets.
Declaration
public Task<ListRecoveryServiceSubnetsResponse> ListRecoveryServiceSubnets(ListRecoveryServiceSubnetsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ListRecoveryServiceSubnetsRequest | 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<ListRecoveryServiceSubnetsResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ListRecoveryServiceSubnets API.
ListWorkRequestErrors(ListWorkRequestErrorsRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Return a (paginated) list of errors for a given work request.
Declaration
public Task<ListWorkRequestErrorsResponse> ListWorkRequestErrors(ListWorkRequestErrorsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ListWorkRequestErrorsRequest | 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<ListWorkRequestErrorsResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ListWorkRequestErrors API.
ListWorkRequestLogs(ListWorkRequestLogsRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Return a (paginated) list of logs for a given work request.
Declaration
public Task<ListWorkRequestLogsResponse> ListWorkRequestLogs(ListWorkRequestLogsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ListWorkRequestLogsRequest | 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<ListWorkRequestLogsResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ListWorkRequestLogs API.
ListWorkRequests(ListWorkRequestsRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Lists the work requests in a compartment.
Declaration
public Task<ListWorkRequestsResponse> ListWorkRequests(ListWorkRequestsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ListWorkRequestsRequest | 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<ListWorkRequestsResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ListWorkRequests API.
ScheduleProtectedDatabaseDeletion(ScheduleProtectedDatabaseDeletionRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Defines a preferred schedule to delete a protected database after you terminate the source database. The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated. The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires.
Declaration
public Task<ScheduleProtectedDatabaseDeletionResponse> ScheduleProtectedDatabaseDeletion(ScheduleProtectedDatabaseDeletionRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ScheduleProtectedDatabaseDeletionRequest | 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<ScheduleProtectedDatabaseDeletionResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ScheduleProtectedDatabaseDeletion API.
UpdateProtectedDatabase(UpdateProtectedDatabaseRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Updates the Protected Database
Declaration
public Task<UpdateProtectedDatabaseResponse> UpdateProtectedDatabase(UpdateProtectedDatabaseRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
UpdateProtectedDatabaseRequest | 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<UpdateProtectedDatabaseResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use UpdateProtectedDatabase API.
UpdateProtectionPolicy(UpdateProtectionPolicyRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Updates the specified protection policy.
Declaration
public Task<UpdateProtectionPolicyResponse> UpdateProtectionPolicy(UpdateProtectionPolicyRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
UpdateProtectionPolicyRequest | 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<UpdateProtectionPolicyResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use UpdateProtectionPolicy API.
UpdateRecoveryServiceSubnet(UpdateRecoveryServiceSubnetRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Updates the specified recovery service subnet.
Declaration
public Task<UpdateRecoveryServiceSubnetResponse> UpdateRecoveryServiceSubnet(UpdateRecoveryServiceSubnetRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
UpdateRecoveryServiceSubnetRequest | 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<UpdateRecoveryServiceSubnetResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use UpdateRecoveryServiceSubnet API.