查询实例价格v2
更新时间 2025-10-16 14:33:10
最近更新时间: 2025-10-16 14:33:10
接口功能介绍
查询云数据库实例价格,提供OpenApi能力
接口约束
请查询数据库实例价格
URI
POST /teledb-acceptor/v2/openapi/accept-order-info/inquiry
路径参数 无
Query参数 无
请求参数
请求头header参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
project-id | 否 | String | 项目id | 0 |
请求体body参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
billMode | 是 | String | 计费模式: 1是包周期,2是按需 | ||
regionId | 是 | String | 资源池Id | ||
prodVersion | 否 | String | 版本 | ||
prodSpecName | 否 | String | 产品名称规格名称 | ||
availabilityZone | 否 | Array of Strings | 可用区名称 | ||
vpcId | 否 | String | 虚拟私有云Id | ||
hostType | 是 | String | 主机类型 host type: S6 or S7 | ||
subnetId | 否 | String | 子网Id | ||
securityGroupId | 否 | String | 安全组 | ||
name | 否 | String | 集群名称(若开通只读实例,默认在主实例名称后面加"-read") | ||
password | 否 | String | 管理员密码(RSA公钥加密) | ||
period | 是 | Integer | 购买时长:单位月(范围:1-36) | 6 | |
count | 是 | Integer | 购买数量(范围:1-50) | 1 | |
autoRenewStatus | 是 | Integer | 自动续订状态 (0-不自动续订,1-自动续订) | 1 | |
prodId | 是 | Integer | 产品id | 1000105 | |
prodPerformanceSpeces | 否 | Array of Strings | 该产品下面的单节点规格 | ||
nodeInfoList | 是 | Array of Objects | DDS节点 | nodeInfoList | |
表 nodeInfoList |
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
nodeType | 是 | String | 节点类型 :mongos;shard;config;readonly;ms;s;backup | ||
instSpec | 是 | Integer | 实例类型,1=通用型,2=计算增强型,3=内存优化型,4=直通(未用到) | 1 | |
storageType | 是 | String | 存储类型: SSD=超高IO, SAS=高IO, SATA=普通IO,SSD-genric=通用型SSD | ||
storageSpace | 是 | String | 存储空间(单位:G) 单机版和副本集必传:范围100-32768 、集群版shard和bckup节点必传:单个shard:范围100-2024,backup为单个shard的容量乘以shard的个数(注意:每一个shard对应3个availabilityZoneCount,参考下面字段的描述或者请求样例) | ||
prodPerformanceSpec | 是 | String | 规格: 4C8G 当 nodeType为backup类型 可不传 | ||
disks | 是 | Integer | 磁盘 | 1 | |
availabilityZoneInfo | 是 | Array of Objects | 可用区信息 | availabilityZoneInfo | |
表 availabilityZoneInfo |
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
availabilityZoneName | 是 | String | 资源池可用区名称 | ||
availabilityZoneCount | 是 | Integer | 资源池可用区总数(开通集群版--nodeType为mongos时范围为[2,16],nodeType为shard时,shard数量取值范围[2,16],每一个shard对应3个availabilityZoneCount, 例:"nodeType":"shard"且要开通shard数 量为3时,"availabilityZoneCount":9 ;nodeType为config时节点默认为3即"availabilityZoneCount": 3) | 2 | |
nodeType | 是 | String | master:主节点、mongos:mongos节点、shard:shard节点 、config:config节点(存储类型storageType与shard节点一致,存储空间storageSpace为单个shard的storageSpace)、 backup:备份机(存储类型storageType与shard 节点一致,存储空间storageSpace为shard节点数量乘以单个shard的storageSpace) |
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
statusCode | String | 接口状态码,参考下方状态码 | 200 | |
error | String | 错误码 | TELEDB_DCP_1000 | |
message | String | 描述信息 | ||
returnObj | Object | 返回对象 | returnObj | |
表 returnObj |
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
isSucceed | Boolean | 是否成功 | true | |
finalPrice | Double | 价格 | 1.35 | |
discountPrice | Double | 打折价格 | 1.35 | |
verifyStatusCode | Integer | 状态码 | 200 | |
totalPrice | Double | 总价 | 1.35 | |
subOrderPrices | Array of Objects | 子单价格 | subOrderPrices | |
表 subOrderPrices |
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
finalPrice | Double | 价格 | 1.35 | |
serviceTag | String | 服务标签 | eiusmod enim laborum o | |
totalPrice | Double | 总价 | 1.35 | |
orderItemPrices | Array of Objects | 子单价格 | orderItemPrices | |
表 orderItemPrices |
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
finalPrice | Double | 价格 | 1.35 | |
itemId | String | ID值 | qui Lorem proident anim non | |
totalPrice | Double | 总价 | 1.35 | |
resourceType | String | 资源类型 | ullamco irure proident |
枚举参数
无
请求示例
请求url
无
请求头header
project-id=0
请求体body
//实例开通-mongodb-单机版
{
"billMode":1,
"regionId":"81f7728662dd11ec810800155d307d5b",
"nodeInfoList":[
{
"nodeType":"s",
"instSpec":"1",
"storageType":"SATA",
"storageSpace":100,
"prodPerformanceSpec":"4C8G",
"disks":1,
"availabilityZoneInfo":[
{
"availabilityZoneName":"az1",
"availabilityZoneCount":1,
"nodeType":"master"
}
]
},
{
"nodeType":"backup",
"storageType":"SATA",
"instSpec":1,
"storageSpace":100,
"availabilityZoneInfo":[
{
"availabilityZoneName":"az1",
"availabilityZoneCount":1,
"nodeType":"backup"
}
]
}
],
"vpcId":"vpc-j73tuiva55",
"subnetId":"subnet-dzi0uqig1k",
"securityGroupId":"sg-jphn03uzf5",
"period":"6",
"count":1,
"autoRenewStatus":0,
"prodId":10013002,
"hostType":"S6"
}
响应示例
{
"returnObj":{
"data":{
"isSucceed":true,
"totalPrice":-86410058.56817907,
"finalPrice":80669230.18066183,
"discountPrice":null,
"subOrderPrices":[
{
"totalPrice":-76843232.5188733,
"finalPrice":41355710.85501617,
"serviceTag":"eiusmod enim laborum o",
"orderItemPrices":[
{
"itemId":"qui Lorem proident anim non",
"resourceType":"ullamco irure proident",
"totalPrice":17928369.97510113,
"finalPrice":-62233415.25904402
},
{
"itemId":"minim consectetur",
"resourceType":"ipsum do nostrud aute veniam",
"totalPrice":52820543.173371226,
"finalPrice":-1036398.4830770642
}
]
},
{
"totalPrice":-22705497.0381722,
"finalPrice":70097645.84349582,
"serviceTag":"aute Ut nostrud tempor",
"orderItemPrices":[
{
"itemId":"consequat",
"resourceType":"sed",
"totalPrice":-21558161.85990247,
"finalPrice":-18648341.1318648
},
{
"itemId":"dolor ullamco nulla fugiat",
"resourceType":"nisi non tempor p",
"totalPrice":59793190.58444196,
"finalPrice":-53836765.01538308
},
{
"itemId":"sint consectetur dolor",
"resourceType":"dolore non dolor proident adipisicing",
"totalPrice":-77440435.85192516,
"finalPrice":-34339636.43025178
}
]
},
{
"totalPrice":-69857864.17842177,
"finalPrice":-13340430.947403848,
"serviceTag":"amet Ut in",
"orderItemPrices":[
{
"itemId":"consectetur velit pariatur",
"resourceType":"Excepteur sed amet eu",
"totalPrice":51086495.80342513,
"finalPrice":57364153.95603117
},
{
"itemId":"ut",
"resourceType":"amet fugiat",
"totalPrice":37351458.719495595,
"finalPrice":56161849.46512267
}
]
},
{
"totalPrice":-66048166.46668565,
"finalPrice":16370397.494698524,
"serviceTag":"voluptate enim anim",
"orderItemPrices":[
{
"itemId":"cupidatat",
"resourceType":"laboris esse eiusmod exercitation sint",
"totalPrice":-19701838.564654216,
"finalPrice":5815132.474429235
},
{
"itemId":"ut",
"resourceType":"velit",
"totalPrice":11484819.931640714,
"finalPrice":-25289982.893618524
},
{
"itemId":"",
"resourceType":"fugiat culpa deserunt proident",
"totalPrice":-93022470.44327912,
"finalPrice":98451650.47827554
},
{
"itemId":"tempor Ut consectetur adipisicing voluptate",
"resourceType":"labore aliqua proident magna",
"totalPrice":44313447.2746554,
"finalPrice":-22280211.830638304
}
]
},
{
"totalPrice":65669086.64999333,
"finalPrice":63104351.72302756,
"serviceTag":"in",
"orderItemPrices":[
{
"itemId":"irure in non",
"resourceType":"elit exercitation",
"totalPrice":-78912079.85658441,
"finalPrice":-64828474.98644886
},
{
"itemId":"minim incididunt",
"resourceType":"sed labore",
"totalPrice":-12752998.187627628,
"finalPrice":-29513240.426922098
}
]
}
],
"verifyStatusCode":null
}
},
"statusCode":200,
"message":"SUCCESS"
}
状态码
请参考 状态码
错误码
请参考 错误码