docs
api
Billing Management(UBill)
ModifyAutoRenewFlag

Modify Auto-Renewal Tag for Resources - ModifyAutoRenewFlag

Overview

Modify Auto-Renewal Tag for Resources

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ModifyAutoRenewFlag.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
FlagstringSwitch Identifier (TURN_ON: On; TURN_OFF: Off)Yes
ResourceIdstringResource IDYes

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
SuccessintNumber of Successful OperationsYes
FailintOperation Failed Resource QuantityYes
ResultSetarray[ResultSet]Switch resource auto-renewal result arrayYes

Data Model

ResultSet

Field NameTypeDescription InformationRequired
RetCodeintRenewal Result (0: Success, Failure Returns Error Code)No
MessagestringError Message DescriptionNo
ResourceIdstringResource IDNo

Example

Request Example

https://api.surfercloud.com/?Action=ModifyAutoRenewFlag
&Flag=TURN_ON
&ResourceId=PDSrpaDZ

Response Example

{
  "Action": "ModifyAutoRenewFlagResponse",
  "Fail": 1,
  "ResultSet": [
    {
      "Message": "",
      "ResourceId": "HHBMiHoq1",
      "RetCode": 0
    },
    {
      "Message": "fYUXfpKn",
      "ResourceId": "HHBMiHoq2",
      "RetCode": 5
    }
  ],
  "RetCode": 0,
  "Success": 1
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved