Reconfigure a Network

Use this API call to reconfigure the environments in a network.

Requires the sdn-networks-manage permission.

Arguments
  • environments
    array of strings

    All of the environment id's that will be a part of the reconfigured network.

Returns

Returns a Task Descriptor object, otherwise returns an Error.

POST /v1/sdn/networks/{ID}

Example Request
$ curl https://api.cycle.io/v1/sdn/networks/5a98710df231a500017f9aa4 \
-H
"Authorization: Bearer API_KEY"
\
-H
"X-HUB-ID: HUB_ID"
\
-d {"environments":["5a98710df231a500017f9aa4","6b67710df231a500017f9aa4","9n87710df231a500017f9aa4","3m45710df231a500017f9aa4"]}
-X POST
Example Response
{
"data": {
"action": "reconfigure",
"job_id": "5d01b9b3db2ab00001508cd8"
}
}