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
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","databaseId":"\u003cstring\u003e","role":"PRIMARY","peerDbSystemId":"\u003cstring\u003e","peerRole":"STANDBY","protectionMode":"MAXIMUM_AVAILABILITY","lifecycleState":"FAILED","applyLag":"\u003cstring\u003e","applyRate":"\u003cstring\u003e","isActiveDataGuardEnabled":"\u003cboolean\u003e","lifecycleDetails":"\u003cstring\u003e","peerDataGuardAssociationId":"\u003cstring\u003e","peerDatabaseId":"\u003cstring\u003e","peerDbHomeId":"\u003cstring\u003e","timeCreated":"\u003cdateTime\u003e","transportType":"FASTSYNC"}