API Introduction
Call the queryUpgradeOrderPriceForMongoDB API to query the price of MongoDB instance expansion.
API Restrictions
None
URI
POST /v1/extApi/queryUpgradeOrderPriceForMongoDB
Path Parameter
None
Query Parameter
None
Request Parameters
Request Header Parameter
None
Request Body Parameter
Parameter | Required or Not | Parameter Type | Description | Example | Lower-level Object |
cpuNum | Yes | String | Number of CPU Cores | ||
memSize | Yes | String | Memory Capacity | ||
engineVersion | Yes | String | Engine Version | ||
instanceType | Yes | String | Instance type: Single or Senior | ||
resourceId | Yes | String | Instance ID. | ||
accessKey | Yes | String | Resource pool ak | ||
securityKey | Yes | String | Resource pool sk |
Response Parameter
Parameter | Required or Not | Parameter Type | Description | Example | Lower-level Object |
statusCode | Yes | Integer | Response code value range: 800 indicates success, 900 indicates failure | 800 | |
message | Yes | String | Response information | The price of MongoDB instance expansion is queried successfully | |
returnObj | Yes | Object | Return object. |
Table returnObj
Parameter | Required or Not | Parameter Type | Description | Example | Lower-level Object |
totalPrice | Yes | Float | Total price of the order | ||
subOrderPrices | Yes | Object[] | Suborder price array | subOrderPrices | |
usedDiscounts | Yes | String[] | |||
succeed | Yes | Boolean | |||
finalPrice | Yes | Float | Final price of the order | ||
verifyStatusCode | Yes | Float | Status Code | ||
isSucceed | Yes | Boolean |
Table subOrderPrices
Parameter | Required or Not | Parameter Type | Description | Example | Lower-level Object |
cycleType | Yes | Integer | |||
totalPrice | Yes | Float | Total price of the order | ||
serviceTag | Yes | Object[] | Suborder price array | subOrderPrices | |
finalPrice | Yes | Float | Final price of the order | ||
orderItemPrices | Yes | Object[] | orderItemPrices |
Table "orderItemPrices":
Parameter | Required or Not | Parameter Type | Description | Example | Lower-level Object |
itemId | Yes | String | Total price of the order | ||
totalPrice | Yes | Float | Price of the suborder | ||
finalPrice | Yes | Float | Final price of the suborder | ||
resourceType | Yes | String | Resource Type |
Sample Request
Request Header
None
Request Body
{
"cpuNum":"4",
"memSize":"8",
"engineVersion":"WiredTiger 4.0",
"instanceType":"Single",
"resourceId":"ce28bdce45e64aa0808ead6e39a29314",
"accessKey":"4a4bdc57e06542199b5f98d4cd107be2",
"securityKey":"5566ddcc9b1646c6b77a0eaeff1c8763"
}Response Example
{
"statusCode": 800,
"message": "the price of MongoDB instance expansion is queried successfully",
"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
}
}Status Code
Status Code | Description |
800 | Indicate that the request succeeded |
900 | Indicates that the request failed |
Error Codes
None