Obtain downgrade task - GetCleanServiceResizeContract
Overview
Retrieve downgrade task, return error when no downgrade task exists
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is GetCleanServiceResizeContract . | Yes |
PublicKey | string | The user's public key can be obtained from Console (opens in a new tab) | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
ResourceId | string | Resource ID, cannot be empty | Yes |
Response Field
Field Name | Type | Description Information | Required |
---|---|---|---|
RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
Action | string | Operation command name. | Yes |
Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
ResourceId | string | Resource ID | Yes |
BeginTime | string | Scheduled start adjustment time (Timestamp) | Yes |
CleanRegion | string | Region | Yes |
MaxCleanCapacity | int | Traffic cleaning upper limit protection traffic (unit G) 5, 10, 15, 20, 25 | Yes |
ChargeType | string | Billing Method (Month: Monthly, Year: Yearly) | Yes |
Quantity | int | Protection duration (0 represents the end of the purchase month, end of the year), only effective when downgraded | Yes |
Example
Request Example
https://api.surfercloud.com/?Action=GetCleanServiceResizeContract
&ResourceId=wMJqpbPN
Response Example
{
"Action": "GetCleanServiceResizeContractResponse",
"BeginTime": "hogQIqTB",
"ChargeType": "Month",
"CleanRegion": "hCXSbJlP",
"MaxCleanCapacity": 1,
"Quantity": 3,
"ResourceId": "GebkAmBh",
"RetCode": 0
}