Mengambil detail akun untuk instans tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:GetInstanceAccount |
get |
*Instance
|
None | None |
Sintaks permintaan
GET /instances/{instanceId}/account HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
ID instans. |
rmq-cn-20p36ja4m0y |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| username |
string |
No |
Nama pengguna. Jika Anda tidak menentukan parameter ini, sistem akan mengembalikan detail akun default. |
test |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| requestId |
string |
The unique ID of the request. Use this ID to troubleshoot issues. |
B5C59E80-FCFC-5796-ABE4-D39EAAE578E4 |
| success |
boolean |
Indicates whether the request was successful. |
true |
| data |
object |
The response data. |
|
| username |
string |
The username. |
xxx |
| password |
string |
The account password. |
************* |
| accountStatus |
string |
The account status. Valid values:
|
ENABLE |
| remark |
string |
The remark. |
test |
| code |
string |
The error code. |
MissingInstanceId |
| message |
string |
The error message. |
The instance cannot be found. |
| httpStatusCode |
integer |
The HTTP status code. |
200 |
| dynamicCode |
string |
The dynamic error code. |
ConsumerGroupId |
| dynamicMessage |
string |
The dynamic error message. |
instanceId |
Contoh
Respons sukses
JSONformat
{
"requestId": "B5C59E80-FCFC-5796-ABE4-D39EAAE578E4",
"success": true,
"data": {
"username": "xxx",
"password": "*************",
"accountStatus": "ENABLE",
"remark": "test"
},
"code": "MissingInstanceId",
"message": "The instance cannot be found.",
"httpStatusCode": 200,
"dynamicCode": "ConsumerGroupId",
"dynamicMessage": "instanceId"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.