Docs
api
Cloud Memory(UMem)
DescribeURedisPrice

Get URedis pricing information - DescribeURedisPrice

Overview

Get URedis pricing information

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeURedisPrice.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
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 ListYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
SizeintVolume size, unit: GB Value range [1-32]Yes
ChargeTypestringBilling mode, Yearly, Monthly, Dynamic; if not specified, all three types of billing will be obtained at once.No
QuantityintWhen the billing mode is set to ‘Dynamic’, the purchase duration defaults to 1.No
RegionFlagbooleanIs it a cross-IDC URedis (default is false)No
ProductTypestringProduct Type: MS_Redis (Standard Master-Slave Version), S_Redis (Slave Library), default is MS_RedisNo
HighPerformancebooleanQuery high-performance Redis, default is false, or not filled, query high-performance is trueNo

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
DataSetarray[URedisPriceSet]Price Parameters see UMemPriceSetNo

Data Model

URedisPriceSet

Field NameTypeDescription InformationRequired
OriginalPriceintOriginal PriceYes
ChargeTypestringYearly, Monthly, Dynamic, TrialNo
ListPriceintProduct List PriceNo
PriceintTotal PriceNo

Example

Request Example

https://api.dezai.com/?Action=DescribeURedisPrice
&Region=cn-bj2
&Zone=cn-bj2-04
&Size=8
&Type=pYeMRrBb
&HighPerformance=true

Response Example

{
  "Action": "DescribeURedisPriceResponse",
  "DataSet": [
    {
      "ChargeType": "Year",
      "ListPrice": 640000,
      "OriginalPrice": 640000,
      "Price": 640000
    },
    {
      "ChargeType": "Month",
      "ListPrice": 64000,
      "OriginalPrice": 64000,
      "Price": 64000
    },
    {
      "ChargeType": "Dynamic",
      "ListPrice": 136,
      "OriginalPrice": 136,
      "Price": 136
    }
  ],
  "RetCode": 0
}