Memanggil UntagResources untuk menghapus tag dari satu atau beberapa sumber daya ECS. Setelah tag dihapus, jika tag tidak lagi terpasang pada sumber daya apa pun, tag akan dihapus secara otomatis.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:UntagResources |
delete |
DedicatedHost
Disk
NetworkInterface
Image
Instance
KeyPair
ReservedInstance
SecurityGroup
Snapshot
LaunchTemplate
AutoSnapshotPolicy
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah sumber daya. Anda dapat memanggil DescribeRegions untuk mengkueri daftar wilayah Alibaba Cloud terbaru. |
cn-hangzhou |
| RegionId |
string |
Yes |
The region ID of the resource. You can call DescribeRegions to query the most recent list of Alibaba Cloud regions. |
cn-hangzhou |
| ResourceType |
string |
Yes |
Tipe sumber daya. Nilai valid:
|
instance |
| All |
boolean |
No |
Apakah akan menghapus semua tag dari sumber daya. Parameter ini hanya berlaku jika TagKey.N tidak ditentukan di permintaan. Nilai valid:
Nilai default: false |
false |
| ResourceId |
array |
Yes |
Daftar ID sumber daya. Anda dapat menentukan hingga 50 ID sumber daya. |
i-bp67acfmxazb4ph**** |
|
string |
No |
ID sumber daya. |
i-bp67acfmxazb4ph**** |
|
| TagKey |
array |
No |
Daftar kunci tag sumber daya. Anda dapat menentukan hingga 20 kunci tag. |
TestKey |
|
string |
No |
Kunci tag sumber daya. |
TestKey |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
C46FF5A8-C5F0-4024-8262-B16B639225A0 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "C46FF5A8-C5F0-4024-8262-B16B639225A0"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NumberExceed.ResourceIds | The ResourceIds parameter's number is exceed , Valid : 50 | |
| 400 | NumberExceed.Tags | The Tags parameter's number is exceed , Valid : 20 | |
| 400 | Duplicate.TagKey | The Tag.N.Key contain duplicate key. | |
| 400 | InvalidTagKey.Malformed | The specified Tag.n.Key is not valid. | |
| 400 | InvalidTagValue.Malformed | The specified Tag.n.Value is not valid. | |
| 400 | OperationDenied.QuotaExceed | The quota of tags on resource is beyond permitted range. | |
| 400 | InvalidTag.Mismatch | The specified Tag.n.Key and Tag.n.Value are not match. | |
| 400 | InvalidTagCount | The specified tags are beyond the permitted range. | |
| 400 | Invalid.Scope | The specified scope is invalid. | |
| 403 | PermissionDenied.TagOwnerBid | The specified operator not have permission to set TagOwnerBid value. | |
| 403 | PermissionDenied.TagOwnerUid | The specified operator not have permission to set TagOwnerUid value. | |
| 403 | PermissionDenied.Scope | The specified operator not have permission to set Scope value. | |
| 403 | InvalidResourceId.NotSupported | The specified ResourceId does not support tagging. | |
| 403 | NoPermissionKey.Scope | %s | |
| 403 | NoPermission.Tag | The operator is not permission for the tag. | |
| 403 | Param.Conflict | The specified all is true, but the specified TagKey.N is not empty. | |
| 404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | |
| 404 | MissingParameter.ResourceIds | The parameter - ResourceIds.N should not be null | |
| 404 | MissingParameter.TagOwnerUid | The parameter - TagOwnerUid should not be null | |
| 404 | MissingParameter.TagOwnerBid | The parameter - TagOwnerBid should not be null | |
| 404 | MissingParameter.ResourceType | The parameter - ResourceType should not be null | |
| 404 | MissingParameter.Tags | The parameter - Tags should not be null | |
| 404 | MissingParameter.RegionId | The parameter - RegionId should not be null | |
| 404 | InvalidResourceId.NotFound | The specified ResourceIds are not found in our records. | |
| 404 | InvalidResourceType.NotFound | The ResourceType provided does not exist in our records. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.