All Products
Search
Document Center

Cloud Enterprise Network:UntagResources

Last Updated:Jun 10, 2026

Menghapus tag dari sumber daya.

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

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

cen:UntagResources

update

*CenInstance

acs:cen:*:{#accountId}:ceninstance/{#ceninstanceId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

ResourceType

string

Yes

Tipe sumber daya. Nilai valid:

Cen: Cloud Enterprise Network (CEN).

BandwidthPackage: Paket bandwidth.

TransitRouter: Router transit.

TransitRouterVpcAttachment: Attachment VPC.

TransitRouterVbrAttachment: Attachment VBR.

TransitRouterPeerAttachment: Attachment antar-wilayah.

TransitRouterVpnAttachment: Attachment VPN.

TransitRouterRouteTable: Tabel entri rute.

Flowlog: Log aliran.

TransitRouterMulticastDomain: Domain multicast.

cen

All

boolean

No

Apakah akan menghapus semua tag. Nilai valid:

  • true: Ya

  • false (default): Tidak

Catatan

Parameter ini hanya berlaku ketika parameter TagKey.N kosong.

false

ResourceId

array

Yes

ID sumber daya. Nilai N berkisar dari 1 hingga 50.

cen-7qthudw0ll6jmc****

string

No

Resource ID. The value of N ranges from 1 to 50.

cen-7qthudw0ll6jmc****

TagKey

array

No

Kunci tag.

Kunci tag dapat berisi hingga 64 karakter. Tidak boleh diawali dengan aliyun atau acs:, dan tidak boleh berisi http:// atau https://.

Jika Anda menentukan beberapa kunci tag, relasi logis di antara kunci tag tersebut adalah OR. Nilai valid N: 1 hingga 20.

FinanceDept

string

No

Tag key.

A tag key can contain up to 64 characters. It cannot start with aliyun or acs:, and cannot contain http:// or https://.

If you specify multiple tag keys, the logical relation among these tag keys is OR. Valid values of N: 1 to 20.

Name

RegionId

string

No

ID wilayah.

Parameter ini tidak diperlukan ketika tipe sumber daya adalah Cen atau BandwidthPackage. Untuk semua tipe sumber daya lainnya, parameter ini diperlukan.

cn-hangzhou

Elemen respons

Element

Type

Description

Example

object

The returned result.

RequestId

string

The request ID.

C46FF5A8-C5F0-4024-8262-B16B639225A0

Contoh

Respons sukses

JSONformat

{
  "RequestId": "C46FF5A8-C5F0-4024-8262-B16B639225A0\t"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidTagKey The tag keys are not valid. The error message returned because the specified tag key is invalid.
400 InvalidTagValue The tag values are not valid. The error message returned because the specified tag value is invalid.
400 MissingParam %s
400 InvalidInstanceType.NotFound The instance type is not found The error message returned because the specified instance type does not exist.
400 InvalidInstanceIds.NotFound The instanceIds are not found The error message returned because the specified instance does not exist.
400 Forbidden.TagKeys The request do not allow to operate the tag keys The error message returned because you cannot manage the specified tag key.
400 QuotaExceeded.TagNum Custom Tags quota exceeded The error message returned because the number of tags has reached the upper limit.
400 InvalidTagScope.NotFound The tag scope is not found The error message returned because the specified tag scope is invalid.
400 Forbidden.NotAllowedCategary The System tag is not valid The error message returned because you cannot configure system tags.
400 SizeLimitExceeded.ResourceIdNum The ResourceIds parameter's number is exceed , Valid : 20
400 IllegalParam.Region The specified region is invalid.
400 InvalidParameter Invalid parameter. The error message returned because the parameter is set to an invalid value.
400 Unauthorized The AccessKeyId is unauthorized. The error message returned because you do not have the permissions to perform this operation.
400 InvalidParameter.TagKeyOrAll The specified parameter TagKey or All is invalid. The specified parameter TagKey or All is invalid.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.