Menampilkan jumlah node yang dapat diterapkan untuk sebuah instans.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:ListInstanceCount |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterType |
string |
No |
Tipe instans. Nilai valid: ZooKeeper dan Pusat Registrasi Nacos-Ans. |
Nacos-Ans |
| MseVersion |
string |
No |
Tipe edisi instans. Nilai valid:
|
mse_pro |
| RegionId |
string |
No |
ID wilayah tempat instans berada. Contoh:
|
cn-hangzhou |
| RequestPars |
string |
No |
Parameter permintaan tambahan dalam format JSON. |
{} |
| AcceptLanguage |
string |
No |
Bahasa tanggapan. Nilai valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data structure. |
||
| RequestId |
string |
The ID of the request. |
316F5F64-F73D-42DC-8632-01E308B6**** |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Code |
integer |
The status code. A value of 200 is returned if the request is successful. |
200 |
| ErrorCode |
string |
The error code returned if the request failed. If the request failed, the ErrorCode parameter is returned. 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 returned message. If the request is successful, a success message is returned. If the request fails, an error message is returned. |
The request was successfully processed. |
| DynamicCode |
string |
The dynamic part in the error message. |
%s |
| DynamicMessage |
string |
The dynamic part in the error message. This parameter is used to replace Catatan
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 |
Contoh
Respons sukses
JSONformat
{
"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
]
}
Kode kesalahan
|
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 |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.