docs
api
Global Dynamic Acceleration(PathX)
GetGlobalSSHUpdatePrice

Get GlobalSSH upgrade price - GetGlobalSSHUpdatePrice

Overview

Get GlobalSSH upgrade price

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetGlobalSSHUpdatePrice.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
ProjectIdstringProject ID, such as org-xxxx. Please refer to the GetProjectList interface.Yes
InstanceTypestringThe type of instance after the upgrade. Enumerated values, Enterprise: Enterprise Edition; Basic: Basic Edition.Yes
InstanceIdstringInstance ID, unique resource identifier. It is not required to fill in when upgrading from the free version to the paid version, but it is required in other cases.No
QuantityintPurchase cycle, if ChargeType is Month, Quantity can be left blank and defaults to 0; in other cases, it must be a positive integer.No
ChargeTypestringBilling Type: Dynamic, Month, Year. It must be passed when upgrading from the free version to the paid version, not required in other cases.No

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
PricefloatThe price, returned in units of yuan. A positive number indicates a paid upgrade, a negative number indicates a downgrade refund.No

Example

Request Example

https://api.surfercloud.com/?Action=GetGlobalSSHUpdatePrice
&ProjectId=org-xxxx
&InstanceType=Basic
&InstanceId=uga-xxxx

Response Example

{
  "Action": "GetGlobalSSHUpdatePriceResponse",
  "Price": 5.15987,
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved