This topic describes the types of resources that support tag API operations and ARN examples. ARN is short for Alibaba Cloud Resource Name.

An ARN is in the format of arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}. Fields:

  • Service: the code of a cloud service
  • Region: the region ID
  • Account: the ID of an Alibaba Cloud account
  • ResourceType: the resource type
  • ResourceId: the resource ID

Elastic Compute Service

Resource type ARN example
ALIYUN::ECS::INSTANCE arn:acs:ecs:cn-hangzhou:123456789****:instance/i-xxxxxxxxxxxxxx
ALIYUN::ECS::DISK arn:acs:ecs:cn-hangzhou:123456789****:disk/d-xxxxxxxxxxxxxx
ALIYUN::ECS::SNAPSHOT arn:acs:ecs:cn-hangzhou:123456789****:snapshot/s-xxxxxxxxxxxxxx
ALIYUN::ECS::IMAGE arn:acs:ecs:cn-hangzhou:123456789****:image/i-xxxxxxxxxxxxxx
ALIYUN::ECS::SECURITYGROUP arn:acs:ecs:cn-hangzhou:123456789****:securitygroup/sg-xxxxxxxxxxxxxx
ALIYUN::ECS::VOLUME arn:acs:ecs:cn-hangzhou:123456789****:volume/v-xxxxxxxxxxxxxx
ALIYUN::ECS::ENI arn:acs:ecs:cn-hangzhou:123456789****:eni/eni-xxxxxxxxxxxxxx
ALIYUN::ECS::DDH arn:acs:ecs:cn-hangzhou:123456789****:ddh/dh-xxxxxxxxxxxxxx
ALIYUN::ECS::KEYPAIR arn:acs:ecs:cn-hangzhou:123456789****:keypair/keypairName
ALIYUN::ECS::LAUNCHTEMPLAT arn:acs:ecs:cn-hangzhou:123456789****:launchtemplate/lt-xxxxxxxxxxxxxx
ALIYUN::ECS::SNAPSHOTPOLICY arn:acs:ecs:cn-hangzhou:123456789****:snapshotpolicy/sp-xxxxxxxxxxxxxx
ALIYUN::ECS::DDHCLUSTER arn:acs:ecs:cn-hangzhou:123456789****:ddhcluster/dc-xxxxxxxxxxxxxx

Virtual Private Cloud

Resource type ARN example
ALIYUN::VPC::VPC arn:acs:vpc:cn-hangzhou:123456789****:vpc/vpc-xxxxxxxxxxxxxx
ALIYUN::VPC::VSWTICH arn:acs:vpc:cn-hangzhou:123456789****:vswitch/vsw-xxxxxxxxxxxxxx
ALIYUN::VPC::ROUTETABLE arn:acs:vpc:cn-hangzhou:123456789****:routetable/vtb-xxxxxxxxxxxxxx
ALIYUN::VPC::EIP arn:acs:vpc:cn-hangzhou:123456789****:eip/eip-xxxxxxxxxxxxxx
ALIYUN::VPC::COMMONBANDWIDTHPACKAGE arn:acs:vpc:cn-hangzhou:123456789****:commonbandwidthpackage/cbwp-xxxxxxxxxxxxxx
ALIYUN::VPC::NATGATEWAY arn:acs:vpc:cn-hangzhou:123456789****:natgateway/ngw-xxxxxxxxxxxxxx
ALIYUN::VPC::IPV6GATEWAY arn:acs:vpc:cn-hangzhou:123456789****:ipv6gateway/xxxxxxxxxxxxxx
ALIYUN::VPC::IPV6INSTANCE arn:acs:vpc:cn-hangzhou:123456789****:ipv6instance/xxxxxxxxxxxxxx
ALIYUN::VPC::VPNGATEWAY arn:acs:vpc:cn-hangzhou:123456789****:vpngateway/xxxxxxxxxxxxxx
ALIYUN::VPC::IPV6BANDWIDTH arn:acs:vpc:cn-hangzhou:123456789****:ipv6bandwidth/xxxxxxxxxxxxxx

Server Load Balancer

Resource type ARN example
ALIYUN::SLB::INSTANCE arn:acs:slb:cn-hangzhou:123456789****:instance/lb-xxxxxxxxxxxxxx
ALIYUN::SLB::ACL arn:acs:slb:cn-hangzhou:123456789****:acl/acl-xxxxxxxxxxxxxx
ALIYUN::SLB::CERTIFICATE arn:acs:slb:cn-hangzhou:123456789****:certificate/xxxxxxxxxxxxxx

ApsaraDB for RDS

Resource type ARN example
ALIYUN::RDS::INSTANCE arn:acs:rds:cn-hangzhou:123456789****:instance/rm-xxxxxxxxxxxxxx

API Gateway

Resource type ARN example
ALIYUN::APIGATEWAY::APP arn:acs:apigateway:cn-hangzhou:123456789****:app/110599205xx
ALIYUN::APIGATEWAY::APIGROU arn:acs:apigateway:cn-hangzhou:123456789****:apigroup/ea599205xx
ALIYUN::APIGATEWAY::PLUGIN arn:acs:apigateway:cn-hangzhou:123456789****:plugin/11270d534xxxx
ALIYUN::APIGATEWAY::INSTANCE arn:acs:apigateway:cn-hangzhou:123456789****:instance/apigateway-cn-xx
ALIYUN::APIGATEWAY::API arn:acs:apigateway:cn-hangzhou:123456789****:api/110599205xx

