Create a Autonomous Data Guard association.
POST {{baseUrl}}/autonomousContainerDatabases/:autonomousContainerDatabaseId/autonomousContainerDatabaseDataguardAssociations
Create a new Autonomous Data Guard association. An Autonomous Data Guard association represents the replication relationship between the specified Autonomous Container database and a peer Autonomous Container database. For more information, see Using Oracle Data Guard.
All Oracle Cloud Infrastructure resources, including Data Guard associations, get an Oracle-assigned, unique ID called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID in the response. You can also retrieve a resource's OCID by using a List API operation on that resource type, or by viewing the resource in the Console. For more information, see Resource Identifiers.
Request Body
{"peerAutonomousContainerDatabaseDisplayName"=>"<string>", "protectionMode"=>"MAXIMUM_AVAILABILITY", "fastStartFailOverLagLimitInSeconds"=>"<integer>", "isAutomaticFailoverEnabled"=>"<boolean>", "peerAutonomousContainerDatabaseBackupConfig"=>{"backupDestinationDetails"=>[{"type"=>"OBJECT_STORE", "dbrsPolicyId"=>"<string>", "id"=>"<string>", "internetProxy"=>"<string>", "vpcPassword"=>"<string>", "vpcUser"=>"<string>"}, {"type"=>"RECOVERY_APPLIANCE", "dbrsPolicyId"=>"<string>", "id"=>"<string>", "internetProxy"=>"<string>", "vpcPassword"=>"<string>", "vpcUser"=>"<string>"}], "recoveryWindowInDays"=>"<integer>"}, "peerAutonomousContainerDatabaseCompartmentId"=>"<string>", "peerAutonomousVmClusterId"=>"<string>", "peerCloudAutonomousVmClusterId"=>"<string>", "peerDbUniqueName"=>"<string>", "standbyMaintenanceBufferInDays"=>"<integer>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-retry-token | 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 | |||
may be rejected). | |||
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"id":"\u003cstring\u003e","lifecycleState":"FAILED","autonomousContainerDatabaseId":"\u003cstring\u003e","role":"DISABLED_STANDBY","peerRole":"PRIMARY","applyLag":"\u003cstring\u003e","applyRate":"\u003cstring\u003e","fastStartFailOverLagLimitInSeconds":"\u003cinteger\u003e","isAutomaticFailoverEnabled":"\u003cboolean\u003e","lifecycleDetails":"\u003cstring\u003e","peerAutonomousContainerDatabaseDataguardAssociationId":"\u003cstring\u003e","peerAutonomousContainerDatabaseId":"\u003cstring\u003e","peerLifecycleState":"UPDATING","protectionMode":"MAXIMUM_AVAILABILITY","timeCreated":"\u003cdateTime\u003e","timeLastRoleChanged":"\u003cdateTime\u003e","timeLastSynced":"\u003cdateTime\u003e","transportLag":"\u003cstring\u003e"}