docs
api
Object-based Storage(US3)
GetUFileQuotaPrice

Query Quota Payment Price - GetUFileQuotaPrice

Overview

Query the price to be paid according to the purchase quota of US3.

💡 Note: If StorageVolume > 0, it must be ensured that StorageVolume is a multiple of 100.

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetUFileQuotaPrice.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
StorageVolumeintStorage capacity, unit: GBDay, range: [0, 30 000 000], step: 100GBDayNo
DownloadTrafficintDownload traffic, unit: GB, range: [0, 60 000], step: 1GBNo
RequestCountintRequest times, unit: 10,000 times, range: [0, 1,000,000], step: 10,000 timesNo

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
PricefloatPrice pending payment, unit: centsNo

Example

Request Example

https://api.surfercloud.com/uhost/?Action=GetUFileQuotaPrice
&Region=cn-bj2
&StorageVolume=200
&DownloadTraffic=5
&RequestCount=2

Response Example

{
  "Action": "GetUFileQuotaPriceResponse",
  "Price": 346,
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved