Memperbarui informasi akun tertentu pada instans tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:UpdateInstanceAccount |
update |
*Instance
|
None | None |
Sintaks permintaan
PATCH /instances/{instanceId}/accounts/{username} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
ID instans. |
rmq-cn-7e22ody**** |
| username |
string |
Yes |
Nama akun. |
test |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| accountStatus |
string |
No |
Status akun. Valid values:
|
ENABLE |
| password |
string |
No |
Kata sandi akun. |
test |
| remark |
string |
No |
Keterangan akun. |
test |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data returned for the request. |
||
| requestId |
string |
The request ID. |
AF9A8B10-C426-530F-A0DD-96320B39**** |
| success |
boolean |
Indicates whether the request was successful. |
true |
| data |
boolean |
Indicates whether the update was successful. The value true indicates that the update was successful. |
true |
| code |
string |
The error code returned if the request failed. |
Instance.NotFound |
| message |
string |
The error message returned if the request failed. |
The instance cannot be found. |
| httpStatusCode |
integer |
The HTTP status code. |
200 |
| dynamicCode |
string |
The dynamic error code. |
InstanceId |
| dynamicMessage |
string |
The dynamic error message. |
instanceId |
| accessDeniedDetail |
string |
The details about the access denial. This parameter is returned only if the request is denied because of insufficient RAM permissions. |
xxx |
Contoh
Respons sukses
JSONformat
{
"requestId": "AF9A8B10-C426-530F-A0DD-96320B39****",
"success": true,
"data": true,
"code": "Instance.NotFound",
"message": "The instance cannot be found.",
"httpStatusCode": 200,
"dynamicCode": "InstanceId",
"dynamicMessage": "instanceId",
"accessDeniedDetail": "xxx"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.