本文为您提供标签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: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

专有网络VPC

资源类型 ARN示例
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

负载均衡SLB

资源类型 ARN示例
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

云数据库RDS

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

API网关

资源类型 ARN示例
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

消息队列Kafka版

资源类型 ARN示例
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

资源编排ROS

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

云解析DNS

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

弹性伸缩

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

服务器迁移中心SMC

资源类型 ARN示例
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

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

云数据库Redis

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

云数据库MongoDB

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

SSL证书

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

堡垒机

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

阿里云Elasticsearch

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

对象存储OSS

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

智能接入网关

资源类型 ARN示例
ALIYUN::SAG::CCN arn:acs:sag:cn-shanghai:123456789xxxxxxx:ccn/ccn-xxxx

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