本文为您提供标签API支持的资源类型和对应ARN示例。

资源ARN的格式为arn:acs:${Service}:${Region}:${Account}:${ResourceType}/${ResourceId}。各字段含义如下:

  • Service:云服务code。
  • Region:地域ID。
    说明 支持使用星号(*)表示当前地域。
  • Account:阿里云账号ID。
    说明 支持使用星号(*)表示当前登录的阿里云账号。
  • ResourceType:资源类型。
  • ResourceId:资源ID。

云服务器ECS

资源类型 ARN示例
ALIYUN::ECS::INSTANCE arn:acs:ecs:cn-hangzhou:123456789xxxxxxx:instance/i-xxxxxxxxxxxxxx
ALIYUN::ECS::DISK arn:acs:ecs:cn-hangzhou:123456789xxxxxxx:disk/d-xxxxxxxxxxxxxx
ALIYUN::ECS::SNAPSHOT arn:acs:ecs:cn-hangzhou:123456789xxxxxxx:snapshot/s-xxxxxxxxxxxxxx
ALIYUN::ECS::IMAGE arn:acs:ecs:cn-hangzhou:123456789xxxxxxx:image/i-xxxxxxxxxxxxxx
ALIYUN::ECS::SECURITYGROUP arn:acs:ecs:cn-hangzhou:123456789xxxxxxx:securitygroup/sg-xxxxxxxxxxxxxx
ALIYUN::ECS::VOLUME arn:acs:ecs:cn-hangzhou:123456789xxxxxxx:volume/v-xxxxxxxxxxxxxx
ALIYUN::ECS::ENI arn:acs:ecs:cn-hangzhou:123456789xxxxxxx:eni/eni-xxxxxxxxxxxxxx
ALIYUN::ECS::DDH arn:acs:ecs:cn-hangzhou:123456789xxxxxxx:ddh/dh-xxxxxxxxxxxxxx
ALIYUN::ECS::KEYPAIR arn:acs:ecs:cn-hangzhou:123456789xxxxxxx:keypair/keypairName
ALIYUN::ECS::LAUNCHTEMPLATE arn:acs:ecs:cn-hangzhou:123456789xxxxxxx:launchtemplate/lt-xxxxxxxxxxxxxx
ALIYUN::ECS::SNAPSHOTPOLICY arn:acs:ecs:cn-hangzhou:123456789xxxxxxx:snapshotpolicy/sp-xxxxxxxxxxxxxx
ALIYUN::ECS::DDHCLUSTER arn:acs:ecs:cn-hangzhou:123456789xxxxxxx:ddhcluster/dc-xxxxxxxxxxxxxx

专有网络VPC

资源类型 ARN示例
ALIYUN::VPC::VPC arn:acs:vpc:cn-hangzhou:123456789xxxxxxx:vpc/vpc-xxxxxxxxxxxxxx
ALIYUN::VPC::VSWTICH arn:acs:vpc:cn-hangzhou:123456789xxxxxxx:vswitch/vsw-xxxxxxxxxxxxxx
ALIYUN::VPC::ROUTETABLE arn:acs:vpc:cn-hangzhou:123456789xxxxxxx:routetable/vtb-xxxxxxxxxxxxxx
ALIYUN::VPC::EIP arn:acs:vpc:cn-hangzhou:123456789xxxxxxx:eip/eip-xxxxxxxxxxxxxx
ALIYUN::VPC::COMMONBANDWIDTHPACKAGE arn:acs:vpc:cn-hangzhou:123456789xxxxxxx:commonbandwidthpackage/cbwp-xxxxxxxxxxxxxx
ALIYUN::VPC::NATGATEWAY arn:acs:vpc:cn-hangzhou:123456789xxxxxxx:natgateway/ngw-xxxxxxxxxxxxxx
ALIYUN::VPC::IPV6GATEWAY arn:acs:vpc:cn-hangzhou:123456789xxxxxxx:ipv6gateway/xxxxxxxxxxxxxx
ALIYUN::VPC::IPV6INSTANCE arn:acs:vpc:cn-hangzhou:123456789xxxxxxx:ipv6instance/xxxxxxxxxxxxxx
ALIYUN::VPC::VPNGATEWAY arn:acs:vpc:cn-hangzhou:123456789xxxxxxx:vpngateway/xxxxxxxxxxxxxx
ALIYUN::VPC::IPV6BANDWIDTH arn:acs:vpc:cn-hangzhou:123456789xxxxxxx:ipv6bandwidth/xxxxxxxxxxxxxx

负载均衡SLB

资源类型 ARN示例
ALIYUN::SLB::INSTANCE arn:acs:slb:cn-hangzhou:123456789xxxxxxx:instance/lb-xxxxxxxxxxxxxx
ALIYUN::SLB::ACL arn:acs:slb:cn-hangzhou:123456789xxxxxxx:acl/acl-xxxxxxxxxxxxxx
ALIYUN::SLB::CERTIFICATE arn:acs:slb:cn-hangzhou:123456789xxxxxxx:certificate/xxxxxxxxxxxxxx

