The do-attach command is used for attaching the Block Storage volume to 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 * | Indicates the ID of the instance where the Block Storage will be attached. The Block Storage will be attached to the root of the instance. For example, if the name of the Block Storage is "mystore", it will be mounted as "/mystore".
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 ..."
    }