Membuat dan menyambungkan tag ke resource yang ditentukan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eipanycast:TagResources |
update |
*AnycastEipAddress
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceId |
array |
Yes |
ID resource. Anda dapat menentukan hingga 20 ID resource. |
|
|
string |
No |
ID resource. Anda dapat menentukan hingga 20 ID resource. Catatan Saat memanggil operasi ini, Anda harus menentukan parameter ResourceId.N. |
aeip-2zeerraiwb7ujsxdc**** |
|
| ResourceType |
string |
Yes |
Tipe resource. Tetapkan nilainya ke ANYCASTEIPADDRESS. |
ANYCASTEIPADDRESS |
| Tag |
array<object> |
Yes |
Informasi tag. |
|
|
object |
No |
Informasi tag. |
||
| Key |
string |
No |
Kunci tag dari resource. Anda harus menentukan setidaknya satu kunci tag dan paling banyak 20 kunci tag. Kunci tag tidak boleh berupa string kosong. Panjang kunci tag dapat mencapai 128 karakter. Kunci tag tidak boleh diawali dengan aliyun atau acs: serta tidak boleh mengandung Catatan Saat memanggil operasi ini, Anda harus menentukan parameter Tag.N.Key. |
FinanceDept |
| Value |
string |
No |
Nilai tag dari resource. Anda harus menentukan setidaknya satu nilai tag dan paling banyak 20 nilai tag. Nilai tag boleh berupa string kosong. Panjang nilai tag dapat mencapai 128 karakter. Nilai tag tidak boleh diawali dengan Catatan Saat memanggil operasi ini, Anda harus menentukan parameter Tag.N.Value. |
FinanceJoshua |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
BaseResult |
||
| Success |
boolean |
Menunjukkan apakah pemanggilan berhasil. Nilai yang valid: true: Pemanggilan berhasil. false: Pemanggilan gagal. |
true |
| RequestId |
string |
ID permintaan. |
C46FF5A8-C5F0-4024-8262-B16B639225A0 |
Contoh
Respons sukses
JSONformat
{
"Success": true,
"RequestId": "C46FF5A8-C5F0-4024-8262-B16B639225A0"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NumberExceed.Tags | The maximum number of tags is exceeded. | |
| 400 | NumberExceed.ResourceIds | The maximum number of resource IDs is exceeded. | |
| 400 | Forbidden.TagKeys | The tag key cannot be operated by the request. | |
| 400 | Forbidden.TagKey.Duplicated | The specified tag key already exists. | |
| 400 | InvalidInstanceIds.NotFound | The instance IDs are not found. | |
| 400 | InvalidInstanceType.NotFound | The instance type is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.