Menambahkan satu atau beberapa tag ke resource tertentu.
Deskripsi operasi
Anda dapat memanggil operasi ini hingga 100 kali per detik per akun.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cdn:TagResources |
update |
*Domain
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
Yes |
Jenis resource. Tetapkan nilai ini ke DOMAIN. |
DOMAIN |
| ResourceId |
array |
Yes |
Daftar ID resource. Jumlah maksimum elemen dalam daftar: 50. |
1 |
|
string |
No |
ID sebuah resource. |
1 |
|
| Tag |
array<object> |
Yes |
Tag-tag tersebut. Jumlah maksimum elemen dalam daftar: 20. |
|
|
object |
No |
Detail tag. |
||
| Key |
string |
Yes |
Kunci sebuah tag. |
env |
| Value |
string |
No |
Nilai sebuah tag. |
value |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
97C68796-EB7F-4D41-9D5B-12B909D76508 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "97C68796-EB7F-4D41-9D5B-12B909D76508"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidRegionId.Malformed | The specified RegionId is invalid. | |
| 400 | Resource.NotExist | Resources does not exist. | |
| 400 | TagKeyIsInvalid | The specified TagKey is invalid. | |
| 400 | TooManyTags | Too many tags. | |
| 400 | InvalidTagKey | The key should not be null, start with "acs:" or "aliyun", contain "http://" or "https://" or have special symbols:.!@#$%?/^&*)(+={}[]",'<>~·`?;. | |
| 400 | InvalidTagValue | The tag value cannot contain these special symbols:http://, https:// | |
| 400 | ReservedTagKey | The tag key is used internally as a reserved field and is not allowed to be used. | The tag key is used as an internal reserved field and is not allowed. |
| 400 | TagValueIsInvalid | The specified TagValue is invalid. | |
| 400 | TagKeyRepeated | The specified TagKey is duplicated. | |
| 400 | TagIsInvalid | The number of Tag exceeds 20. | |
| 400 | ResourceIdIsInvalid | The number of ResourceId exceeds 50. | The number of resource IDs (ResourceId) cannot exceed 50. |
| 400 | SystemTagIsInvalid | The number of System Tag exceeds 50. | |
| 400 | CustomTagIsInvalid | The number of Custom Tag exceeds 20. | The number of tags cannot exceed 20. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.