Docs
api
Global Dynamic Acceleration(PathX)
GetGlobalSSHPrice

Get GlobalSSH Price - GetGlobalSSHPrice

Overview

Get GlobalSSH Price

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetGlobalSSHPrice.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
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
QuantityintPurchase cycle, if ChargeType is Month, Quantity defaults to 0; in other cases, it must be an integer greater than 0.No
ChargeTypestringBilling Type: Dynamic, Monthly, YearlyNo
InstanceTypestringVersion type. Enumerated values, Enterprise: Enterprise Edition; Basic: Basic Edition. It can be left blank, with Basic as the default.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
PricefloatPrice, the return unit is yuanNo

Example

Request Example

https://api.dezai.com/?Action=GetGlobalSSHPrice
&ProjectId=org-xxxx
&InstanceType=Basic
&Quantity=1
&ChargeType=Year

Response Example

{
  "Action": "GetGlobalSSHPriceResponse",
  "Price": 90,
  "RetCode": 0
}