- URL:https://<items-url>/enterpriseDatabases/<datastore item>/machines/machine/makePrimary(POST only)
- Required Capability:Default administrator role | All authorized privileges
- Version Introduced:10.3
Description
This operation promotes a standby machine to the primary Data Store machine while also downgrading the existing primary machine to act as a standby machine.
Request parameters
Parameter | Details |
---|---|
f | The response format. The default response format is html. Values: html | json | pjson |
Example usage
Below is a sample POST request for makePrimary:
POST /webadaptor/admin/data/items/enterpriseDatabases/myDatastore/machines/DATASTOREMACHINE.DOMAIN.COM/makePrimary HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
f=json
JSON Response example
{"status": "success"}