Mengubah kelompok sumber daya tempat instans ApsaraMQ for RocketMQ berada.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:ChangeResourceGroup |
update |
*Instance
|
None | None |
Sintaks permintaan
POST /resourceGroup/change HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| resourceId |
string |
Yes |
ID sumber daya. Atur parameter ini ke ID instans ApsaraMQ for RocketMQ yang kelompok sumber dayanya ingin Anda ubah. |
c2c5d1274a8d4317a13bc5b0d4****** |
| regionId |
string |
Yes |
ID wilayah tempat instans berada. |
cn-hangzhou |
| resourceType |
string |
Yes |
Tipe sumber daya. Atur parameter ini ke Instans. Nilai parameter ini tidak dapat diubah. Valid values:
|
instance |
| resourceGroupId |
string |
Yes |
ID kelompok sumber daya tujuan instans. Anda dapat memanggil operasi ListResourceGroups untuk mengkueri kelompok sumber daya yang ada. |
rg-9gLOoK**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The ID of the request. Each request has a unique ID. You can use this ID to troubleshoot issues. |
AF9A8B10-C426-530F-A0DD-96320B39**** |
| success |
boolean |
Indicates whether the call was successful. |
true |
| data |
boolean |
The returned result. |
true |
| code |
string |
The error code returned if the call failed. |
Instance.NotFound |
| message |
string |
The error message. |
The instance cannot be found. |
| httpStatusCode |
integer |
The HTTP status code returned. |
400 |
| dynamicCode |
string |
The dynamic error code. |
InstanceId |
| dynamicMessage |
string |
The dynamic error message. |
instanceId |
Contoh
Respons sukses
JSONformat
{
"requestId": "AF9A8B10-C426-530F-A0DD-96320B39****",
"success": true,
"data": true,
"code": "Instance.NotFound",
"message": "The instance cannot be found.",
"httpStatusCode": 400,
"dynamicCode": "InstanceId",
"dynamicMessage": "instanceId"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.