Show / Hide Table of Contents

Class CreateProtectedDatabaseRequest

Inheritance
object
CreateProtectedDatabaseRequest
Implements
IOciRequest
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.RecoveryService.Requests
Assembly: OCI.DotNetSDK.Recovery.dll
Syntax
public class CreateProtectedDatabaseRequest : IOciRequest
Examples

Click here to see an example of how to use CreateProtectedDatabase request.

Properties

CreateProtectedDatabaseDetails

Declaration
[Required(ErrorMessage = "CreateProtectedDatabaseDetails is required.")]
[HttpConverter(TargetEnum.Body)]
public CreateProtectedDatabaseDetails CreateProtectedDatabaseDetails { get; set; }
Property Value
Type Description
CreateProtectedDatabaseDetails

Describes the parameters required to create a protected database.

Remarks

Required

OpcDryRun

Declaration
[HttpConverter(TargetEnum.Header, "opc-dry-run")]
public bool? OpcDryRun { get; set; }
Property Value
Type Description
bool?

Indicates if the request is to test the preparedness for creating a protected database, without actually creating a protected database.
If you set the opcDryRun option as true, then Recovery Service only performs a test run to check for any missing prerequisites or configurations required to create a protected database, and then returns error messages to warn you about any missing requirements.
If an error occurs, you can review, correct, and repeat the dry run until the createProtectedDatabase request does not return any errors.
These are the common issues that you can identify by performing a dry run of the createProtectedDatabase request:

  • The Recovery Service subnet has insufficient free IP addresses to support the required number of private endpoints. See, troubleshooting information
  • Recovery Service does not have permissions to manage the network resources in a chosen compartment
  • Recovery Service is out of capacity. See, Service Limits for more information
  • Recovery Service resources exceed quota limits
  • A protected database, having the same database ID, already exists
  • The specified protection policy does not exist, or it is not in an Active state
  • The specified Recovery Service subnet does not exist, or it is not in an Active state
    See, Prerequisites for Using Recovery Service for more information.

OpcRequestId

Declaration
[HttpConverter(TargetEnum.Header, "opc-request-id")]
public string OpcRequestId { get; set; }
Property Value
Type Description
string

Unique identifier for the request.

OpcRetryToken

Declaration
[HttpConverter(TargetEnum.Header, "opc-retry-token")]
public string OpcRetryToken { get; set; }
Property Value
Type Description
string

A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.

Implements

IOciRequest
In this article
Back to top