Queries the available node counts that can be deployed for an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:ListInstanceCount |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterType |
string |
No |
The type of the instance. Valid values: ZooKeeper and Nacos-Ans. |
Nacos-Ans |
| MseVersion |
string |
No |
The edition of the instance. Valid values:
|
mse_pro |
| RegionId |
string |
No |
The ID of the region where the instance resides. Examples:
|
cn-hangzhou |
| RequestPars |
string |
No |
Extended request parameters in JSON format. |
{} |
| AcceptLanguage |
string |
No |
The language of the response. Valid values:
|
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data structure. |
||
| RequestId |
string |
The ID of the request. |
316F5F64-F73D-42DC-8632-01E308B6**** |
| Success |
boolean |
Whether the request was successful. Valid values:
|
true |
| Code |
integer |
The status code. 200 indicates success. |
200 |
| ErrorCode |
string |
The error code returned if the request failed. For more information, see the Error codes section of this topic. |
mse-100-100 |
| HttpStatusCode |
integer |
The HTTP status code returned. |
200 |
| Message |
string |
The response message. Returns a success message on success, or an error message on failure. |
The request was successfully processed. |
| DynamicCode |
string |
The dynamic part in the error message. |
%s |
| DynamicMessage |
string |
The dynamic part in the error message, used to replace Note
If the return value of the |
The specified parameter is invalid. |
| Data |
array |
The data entries returned. |
|
|
integer |
The number of nodes that can be deployed for the instance of the current edition. |
3 |
Examples
Success response
JSON format
{
"RequestId": "316F5F64-F73D-42DC-8632-01E308B6****",
"Success": true,
"Code": 200,
"ErrorCode": "mse-100-100",
"HttpStatusCode": 200,
"Message": "The request was successfully processed.\n",
"DynamicCode": "%s",
"DynamicMessage": "The specified parameter is invalid.",
"Data": [
3
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.