Docs
api
Global Dynamic Acceleration(PathX)
ModifyGlobalSSHType

Change GlobalSSH Instance Type - ModifyGlobalSSHType

Overview

Change the GlobalSSH instance type, only supports upgrading from a lower version to a higher version, does not support downgrading from a higher version to a lower version.

ℹ️ The free version can be upgraded to the basic or enterprise version, the paid version cannot be downgraded to the free version and the enterprise version cannot be downgraded to the basic version (you need to first delete the instance and then rebuild the free version).

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ModifyGlobalSSHType.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
InstanceIdstringInstance ID, Unique Resource IdentifierYes
InstanceTypestringValue range [“Enterprise”, “Basic”], corresponding to Enterprise Edition and Basic Edition, indicating the type of instance after upgrade. For example, upgrading from the Free version to the Basic or Enterprise version, it is not possible to downgrade from a paid version to a free version, or downgrade from the Enterprise version to the Basic version.Yes
ChargeTypestringPayment method, such as Monthly, Yearly, HourlyNo
QuantitystringPurchase time, when ChargeType is Month, Quantity as 0 means purchase until the end of the monthNo
CouponIdstringDeductible voucher, usually not usedNo

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

Example

Request Example

https://api.dezai.com/?Action=ModifyGlobalSSHType
&ProjectId=org-xxx
&InstanceId=uga-xxxx
&InstanceType=Basic
&ChargeType=Year
&Quantity=jOnIjCyx
&CouponId=VSOiJRdD

Response Example

{
  "Action": "ModifyGlobalSSHTypeResponse",
  "Message": "SpHGGzwG",
  "RetCode": 0
}