Menambahkan tag ke Sumber daya.
Deskripsi operasi
API operations provided by Alibaba Cloud are used to manage and query resources of Alibaba Cloud services. We recommend that you integrate these API operations only in management systems. Do not use these API operations in the core system of messaging services. Otherwise, system risks may occur.
You can call this operation to attach tags to a source. You can use tags to classify resources in ApsaraMQ for RocketMQ. This can help you aggregate and search resources in an efficient manner.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:TagResources |
update |
*全部资源
|
None |
|
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
ID instans ApsaraMQ for RocketMQ yang berisi Sumber daya yang ingin Anda menyambungkan tag. Catatan
Parameter ini wajib diisi saat Anda menyambungkan tag ke topik atau kelompok. |
MQ_INST_188077086902****_BXSuW61e |
| ResourceType |
string |
Yes |
Tipe Sumber daya yang ingin Anda menyambungkan tag. Nilai valid:
|
TOPIC |
| Tag |
array<object> |
Yes |
Tag yang ingin Anda menyambungkan ke Sumber daya. |
|
|
object |
No |
|||
| Key |
string |
Yes |
The tag key. If you configure this parameter, you must also configure the Value parameter.****
|
FinanceDept |
| Value |
string |
Yes |
The value of the tag that you want to attach to the resource. If you configure this parameter, you must also configure the Key parameter.****
|
FinanceJoshua |
| ResourceId |
array |
Yes |
ID Sumber daya. |
TopicA |
|
string |
No |
The ID of the resource to which you want to attach a tag.
|
TopicA |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. This parameter is a common parameter. Each request has a unique ID. You can use the ID to troubleshoot issues. |
301D2CBE-66F8-403D-AEC0-82582478**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "301D2CBE-66F8-403D-AEC0-82582478****"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.