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 Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is ModifyGlobalSSHType . | Yes |
PublicKey | string | The user’s public key can be obtained from Console | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
ProjectId | string | Project ID, such as org-xxxx. Please refer to the GetProjectList interface. | Yes |
InstanceId | string | Instance ID, Unique Resource Identifier | Yes |
InstanceType | string | Value 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 |
ChargeType | string | Payment method, such as Monthly, Yearly, Hourly | No |
Quantity | string | Purchase time, when ChargeType is Month, Quantity as 0 means purchase until the end of the month | No |
CouponId | string | Deductible voucher, usually not used | No |
Response Field
Field Name | Type | Description Information | Required |
---|---|---|---|
RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
Action | string | Operation command name. | Yes |
Message | string | Returns 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
}