询价
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action
元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用背景高亮的方式表示。
- 对于不支持资源级授权的操作,用
全部资源
表示。
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
---|---|---|---|---|
dds:DescribePrice | get |
|
| 无 |
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RegionId | string | 否 | 地域 ID,您可以调用 DescribeRegions 接口查询地域 ID。 | cn-hangzhou |
OrderType | string | 是 | 订单类型,取值说明:
| BUY |
DBInstances | string | 是 | 包含实例中多个信息的 JSON 格式字符串。参数说明以及更多 JSON 格式示例,请参见DescribePrice 接口 DBInstances 参数说明。 | [ { "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 | 否 | 集群代码,取值说明:
| badds |
ProductCode | string | 否 | 产品代码,默认为 dds。 | dds |
BusinessInfo | string | 否 | 附加参数,业务信息。 | {"AccountPassword":"Pw123456","DBInstanceDescription":"test"} |
CouponNo | string | 否 | 是否使用优惠券,取值说明:
| default |
OrderParamOut | string | 否 | 是否返回订单参数,取值说明:
| true |
ResourceGroupId | string | 否 | 资源组 ID。资源组详情请参见查看资源组基本信息。 | rg-acfmyiu4ekp**** |
返回参数
示例
正常返回示例
JSON
格式
{
"Order": {
"Coupons": {
"Coupon": [
{
"Description": "ceshi",
"IsSelected": "true",
"CouponNo": "youhuiquan_promotion_option_id_for_blank",
"Name": "youhuiquan111",
"PromotionRuleIdList": {
"PromotionRuleId": [
0
]
},
"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 副本集--首购--1年*折--ft首购权益\\\",\\\"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年付折扣\\\",\\\"promotionOptionNo\\\":\\\"10180400107xxxxx\\\",\\\"promotionRuleIdList\\\":[xxxxx],\\\"selected\\\":false,\\\"targetArticleItemCodes\\\":[]}]\"",
"PromDetailList": "[{\\\"finalPromFee\\\":90xxx,\\\"optionCode\\\":\\\"wanhua_activity\\\",\\\"promType\\\":\\\"discount\\\",\\\"promotionId\\\":2091xxxx,\\\"promotionName\\\":\\\"新用户购买云数据库 MongoDB 副本集1年享*折优惠,限1台\\\"}]\"",
"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": "合同优惠_整单_xxx折",
"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": "合同优惠_整单_xxx折",
"OptionIds": {
"OptionId": [
0
]
}
},
"StartTime": "2024-02-29 10:30:00"
},
"IsNewOfficialActivity": "命中降价优惠。",
"ModuleInstance": {
"ModuleInstance": [
{
"CycleFee": "0.0",
"PromDetailList": {
"PromDetail": [
{
"FinalPromFee": 0,
"ActivityExtInfo": {
"activityId": "1512010241743170"
},
"OptionCode": "wanhua_activity",
"PromType": "discount",
"PromotionId": 0,
"PromotionName": "【xxxx-x月降价项目】MongoDB全规格--xxxxx",
"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": "数据库类型",
"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": "【xxx月降价项目】MongoDB全规格--xxx",
"PromotionOptionNo": "1512010241xxxxx",
"Selected": false,
"Show": true,
"TargetArticleItemCodes": {
"targetArticleItemCode": [
"\"\""
]
},
"PromotionRuleIdList": {
"promotionRuleId": [
"43289909"
]
}
}
]
},
"PromDetailList": {
"PromDetail": [
{
"FinalPromFee": 0,
"ActivityExtInfo": {
"activityId": "1512010241743170"
},
"OptionCode": "youhui_quan",
"PromType": "discount",
"PromotionId": 0,
"PromotionName": "【xxxx-x月降价项目】MongoDB全规格--xxxxx",
"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"
}
]
}
}
错误码
HTTP status code | 错误码 | 错误信息 |
---|---|---|
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. |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2024-05-10 | OpenAPI 描述信息更新、OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |
2024-05-09 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |
2024-04-07 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |
2024-03-05 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |
2024-02-28 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |
2024-01-31 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |
2023-09-11 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |