docs
api
DDoS Attack Protection(UDDos)
GetCleanServiceResizeContract

Obtain downgrade task - GetCleanServiceResizeContract

Overview

Retrieve downgrade task, return error when no downgrade task exists

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetCleanServiceResizeContract.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ResourceIdstringResource ID, cannot be emptyYes

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
ResourceIdstringResource IDYes
BeginTimestringScheduled start adjustment time (Timestamp)Yes
CleanRegionstringRegionYes
MaxCleanCapacityintTraffic cleaning upper limit protection traffic (unit G) 5, 10, 15, 20, 25Yes
ChargeTypestringBilling Method (Month: Monthly, Year: Yearly)Yes
QuantityintProtection duration (0 represents the end of the purchase month, end of the year), only effective when downgradedYes

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
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved