The do-detach command is used for detaching the Block Storage volume from an instance.
JSON Input Data Format

    {
        "id": string,
        "instanceid": string,
        "name": string,
        "type": string,
        "cloudid": string
    }

id * | Specifies the ID of the Block Storage.
instanceid * | Specifies the ID of the instance from which the Block Storage will be disconnected.
name * | Specifies the name of the Block Storage.
type * | Specifies the Block Storage type. In API operations use "cn" to represent "Block Storage Disk Drive" and "vm" to represent "X Virtual Machine Disk Drive".
cloudid * | Specifies the cloud ID where both the Block Storage and the instance are located.

* 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 process was successfully completed"
    }

Failed Response

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