The instance-bash command is used to execute a bash/ash script on an Instances-cn or Instances-vm machine.
JSON Input Data Format

    {
        "id": string,
        "script": string
    }

id * | Specifies the ID of the instance where the bash script will be executed.
script * | Specifies the contents of the bash script.

* 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": "...the output of the command..."
    }

Failed Response

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