Creates a Data Guard association.

POST {{baseUrl}}/databases/:databaseId/dataGuardAssociations

Creates a new Data Guard association. A Data Guard association represents the replication relationship between the specified database and a peer 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

{"databaseAdminPassword"=>"<string>", "protectionMode"=>"MAXIMUM_PERFORMANCE", "transportType"=>"ASYNC", "creationType"=>"<string>", "databaseSoftwareImageId"=>"<string>", "isActiveDataGuardEnabled"=>"<boolean>", "peerDbUniqueName"=>"<string>", "peerSidPrefix"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
opc-retry-tokenstringA 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-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;databaseId&quot;:&quot;\u003cstring\u003e&quot;,&quot;role&quot;:&quot;PRIMARY&quot;,&quot;peerDbSystemId&quot;:&quot;\u003cstring\u003e&quot;,&quot;peerRole&quot;:&quot;STANDBY&quot;,&quot;protectionMode&quot;:&quot;MAXIMUM_AVAILABILITY&quot;,&quot;lifecycleState&quot;:&quot;FAILED&quot;,&quot;applyLag&quot;:&quot;\u003cstring\u003e&quot;,&quot;applyRate&quot;:&quot;\u003cstring\u003e&quot;,&quot;isActiveDataGuardEnabled&quot;:&quot;\u003cboolean\u003e&quot;,&quot;lifecycleDetails&quot;:&quot;\u003cstring\u003e&quot;,&quot;peerDataGuardAssociationId&quot;:&quot;\u003cstring\u003e&quot;,&quot;peerDatabaseId&quot;:&quot;\u003cstring\u003e&quot;,&quot;peerDbHomeId&quot;:&quot;\u003cstring\u003e&quot;,&quot;timeCreated&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;transportType&quot;:&quot;FASTSYNC&quot;}