POST Deployment Approve
Approves a request to join a server to an Operations for Logs cluster.
{
"workerAddress": "10.0.0.124",
"workerPort": 16520,
"workerToken": "fcfeab92-3346-460f-bd9e-20799437a475",
"approved": true
}
The request to join the cluster was successfully approved or denied.
{
"masterHostname": "10.0.0.123",
"clusterNode": {
"token": "2bd24a67-ac4c-4ca5-a54a-7a8e215c4e8d",
"hostname": "10.0.0.124",
"status": "Connected",
"fullVersion": "4.0.0-1234567"
}
}
An error occurred when processing request
{
"errorMessage": "Cannot approve worker membership",
"errorCode": "DEPLOYMENT_ERROR",
"errorDetails": {
"reason": "...",
"errorCode": "..."
}
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
Internal error while processing the client request
{
"errorMessage": "The operation failed due to an internal error."
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v2/deployment/approve