Get the upgrade price for the mounted disk - GetAttachedDiskUpgradePrice


Get the upgrade price for the mounted disk


Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetAttachedDiskUpgradePrice.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ZonestringAvailability Zone. See Availability Zone ListNo
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
DiskSpaceintDisk 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
DiskIdstringDisk ID. See DescribeUHostInstance return value in DiskSet.Yes
UHostIdstringUHost Instance ID. See DescribeUHostInstance.Yes
BackupModestringDisk backup plan. Enumeration values:

> NONE, no backup


> 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.

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
PricefloatUpgrade price difference. Precision is up to 2 decimal places.No


Request Example

Response Example

  "Action": "GetAttachedDiskUpgradePriceResponse",
  "Price": 3.26,
  "RetCode": 0
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved
  • Contact our sales to help your business.
  • Contact our sales to help your business.