云数据库RDS

资源类型 ARN示例
ALIYUN::RDS::INSTANCE arn:acs:rds:cn-hangzhou:123456789xxxxxxx:instance/rm-xxxxxxxxxxxxxx

API网关

资源类型 ARN示例
ALIYUN::APIGATEWAY::APP arn:acs:apigateway:cn-hangzhou:123456789xxxxxxx:app/110599205xx
ALIYUN::APIGATEWAY::APIGROUP arn:acs:apigateway:cn-hangzhou:123456789xxxxxxx:apigroup/ea599205xx
ALIYUN::APIGATEWAY::PLUGIN arn:acs:apigateway:cn-hangzhou:123456789xxxxxxx:plugin/11270d534xxxx
ALIYUN::APIGATEWAY::INSTANCE arn:acs:apigateway:cn-hangzhou:123456789xxxxxxx:instance/apigateway-cn-xx
ALIYUN::APIGATEWAY::API arn:acs:apigateway:cn-hangzhou:123456789xxxxxxx:api/110599205xx

消息队列Kafka版

资源类型 ARN示例
ALIYUN::ALIKAFKA::INSTANCE arn:acs:alikafka:cn-hangzhou:123456789xxxxxxx:instance/xxxxx
ALIYUN::ALIKAFKA::TOPIC arn:acs:alikafka:cn-hangzhou:123456789xxxxxxx:topic/xxxxx
ALIYUN::ALIKAFKA::CONSUMERGROUP arn:acs:alikafka:cn-hangzhou:123456789xxxxxxx:consumergroup/xxxxx

资源编排ROS

资源类型 ARN示例
ALIYUN::ROS::STACK arn:acs:ros:cn-hangzhou:123456789xxxxxxx:stack/xxxxxx
ALIYUN::ROS::TEMPLATE arn:acs:ros:cn-hangzhou:123456789xxxxxxx:template/xxxx

云解析DNS

资源类型 ARN示例
ALIYUN::ALIDNS::DOMAIN arn:acs:alidns:cn-hangzhou:123456789xxxxxxx:domain/xxxxx

弹性伸缩

资源类型 ARN示例
ALIYUN::ESS::SCALINGGROUP arn:acs:ess:cn-hangzhou:123456789xxxxxxx:scalinggroup/asg-xxxxx

服务器迁移中心SMC

资源类型 ARN示例
ALIYUN::SMC::SOURCESERVER arn:acs:smc:cn-hangzhou:123456789xxxxxxx:sourceserver/s-xxxx
ALIYUN::SMC::REPLICATIONJOB arn:acs:smc:cn-hangzhou:123456789xxxxxxx:replicationjob/j-xxxxx

云数据库PolarDB

资源类型 ARN示例
ALIYUN::POLARDB::CLUSTER arn:acs:polardb:cn-hangzhou:123456789xxxxxxx:cluster/pc-bp1tt38xxx

云数据库Redis

资源类型 ARN示例
ALIYUN::KVSTORE::INSTANCE arn:acs:kvstore:cn-hangzhou:123456789xxxxxxx:instance/m-bp11fxxx

云数据库MongoDB

资源类型 ARN示例
ALIYUN::DDS::INSTANCE arn:acs:dds:cn-hangzhou:123456789xxxxxxx:instance/dds-uf6ab1exxxx

SSL证书

资源类型 ARN示例
ALIYUN::CAS::INSTANCE arn:acs:cas:cn-hangzhou:123456789xxxxxxx:instance/cas-cn-oew1xxx

堡垒机

资源类型 ARN示例
ALIYUN::BASTIONHOST::INSTANCE arn:acs:bastionhost:cn-hangzhou:123456789xxxxxxx:instance/bastionhost-cn-0pxx

阿里云Elasticsearch

资源类型 ARN示例
ALIYUN::ELASTICSEARCH::INSTANCE arn:acs:elasticsearch:cn-hangzhou:123456789xxxxxxx:instance/es-cn-4591mxxxx

对象存储OSS

资源类型 ARN示例
ALIYUN::OSS::BUCKET arn:acs:oss:cn-hangzhou:123456789xxxxxxx:bucket/my-bucket-name-xxx

DDoS高防(新BGP)

资源类型 ARN示例
ALIYUN::DDOSCOO::INSTANCE arn:acs:ddoscoo:cn-shanghai:123456789xxxxxxx:instance/ddoscoo-cn-xxxx

DDoS原生防护基础版

资源类型 ARN示例
ALIYUN::DDOSBGP::INSTANCE arn:acs:ddosbgp:cn-shanghai:123456789xxxxxxx:instance/ddosbgp-cn-xxxx

