All Products
Search
Document Center

Resource Management:Pewarisan tag

Last Updated:Jun 22, 2026

Anda dapat menggunakan fitur pewarisan tag untuk secara otomatis menyebarkan tag dari resource utama ke resource terkaitnya. Proses ini terjadi saat Anda mengubah tag pada resource utama atau membuat asosiasi baru, sehingga meningkatkan efisiensi operasi dan pemeliharaan (O&M). Misalnya, ketika Anda menambahkan tag ke Instance ECS, resource terkait—seperti disk, elastic network interface, dan alamat IP elastis—secara otomatis mewarisi tag tersebut. Resource yang baru diasosiasikan juga akan mewarisi tag tersebut.

Informasi latar belakang

Anda dapat mengelola pewarisan tag menggunakan Akun Alibaba Cloud atau pengguna RAM yang memiliki izin AliyunTagAdministratorAccess. Untuk informasi selengkapnya, lihat Create a RAM user dan Manage RAM user permissions.

Batasan

  • Untuk daftar tipe resource yang mendukung fitur ini, lihat Resources that support tag inheritance.

  • Saat mengonfigurasi aturan untuk hanya mewariskan tag tertentu, Anda dapat menentukan hingga 50 kunci tag.

  • Setelah Anda mengaktifkan dan mengonfigurasi aturan pewarisan tag, jika tag yang diwariskan memiliki kunci yang sama dengan tag yang sudah ada pada resource terkait, sistem akan menimpa tag yang sudah ada tersebut. Misalnya, resource terkait memiliki tag cost:hangzhou dan resource utama memiliki tag cost:shanghai. Jika Anda mengonfigurasi aturan yang memungkinkan resource terkait mewarisi tag dengan kunci cost, maka tag cost:hangzhou pada resource terkait akan ditimpa dengan cost:shanghai.

  • Untuk beberapa tipe resource, Anda dapat menerapkan pewarisan tag ke resource terkait yang sudah ada dengan mengaktifkan sakelar Apply to Existing Resources. Untuk informasi tentang tipe resource yang didukung, lihat kolom Supports applying to existing resources dalam Resources that support tag inheritance.

Operasi

Aktifkan pewarisan tag

  1. Buka halaman Tag inheritance.

  2. Baca petunjuknya, centang kotak pilihan untuk membuat peran terkait layanan, lalu klik Enable and Configure Rules.

    Setelah Anda mengaktifkan fitur ini, peran terkait layanan bernama AliyunServiceRoleForTag akan dibuat. Peran ini digunakan untuk mengelola tag pada resource terkait. Untuk informasi selengkapnya, lihat Service-linked role for Tag.

Aktifkan aturan

  1. Pada halaman Tag inheritance, temukan tipe resource target dan klik Enable Rule di kolom Actions.

  2. Pada kotak dialog Enable Rule, konfigurasi aturan tersebut dan klik Enable.

    Contoh: Setelah Anda mengaktifkan aturan tersebut, elastic network interface secara otomatis mewarisi tag dari Instance ECS saat disambungkan ke Instance ECS tersebut. Tag pada elastic network interface tetap sinkron dengan tag Instance ECS. Saat elastic network interface dilepas, sistem secara otomatis menghapus tag yang diwariskan darinya.

    • Applicable Scope: Tentukan kunci tag yang ingin diwariskan. Anda dapat mewariskan semua kunci tag atau hanya kunci tag tertentu.

    • Apply to Existing Resources: Jika Anda mengaktifkan sakelar ini, aturan tersebut juga berlaku untuk resource yang sudah ada.

Ubah aturan

  1. Pada halaman Tag inheritance, temukan tipe resource target dan klik Modify Rule di kolom Actions.

  2. Pada kotak dialog Modify Rule, ubah aturan tersebut dan klik Modify.

    Anda dapat mengubah Applicable Scope serta mengaktifkan atau menonaktifkan sakelar Apply to Existing Resources.

Nonaktifkan aturan

Penting

Setelah Anda menonaktifkan aturan pewarisan tag, resource terkait tidak lagi secara otomatis mewarisi tag dari resource utamanya. Hal ini dapat memengaruhi operasi berbasis tag, seperti manajemen resource dan alokasi biaya.

  1. Pada halaman Tag inheritance, temukan tipe resource target dan klik Disable Rule di kolom Actions.

  2. Pada kotak dialog Disable Rule, klik Disable.

Kelola aturan secara massal

Pada halaman Tag inheritance, Anda dapat memilih beberapa tipe resource dan mengelola aturannya secara massal.

  • Di pojok kiri bawah daftar, klik Enable Rule untuk mengaktifkan beberapa aturan sekaligus.

  • Di pojok kiri bawah daftar, klik Disable Rule untuk menonaktifkan beberapa aturan sekaligus.

  • Di pojok kiri bawah daftar, klik Apply to Existing Resources untuk menerapkan pewarisan tag ke resource terkait yang sudah ada secara massal.

Nonaktifkan pewarisan tag

Penting

Setelah Anda menonaktifkan fitur pewarisan tag, sistem tidak lagi melakukan operasi tag pada resource terkait. Tag yang sudah ada pada resource tidak terpengaruh.

  1. Di pojok kanan atas halaman Tag inheritance, klik Disable.

  2. Pada kotak dialog konfirmasi, klik Close.

Resource yang mendukung pewarisan tag

Primary resource

Associated resource

Triggering condition

Supports existing resources

Rule name (SettingName)

ECS instance

disk (including data disk and system disk)

  • When attached to an ECS instance, a disk automatically inherits the instance's tags and stays in sync with its tags.

  • When detached from an ECS instance, the system automatically removes the inherited tags from the disk.

