Menghapus tag dari resource lalu menghapus tag tersebut.
Deskripsi operasi
This topic provides an example on how to remove all tags from a stack that is deployed in the China (Hangzhou) region. In this example, the stack ID is 46ec7b78-9d5e-4b21-aefd-448c90aa****.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:UnTagResources |
update |
StackGroup
Template
TemplateScratch
Stack
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah tag. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| ResourceType |
string |
Yes |
Tipe resource. Nilai valid:
|
stack |
| All |
boolean |
No |
Apakah akan menghapus semua tag dari resource. Parameter ini berlaku ketika TagKey tidak ditentukan di permintaan. Nilai valid:
|
true |
| ResourceId |
array |
Yes |
ID resource. Catatan
Jika Anda menetapkan ResourceType ke stackgroup, Anda harus menetapkan ResourceId ke nama stack group. |
46ec7b78-9d5e-4b21-aefd-448c90aa**** |
|
string |
No |
The ID of the resource. Catatan
If you set ResourceType to stackgroup, you must set ResourceId to the name of the stack group. |
46ec7b78-9d5e-4b21-aefd-448c90aa**** |
|
| TagKey |
array |
No |
Kunci tag resource. Anda dapat menentukan hingga 20 kunci tag. |
FinanceDept |
|
string |
No |
The tag key of the resource. You can specify up to 20 tag keys. |
FinanceDept |
Untuk informasi selengkapnya tentang parameter permintaan umum, lihat Parameter umum.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
C46FF5A8-C5F0-4024-8262-B16B639225A0 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "C46FF5A8-C5F0-4024-8262-B16B639225A0\t"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.