分布式关系型数据库DRDS

资源类型 ARN示例
ALIYUN::DRDS::INSTANCE arn:acs:drds:cn-shanghai:123456789xxxxxxx:instance/drdsxxxxx

云原生数据仓库AnalyticDB PostgreSQL版

资源类型 ARN示例
ALIYUN::GPDB::INSTANCE arn:acs:gpdb:cn-shanghai:123456789xxxxxxx:instance/gp-xxxxx

云企业网

资源类型 ARN示例
ALIYUN::CEN::CEN arn:acs:cen:cn-shanghai:123456789xxxxxxx:cen/cen-xxxxx

区块链服务BaaS

资源类型 ARN示例
ALIYUN::BAAS::ORGANIZATION arn:acs:baas:cn-shanghai:123456789xxxxxxx:organization/peers-xxx-xxxxx
ALIYUN::BAAS::CONSORTIUM arn:acs:baas:cn-shanghai:123456789xxxxxxx:consortium/consortium-xx-xx

云原生数据仓库AnalyticDB MySQL版

资源类型 ARN示例
ALIYUN::ADB::CLUSTER arn:acs:adb:cn-shanghai:123456789xxxxxxx:cluster/am-xxxxx

云存储网关

资源类型 ARN示例
ALIYUN::HCS_SGW::GATEWAY arn:acs:hcs_sgw:cn-shanghai:123456789xxxxxxx:gateway/gw-xxxxx

图像搜索

资源类型 ARN示例
ALIYUN::IMAGESEARCH::INSTANCE arn:acs:imagesearch:cn-shanghai:123456789xxxxxxx:instance/xxx
说明 最后一个字段(xxx)为图像搜索实例名称。

CDN

资源类型 ARN示例
ALIYUN::CDN::DOMAIN arn:acs:cdn:cn-hangzhou:123456789xxxxxxx:domain/aaaaa.xxxxexam.cn

运维编排服务

资源类型 ARN示例
ALIYUN::OOS::TEMPLATE arn:acs:oos:cn-hangzhou:123456789xxxxxxx:template/template_name
ALIYUN::OOS::EXECUTION arn:acs:oos:cn-hangzhou:123456789xxxxxxx:execution/exec-xxxxxx

云数据库HBase

资源类型 ARN示例
ALIYUN::MULTIMOD::CLUSTER arn:acs:multimod:cn-zhangjiakou:123456789xxxxxxx:cluster/hb-8vxxxx

数据库审计

资源类型 ARN示例
ALIYUN::DBAUDIT::INSTANCE arn:acs:dbaudit:cn-hangzhou:123456789xxxxxxx:instance/dbaudit-cn-xxxxx

文件存储NAS

资源类型 ARN示例
ALIYUN::NAS::FILESYSTEM arn:acs:nas:cn-hangzhou::123456789xxxxxxx:filesystem/1993fc4xxxx

E-MapReduce

资源类型 ARN示例
ALIYUN::EMR::CLUSTER arn:acs:emr:cn-hangzhou::123456789xxxxxxx:cluster/C-157A0610Cxxxx

消息队列RocketMQ版

资源类型 ARN示例
ALIYUN::MQ::INSTANCE arn:acs:mq:cn-hangzhou::123456789xxxxxxx:instance/MQ_INST_18eexxxx

数据传输服务DTS

资源类型 ARN示例
ALIYUN::DTS::INSTANCE arn:acs:dts:cn-hangzhou::123456789xxxxxxx:instance/dtsez811qhcxxxxx

视频点播

资源类型 ARN示例
ALIYUN::VOD::DOMAIN arn:acs:vod:cn-shanghai::123456789xxxxxxx:domain/testxxxx.taobao.com

漏洞扫描

资源类型 ARN示例
ALIYUN::AVDS::ASSETS arn:acs:avds:cn-shanghai::123456789xxxxxxx:assets/testxxxx.taobao.com

全站加速

资源类型 ARN示例
ALIYUN::DCDN::DOMAIN arn:acs:dcdn:cn-hangzhou::123456789xxxxxxx:domain/testxxxx.taobao.com

实时计算Flink版

资源类型 ARN示例
ALIYUN::SCBLINKONECS::CLUSTER arn:acs:scblinkonecs:cn-hangzhou::123456789xxxxxxx:cluster/blinkonecs_post-cn-st21xxxxx

容器服务Kubernetes版

资源类型 ARN示例
ALIYUN::CS::CLUSTER arn:acs:cs:cn-hangzhou:123456789xxxxxxx:cluster/cc5b5364662424e3ba2xxxx

函数计算

资源类型 ARN示例
ALIYUN::FC::SERVICE arn:acs:fc:cn-hangzhou:123456789xxxxxxx:service/test