授权信息

访问控制(RAM)是阿里云提供的管理用户身份与资源访问权限的服务。使用RAM可以让您避免与其他用户共享阿里云账号密钥,并可按需为用户授予最小权限。RAM中使用权限策略描述授权的具体内容。
本文为您介绍专有网络VPC(VPC)为RAM权限策略定义的操作(Action)、资源(Resource)和条件(Condition)。专有网络VPC(VPC)的RAM代码(RamCode)为vpc,支持的授权粒度为RESOURCE

权限策略通用结构

权限策略支持JSON格式,其通用结构如下:
{
  "Version": "1",
  "Statement": [
    {
      "Effect": "<Effect>",
      "Action": "<Action>",
      "Resource": "<Resource>",
      "Condition": {
        "<Condition_operator>": {
          "<Condition_key>": [
            "<Condition_value>"
          ]
        }
      }
    }
  ]
}
各字段含义如下:
  • Effect:权限策略效果。取值:Allow(允许)、Deny(拒绝)。
  • Action:授予允许或拒绝权限的具体操作。具体信息,请参见操作(Action)
  • Resource:受操作影响的具体对象,您可以使用资源ARN来描述指定资源。具体信息,请参见资源(Resource)
  • Condition:指授权生效的条件。可选字段。具体信息,请参见条件(Condition)
    • Condition_operator:条件运算符,不同类型的条件对应不同的条件运算符。具体信息,请参见权限策略基本元素
    • Condition_key:条件关键字。
    • Condition_value:条件关键字对应的值。

操作(Action)

