Menambahkan tag ke instans Anti-DDoS Origin.
Deskripsi operasi
You can call the TagResources operation to add tags to instances.
Limit
You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-antiddosbag:TagResources |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya tempat instans berada di Manajemen Sumber Daya. Jika Anda tidak menentukan parameter ini, instans akan berada di kelompok sumber daya default. |
rg-acfm2pz25js**** |
| RegionId |
string |
Yes |
ID wilayah tempat instans berada. Catatan
Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| ResourceType |
string |
Yes |
Tipe sumber daya yang ingin Anda tambahkan tag. Atur nilainya ke INSTANCE, yang menunjukkan instans. |
INSTANCE |
| ResourceId |
array |
Yes |
ID instans yang ingin Anda tambahkan tag. Anda dapat menentukan hingga 51 ID. |
ddosbgp-cn-v0h1fmwb**** |
|
string |
No |
The ID of the instance to which you want to add tags. Catatan
You can call the DescribeInstanceList operation to query the IDs of all instances. |
ddosbgp-cn-n6w1r7nz**** |
|
| Tag |
array<object> |
No |
Tag yang akan ditambahkan. Anda dapat menentukan hingga 21 tag. |
|
|
object |
No |
|||
| Key |
string |
No |
The key of the tag to add. Catatan
If the specified key does not exist, a key is created. |
test-key |
| Value |
string |
No |
The value of the tag to add. Catatan
If the specified tag value does not exist, the tag value is created. |
test-value |
Semua operasi API Alibaba Cloud harus menyertakan parameter permintaan umum. Untuk informasi selengkapnya tentang parameter permintaan umum, lihat Parameter umum.
Untuk informasi selengkapnya tentang contoh permintaan, lihat bagian "Contoh" di topik ini.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
7078CD1E-F609-47A4-9C39-B288CC27C686 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "7078CD1E-F609-47A4-9C39-B288CC27C686"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.