- URL:
- https://<root>/data/<datastoreID>/switchRole
- Methods:
POST
- Required Capability:
- Access allowed only with the Publisher role
- Version Introduced:
- 10.9
Description
The switch
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
Parameter | Details |
---|---|
| The response format. The default format is Values: |
Example usage
The following is a sample POST request for the switch
operation:
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
{"status": "success"}