文档数据库服务

查询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

表示请求失败

错误码


WTmVJNCpfeK6