Membuat tag resource.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:TagResources |
update |
*All Resource
|
None | None |
Sintaks permintaan
POST /resourceTag/create HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| regionId |
string |
Yes |
ID region. |
cn-hangzhou |
| resourceType |
string |
Yes |
Jenis resource. Setel parameter ini ke instance. Nilai parameter ini tidak dapat diubah. |
instance |
| resourceId |
string |
Yes |
ID resource, dalam format JSON. |
rmq-cn-pe3355cs707 |
| tag |
string |
Yes |
Tag, dalam format JSON. |
[{"key": "rmq-test", "value": "test"}] |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Result |
||
| requestId |
string |
ID permintaan. |
0B962390-D84B-5D44-8C11-79DF40299D41 |
| success |
boolean |
Menunjukkan apakah panggilan berhasil. |
true |
| data |
boolean |
Hasil yang dikembalikan. |
true |
| code |
string |
Kode error. |
Topic.NotFound |
| message |
string |
Pesan error. |
The instance cannot be found. |
| httpStatusCode |
integer |
Kode status HTTP. |
200 |
| dynamicCode |
string |
Kode error dinamis. |
InstanceId |
| dynamicMessage |
string |
Pesan error dinamis. |
instanceId |
Contoh
Respons sukses
JSONformat
{
"requestId": "0B962390-D84B-5D44-8C11-79DF40299D41",
"success": true,
"data": true,
"code": "Topic.NotFound",
"message": "The instance cannot be found.",
"httpStatusCode": 200,
"dynamicCode": "InstanceId",
"dynamicMessage": "instanceId"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.