Response Structure

Last updated: 2018-06-25 14:51:42

Unless otherwise specified, the returned values of each request contain the following fields:

Name Type Description Required
code Int Error code on the result. 0: Successful; other values: Failed. For more information, please seeError Codes page.
message String Request result

For example:
Example requests that use common parameters:

 https://domain/v2/index.php?Action=DescribeInstances&SecretId=xxxxxxx&Region=gz
 &Timestamp=1402992826&Nonce=345122&Signature=mysignature&instanceId=101

Possible returned result is as follows:

{
    "code":0,
    "message": "success",
    "instanceSet":
   [{
        "instanceId":"qcvm1234",
        "cpu":1,
        "mem":2,
        "disk":20,
        "bandwidth":65535,
        "os":"centos_62_64",
        "lanIp":"10.207.248.186",
        "wanIp":null,
        "status":0
   }]
}