下表是专有网络VPC(VPC)定义的操作,这些操作可以在RAM权限策略语句的Action元素中使用,用来授予执行该操作的权限。下面对表中的具体项提供说明:
  • 操作:是指具体的权限点。
  • API:是指操作对应的API接口。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。该列不体现适用于任何操作的通用条件关键字
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作API访问级别资源类型条件关键字关联操作
vpc:DescribeAccessPointsDescribeAccessPointsget
全部资源
*
vpc:ModifyExpressConnectTrafficQosQueueModifyExpressConnectTrafficQosQueueupdate
全部资源
*
vpc:DescribeVirtualBorderRoutersForPhysicalConnectionDescribeVirtualBorderRoutersForPhysicalConnectionlist
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
vpc:PhysicalConnection
vpc:DescribeRouteEntryListDescribeRouteEntryListget
RouteTable
acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}
vpc:DeactivateRouterInterfaceDeactivateRouterInterfaceupdate
RouterInterface
acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}
vpc:DescribeEcGrantRelationDescribeEcGrantRelationlist
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
vpc:DescribeRouterInterfaceAttributeDescribeRouterInterfaceAttributeget
RouterInterface
acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}
vpc:DeleteExpressConnectTrafficQosRuleDeleteExpressConnectTrafficQosRuledelete
全部资源
*
vpc:CreatePhysicalConnectionOccupancyOrderCreatePhysicalConnectionOccupancyOrdercreate
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
vpc:DeletePhysicalConnectionDeletePhysicalConnectiondelete
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
vpc:ActivateRouterInterfaceActivateRouterInterfaceupdate
RouterInterface
acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}
vpc:ConfirmPhysicalConnectionConfirmPhysicalConnectionget
PhysicalConnection
acs:vpc:{#regionid}:{#accountid}:physicalconnection/{#PhysicalConnectionId}
vpc:CreateExpressConnectTrafficQosQueueCreateExpressConnectTrafficQosQueuecreate
全部资源
*
vpc:DeleteBgpPeerDeleteBgpPeerdelete
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
vpc:RevokeInstanceFromVbrRevokeInstanceFromVbrupdate
VPC
acs:vpc:{#regionId}:{#AccountId}:vpc/{#VpcId}
vpc:ListGeographicSubRegionsListGeographicSubRegionslist
全部资源
*
vpc:AttachVbrToVpconnAttachVbrToVpconnupdate
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#virtualborderrouterId}
vpc:UntagResourcesForExpressConnectUntagResourcesForExpressConnectupdate
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
RouterInterface
acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}
vpc:DescribeFailoverTestJobDescribeFailoverTestJobget
全部资源
*
vpc:DescribeExpressConnectTrafficQosRuleDescribeExpressConnectTrafficQosRulelist
全部资源
*
vpc:DescribePhysicalConnectionsDescribePhysicalConnectionslist
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/*
vpc:UpdateVirtualPhysicalConnectionUpdateVirtualPhysicalConnectionupdate
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#physicalconnectionId}
vpc:ModifyPhysicalConnectionAttributeModifyPhysicalConnectionAttributeupdate
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
vpc:DescribeTagKeysForExpressConnectDescribeTagKeysForExpressConnectlist
PhysicalConnection
acs:vpc:{#regionId}:{#AccountId}:physicalconnection/{#PhysicalConnectionId}
RouterInterface
acs:vpc:{#regionId}:{#AccountId}:routerinterface/{#RouterInterfaceId}
VirtualBorderRouter
acs:vpc:{#regionId}:{#AccountId}:virtualborderrouter/{#VbrId}
vpc:ListVirtualPhysicalConnectionsListVirtualPhysicalConnectionslist
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
vpc:CreateVirtualPhysicalConnectionCreateVirtualPhysicalConnectioncreate
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#physicalconnectionId}
vpc:DescribePhysicalConnectionLOADescribePhysicalConnectionLOAget
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
vpc:RecoverPhysicalConnectionRecoverPhysicalConnectionupdate
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#physicalconnectionId}
vpc:DescribeVbrHaDescribeVbrHaget
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
vpc:CompletePhysicalConnectionLOACompletePhysicalConnectionLOAupdate
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
vpc:DescribeBgpPeersDescribeBgpPeersget
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
vpc:CreatePhysicalConnectionCreatePhysicalConnectioncreate
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/*
vpc:CancelPhysicalConnectionCancelPhysicalConnectionupdate
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
vpc:ApplyPhysicalConnectionLOAApplyPhysicalConnectionLOAupdate
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
vpc:ConnectRouterInterfaceConnectRouterInterfaceupdate
RouterInterface
acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}
vpc:TagResourcesForExpressConnectTagResourcesForExpressConnectupdate
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
RouterInterface
acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}
vpc:DeleteBgpGroupDeleteBgpGroupdelete
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
vpc:DeleteRouterInterfaceDeleteRouterInterfacedelete
RouterInterface
acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}
vpc:GrantInstanceToVbrGrantInstanceToVbrupdate
VPC
acs:vpc:{#regionId}:{#AccountId}:vpc/{#VpcId}
vpc:DeleteBgpNetworkDeleteBgpNetworkdelete
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
vpc:ModifyExpressConnectTrafficQosRuleModifyExpressConnectTrafficQosRuleupdate
全部资源
*
vpc:TerminateVirtualBorderRouterTerminateVirtualBorderRouterupdate
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
vpc:CreateFailoverTestJobCreateFailoverTestJobcreate
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
vpc:CreateVpconnFromVbrCreateVpconnFromVbrcreate
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#virtualborderrouterId}
vpc:DeleteRouteEntryDeleteRouteEntrydelete
RouteTable
acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}
vpc:GetPhysicalConnectionServiceStatusGetPhysicalConnectionServiceStatusget
全部资源
*
vpc:DescribeFailoverTestJobsDescribeFailoverTestJobslist
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
vpc:DeleteExpressConnectTrafficQosDeleteExpressConnectTrafficQosdelete
全部资源
*
vpc:CreateBgpGroupCreateBgpGroupcreate
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
vpc:StopFailoverTestJobStopFailoverTestJobupdate
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
vpc:RecoverVirtualBorderRouterRecoverVirtualBorderRouterupdate
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
vpc:UpdateVirtualBorderBandwidthUpdateVirtualBorderBandwidthupdate
VirtualBorderRouter
acs:vpc:*:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
vpc:DeleteVbrHaDeleteVbrHadelete
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
vpc:AddBgpNetworkAddBgpNetworkget
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
vpc:AssociatePhysicalConnectionToVirtualBorderRouterAssociatePhysicalConnectionToVirtualBorderRouterupdate
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
vpc:ChangeResourceGroupChangeResourceGroupupdate
PhysicalConnection
acs:vpc:*:{#accountId}:physicalconnection/{#PhysicalConnectionId}
VirtualBorderRouter
acs:vpc:*:{#AccountId}:virtualborderrouter/{#VbrId}
RouterInterface
acs:vpc:*:{#AccountId}:routerinterface/{#RouterInterfaceId}
vpc:ModifyRouterInterfaceSpecModifyRouterInterfaceSpecupdate
RouterInterface
acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}
vpc:ModifyBgpPeerAttributeModifyBgpPeerAttributeupdate
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
vpc:CreatePhysicalConnectionSetupOrderCreatePhysicalConnectionSetupOrdercreate
全部资源
*
vpc:ListTagResourcesForExpressConnectListTagResourcesForExpressConnectlist
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
VirtualBorderRouter
acs:vpc:{#regionId}:{#AccountId}:virtualborderrouter/{#VbrId}
RouterInterface
acs:vpc:{#regionId}:{#AccountId}:routerinterface/{#RouterInterfaceId}
vpc:CreateRouterInterfaceCreateRouterInterfacecreate
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
RouterInterface
acs:vpc:{#regionId}:{#accountId}:routerinterface/*
vpc:TargetAccountRDId
vpc:DescribeVirtualBorderRoutersDescribeVirtualBorderRouterslist
VirtualBorderRouter
acs:vpc:{#regionId}:{#AccountId}:virtualborderrouter/{#VbrId}
vpc:OpenPhysicalConnectionServiceOpenPhysicalConnectionServicecreate
全部资源
*
vpc:DescribeBgpGroupsDescribeBgpGroupsget
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
vpc:DeleteVirtualBorderRouterDeleteVirtualBorderRouterdelete
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
vpc:ModifyBgpGroupAttributeModifyBgpGroupAttributeupdate
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
vpc:UpdateFailoverTestJobUpdateFailoverTestJobupdate
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
vpc:CreateExpressConnectTrafficQosCreateExpressConnectTrafficQoscreate
TrafficQos
acs:vpc:{#regionId}:{#accountId}:TrafficQos/*
vpc:DeleteFailoverTestJobDeleteFailoverTestJobdelete
全部资源
*
vpc:SecondApplyPhysicalConnectionLOASecondApplyPhysicalConnectionLOAnone
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
vpc:ModifyRouteEntryModifyRouteEntryupdate
RouteTable
acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}
vpc:DeleteExpressConnectTrafficQosQueueDeleteExpressConnectTrafficQosQueuedelete
全部资源
*
vpc:CreateVbrHaCreateVbrHacreate
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
vpc:CreateHighReliablePhysicalConnectionCreateHighReliablePhysicalConnectioncreate
全部资源
*
vpc:DescribeRouterInterfacesDescribeRouterInterfaceslist
RouterInterface
acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}
vpc:EnablePhysicalConnectionEnablePhysicalConnectionupdate
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
vpc:UnassociatePhysicalConnectionFromVirtualBorderRouterUnassociatePhysicalConnectionFromVirtualBorderRouterupdate
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
vpc:DescribeBgpNetworksDescribeBgpNetworksget
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
vpc:ListBusinessAccessPointsListBusinessAccessPointslist
全部资源
*
vpc:ModifyExpressConnectTrafficQosModifyExpressConnectTrafficQosupdate
全部资源
*
vpc:ModifyVirtualBorderRouterAttributeModifyVirtualBorderRouterAttributeupdate
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
vpc:DescribeExpressConnectTrafficQosQueueDescribeExpressConnectTrafficQosQueuelist
全部资源
*
vpc:CreateVirtualBorderRouterCreateVirtualBorderRoutercreate
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
VirtualBorderRouter
acs:vpc:{#regionId}:{#AccountId}:virtualborderrouter/*
vpc:CreateBgpPeerCreateBgpPeercreate
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
vpc:CreateExpressConnectTrafficQosRuleCreateExpressConnectTrafficQosRulecreate
全部资源
*
vpc:ModifyRouterInterfaceAttributeModifyRouterInterfaceAttributeupdate
RouterInterface
acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}
vpc:TargetAccountRDId
vpc:DescribeExpressConnectTrafficQosDescribeExpressConnectTrafficQoslist
TrafficQos
acs:vpc:{#regionId}:{#accountId}:TrafficQos/*
vpc:StartFailoverTestJobStartFailoverTestJobupdate
全部资源
*
vpc:CreateRouteEntryCreateRouteEntrycreate
RouteTable
acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}
vpc:TerminatePhysicalConnectionTerminatePhysicalConnectionupdate
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}

资源(Resource)

下表是专有网络VPC(VPC)定义的资源,这些资源可以在RAM权限策略语句的Resource元素中使用,用来授予对该资源执行具体操作的权限。 其中,资源ARN是资源在阿里云上的唯一标识。具体说明如下:
  • {#}为变量标识,需要您替换为实际值。例如:{#ramcode}需要您替换为实际的云服务RAM代码。
  • *表示全部。例如:
    • {#resourceType}*时:表示全部资源。
    • {#regionId}*时:表示全部地域。
    • {#accountId}*时:表示全部阿里云账号。
资源类型资源ARN
RouterInterfaceacs:vpc:*:{#accountId}:routerinterface/*
RouteTableacs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}
TrafficMirrorSessionacs:vpc:{#regionId}:{#accountId}:trafficmirrorsession/{#TrafficMirrorSessionId}
GatewayEndpointacs:vpc:{#regionId}:{#accountId}:gatewayendpoint/{#GatewayEndpointId}
VpnGatewayacs:vpc:{#regionId}:{#accountId}:vpngateway/{#VpnGatewayId}
VSwitchacs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId}
HaVipacs:vpc:{#regionId}:{#accountId}:havip/{#HaVipId}
GatewayEndpointacs:vpc:{#regionId}:{#accountId}:gatewayendpoint/*
TrafficQosacs:vpc:{#regionId}:{#accountId}:TrafficQos/*
Ipv6Translatoracs:vpc:{#regionId}:{#accountId}:ipv6trans/{#Ipv6TranslatorId}
Instanceacs:ecs:{#regionId}:{#accountId}:instance/{#Instanceid}
GlobalAccelerationInstanceacs:vpc:{#regionId}:{#accountId}:globalaccelerationinstance/*
DhcpOptionsSetacs:vpc:{#regionId}:{#accountId}:dhcpoptionsset/{#DhcpOptionsSetId}
VPCacs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}
SslVpnClientCertacs:vpc:{#regionId}:{#accountId}:sslvpnclientcert/{#SslVpnClientCertId}
VPCacs:vpc:{#regionId}:{#accountId}:vpc/*
Addressacs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId}
SnatEntryacs:vpc:{#regionId}:{#accountId}:snattable/*
PhysicalConnectionacs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
RouterInterfaceacs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}
VSwitchCidrReservationacs:vpc:{#regionId}:{#accountId}:vswitchcidrreservation/*
VSwitchacs:vpc:{#regionid}:{#accountId}:vswitch/*
VirtualBorderRouteracs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
IpsecServeracs:vpc:{#Region}:{#AccountId}: vpnipsecserver/{#IpsecServerId}
VpnGatewayacs:vpc:{#Region}:{#AccountId}:vpngateway/{#VpnInstanceId}
VpnConnectionacs:vpc:{#regionId}:{#accountId}:*
FlowLogacs:vpc:{#regionId}:{#accountId}:flowlog/{#FlowLogId}
VirtualBorderRouteracs:expressconnect:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
Ipv6Translatoracs:vpc:{#regionId}:{#accountId}:ipv6trans/*
PrefixListacs:vpc:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}
GlobalAccelerationInstanceacs:vpc:{#regionId}:{#accountId}:globalaccelerationinstance/{#GlobalAccelerationInstanceId}
PublicIpAddressPoolServiceacs:vpc:{#regionId}:{#accountId}:publicipaddresspoolservice/*
TrafficMirrorFilteracs:vpc:{#regionId}:{#accountId}:trafficmirrorfilter/{#TrafficMirrorFilterId}
PhysicalConnectionacs:vpc:{#regionid}:{#accountid}:physicalconnection/{#PhysicalConnectionId}
VirtualBorderRouteracs:vpc:{#regionId}:{#AccountId}:virtualborderrouter/{#VbrId}
NatGatewayacs:vpc:{#regionId}:{#accountId}:natgateway/{#NatGatewayId}
CommonBandwidthPackageacs:vpc:{#regionId}:{#accountId}:combandwidthpackage/*
VirtualBorderRouteracs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
VPCacs:vpc:{#regionId}:{#AccountId}:vpc/{#VpcId}
BandwidthPackageacs:vpc:{#regionId}:{#accountId}:combandwidthpackage/{#BandwidthPackageId}
CustomerGatewayacs:vpc:{#regionId}:{#accountId}:customergateway/{#CustomerGatewayId}
NetworkAclacs:vpc:{#regionId}:{#accountId}:networkacl/*
VirtualBorderRouteracs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#virtualborderrouterId}
SnatTableacs:vpc:{#regionId}:{#accountId}:snattable/{#SnatTableId}
NetworkAclacs:vpc:{#regionId}:{#accountId}:networkacl/{#NetworkAclId}
NatGatewayacs:vpc:{#regionId}:{#accountId}:natgateway/{#natgatewayid}
Ipv6Addressacs:vpc:{#regionId}:{#accountId}:ipv6address/{#Ipv6AddressId}
BandwidthPackageacs:vpc:{#regionId}:{#accountId}:bandwidthpackage/{#BandwidthPackageId}
Eipacs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId}
Ipv4Gatewayacs:vpc:{#regionId}:{#accountId}:ipv4gateway/{#Ipv4GatewayId}
Ipv6Gatewayacs:vpc:{#regionId}:{#accountId}:ipv6gateway/{#Ipv6GatewayId}
PublicIpAddressPoolacs:vpc:{#regionId}:{#accountId}:publicipaddresspool/{#PublicIpAddressPoolId}
NatGatewayacs:vpc:{#regionId}:{#accountId}:natgateway/*
Ipv6InternetBandwidthacs:vpc:{#regionId}:{#accountId}:vpc/*
PhysicalConnectionacs:vpc:{#regionId}:{#accountId}:physicalconnection/*
SslVpnServeracs:vpc:{#regionId}:{#accountId}:sslvpnserver/{#SslVpnServerId}
VpnConnectionsacs:vpc:{#regionId}:{#accountId}:vpnconnection/{#VpnConnectionId}
Ipv4Gatewayacs:vpc:{#regionId}:{#accountId}:ipv4gateway/{#ipv4gatewayId}
RouteTableacs:vpc:{#regionId}:{#accountId}:routetable/{#routetableId}
TrafficMirrorServiceacs:vpc:{#regionId}:{#accountId}:trafficmirror/*
PhysicalConnectionacs:vpc:{#regionId}:{#accountId}:physicalconnection/{#physicalconnectionId}
PhysicalConnectionacs:vpc:{#regionId}:{#AccountId}:physicalconnection/{#PhysicalConnectionId}
RouterInterfaceacs:vpc:{#regionId}:{#AccountId}:routerinterface/{#RouterInterfaceId}
VpnConnectionacs:vpc:{#regionId}:{#accountId}:vpnconnection/{#VpnConnectionId}
ForwardTableacs:vpc:{#regionId}:{#accountId}:forwardtable/{#ForwardTableId}
VSwitchacs:vpc:{#regionId}:{#accountId}:vswitch/{#vswitchId}
DhcpOptionsSetacs:vpc:{#regionId}:{#accountId}:dhcpoptionsset/*
VpnGatewayacs:vpc:{#regionId}:{#accountId}:vpngateway/{#VpnInstanceId}
SegmentAddressacs:vpc:{#regionId}:{#accountId}:eip/*
Addressacs:vpc:{#regionId}:{#accountId}:eip/*
IpsecServeracs:vpc:{#regionId}:{#accountId}:ipsecserver/*
TrafficMirrorSessionacs:vpc:{#regionId}:{#accountId}:trafficmirrorsession/*
IpsecServeracs:vpc:{#regionId}:{#accountId}:vpnipsecserver/{#IpsecServerId}
Ipv6InternetBandwidthacs:vpc:{#regionId}:{#accountId}:ipv6bandwidth/{#Ipv6InternetBandwidthId}
CustomerGatewayacs:vpc:{#regionId}:{#accountId}:customergateway/*
VPCacs:vpc:{#regionId}:{#accountId}:vpc/{#InstanceId}
TrafficMirrorFilteracs:vpc:{#regionId}:{#accountId}:trafficmirrorfilter/*
Instanceacs:vpc:{#regionId}:{#accountId}:instance/{#InstanceId}
Ipv6InternetBandwidthacs:vpc:{#regionId}:{#accountId}:ipv6bandwidth/*
SslVpnServeracs:vpc:{#regionId}:{#accountId}:sslvpnserver/*
RouteEntryacs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}
FlowLogServiceacs:vpc:{#regionId}:{#accountId}:flowlog/*
BandwidthPackageacs:vpc:{#regionId}:{#accountId}:bandwidthpackage/*
PublicIpAddressPoolacs:vpc:{#regionId}:{#accountId}:publicipaddresspool/*
VSwitchCidrReservationacs:vpc:{#regionId}:{#accountId}:vswitchcidrreservation/{#VSwitchCidrReservationId}
BandwidthPackageacs:vpc:{#regionId}:{#accountId}:combandwidthpackage/*
CustomerGatewayacs:vpc:{#Region}:{#AccountId}:customergateway/{#CustomerGatewayId}
VpnAttachmentacs:vpc:{#Region}:{#AccountId}:vpnattachment/{#VpnConnectionId}
VpnConnectionacs:vpc:{#Region}:{#AccountId}:vpnconnection/{#VpnConnectionId}
SslVpnServeracs:vpc:{#Region}:{#AccountId}:sslvpnserver/{#SslVpnServerId}
NatIpacs:vpc:{#regionId}:{#accountId}:natgateway/{#NatGatewayId}
VpnGatewayacs:vpc:{#regionId}:{#accountId}:vpngateway/*
NatIpCidracs:vpc:{#regionId}:{#accountId}:natgateway/{#NatGatewayId}
GatewayInfoacs:vpc:{#regionId}:{#accountId}:eip/*
VirtualBorderRouteracs:vpc:*:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
IPv6Translatoracs:vpc:{#regionId}:{#accountId}:ipv6trans/*
IPv6Translatoracs:vpc:{#regionId}:{#accountId}:ipv6trans/{#IPv6TranslatorId}
PrefixListacs:vpc:{#regionId}:{#accountId}:prefixlist/*
RouteTableacs:vpc:{#regionId}:{#accountId}:routetable/*
SslVpnClientCertacs:vpc:{#regionId}:{#accountId}:sslvpnclientcert/*
Associationacs:vpc:{#regionId}:{#accountId}:havip/{#HaVipId}
VPCacs:vpc:{#regionId}:{#accountId}:vpc/{#vpcId}
RouteTableacs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTable}
FlowLogacs:vpc:{#regionId}:{#accountId}:flowlog/*
PhysicalConnectionacs:vpc:*:{#accountId}:physicalconnection/{#PhysicalConnectionId}
VirtualBorderRouteracs:vpc:*:{#AccountId}:virtualborderrouter/{#VbrId}
RouterInterfaceacs:vpc:*:{#AccountId}:routerinterface/{#RouterInterfaceId}
Ipv4Gatewayacs:vpc:{#regionId}:{#accountId}:ipv4gateway/*
Instanceacs:ecs:{#regionId}:{#accountId}:instance/*
VSwitchacs:vpc:{#regionId}:{#accountId}:vswitch/*
RouterInterfaceacs:vpc:{#regionId}:{#accountId}:routerinterface/*
VirtualBorderRouteracs:vpc:{#regionId}:{#accountId}:virtualborderrouter/*
VPCacs:vpc:{#regionId}:{#accountId}:vpc/{#VPCId}
VpnConnectionacs:vpc:{#regionId}:{#accountId}:vpnconnection/*
CommonBandwidthPackageacs:vpc:{#regionId}:{#accountId}:combandwidthpackage/{#CommonBandwidthPackageId}
Ipv6Addressacs:vpc:{#regionId}:{#accountId}:ipv6address/*
Ipv6Gatewayacs:vpc:{#regionId}:{#accountId}:ipv6gateway/*
VirtualBorderRouteracs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#InstanceId}
GrantRuleToCenacs:vpc:{#regionId}:{#accountId}:vpc/{#InstanceId}
HaVipacs:vpc:{#regionId}:{#accountId}:havip/*
VpnGatewayacs:vpc:{#regionId}:{#accountId}:
Eipacs:vpc:{#regionId}:{#accountId}:eip/{#EipId}
Ipv6EgressRuleacs:vpc:{#regionId}:{#accountId}:ipv6gateway/{#Ipv6GatewayId}
VSwitchacs:vpc:{#regionid}:{#accountId}:vswitch/{#VSwitchId}
physicalconnectionacs:vpc:{#regionId}:{#accountId}:physicalconnection/*
GlobalAccelerationInstanceacs:vpc:{#regionId}:{#accountId}:GlobalAccelerationInstance/*
FullNatacs:vpc:{#regionId}:{#accountId}:vpcfullnattable/{#FullNatTableId}
VirtualBorderRouteracs:vpc:{#regionId}:{#AccountId}:virtualborderrouter/*
Instanceacs:ecs:{#regionId}:{#accountId}:instance/{#BackendServerId}
SegmentAddressacs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId}
VRouteracs:vpc:{#regionId}:{#accountId}:vrouter/{#VRouterId}
Instanceacs:ecs:{#regionId}:{#accountId}:instance/{#InstanceId}
VRouteracs:vpc:{#regionId}:{#accountId}:vrouter/*

条件(Condition)

下表是专有网络VPC(VPC)定义的产品级条件关键字,这些条件关键字可以在RAM权限策略语句的Condition元素中使用,用来描述授予权限的条件。以下仅列举产品级的条件关键字,阿里云定义的通用条件关键字也同样适用专有网络VPC(VPC)
其中,数据类型决定了您可以使用哪些条件运算符将请求中的值与权限策略语句中的值进行比较。您必须使用与数据类型匹配的条件运算符,否则无法匹配策略语句,授权行为无效。数据类型与条件运算符的对应关系,请参见条件操作类型
条件关键字描述类型
vpc:PhysicalConnection物理专线信息String
vpc:VBR边界路由器信息String
vpc:VPCVPC信息String
vpc:VRouter路由器信息String
vpc:tagVPC的标签String
vpc:TargetAccountRDId对端用户资源目录ID信息String

相关操作

您可以创建自定义权限策略,并将权限策略授予RAM用户、RAM用户组或RAM角色。具体操作如下: