Get UDB Price - DescribeUDBInstancePrice
Overview
Get UDB Instance Price Information
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is DescribeUDBInstancePrice . | 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 | Yes |
MemoryLimit | int | Memory Limit (MB), unit is MB. Currently supports: 2000-96000 | Yes |
DiskSpace | int | Disk Space (GB), temporarily supports 20 (GB) - 3000 (GB), input without unit | Yes |
DBTypeId | string | DB version string of UDB instance | Yes |
Count | int | Purchase DB instance quantity, the maximum number is 10, the default is 1 | No |
ChargeType | string | Year, Pay Yearly; Month, Pay Monthly; Dynamic, Pay as You Go (Permission Required); Trial, Trial Version (Permission Required); Default is Monthly Payment. | No |
Quantity | int | How many “Billing Time Units” to purchase for the DB, the default value is 1. For example: if you buy for 2 months, the Quantity is 2. If the billing unit is “Monthly” and the Quantity is 0, it means “Purchase until the end of the month”. | No |
SSDType | string | SSD type, optional values are “SATA” and “NVMe”. The default is “SATA”. | No |
InstanceMode | string | The deployment type of the instance. Optional values are: Normal: Normal single-point instance, Slave: Slave instance, HA: High availability deployment instance, the default is Normal. | No |
CPU | int | Number of CPUs, a mandatory parameter if the db type is sqlserver. | No |
InstanceType | string | UDB Database Models: “SATA_SSD”: “SSD Model” , “PCIE_SSD”: “High-Performance SSD Model” , “Normal_Volume”: “Standard Large Capacity Model”, “SATA_SSD_Volume”: “Large Capacity SSD Model” , “PCIE_SSD_Volume”: “High-Performance Large Capacity SSD Model”, “NVMe_SSD”: “Fast Model” """. | No |
SpecificationType | int | The type of instance computing specification, 0 or not passed means purchasing using memory method, 1 means purchasing using memory-CPU optional configuration ratio method, need to fill in MachineType. | No |
MachineType | string | Specification Type ID, valid when SpecificationType is 1 | 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 |
DataSet | array[UDBInstancePriceSet] | Price Refer to UDBInstancePriceSet | No |
Data Model
UDBInstancePriceSet
Field Name | Type | Description Information | Required |
---|---|---|---|
ChargeType | string | Yearly, Monthly, Dynamic, Trial | No |
Price | int | Price, in cents | No |
Example
Request Example
https://api.dezai.com/?Action=DescribeUDBInstancePrice
&Region=cn-bj2
&Zone=cn-bj2-04
&Count=1
&ChargeType=Month
&Quantity=12
&MemoryLimit=600
&DiskSpace=20
&DBTypeId=mysql-5.5
&InstanceType=dsztMviC
&CPU=3
&InstanceType=QOajbSxZ
&SpecificationType=uaqGNDue
&MachineType=ENbIvUer
Response Example
{
"Action": "DescribeUDBInstancePriceResponse",
"DataSet": [
{
"ChargeType": "Month",
"Price": 1360
}
],
"RetCode": 0
}