文档数据库服务

查询MongoDB实例扩容的价格

2025-06-27 07:31:48
接口功能介绍

调用queryUpgradeOrderPriceForMongoDB接口查询MongoDB实例扩容的价格。

接口约束

无

URI
POST /v1/extApi/queryUpgradeOrderPriceForMongoDB

路径参数

无

Query参数

无

请求参数

请求头header参数

无

请求体body参数

参数

是否必填

参数类型

说明

示例

下级对象

cpuNum

是

String

cpu核数



memSize

是

String

内存容量



engineVersion

是

String

引擎版本



instanceType

是

String

实例类型,单机版(Single)高级版(Senior)



resourceId

是

String

实例id



accessKey

是

String

资源池ak



securityKey

是

String

资源池sk



响应参数

参数

是否必填

参数类型

说明

示例

下级对象

statusCode

是

Integer

响应码 取值范围:800为成功,900为失败

800


message

是

String

响应信息

查询MongoDB实例扩容的价格成功


returnObj

是

Object

返回对象



表returnObj

参数

是否必填

参数类型

说明

示例

下级对象

totalPrice

是

Float

订单总价



subOrderPrices

是

Object[]

子订单价格数组


subOrderPrices

usedDiscounts

是

String[]




succeed

是

Boolean




finalPrice

是

Float

订单最终价格



verifyStatusCode

是

Float

状态码



isSucceed

是

Boolean




表subOrderPrices

参数

是否必填

参数类型

说明

示例

下级对象

cycleType

是

Integer




totalPrice

是

Float

订单总价



serviceTag

是

Object[]

子订单价格数组


subOrderPrices

finalPrice

是

Float

订单最终价格



orderItemPrices

是

Object[]



orderItemPrices

表orderItemPrices

参数

是否必填

参数类型

说明

示例

下级对象

itemId

是

String

订单总价



totalPrice

是

Float

子订单价格



finalPrice

是

Float

子订单最终价格



resourceType

是

String

资源类型



请求示例

请求头header

无

请求体body

{
    "cpuNum":"4",
    "memSize":"8",
    "engineVersion":"WiredTiger 4.0",
    "instanceType":"Single",
    "resourceId":"ce28bdce45e64aa0808ead6e39a29314",
    "accessKey":"4a4bdc57e06542199b5f98d4cd107be2",
    "securityKey":"5566ddcc9b1646c6b77a0eaeff1c8763"
}
响应示例
{
    "statusCode": 800,
    "message": "查询MongoDB实例扩容的价格成功",
    "returnObj": {
        "totalPrice": 84.33,
        "usedDiscounts": [],
        "succeed": true,
        "subOrderPrices": [
            {
                "cycleType": 1,
                "totalPrice": 84.33,
                "serviceTag": "PAAS",
                "finalPrice": 84.33,
                "orderItemPrices": [
                    {
                        "itemId": "b597226c09ef4ee988d562665726ed9e",
                        "totalPrice": 84.33,
                        "finalPrice": 84.33,
                        "resourceType": "DOCBASE"
                    }
                ]
            }
        ],
        "finalPrice": 84.33,
        "verifyStatusCode": 800,
        "isSucceed": true
    }
}
状态码

状态码

描述

800

表示请求成功

900

表示请求失败

错误码

无