switchDiskPyg2Sub
Description
switch pay as you go to subscription.
Request Method
POST
Request Path
/customer/disk/switch/pyg2sub/create
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
period | BODY | integer | Yes | No sample value for this parameter. | period |
cost | BODY | integer | Yes | No sample value for this parameter. | cost |
instanceId | BODY | string | Yes | No sample value for this parameter. | disk id |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
billingMethod | BODY | string | Yes | No sample value for this parameter. | billing method |
pricingCycle | BODY | string | Yes | No sample value for this parameter. | pricing cycle |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
result | object | `{"orderId":2.02207271417009997E+18}` | No description for this parameter. |
resultCode | string | 0 | No description for this parameter. |
resultMsg | string | success | No description for this parameter. |
Example
Successful Response example
{
"result":
{
"orderId":2.02207271417009997E+18
},
"resultCode":"0",
"resultMsg":"success"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}