All Products
Search
Document Center

Key Management Service:UntagResources

Last Updated:Jun 10, 2026

Menghapus tag dari kunci atau rahasia.

Deskripsi operasi

You can remove multiple tags from multiple keys or multiple secrets at a time. You cannot remove tags that start with aliyun or acs:.

If you enter multiple tag keys in the request parameters and only some of the tag keys are associated with resources, the operation can be called and the tags whose keys are associated with resources are removed from the resources.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Parameter permintaan

Parameter

Type

Required

Description

Example

RegionId

string

Yes

ID Wilayah sumber daya.

Catatan

Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru.

cn-hangzhou

ResourceType

string

Yes

Tipe Sumber daya yang ingin Anda menghapus tag-nya. Nilai valid:

  • key

  • secret.

key

All

boolean

No

Apakah akan menghapus semua tag dari sumber daya. Nilai valid:

  • true

  • false (default)

Catatan

Parameter ini hanya berlaku jika Anda menentukan kunci tag kosong.

false

ResourceId

array

Yes

ID Sumber daya yang ingin Anda menghapus tag-nya. Anda dapat memasukkan hingga 50 ID Sumber daya.

Masukkan beberapa ID Sumber daya dalam format ["ResourceId.1","ResourceId.2",...].

string

No

The IDs of the resources from which you want to remove tags. You can enter up to 50 resource IDs.

Enter multiple resource IDs in the ["ResourceId.1","ResourceId.2",...] format.

key-hzz62f1cb66fa42qo****

TagKey

array

No

Kunci tag yang ingin Anda hapus. Anda dapat memasukkan hingga 20 kunci tag.

Masukkan beberapa kunci tag dalam format ["key.1","key.2",...].

Catatan

Kunci tag tidak boleh dimulai dengan aliyun atau acs:.

string

No

The keys of the tags that you want to remove. You can enter up to 20 tag keys.

Enter multiple tag keys in the ["key.1","key.2",...] format.

Catatan

The tag key cannot start with aliyun or acs:.

disk-encryption

Elemen respons

Element

Type

Description

Example

object

RequestId

string

The request ID.

b1f210dc-e52c-4a86-b9dd-7492343d46c7

Contoh

Respons sukses

JSONformat

{
  "RequestId": "b1f210dc-e52c-4a86-b9dd-7492343d46c7"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

404 InvalidAccessKeyId.NotFound The Access Key ID provided does not exist in our records.
404 InvalidResourceId.NotFound The specified ResourceId is not found.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.