Get the upgrade price for the mounted disk - GetAttachedDiskUpgradePrice
Overview
Get the upgrade price for the mounted disk
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is GetAttachedDiskUpgradePrice . | 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 |
---|---|---|---|
Region | string | Region. See List of Regions and Availability Zones | Yes |
Zone | string | Availability Zone. See Availability Zone List | No |
ProjectId | string | Project ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface. | No |
DiskSpace | int | Disk size, unit GB, step size is 10. The value range needs to be larger than the current disk size, for the maximum value please refer to Disk Type. | Yes |
DiskId | string | Disk ID. See DescribeUHostInstance return value in DiskSet. | Yes |
UHostId | string | UHost Instance ID. See DescribeUHostInstance. | Yes |
BackupMode | string | Disk backup plan. Enumeration values: > NONE, no backup > DATAARK, UDataArk > SNAPSHOT (SNAPSHOT mode is currently only supported in Shanghai C), snapshot The backup modes currently supported by the disk refer to disk type. The default value is the current backup mode. | 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 | Upgrade price difference. Precision is up to 2 decimal places. | No |
Example
Request Example
https://api.dezai.com/?Action=GetAttachedDiskUpgradePrice
&Region=mxTjdPUG
&Zone=GxCoXGWk
&ProjectId=abcdNzFG
&DiskSpace=8
&DiskId=zPpZIRGk
&UHostId=wRVYAONq
&BackupMode=NONE
Response Example
{
"Action": "GetAttachedDiskUpgradePriceResponse",
"Price": 3.26,
"RetCode": 0
}