Get GlobalSSH upgrade price - GetGlobalSSHUpdatePrice
Overview
Get GlobalSSH upgrade price
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is GetGlobalSSHUpdatePrice . | 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 |
InstanceType | string | The type of instance after the upgrade. Enumerated values, Enterprise: Enterprise Edition; Basic: Basic Edition. | Yes |
InstanceId | string | Instance 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 |
Quantity | int | Purchase cycle, if ChargeType is Month, Quantity can be left blank and defaults to 0; in other cases, it must be a positive integer. | No |
ChargeType | string | Billing 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 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 |
Price | float | The 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.dezai.com/?Action=GetGlobalSSHUpdatePrice
&ProjectId=org-xxxx
&InstanceType=Basic
&InstanceId=uga-xxxx
Response Example
{
"Action": "GetGlobalSSHUpdatePriceResponse",
"Price": 5.15987,
"RetCode": 0
}