Yes

rule:AttachDisk-DetachDisk-TagInstance:Ecs-Instance:Ecs-Disk

elastic network interface (including primary and secondary ENIs)

  • When attached to an ECS instance, an elastic network interface automatically inherits the instance's tags and stays in sync with its tags.

  • When detached from an ECS instance, the system automatically removes the inherited tags from the elastic network interface.

Yes

rule:AttachEni-DetachEni-TagInstance:Ecs-Instance:Ecs-Eni

elastic IP address

  • When associated with an ECS instance, an elastic IP address automatically inherits the instance's tags and stays in sync with its tags.

  • When disassociated from an ECS instance, the system automatically removes the inherited tags from the elastic IP address.

Yes

rule:AssociateEip-UnassociateEip-TagInstance:Ecs-Instance:Vpc-Eip

disk

snapshot

  • When you create a snapshot from a disk, the snapshot automatically inherits the disk's tags.

  • The snapshot's tags stay in sync with the disk's tags.

Yes

rule:CreateSnapshot-TagDisk:Ecs-Disk:Ecs-Snapshot

ApsaraMQ for Kafka instance

topic

  • When you create a topic in an ApsaraMQ for Kafka instance, the topic automatically inherits the instance's tags.

  • The topic's tags stay in sync with the instance's tags.

Yes

rule:CreateTopic-TagKafka:Kafka-Instance:Kafka-Topic

consumer group

  • When you create a consumer group in an ApsaraMQ for Kafka instance, the consumer group automatically inherits the instance's tags.

  • The consumer group's tags stay in sync with the instance's tags.

Yes

rule:CreateConsumerGroup-TagKafka:Kafka-Instance:Kafka-ConsumerGroup

Container Service for Kubernetes (ACK) cluster

security group

The security group's tags stay in sync with the cluster's tags.

No

rule:TagCluster:Cs-Cluster:Ecs-SecurityGroup

ECS instance

  • When a managed ACK cluster is scaled out, the new ECS instances automatically inherit the cluster's tags.

  • The tags of the ECS instances stay in sync with the cluster's tags.

No

rule:CreateInstance-TagCluster:Cs-Cluster:Ecs-Instance

Classic Load Balancer (CLB) instance

The CLB instance's tags stay in sync with the cluster's tags.

No

rule:TagCluster:Cs-Cluster:Slb-Instance

elastic IP address

The elastic IP address's tags stay in sync with the cluster's tags.

No

rule:TagCluster:Cs-Cluster:Vpc-Eip

NAT gateway

The NAT gateway's tags stay in sync with the cluster's tags.

No

rule:TagCluster:Cs-Cluster:Vpc-Natgateway

scaling group

The scaling group's tags stay in sync with the cluster's tags.

No

rule:TagCluster:Cs-Cluster:Ess-ScalingGroup

Classic Load Balancer (CLB) instance

elastic IP address

  • When associated with a CLB instance, an elastic IP address automatically inherits the instance's tags and stays in sync with its tags.

  • When disassociated from a CLB instance, the system automatically removes the inherited tags from the elastic IP address.

Yes

rule:AssociateEip-UnassociateEip-TagSlbInstance:Slb-Instance:Vpc-Eip

Network Load Balancer (NLB) instance

elastic IP address

  • When associated with an NLB instance during an update, an elastic IP address automatically inherits the instance's tags.

  • The elastic IP address's tags stay in sync with the NLB instance's tags.

No

rule:UpdateLoadBalancerZones-UpdateLoadBalancerAddressTypeConfig-TagNlb:Nlb-Loadbalancer:Vpc-Eip

Application Load Balancer (ALB) instance

elastic IP address

  • When associated with an ALB instance during an update, an elastic IP address automatically inherits the instance's tags.

  • The elastic IP address's tags stay in sync with the ALB instance's tags.

No

rule:UpdateLoadBalancerZones-UpdateLoadBalancerAddressTypeConfig-TagAlb:Alb-LoadBalancer:Vpc-Eip

Virtual Private Cloud (VPC) NAT gateway

elastic IP address

  • When associated with a NAT gateway, an elastic IP address automatically inherits the NAT gateway's tags and stays in sync with its tags.

  • When disassociated from a NAT gateway, the system automatically removes the inherited tags from the elastic IP address.

Yes

rule:AssociateEipAddress-UnassociateEipAddress-TagVpc:Vpc-Natgateway:Vpc-Eip

Elastic Container Instance (ECI) container group

elastic IP address

  • When associated with a container group, an elastic IP address automatically inherits the container group's tags and stays in sync with its tags.

  • When disassociated from a container group, the system automatically removes the inherited tags from the elastic IP address.

No

rule:AssociateEip-UnassociateEip-TagEci:Eci-ContainerGroup:Vpc-Eip

Wilayah yang didukung

Tiongkok (Beijing), Tiongkok (Chengdu), Tiongkok (Fuzhou - Local Region) (Dihentikan), Tiongkok (Guangzhou), Tiongkok (Hangzhou), Tiongkok (Heyuan), Tiongkok (Hohhot), Tiongkok (Hong Kong), Tiongkok (Nanjing - Local Region) (Dihentikan), Tiongkok (Qingdao), Tiongkok (Shanghai), Tiongkok (Shenzhen), Tiongkok (Ulanqab), Tiongkok (Zhangjiakou), Jerman (Frankfurt), Indonesia (Jakarta), Jepang (Tokyo), Malaysia (Kuala Lumpur), Filipina (Manila), Singapura, Thailand (Bangkok), Inggris (London), AS (Silicon Valley), dan AS (Virginia).