Reconfigure Discovery

Creates a task that will reconfigure the environment's discovery service.

Requires the environments-services-manage permission.

Parameters: token hubIdenvironment IDvalue/contents

Parameter
  • action
    string

    Create a task resulting in the following action: reconfigure.

  • contents
    object

    An object holding information about the reconfiguration of the Discovery service.

    Show child fields

Returns

Returns an task resource, otherwise returns an Error.

POST /v1/environments/5b9c2a77b6393d0001eb45fd/services/discovery/tasks

Example Request
$ curl https://api.cycle.io/v1/environments/5b9c2a77b6393d0001eb45fd/services/discovery/tasks \
-H
"Authorization: Bearer API_KEY"
\
-H
"X-Hub-Id: HUB_ID"
\
-H 'Content-Type: application/json' \
-d '{"action":"reconfigure","contents":{"high_availability":false}}' \
-X POST
Example Response
{
"data": {
"action": "reconfigure",
"job_id": "5b9c2a77b6393d0001eb45fd"
}
}