Post Promote

Post Promote

The entire URL for the task is returned in the Location header of the response.

  • Note: The promote action requires that no healthy primary currently exists in the HA cluster.
Refer to taskStatus API's Response Example tab for an example of promote task
Request
URI
POST
https://{api_host}/api/1.0.0/nodes/{node-name}/promote
COPY
Path Parameters
string
node-name
Required

name of the node which is being promoted


Authentication
This operation uses the following authentication methods.
Responses
202

Response Body is empty. Response includes Location header with URL to related task-id. Note: cell-type appliance nodes will give this response, but the spawned task will always fail on these nodes.

Operation doesn't return any data structure

Response Headers

string
Location

Task URL. Example: https://<vcd-appliance-ip>:5480/api/1.0.0/tasks/<task-id>


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' https://{api_host}/api/1.0.0/nodes/{node-name}/promote
                
Availability
Added in 34
Promote Operations
POST
Post Promote