API Introduction
Call the queryRenewOrderPriceForMongoDB API to query the price for renewing a MongoDB instance.
API Restrictions
None
URI
POST /v1/extApi/queryRenewOrderPriceForMongoDB
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 |
cycleCount | Yes | String | Subscription cycle, the value must be greater than zero and the longest subscription duration cannot exceed 384 months. | ||
cycleType | Yes | String | Subscription type, 3 for monthly subscription, 5 for one-year subscription, 6 for two-year subscription, and 7 for three-year subscription. The cycleCnt attribute is 1, and the value of cycleType is 3, which indicates 1 month subscription | ||
accessKey | Yes | String | Resource pool ak | ||
securityKey | Yes | String | Resource pool sk | ||
resourceIds | Yes | String[] | Instance id array |
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 renewing the MongoDB instance is queried successfully | |
returnObj | Yes | Object | Return object. |
Table returnObj
Parameter | Required or Not | Parameter Type | Description | Example | Lower-level Object |
totalPrice | Yes | Integer | Total price of the order | ||
subOrderPrices | Yes | Object[] | Suborder price array | subOrderPrices | |
finalPrice | Yes | Integer | Final price of the order | ||
isSucceed | Yes | Boolean |
Table subOrderPrices
Parameter | Required or Not | Parameter Type | Description | Example | Lower-level Object |
totalPrice | Yes | Integer | Total price of the order | ||
serviceTag | Yes | Object[] | Suborder price array | subOrderPrices | |
finalPrice | Yes | Integer | 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 | Integer | Price of the suborder | ||
finalPrice | Yes | Integer | Final price of the suborder | ||
resourceType | Yes | String | Resource Type |
Sample Request
Request Header
None
Request Body
{
"cycleCount":"1",
"cycleType":"3",
"accessKey":"4a4bdc57e06542199b5f98d4cd107be2",
"securityKey":"5566ddcc9b1646c6b77a0eaeff1c8763",
"resourceIds":[
"7fa7256174df4016adee9bfb8dbb5470"
]
}Response Example
{
"statusCode": 800,
"message": "the price of renewing the MongoDB instance is queried successfully",
"returnObj": {
"totalPrice": 513.0,
"subOrderPrices": [
{
"totalPrice": 513.0,
"serviceTag": "PAAS",
"finalPrice": 513.0,
"orderItemPrices": [
{
"itemId": "fde0496ddf2d40a595bb28faa7740d7b",
"totalPrice": 417.0,
"finalPrice": 417.0,
"resourceType": "DOCBASE"
},
{
"itemId": "36b5e0e287614777b19dd8ed40f27142",
"totalPrice": 30.0,
"finalPrice": 30.0,
"resourceType": "MONGODB_EBSC"
},
{
"itemId": "b89428039ca14cd3b95edd04c3b510a2",
"totalPrice": 66.0,
"finalPrice": 66.0,
"resourceType": "MONGODB_BACKUP"
}
]
}
],
"finalPrice": 513.0,
"isSucceed": true
}
}Status Code
Status Code | Description |
800 | Indicate that the request succeeded |
900 | Indicates that the request failed |
Error Codes
None