Switch Role

URL:
https://<root>/data/<datastoreID>/switchRole
Methods:
POST
Required Capability:
Access allowed only with the Publisher role
Version Introduced:
10.9

Description

The switchRole operation promotes a standby relational data store to the primary data store and downgrades the existing primary data store to a standby data store. This operation may take some time to complete.

Request parameters

ParameterDetails

f

The response format. The default format is html.

Values: html | json | pjson

Example usage

The following is a sample POST request for the switchRole operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /context/admin/data/f305883d-6734-432c-b4c4-b76f795e25f7/switchRole
Host: organization.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

f=pjson&token=P4Vn2uao41gcVGxM8p3lwYgQnt9t20hRo8s4TDsH2XRtiF3xh-lNTfn1dIOaw3ke2P8nCQwjxeLV4kNiftyKCESSEPXiIbQGt9Ph7Bx_LQIGkIoXYZBNOWnOi7Fw8Z5GRg2_xYSWoLg8zzZcO3utdVsIG1Ew7Ab8f-Ti28TfUvtv7cWM9BzRaw00EtqbdJj0zu23kTYNsOO0KaXkJ5IR8wF1qGxD6-KmVyOdfC9ms51khCiq473WAo4Ho8zwkdwV

JSON Response example

Use dark colors for code blocksCopy
1
{"status": "success"}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.