The do-mirror command is used for mirroring and optionally synchronizing Block Storage to another Block Storage located on a different Sky Node. The mirror cycle occurs every minute.

JSON Input Data Format
{
    "id": string,
    "deviceid": string,
    "name": string,
    "type": string,
    "synchronize": boolean,
    "cloudid": string
}
id * Specifies the ID of the source Block Storage.
deviceid * Specifies the identifier of the target Block Storage where data will be mirrored. This field is also utilized to deactivate an ongoing mirror. To deactivate, input "Disable Mirror" instead of the target ID.
name * Specifies the name of the source Block Storage.
type * Specifies the source Block Storage type. Specify "cn" for Block Storage Disk Drive. Mirroring is exclusively applicable to Block Storage Disk Drives.
synchronize * Specifies wheather the synchronizing feature is enabled.
cloudid * Specifies the cloud ID where the source Block Storage is 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 ..."
}