实例价格查询
更新时间 2025-09-17 14:30:05
最近更新时间: 2025-09-17 14:30:05
接口功能介绍
查询云数据库实例价格,提供OpenApi能力
接口约束
请查询数据库实例价格
URI
POST /teledb-acceptor/v2/openapi/accept-order-info/inquiry
路径参数 无
Query参数 无
请求参数
请求头header参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
project-id | 是 | String | 项目id |
请求体body参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
billMode | 是 | String | 计费模式: 1是包周期,2是按需 | ||
regionId | 是 | String | 资源池Id | ||
prodVersion | 是 | String | 版本(参考查询产品规格列表接口) | ||
prodSpecName | 否 | String | 产品名称规格名称 | ||
availabilityZone | 否 | Array of Strings | 可用区名称 | ||
vpcId | 否 | String | 虚拟私有云Id | ||
hostType | 是 | String | 主机类型 host type: 通用性:(S6 S7,S8),计算增强型:(C6,C7,C8),内存优化型:(M6,M7,M8),海光通用型:HS1,海光-计算增强型:HC1,海光-内存优化型:HM1,鲲鹏-通用型:KS1,鲲鹏-计算增强型:KC1,鲲鹏-内存优化型:KM1 | ||
subnetId | 否 | String | 子网Id | ||
securityGroupId | 否 | String | 安全组 | ||
instId | 否 | String | 实例id,需要只读实例查询用到的父实例id | 630899563795381948 | |
period | 是 | Integer | 购买时长:单位月(范围:1-36) | 6 | |
count | 是 | Integer | 购买数量(范围:1-50) | 1 | |
autoRenewStatus | 是 | Integer | 自动续订状态 (0-不自动续订,1-自动续订) | 1 | |
prodId | 是 | Integer | 产品id | 1000105 | |
prodPerformanceSpeces | 否 | Array of Strings | 该产品下面的单节点规格 | ||
mysqlNodeInfoList | 是 | Array of Objects | mysql节点 | mysqlNodeInfoList | |
cpuType | 否 | Integer | cpu类型:10是鲲鹏,20是海光,30是intel | 30 | |
osType | 否 | Integer | 系统类型:2是centos,11是ctyunos | 2 | |
表 mysqlNodeInfoList |
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
nodeType | 是 | String | master:实例规格(单机,一主一备,一主两备), readNode: 高级设置: 只读实例 | ||
instSpec | 是 | String | 实例规格(默认:通用型=1) | ||
storageType | 是 | String | 存储类型: SSD=超高IO、SATA=普通IO、SAS=高IO、SSD-genric=通用型SSD、FAST-SSD=极速型SSD、XSSD-0=XSSD-0、XSSD-1=XSSD-1 XSSD-2=XSSD-2 注意XSSD必须八代机:hostType必须为M8,C8,S8 | ||
storageSpace | 是 | Integer | 存储空间(单位:G,范围100,32768) | 100 | |
prodPerformanceSpec | 是 | String | 规格(例: 4C8G) | ||
disks | 是 | Integer | 磁盘(默认为1) | 1 | |
availabilityZoneInfo | 是 | Array of Objects | 可用区信息 | availabilityZoneInfo | |
表 availabilityZoneInfo |
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
availabilityZoneName | 是 | String | 资源池可用区名称 | ||
availabilityZoneCount | 是 | Integer | 资源池可用区总数 | 1 | |
nodeType | 是 | String | 表示分布AZ的节点类型,master/slave/readNode |
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
statusCode | String | 接口状态码,参考下方状态码 | 200 | |
error | String | 错误码。当接口失败时才返回具体错误编码,成功不返回或者为空 | TELEDB_DCP_1000 | |
message | String | 描述信息 | ||
returnObj | Object | 返回对象 | data | |
表 data |
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
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
无
请求体body
基本与实例开通请求参数一致(询价可不传 "vpcId","subnetId","securityGroupId",开通实例需传)
//开通单机实例
{
"billMode":1,
"regionId":"81f7728662dd11ec810800155d307d5b",
"prodVersion":"5.7",
"prodSpecName":"单机版",
"mysqlNodeInfoList":[
{
"nodeType":"master",
"instSpec":"1",
"storageType":"SATA",
"storageSpace":100,
"prodPerformanceSpec":"2C4G",
"disks":1,
"availabilityZoneInfo":[
{
"availabilityZoneName":"az1",
"availabilityZoneCount":1,
"nodeType":"master"
}
]
}
],
"vpcId":"vpc-uzziv8j7na",
"subnetId":"subnet-pywrqtbdsp",
"securityGroupId":"sg-6o19zpk35h",
"period":"6",
"count":1,
"autoRenewStatus":0,
"prodId":10001003,
"hostType":"S6"
}
//开通只读实例价格查询
{
"period": 1,
"cpuType": "30",
"autoRenewStatus": 0,
"count": 1,
"instId":"630899563795381948",
"billMode": "1",
"prodId": 10001105,
"prodVersion": "8.0",
"password": "test1111",
"regionId": "200000001781",
"hostType": "S7",
"name": "test-read",
"osType": "11",
"mysqlNodeInfoList": [
{
"instSpec": "1",
"disks": 1,
"availabilityZoneInfo": [
{
"availabilityZoneName": "cn-hb-wh41-hbwh1A-public-ctcloud",
"availabilityZoneCount": 1,
"nodeType": "readNode"
}
],
"storageSpace": 100,
"prodPerformanceSpec": "2C4G",
"storageType": "SSD",
"nodeType": "readNode"
}
]
}
响应示例
{
"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"
}
状态码
请参考 状态码
错误码
请参考 错误码