Update Data Guard association of a database.
PUT {{baseUrl}}/databases/:databaseId/dataGuardAssociations/:dataGuardAssociationId
Updates the Data Guard association the specified database. This API can be used to change the protectionMode
and transportType
of the Data Guard association.
Request Body
{"databaseAdminPassword"=>"<string>", "isActiveDataGuardEnabled"=>"<boolean>", "protectionMode"=>"MAXIMUM_PERFORMANCE", "transportType"=>"SYNC"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
if-match | string | For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match | |
parameter to the value of the etag from a previous GET or POST response for that resource. The resource | |||
will be updated or deleted only if the etag you provide matches the resource's current etag value. | |||
opc-request-id | string | Unique identifier for the request. | |
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"}