Queries the fees incurred when you create, upgrade, or renew an ApsaraDB for MongoDB instance.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
dds:DescribePrice | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
OrderType | string | Yes | The order type. Valid values:
| BUY |
DBInstances | string | Yes | A JSON string that contains the details of the instance. For more information about the parameter and sample JSON formats, see DescribePrice . | [ { "DBInstanceId":"dds-bp1b6e54e7cc****", "RegionId":"cn-hangzhou", "ZoneId":"cn-hangzhou-h", "Engine":"MongoDB", "EngineVersion":" 5.0", "DBInstanceClass":"mdb.shard.2x.xlarge.d", "DBInstanceStorage":30, "ChargeType":"PrePaid", "Period":1, "StorageType":"cloud_essd1" } ] |
CommodityCode | string | No | The code of the instance. Valid values:
| badds |
ProductCode | string | No | The code of the service. Default value: dds. | dds |
BusinessInfo | string | No | The business information. This is an additional parameter. | {"AccountPassword":"Pw123456","DBInstanceDescription":"test"} |
CouponNo | string | No | Specifies whether to use coupons. Default value: null. Valid values:
| youhuiquan_promotion_option_id_for_blank |
OrderParamOut | string | No | Specifies whether to return the OrderParams parameter. Valid values:
| true |
ResourceGroupId | string | No | The ID of the resource group. For more information, see View basic information of a resource group. | rg-acfmyiu4ekp**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"Order": {
"Coupons": {
"Coupon": [
{
"Description": "ceshi",
"IsSelected": "true",
"CouponNo": "youhuiquan_promotion_option_id_for_blank",
"Name": "youhuiquan111",
"PromotionRuleIdList": {
"PromotionRuleId": [
187720410647
]
},
"PromotionOptionCode": "youhui_quan",
"OptionCode": "youhui_quan",
"ActivityCategory": "payondemand"
}
]
},
"OriginalAmount": "322.4",
"DiscountAmount": "322.4",
"RuleIds": {
"RuleId": [
"{ \"RuleId\": [ 2075**** ] }"
]
},
"TradeAmount": "0",
"Currency": "USD",
"ShowDiscountInfo": true,
"OptionalPromotions": "\\[{\\”activityCategory\\”:\\”discount\\”,\\”activityExtInfo\\”:{\\”noUseYouhuiquan\\”:\\”true\\”,\\”activityId\\”:\\”191156098xxxx\\”,\\”activityExtraAttr\\”:\\”{\\\\\\\\”forbiddenCpsProfit\\\\\\\\”:\\\\\\\\”true\\\\\\\\”,\\\\\\\\”forbiddenCouponsRestricted\\\\\\\\”:\\\\\\\\”true\\\\\\\\”,\\\\\\\\”forbiddenAmbassadorProfit\\\\\\\\”:\\\\\\\\”true\\\\\\\\”}\\”,\\”isActivityIdFromWanHuaTong\\”:\\”true\\”,\\”isContractActivity\\”:\\”false\\”},\\”canPromFee\\”:906130,\\”optionCode\\”:\\”wanhua_activity\\”,\\”promotionName\\”:\\”FY24--MongoDB replica set - first-time purchase - \\* discount for a one-year period - first-time purchase benefits\\”,\\”promotionOptionNo\\”:\\”19115609882xxxx\\”,\\”promotionRuleIdList\\”:\\[2091xxxx],\\”selected\\”:true,\\”targetArticleItemCodes\\”:\\[]},{\\”activityCategory\\”:\\”discount\\”,\\”activityExtInfo\\”:{\\”activityId\\”:\\”1018040010xxxxx\\”,\\”wanHuaOrderExpireSec\\”:\\”604800\\”,\\”isActivityIdFromWanHuaTong\\”:\\”true\\”,\\”isContractActivity\\”:\\”false\\”},\\”canPromFee\\”:339799,\\”optionCode\\”:\\”wanhua_activity\\”,\\”promotionName\\”:\\”FY24--MongoDB discount for a one-year period \\”,\\”promotionOptionNo\\”:\\”10180400107xxxxx\\”,\\”promotionRuleIdList\\”:\\[xxxxx],\\”selected\\”:false,\\”targetArticleItemCodes\\”:\\[]}]”\n",
"PromDetailList": "\\[{\\”finalPromFee\\”:90xxx,\\”optionCode\\”:\\”wanhua_activity\\”,\\”promType\\”:\\”discount\\”,\\”promotionId\\”:2091xxxx,\\”promotionName\\”:\\”\\* discount is provided for new users who purchase ApsaraDB for MongoDB replica set instances for one year. A new user can purchase an ApsaraDB for MongoDB replica set instance only by using the discount.\\”}]”\n",
"DepreciateInfo": {
"ListPrice": 0,
"OriginalStandAmount": 0,
"CheapStandAmount": 0,
"CheapRate": 0,
"Differential": 0,
"DifferentialName": "XXXXX",
"MonthPrice": 0,
"IsContractActivity": false,
"IsShow": "true",
"ContractActivity": {
"FinalPromFee": 3621.6,
"FinalFee": 20522.4,
"ProdFee": 24144,
"ActivityId": 0,
"OptionCode": "wanhua_activity",
"ActivityName": "contract promotion_order_xxx discount\n",
"OptionIds": {
"OptionId": [
0
]
}
}
},
"StandDiscountPrice": 0,
"StandPrice": 0,
"ContractActivity": false,
"Code": "\"\"",
"Message": "\"\"",
"IsContractActivity": false
},
"RequestId": "27227A3D-6B86-56F3-9E03-9E60F001CE12",
"SubOrders": {
"SubOrder": [
{
"OriginalAmount": "322.4",
"DiscountAmount": "322.4",
"RuleIds": {
"RuleId": [
"{ \"RuleId\": [ 2075**** ] }"
]
},
"TradeAmount": "0",
"InstanceId": "dds-bp1b6e54e7cc****",
"DepreciateInfo": {
"ListPrice": 0,
"OriginalStandAmount": 0,
"CheapStandAmount": 0,
"CheapRate": 0,
"Differential": 0,
"DifferentialName": "XXXXX",
"MonthPrice": 0,
"IsContractActivity": false,
"IsShow": "true",
"ContractActivity": {
"FinalPromFee": 3621.6,
"FinalFee": 20522.4,
"ProdFee": 24144,
"ActivityId": 0,
"OptionCode": "wanhua_activity",
"ActivityName": "contract promotion_order_xxx discount\n",
"OptionIds": {
"OptionId": [
0
]
}
},
"StartTime": "2024-02-29 10:30:00"
},
"IsNewOfficialActivity": "true\n",
"ModuleInstance": {
"ModuleInstance": [
{
"CycleFee": "0.0",
"PromDetailList": {
"PromDetal": [
{
"FinalPromFee": 0,
"ActivityExtInfo": {
"activityId": "1512010241743170"
},
"OptionCode": "wanhua_activity",
"PromType": "discount",
"PromotionId": 0,
"PromotionName": "\\[Item with price reduction in x xxxx] ApsaraDB for MongoDB instances of a full range of specifications - xxxxx\n",
"PromotionCode": "aliwood-xxx",
"DerivedPromType": "subPrice"
}
]
},
"DepreciateInfo": {
"ListPrice": 0,
"OriginalStandAmount": 0,
"CheapStandAmount": 0,
"CheapRate": 0,
"Differential": 0,
"DifferentialName": "XXXXX",
"MonthPrice": 0,
"IsContractActivity": false,
"IsShow": "true"
},
"DiscountFee": "0.0",
"ModuleAttrs": {
"moduleAttr": [
{
"Code": "dds_dbtype",
"Name": "MongoDB",
"Type": "3",
"Value": "MongoDB"
}
]
},
"ModuleCode": "dds_dbtype",
"ModuleId": 0,
"ModuleName": "database type\n",
"NeedOrderPay": true,
"PayFee": 0,
"PricingModule": false,
"StandPrice": 0,
"TotalProductFee": 0,
"ContractActivity": false,
"StandDiscountPrice": 451
}
]
},
"ContractActivity": false,
"OptionalPromotions": {
"OptionalPromotion": [
{
"ActivityCategory": "discount",
"ActivityExtInfo": {
"activityId": "1512010241743170"
},
"CanPromFee": 4560789,
"OptionCode": "wanhua_activity",
"PromotionName": "\\[Item with price reduction in xxx] ApsaraDB for MongoDB instances of a full range of specifications - xxx\n",
"PromotionOptionNo": "1512010241xxxxx",
"Selected": false,
"Show": true,
"TargetArticleItemCodes": {
"targetArticleItemCode": [
"\"\""
]
},
"PromotionRuleIdList": {
"promotionRuleId": [
"43289909"
]
}
}
]
},
"PromDetailList": {
"PromDetal": [
{
"FinalPromFee": 0,
"ActivityExtInfo": {
"activityId": "1512010241743170"
},
"OptionCode": "youhui_quan",
"PromType": "discount",
"PromotionId": 0,
"PromotionName": "\\[Item with price reduction in x xxxx] ApsaraDB for MongoDB instances of a full range of specifications - xxxxx\n",
"PromotionCode": "ali-wood",
"DerivedPromType": "subPrice"
}
]
},
"StandDiscountPrice": 8687,
"StandPrice": 62982,
"IsContractActivity": false
}
]
},
"TraceId": "27227A3D-6B87-56F3-9E03-9E60F001****",
"OrderParams": "{\\\"autoPay\\\":false}\"",
"Rules": {
"Rule": [
{
"RuleDescId": 0,
"Title": "demo",
"Name": "demoname"
}
]
}
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | MissingParameter | Period is mandatory for this action. |
400 | MissingParameter | DBInstanceId is mandatory for this action. |
400 | InvalidParam | Specified parameter Period is not valid. |
400 | OriginPriceError | Origin price error. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-05-10 | API Description Update. The Error code has changed. The response structure of the API has changed | View Change Details |
2024-05-09 | The Error code has changed. The response structure of the API has changed | View Change Details |
2024-04-07 | The Error code has changed. The response structure of the API has changed | View Change Details |
2024-03-05 | The Error code has changed. The response structure of the API has changed | View Change Details |
2024-02-28 | The Error code has changed. The response structure of the API has changed | View Change Details |
2024-01-31 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-09-11 | The Error code has changed. The response structure of the API has changed | View Change Details |