Message Queue for Apache Kafka

Resource type ARN example
ALIYUN::ALIKAFKA::INSTANCE arn:acs:alikafka:cn-hangzhou:123456789****:instance/xxxxx
ALIYUN::ALIKAFKA::TOPIC arn:acs:alikafka:cn-hangzhou:123456789****:topic/xxxxx
ALIYUN::ALIKAFKA::CONSUMERGROUP arn:acs:alikafka:cn-hangzhou:123456789****:consumergroup/xxxxx

Resource Orchestration Service

Resource type ARN example
ALIYUN::ROS::STACK arn:acs:ros:cn-hangzhou:123456789****:stack/xxxxxx
ALIYUN::ROS::TEMPLATE arn:acs:ros:cn-hangzhou:123456789****:template/xxxx

Alibaba Cloud DNS

Resource type ARN example
ALIYUN::ALIDNS::DOMAIN arn:acs:alidns:cn-hangzhou:123456789****:domain/xxxxx

Auto Scaling

Resource type ARN example
ALIYUN::ESS::SCALINGGROUP arn:acs:ess:cn-hangzhou:123456789****:scalinggroup/asg-xxxxx

Server Migration Center

Resource type ARN example
ALIYUN::SMC::SOURCESERVER arn:acs:smc:cn-hangzhou:123456789****:sourceserver/s-xxxx
ALIYUN::SMC::REPLICATIONJOB arn:acs:smc:cn-hangzhou:123456789****:replicationjob/j-xxxxx

PolarDB

Resource type ARN example
ALIYUN::POLARDB::CLUSTER arn:acs:polardb:cn-hangzhou:123456789****:cluster/pc-bp1tt38xxx

ApsaraDB for Redis

Resource type ARN example
ALIYUN::KVSTORE::INSTANCE arn:acs:kvstore:cn-hangzhou:123456789****:instance/m-bp11fxxx

ApsaraDB for MongoDB

Resource type ARN example
ALIYUN::DDS::INSTANCE arn:acs:dds:cn-hangzhou:123456789****:instance/dds-uf6ab1exxxx

SSL Certificates Service

Resource type ARN example
ALIYUN::CAS::INSTANCE arn:acs:cas:cn-hangzhou:123456789****:instance/cas-cn-oew1xxx

Bastionhost

Resource type ARN example
ALIYUN::BASTIONHOST::INSTANCE arn:acs:bastionhost:cn-hangzhou:123456789****:instance/bastionhost-cn-0pxx

Elasticsearch

Resource type ARN example
ALIYUN::ELASTICSEARCH::INSTANCE arn:acs:elasticsearch:cn-hangzhou:123456789****:instance/es-cn-4591mxxxx

Object Storage Service

Resource type ARN example
ALIYUN::OSS::BUCKET arn:acs:oss:cn-hangzhou:123456789****:bucket/my-bucket-name-xxx

Smart Access Gateway

Resource type ARN example
ALIYUN::SAG::CCN arn:acs:sag:cn-shanghai:123456789xxxxxxx:ccn/ccn-xxxx

Anti-DDoS Pro

Resource type ARN example
ALIYUN::DDOSCOO::INSTANCE arn:acs:ddoscoo:cn-shanghai:123456789xxxxxxx:instance/ddoscoo-cn-xxxx

Anti-DDoS Origin Basic

Resource type ARN example
ALIYUN::DDOSBGP::INSTANCE arn:acs:ddosbgp:cn-shanghai:123456789xxxxxxx:instance/ddosbgp-cn-xxxx

Distributed Relational Database Service

Resource type ARN example
ALIYUN::DRDS::INSTANCE arn:acs:drds:cn-shanghai:123456789xxxxxxx:instance/drdsxxxxx

AnalyticDB for PostgreSQL

Resource type ARN example
ALIYUN::GPDB::INSTANCE arn:acs:gpdb:cn-shanghai:123456789xxxxxxx:instance/gp-xxxxx

Cloud Enterprise Network

Resource type ARN example
ALIYUN::CEN::CEN arn:acs:cen:cn-shanghai:123456789xxxxxxx:cen/cen-xxxxx

AnalyticDB for MySQL

Resource type ARN example
ALIYUN::ADB::CLUSTER arn:acs:adb:cn-shanghai:123456789xxxxxxx:cluster/am-xxxxx

Cloud Storage Gateway

Resource type ARN example
ALIYUN::HCS_SGW::GATEWAY arn:acs:hcs_sgw:cn-shanghai:123456789xxxxxxx:gateway/gw-xxxxx

Image Search

Resource type ARN example
ALIYUN::IMAGESEARCH::INSTANCE arn:acs:imagesearch:cn-shanghai:123456789xxxxxxx:instance/xxx
Note The last field xxx indicates the name of an Image Search instance.

Alibaba Cloud CDN

Resource type ARN example
ALIYUN::CDN::DOMAIN arn:acs:cdn:cn-hangzhou:123456789xxxxxxx:domain/aaaaa.xxxxexam.cn

Operation Orchestration Service

Resource type ARN example
ALIYUN::OOS::TEMPLATE arn:acs:oos:cn-hangzhou:123456789xxxxxxx:template/template_name
ALIYUN::OOS::EXECUTION arn:acs:oos:cn-hangzhou:123456789xxxxxxx:execution/exec-xxxxxx