Update Cluster Role

patch

/services/{version}/installation/cluster/role/{member}

Required Role: Security

Update a member's role in the OGG cluster

Request

Supported Media Types
Path Parameters
  • Minimum Length: 1
    Maximum Length: 4095
    Pattern: ^(((([a-zA-Z0-9][-a-zA-Z0-9]{0,61})?[a-zA-Z0-9])[.])*([a-zA-Z][-a-zA-Z0-9]{0,61}[a-zA-Z0-9]|[a-zA-Z])[.]?)$

    Name of the OGG Cluster member.

  • Oracle GoldenGate Service API version.

    Allowed Values: [ "v2" ]
Body ()
Root Schema : Oracle GoldenGate Cluster Membership - Cluster Member Role
Type: object
Title: Oracle GoldenGate Cluster Membership - Cluster Member Role
Details of the role that a cluster member plays
Show Source
  • Allowed Values: [ "ogg:clusterRole" ]
  • Allowed Values: [ "initialized", "standalone", "voter", "backup", "regionPrimary", "primary" ]
    Member role
  • Minimum Length: 1
    Maximum Length: 4095
    Pattern: ^(((([a-zA-Z0-9][-a-zA-Z0-9]{0,61})?[a-zA-Z0-9])[.])*([a-zA-Z][-a-zA-Z0-9]{0,61}[a-zA-Z0-9]|[a-zA-Z])[.]?)$
    The name of the cluster member
  • Allowed Values: [ "initialized", "standalone", "voter", "backup", "regionPrimary", "primary" ]
    Member role
Example Request (application/json)
{
    "target":"backup"
}
Back to Top

Response

Supported Media Types

201 Response

Installation added to cluster
Body ()
Root Schema : RESTful API Standard Response
Type: object
Title: RESTful API Standard Response
Standard Response for all Oracle GoldenGate RESTful API calls
Show Source
Nested Schema : messages
Type: array
Minimum Number of Items: 0
Maximum Number of Items: 65535
Oracle GoldenGate messages issued during the request
Show Source
Nested Schema : response
Type: object
Oracle GoldenGate document from the request
Nested Schema : items
Type: object
Show Source
  • Allowed Values: [ "ogg:message" ]
  • Minimum Length: 9
    Maximum Length: 9
    Pattern: ^OGG[-][0-9]{5}$
    The Oracle GoldenGate message code
  • Minimum Length: 20
    Maximum Length: 32
    Pattern: ^[0-9]{4}[-](0[1-9]|1[0-2])[-](0[1-9]|[12][0-9]|3[01])[tT ]([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)([.][0-9]{1,6})?([zZ]|[+-][0-9][0-9]:[0-5][0-9])$
    The date and time that the message was issued
  • Allowed Values: [ "INFO", "WARNING", "ERROR" ]
    The severity of the message
  • Minimum Length: 1
    Maximum Length: 4095
    A human-readable description that provides information and detail specific to this occurence of the information, warning or error.
  • Minimum Length: 2
    Maximum Length: 4095
    Pattern: ^[a-zA-Z][a-zA-Z0-9+-.]*:[^ \t]*$
    An absolute URI [RFC3986] to a page that describes the info, warning or error type.
Example Response (application/json)
{
    "$schema":"api:standardResponse",
    "links":[
        {
            "rel":"canonical",
            "href":"https://127.0.0.1:9011/services/v2/installation/cluster/role/oggdev-2",
            "mediaType":"application/json"
        },
        {
            "rel":"self",
            "href":"https://127.0.0.1:9011/services/v2/installation/cluster/role/oggdev-2",
            "mediaType":"application/json"
        }
    ],
    "messages":[
        {
            "$schema":"ogg:message",
            "title":"The role for cluster member 'oggdev-2' is transitioning to 'backup'.",
            "code":"OGG-12339",
            "severity":"INFO",
            "issued":"2024-01-08T15:38:35Z",
            "type":"https://www.rfc-editor.org/rfc/rfc9110.html#name-status-codes"
        }
    ]
}
Back to Top