The set-ip command sets the static IP address or enables DHCP for the instance.
JSON Input Data Format

    {
        "id": string,
        "ip": string
    }

id * | Specifies the ID of the instance.
ip * | Specifies the static IP address for the instance. To enable DHCP, pass an empty string.

* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.
Successful Response

    {
        "result": "OK",
        "payload": "IP was set, please restart instance"
    }

Failed Response

    {
        "result": "ERR",
        "message": "Error message ..."
    }