全部產品
Search
文件中心

Virtual Private Cloud:授權信息

更新時間:Jul 15, 2026

存取控制(RAM)是阿里雲提供的系統管理使用者身份與資源存取權限的服務。使用 RAM 可以讓您避免與其他使用者共用阿里雲帳號密鑰,並可按需為使用者授予最小許可權。RAM 中使用權限原則描述授權的具體內容。

本文為您介紹 專有網路VPC 為 RAM 權限原則定義的操作(Action)、資源(Resource)和條件(Condition)。 專有網路VPC 的 RAM 代碼(RamCode)為 vpc ,支援的授權粒度為 資源級

權限原則通用結構

權限原則支援 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定義的操作,這些操作可以在 RAM 權限原則語句的Action元素中使用,用來授予執行該操作的許可權。下面對錶中的具體項提供說明:

  • 操作:是指具體的許可權點。

  • API:是指操作對應的 API 介面。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。該列不體現適用於任何操作的通用條件關鍵字

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

API

存取層級

資源類型

條件關鍵字

關聯操作

vpc:DescribeFlowLogs DescribeFlowLogs get

*FlowLog

acs:vpc:{#regionId}:{#accountId}:flowlog/*

vpc:OpenFlowLogService OpenFlowLogService create

*FlowLogService

acs:vpc:{#regionId}:{#accountId}:flowlog/*

vpc:ChangeResourceGroup ChangeResourceGroup update

*全部資源

*

vpc:AllocateVpcIpv6Cidr AllocateVpcIpv6Cidr none

*全部資源

*

vpc:ModifyIpv6GatewayAttribute ModifyIpv6GatewayAttribute update

*Ipv6Gateway

acs:vpc:{#regionId}:{#accountId}:ipv6gateway/{#Ipv6GatewayId}

vpc:CreateVpc CreateVpc create

*VPC

acs:vpc:{#regionId}:{#accountId}:vpc/*

vpc:DescribeIpv6Gateways DescribeIpv6Gateways get

Ipv6Gateway

acs:vpc:{#regionId}:{#accountId}:ipv6gateway/*

Ipv6Gateway

acs:vpc:{#regionId}:{#accountId}:ipv6gateway/{#Ipv6GatewayId}

vpc:ModifyNetworkAclAttributes ModifyNetworkAclAttributes update

*NetworkAcl

acs:vpc:{#regionId}:{#accountId}:networkacl/{#NetworkAclId}

vpc:DescribeRouterInterfaces DescribeRouterInterfaces list

*RouterInterface

acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}

vpc:DescribeVpcAttribute DescribeVpcAttribute get

*VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

vpc:tag

vpc:GetFlowLogServiceStatus GetFlowLogServiceStatus get

*FlowLogService

acs:vpc:{#regionId}:{#accountId}:flowlog/*

vpc:ListTagResourcesForExpressConnect ListTagResourcesForExpressConnect list

*全部資源

*

vpc:ModifyRouteEntry ModifyRouteEntry update

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

vpc:UnassociateRouteTable UnassociateRouteTable update

*VSwitch

acs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId}

vpc:ModifyRouteTableAttributes ModifyRouteTableAttributes update

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

vpc:VRouter

vpc:DeleteRouterInterface DeleteRouterInterface delete

*RouterInterface

acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}

vpc:CreateTrafficMirrorFilter CreateTrafficMirrorFilter create

*TrafficMirrorFilter

acs:vpc:{#regionId}:{#accountId}:trafficmirrorfilter/*

vpc:ActiveFlowLog ActiveFlowLog update

*FlowLog

acs:vpc:{#regionId}:{#accountId}:flowlog/{#FlowLogId}

vpc:DescribeIpv6EgressOnlyRules DescribeIpv6EgressOnlyRules get

*Ipv6Gateway

acs:vpc:{#regionId}:{#accountId}:ipv6gateway/{#Ipv6GatewayId}

vpc:DeactiveFlowLog DeactiveFlowLog update

*FlowLog

acs:vpc:{#regionId}:{#accountId}:flowlog/{#FlowLogId}

vpc:CreateDefaultVSwitch CreateDefaultVSwitch create

*VSwitch

acs:vpc:{#regionid}:{#accountId}:vswitch/*

vpc:AssociateRouteTablesWithVpcGatewayEndpoint AssociateRouteTablesWithVpcGatewayEndpoint create

*GatewayEndpoint

acs:vpc:{#regionId}:{#accountId}:gatewayendpoint/{#GatewayEndpointId}

vpc:RevokeInstanceFromCen RevokeInstanceFromCen update

*VirtualBorderRouter

acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}

vpc:ListVpcPublishedRouteEntries ListVpcPublishedRouteEntries list

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

vpc:DissociateRouteTablesFromVpcGatewayEndpoint DissociateRouteTablesFromVpcGatewayEndpoint delete

*GatewayEndpoint

acs:vpc:{#regionId}:{#accountId}:gatewayendpoint/{#GatewayEndpointId}

vpc:UpdateRouteTargetGroup UpdateRouteTargetGroup update

*RouteTargetGroup

acs:vpc:{#regionId}:{#accountId}:routetargetgroup/{#RouteTargetGroupId}

vpc:DeletionProtection DeletionProtection delete

*Address

acs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId}

vpc:GetVpcPrefixListEntries GetVpcPrefixListEntries get

*PrefixList

acs:vpc:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}

vpc:ListPrefixLists ListPrefixLists list

PrefixList

acs:vpc:{#regionId}:{#accountId}:prefixlist/*

vpc:ListVpcEndpointServicesByEndUser ListVpcEndpointServicesByEndUser list

*全部資源

*

vpc:TagResourcesForExpressConnect TagResourcesForExpressConnect update

*PhysicalConnection

acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}

*VirtualBorderRouter

acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}

*RouterInterface

acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}

*TrafficQos

acs:vpc:{#regionId}:{#accountId}:trafficqos/{#QosId}

vpc:AssociateHaVip AssociateHaVip create

*Instance

acs:vpc:{#regionId}:{#accountId}:instance/{#InstanceId}

*HaVip

acs:vpc:{#regionId}:{#accountId}:havip/{#HaVipId}

vpc:CreateVpcGatewayEndpoint CreateVpcGatewayEndpoint create

*GatewayEndpoint

acs:vpc:{#regionId}:{#accountId}:gatewayendpoint/*

vpc:GetVpcRouteEntrySummary GetVpcRouteEntrySummary list

RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#routetableId}

*VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#vpcId}

vpc:ConnectRouterInterface ConnectRouterInterface update

*RouterInterface

acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}

vpc:CreateTrafficMirrorSession CreateTrafficMirrorSession create

*TrafficMirrorSession

acs:vpc:{#regionId}:{#accountId}:trafficmirrorsession/*

*TrafficMirrorFilter

acs:vpc:{#regionId}:{#accountId}:trafficmirrorfilter/{#TrafficMirrorFilterId}

vpc:DeleteRouteTargetGroup DeleteRouteTargetGroup delete

*全部資源

*

vpc:CopyNetworkAclEntries CopyNetworkAclEntries update

*NetworkAcl

acs:vpc:{#regionId}:{#accountId}:networkacl/{#NetworkAclId}

vpc:DeleteTrafficMirrorFilterRules DeleteTrafficMirrorFilterRules delete

*TrafficMirrorFilter

acs:vpc:{#regionId}:{#accountId}:trafficmirrorfilter/{#TrafficMirrorFilterId}

vpc:DeleteVpcGatewayEndpoint DeleteVpcGatewayEndpoint delete

*GatewayEndpoint

acs:vpc:{#regionId}:{#accountId}:gatewayendpoint/{#GatewayEndpointId}

vpc:CreateTrafficMirrorFilterRules CreateTrafficMirrorFilterRules create

*TrafficMirrorFilter

acs:vpc:{#regionId}:{#accountId}:trafficmirrorfilter/{#TrafficMirrorFilterId}

vpc:DeleteHaVip DeleteHaVip delete

*HaVip

acs:vpc:{#regionId}:{#accountId}:havip/{#HaVipId}

vpc:ListVpcGatewayEndpoints ListVpcGatewayEndpoints list

GatewayEndpoint

acs:vpc:{#regionId}:{#accountId}:gatewayendpoint/*

GatewayEndpoint

acs:vpc:{#regionId}:{#accountId}:gatewayendpoint/{#GatewayEndpointId}

vpc:CreateNetworkAcl CreateNetworkAcl create

*NetworkAcl

acs:vpc:{#regionId}:{#accountId}:networkacl/*

*VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

vpc:ListTagResources ListTagResources get

BandwidthPackage

acs:vpc:{#regionId}:{#accountId}:combandwidthpackage/{#BandwidthPackageId}

Address

acs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId}

NatGateway

acs:vpc:{#regionId}:{#accountId}:natgateway/{#NatGatewayId}

RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTable}

VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

VpnGateway

acs:vpc:{#regionId}:{#accountId}:vpngateway/{#VpnGatewayId}

VSwitch

acs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId}

vpc:tag

vpc:MoveResourceGroup MoveResourceGroup update

BandwidthPackage

acs:vpc:{#regionId}:{#accountId}:bandwidthpackage/{#BandwidthPackageId}

Eip

acs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId}

VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

PrefixList

acs:vpc:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}

GatewayEndpoint

acs:vpc:{#regionId}:{#accountId}:gatewayendpoint/{#GatewayEndpointId}

DhcpOptionsSet

acs:vpc:{#regionId}:{#accountId}:dhcpoptionsset/{#DhcpOptionsSetId}

FlowLog

acs:vpc:{#regionId}:{#accountId}:flowlog/{#FlowLogId}

HaVip

acs:vpc:{#regionId}:{#accountId}:havip/{#HaVipId}

Ipv4Gateway

acs:vpc:{#regionId}:{#accountId}:ipv4gateway/{#Ipv4GatewayId}

Ipv6Gateway

acs:vpc:{#regionId}:{#accountId}:ipv6gateway/{#Ipv6GatewayId}

PublicIpAddressPool

acs:vpc:{#regionId}:{#accountId}:publicipaddresspool/{#PublicIpAddressPoolId}

TrafficMirrorFilter

acs:vpc:{#regionId}:{#accountId}:trafficmirrorfilter/{#TrafficMirrorFilterId}

TrafficMirrorSession

acs:vpc:{#regionId}:{#accountId}:trafficmirrorsession/{#TrafficMirrorSessionId}

vpc:DeleteRouteEntry DeleteRouteEntry delete

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

vpc:TagResources TagResources update

BandwidthPackage

acs:vpc:{#regionId}:{#accountId}:combandwidthpackage/{#BandwidthPackageId}

Address

acs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId}

NatGateway

acs:vpc:{#regionId}:{#accountId}:natgateway/{#NatGatewayId}

RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

VpnGateway

acs:vpc:{#regionId}:{#accountId}:vpngateway/{#VpnGatewayId}

VSwitch

acs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId}

vpc:tag

vpc:RemoveSourcesFromTrafficMirrorSession RemoveSourcesFromTrafficMirrorSession update

*TrafficMirrorSession

acs:vpc:{#regionId}:{#accountId}:trafficmirrorsession/{#TrafficMirrorSessionId}

vpc:OpenTrafficMirrorService OpenTrafficMirrorService create

*全部資源

*

vpc:UnassociateVpcCidrBlock UnassociateVpcCidrBlock delete

*VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

vpc:ListGatewayRouteTableEntries ListGatewayRouteTableEntries list

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#routetableId}

vpc:DescribeEcGrantRelation DescribeEcGrantRelation list

*VirtualBorderRouter

acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}

vpc:DeleteNetworkAcl DeleteNetworkAcl delete

*NetworkAcl

acs:vpc:{#regionId}:{#accountId}:networkacl/{#NetworkAclId}

vpc:ModifyVpcPrefixList ModifyVpcPrefixList update

*PrefixList

acs:vpc:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}

vpc:UpdateDhcpOptionsSetAttribute UpdateDhcpOptionsSetAttribute update

*DhcpOptionsSet

acs:vpc:{#regionId}:{#accountId}:dhcpoptionsset/{#DhcpOptionsSetId}

vpc:DescribeIpv6Addresses DescribeIpv6Addresses list

*Ipv6InternetBandwidth

acs:vpc:{#regionId}:{#accountId}:vpc/*

vpc:DeleteIpv6Gateway DeleteIpv6Gateway delete

*Ipv6Gateway

acs:vpc:{#regionId}:{#accountId}:ipv6gateway/{#Ipv6GatewayId}

vpc:AllocateIpv6Address AllocateIpv6Address create

*Ipv6Address

acs:vpc:{#regionId}:{#accountId}:ipv6address/*

vpc:DescribeVSwitchAttributes DescribeVSwitchAttributes get

*VSwitch

acs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId}

vpc:UntagResourcesForExpressConnect UntagResourcesForExpressConnect update

*PhysicalConnection

acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}

*VirtualBorderRouter

acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}

*RouterInterface

acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}

*TrafficQos

acs:vpc:{#regionId}:{#accountId}:trafficqos/{#QosId}

vpc:DescribeVSwitches DescribeVSwitches list

*VSwitch

acs:vpc:{#regionId}:{#accountId}:vswitch/*

vpc:VPC

vpc:GetVpcPrefixListAssociations GetVpcPrefixListAssociations get

*PrefixList

acs:vpc:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}

vpc:GetRouteTargetGroup GetRouteTargetGroup get

*RouteTargetGroup

acs:vpc:{#regionId}:{#accountId}:routetargetgroup/{#RouteTargetGroupId}

vpc:ListTrafficMirrorFilters ListTrafficMirrorFilters list

*TrafficMirrorFilter

acs:vpc:{#regionId}:{#accountId}:trafficmirrorfilter/*

vpc:CreateDefaultVpc CreateDefaultVpc create

*VPC

acs:vpc:{#regionId}:{#accountId}:vpc/*

vpc:UpdateGatewayRouteTableEntryAttribute UpdateGatewayRouteTableEntryAttribute update

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

vpc:DescribeNetworkAcls DescribeNetworkAcls list

*NetworkAcl

acs:vpc:{#regionId}:{#accountId}:networkacl/*

vpc:DeactivateRouterInterface DeactivateRouterInterface update

*RouterInterface

acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}

vpc:UpdateNetworkAclEntries UpdateNetworkAclEntries update

*NetworkAcl

acs:vpc:{#regionId}:{#accountId}:networkacl/{#NetworkAclId}

vpc:UpdateVpcGatewayEndpointAttribute UpdateVpcGatewayEndpointAttribute update

*GatewayEndpoint

acs:vpc:{#regionId}:{#accountId}:gatewayendpoint/{#GatewayEndpointId}

vpc:ListTrafficMirrorSessions ListTrafficMirrorSessions list

*TrafficMirrorSession

acs:vpc:{#regionId}:{#accountId}:trafficmirrorsession/*

vpc:DisableVpcClassicLink DisableVpcClassicLink update

*VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

vpc:GrantInstanceToVbr GrantInstanceToVbr update

*VPC

acs:vpc:{#regionId}:{#AccountId}:vpc/{#VpcId}

vpc:AllocateIpv6InternetBandwidth AllocateIpv6InternetBandwidth create

*Ipv6InternetBandwidth

acs:vpc:{#regionId}:{#accountId}:ipv6bandwidth/*

vpc:AssociateVpcCidrBlock AssociateVpcCidrBlock create

*VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

vpc:CreateVpcPrefixList CreateVpcPrefixList create

*PrefixList

acs:vpc:{#regionId}:{#accountId}:prefixlist/*

vpc:DescribeTagKeysForExpressConnect DescribeTagKeysForExpressConnect list

*全部資源

*

vpc:ModifyIpv6InternetBandwidth ModifyIpv6InternetBandwidth update

*Ipv6InternetBandwidth

acs:vpc:{#regionId}:{#accountId}:ipv6bandwidth/{#Ipv6InternetBandwidthId}

vpc:DeleteRouteTable DeleteRouteTable delete

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

vpc:AssociateRouteTableWithGateway AssociateRouteTableWithGateway create

*Ipv4Gateway

acs:vpc:{#regionId}:{#accountId}:ipv4gateway/{#ipv4gatewayId}

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#routetableId}

vpc:WithdrawVpcPublishedRouteEntries WithdrawVpcPublishedRouteEntries update

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

vpc:DeleteTrafficMirrorFilter DeleteTrafficMirrorFilter delete

*TrafficMirrorFilter

acs:vpc:{#regionId}:{#accountId}:trafficmirrorfilter/{#TrafficMirrorFilterId}

vpc:DescribeVRouters DescribeVRouters list

*VRouter

acs:vpc:{#regionId}:{#accountId}:vrouter/*

vpc:VPC

vpc:DescribeGrantRulesToCen DescribeGrantRulesToCen get

VirtualBorderRouter

acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#InstanceId}

GrantRuleToCen

acs:vpc:{#regionId}:{#accountId}:vpc/{#InstanceId}

vpc:DescribeHaVips DescribeHaVips get

*HaVip

acs:vpc:{#regionId}:{#accountId}:havip/*

vpc:DescribeIpv6GatewayAttribute DescribeIpv6GatewayAttribute get

*Ipv6Gateway

acs:vpc:{#regionId}:{#accountId}:ipv6gateway/{#Ipv6GatewayId}

vpc:AddSourcesToTrafficMirrorSession AddSourcesToTrafficMirrorSession update

*TrafficMirrorSession

acs:vpc:{#regionId}:{#accountId}:trafficmirrorsession/{#TrafficMirrorSessionId}

vpc:GetDhcpOptionsSet GetDhcpOptionsSet get

*DhcpOptionsSet

acs:vpc:{#regionId}:{#accountId}:dhcpoptionsset/{#DhcpOptionsSetId}

vpc:GetTrafficMirrorServiceStatus GetTrafficMirrorServiceStatus get

*全部資源

*

vpc:CreateRouteEntry CreateRouteEntry create

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

vpc:CreateRouteTargetGroup CreateRouteTargetGroup create

*RouteTargetGroup

acs:vpc:{#regionId}:{#accountId}:routetargetgroup/*

vpc:DeleteFlowLog DeleteFlowLog delete

*FlowLog

acs:vpc:{#regionId}:{#accountId}:flowlog/{#FlowLogId}

vpc:AssociateNetworkAcl AssociateNetworkAcl update

*NetworkAcl

acs:vpc:{#regionId}:{#accountId}:networkacl/{#NetworkAclId}

*VSwitch

acs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId}

vpc:ListDhcpOptionsSets ListDhcpOptionsSets get

DhcpOptionsSet

acs:vpc:{#regionId}:{#accountId}:dhcpoptionsset/*

DhcpOptionsSet

acs:vpc:{#regionId}:{#accountId}:dhcpoptionsset/{#DhcpOptionsSetId}

vpc:CreateDhcpOptionsSet CreateDhcpOptionsSet create

*DhcpOptionsSet

acs:vpc:{#regionId}:{#accountId}:dhcpoptionsset/*

vpc:ListVSwitchCidrReservations ListVSwitchCidrReservations list

*VSwitchCidrReservation

acs:vpc:{#regionId}:{#accountId}:vswitchcidrreservation/*

vpc:CreateFlowLog CreateFlowLog create

VSwitch

acs:vpc:{#regionid}:{#accountId}:vswitch/{#VSwitchId}

*FlowLog

acs:vpc:{#regionId}:{#accountId}:flowlog/*

VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

vpc:CreateHaVip CreateHaVip create

*HaVip

acs:vpc:{#regionId}:{#accountId}:havip/*

*VSwitch

acs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId}

vpc:DeleteTrafficMirrorSession DeleteTrafficMirrorSession delete

*TrafficMirrorSession

acs:vpc:{#regionId}:{#accountId}:trafficmirrorsession/{#TrafficMirrorSessionId}

vpc:UnassociateNetworkAcl UnassociateNetworkAcl update

*NetworkAcl

acs:vpc:{#regionId}:{#accountId}:networkacl/{#NetworkAclId}

*VSwitch

acs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId}

vpc:RetryVpcPrefixListAssociation RetryVpcPrefixListAssociation update

*PrefixList

acs:vpc:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}

vpc:ModifyVSwitchCidrReservationAttribute ModifyVSwitchCidrReservationAttribute update

*VSwitchCidrReservation

acs:vpc:{#regionId}:{#accountId}:vswitchcidrreservation/{#VSwitchCidrReservationId}

vpc:CheckCanAllocateVpcPrivateIpAddress CheckCanAllocateVpcPrivateIpAddress none

*VSwitch

acs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId}

vpc:ModifyFlowLogAttribute ModifyFlowLogAttribute update

*FlowLog

acs:vpc:{#regionId}:{#accountId}:flowlog/{#FlowLogId}

vpc:UpdateTrafficMirrorSessionAttribute UpdateTrafficMirrorSessionAttribute update

*TrafficMirrorSession

acs:vpc:{#regionId}:{#accountId}:trafficmirrorsession/{#TrafficMirrorSessionId}

TrafficMirrorFilter

acs:vpc:{#regionId}:{#accountId}:trafficmirrorfilter/{#TrafficMirrorFilterId}

vpc:DeleteRouteEntries DeleteRouteEntries delete

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#routetableId}

vpc:ModifyRouterInterfaceAttribute ModifyRouterInterfaceAttribute update

*RouterInterface

acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}

vpc:TargetAccountRDId

vpc:RevokeInstanceFromVbr RevokeInstanceFromVbr update

*VPC

acs:vpc:{#regionId}:{#AccountId}:vpc/{#VpcId}

vpc:DetachDhcpOptionsSetFromVpc DetachDhcpOptionsSetFromVpc update

*DhcpOptionsSet

acs:vpc:{#regionId}:{#accountId}:dhcpoptionsset/{#DhcpOptionsSetId}

*VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

vpc:DeleteDhcpOptionsSet DeleteDhcpOptionsSet delete

*DhcpOptionsSet

acs:vpc:{#regionId}:{#accountId}:dhcpoptionsset/{#DhcpOptionsSetId}

vpc:GrantInstanceToCen GrantInstanceToCen update

*VirtualBorderRouter

acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}

*VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

vpc:CreateRouteEntries CreateRouteEntries create

*RouteEntry

acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

vpc:CreateIpv6Gateway CreateIpv6Gateway create

*Ipv6Gateway

acs:vpc:{#regionId}:{#accountId}:ipv6gateway/*

vpc:DeleteVpcPrefixList DeleteVpcPrefixList delete

*PrefixList

acs:vpc:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}

vpc:ModifyHaVipAttribute ModifyHaVipAttribute update

*HaVip

acs:vpc:{#regionId}:{#accountId}:havip/{#HaVipId}

vpc:CreateIpv6EgressOnlyRule CreateIpv6EgressOnlyRule create

*Ipv6EgressRule

acs:vpc:{#regionId}:{#accountId}:ipv6gateway/{#Ipv6GatewayId}

vpc:DeleteVSwitch DeleteVSwitch delete

*VSwitch

acs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId}

vpc:DissociateRouteTableFromGateway DissociateRouteTableFromGateway get

*Ipv4Gateway

acs:vpc:{#regionId}:{#accountId}:ipv4gateway/{#ipv4gatewayId}

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#routetableId}

vpc:DescribeRouteEntryList DescribeRouteEntryList get

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

vpc:DescribeTags DescribeTags get

*全部資源

*

vpc:tag

vpc:DeleteVpc DeleteVpc delete

*VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

vpc:tag

vpc:UpdateTrafficMirrorFilterRuleAttribute UpdateTrafficMirrorFilterRuleAttribute update

*TrafficMirrorFilter

acs:vpc:{#regionId}:{#accountId}:trafficmirrorfilter/{#TrafficMirrorFilterId}

vpc:PublishVpcRouteEntries PublishVpcRouteEntries update

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

vpc:ModifyVpcAttribute ModifyVpcAttribute update

*VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

vpc:tag

vpc:CreateRouterInterface CreateRouterInterface create

*VirtualBorderRouter

acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}

*RouterInterface

acs:vpc:{#regionId}:{#accountId}:routerinterface/*

vpc:TargetAccountRDId

vpc:UpdateTrafficMirrorFilterAttribute UpdateTrafficMirrorFilterAttribute update

*TrafficMirrorFilter

acs:vpc:{#regionId}:{#accountId}:trafficmirrorfilter/{#TrafficMirrorFilterId}

vpc:ModifyRouterInterfaceSpec ModifyRouterInterfaceSpec update

*RouterInterface

acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}

vpc:DeleteIpv6EgressOnlyRule DeleteIpv6EgressOnlyRule delete

*Ipv6Gateway

acs:vpc:{#regionId}:{#accountId}:ipv6gateway/{#Ipv6GatewayId}

vpc:CreateVSwitchCidrReservation CreateVSwitchCidrReservation create

*VSwitchCidrReservation

acs:vpc:{#regionId}:{#accountId}:vswitchcidrreservation/*

vpc:DescribeRouteTables DescribeRouteTables list

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

vpc:VBR

vpc:VRouter

vpc:DeleteVSwitchCidrReservation DeleteVSwitchCidrReservation delete

*VSwitchCidrReservation

acs:vpc:{#regionId}:{#accountId}:vswitchcidrreservation/{#VSwitchCidrReservationId}

vpc:SwitchActiveRouteTarget SwitchActiveRouteTarget update

*RouteTargetGroup

acs:vpc:{#regionId}:{#accountId}:routetargetgroup/{#RouteTargetGroupId}

vpc:DescribeNetworkAclAttributes DescribeNetworkAclAttributes get

*NetworkAcl

acs:vpc:{#regionId}:{#accountId}:networkacl/{#NetworkAclId}

vpc:DescribeVpcs DescribeVpcs list

VPC

acs:vpc:{#regionId}:{#accountId}:vpc/*

VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VPCId}

vpc:tag

vpc:AttachDhcpOptionsSetToVpc AttachDhcpOptionsSetToVpc update

*DhcpOptionsSet

acs:vpc:{#regionId}:{#accountId}:dhcpoptionsset/{#DhcpOptionsSetId}

*VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

vpc:ActivateRouterInterface ActivateRouterInterface update

*RouterInterface

acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}

vpc:UnTagResources UnTagResources update

Address

acs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId}

NatGateway

acs:vpc:{#regionId}:{#accountId}:natgateway/{#NatGatewayId}

RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

VSwitch

acs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId}

vpc:tag

vpc:DeleteIpv6InternetBandwidth DeleteIpv6InternetBandwidth delete

*Ipv6InternetBandwidth

acs:vpc:{#regionId}:{#accountId}:ipv6bandwidth/{#Ipv6InternetBandwidthId}

vpc:ModifyVSwitchAttribute ModifyVSwitchAttribute update

*VSwitch

acs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId}

vpc:DescribeTagKeys DescribeTagKeys get

*全部資源

*

vpc:DescribeRouterInterfaceAttribute DescribeRouterInterfaceAttribute get

*RouterInterface

acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}

vpc:UnassociateHaVip UnassociateHaVip delete

*Instance

acs:vpc:{#regionId}:{#accountId}:instance/{#InstanceId}

*HaVip

acs:vpc:{#regionId}:{#accountId}:havip/{#HaVipId}

vpc:AssociateRouteTable AssociateRouteTable update

*VSwitch

acs:vpc:{#regionId}:{#accountId}:vswitch/{#vswitchId}

vpc:CreateRouteTable CreateRouteTable create

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/*

vpc:ReplaceVpcDhcpOptionsSet ReplaceVpcDhcpOptionsSet update

*DhcpOptionsSet

acs:vpc:{#regionId}:{#accountId}:dhcpoptionsset/{#DhcpOptionsSetId}

*VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

vpc:CreateVSwitch CreateVSwitch create

*VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

*VSwitch

acs:vpc:{#regionId}:{#accountId}:vswitch/*

vpc:tag

vpc:DeleteRouterInterface DeleteExpressConnect delete

*RouterInterface

acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}

vpc:DescribeRouteTableList DescribeRouteTableList list

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/*

vpc:VRouter

vpc:VBR

vpc:ModifyIpv6AddressAttribute ModifyIpv6AddressAttribute update

*VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

vpc:GetVpcGatewayEndpointAttribute GetVpcGatewayEndpointAttribute get

*GatewayEndpoint

acs:vpc:{#regionId}:{#accountId}:gatewayendpoint/{#GatewayEndpointId}

vpc:GetVSwitchCidrReservationUsage GetVSwitchCidrReservationUsage get

*VSwitchCidrReservation

acs:vpc:{#regionId}:{#accountId}:vswitchcidrreservation/{#VSwitchCidrReservationId}

vpc:ListRouteTargetGroups ListRouteTargetGroups list

*RouteTargetGroup

acs:vpc:{#regionId}:{#accountId}:routetargetgroup/*

vpc:ModifyVRouterAttribute ModifyVRouterAttribute update

*VRouter

acs:vpc:{#regionId}:{#accountId}:vrouter/{#VRouterId}

vpc:EnableVpcClassicLink EnableVpcClassicLink update

*VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

vpc:ReleaseIpv6Address ReleaseIpv6Address delete

*Ipv6Address

acs:vpc:{#regionId}:{#accountId}:ipv6address/{#Ipv6AddressId}

資源(Resource)

下表是專有網路VPC定義的資源,這些資源可以在 RAM 權限原則語句的Resource元素中使用,用來授予對該資源執行具體操作的許可權。 其中,資源 ARN 是資源在阿里雲上的唯一標識。具體說明如下:

  • {#}為變數標識,需要您替換為實際值。例如:{#ramcode}需要您替換為實際的雲端服務RAM代碼。

  • *表示全部。例如:

    • {#resourceType}*時:表示全部資源。

    • {#regionId}*時:表示全部地區。

    • {#accountId}*時:表示全部阿里雲帳號。

資源類型

資源 ARN

FlowLog
  • acs:vpc:{#regionId}:{#accountId}:flowlog/*
  • acs:vpc:{#regionId}:{#accountId}:flowlog/{#FlowLogId}
VpnConnection
  • acs:vpc:{#regionId}:{#accountId}:vpnconnection/{#VpnConnectionId}
  • acs:vpc:{#regionId}:{#accountId}:vpnconnection/*
  • acs:vpc:{#regionId}:{#accountId}:*
  • acs:vpc:{#Region}:{#AccountId}:vpnconnection/{#VpnConnectionId}
VirtualBorderRouter
  • acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VbrId}
  • acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
  • acs:vpc:*:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}
  • acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#InstanceId}
  • acs:vpc:{#regionId}:{#AccountId}:virtualborderrouter/*
FlowLogService
  • acs:vpc:{#regionId}:{#accountId}:flowlog/*
NatGateway
  • acs:vpc:{#regionId}:{#accountId}:natgateway/{#NatGatewayId}
  • acs:vpc:{#regionId}:{#accountId}:natgateway/*
  • acs:natgateway:{#regionId}:{#accountId}:natgateway/{#NatGatewayId}
BandwidthPackage
  • acs:vpc:{#regionId}:{#accountId}:combandwidthpackage/{#BandwidthPackageId}
  • acs:vpc:{#regionId}:{#accountId}:bandwidthpackage/{#BandwidthPackageId}
PhysicalConnection
  • acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
  • acs:vpc:{#regionId}:{#accountId}:physicalconnection/*
RouterInterface
  • acs:vpc:{#regionId}:{#AccountId}:routerinterface/{#RouterInterfaceId}
  • acs:vpc:{#regionId}:{#accountId}:routerinterface/*
TrafficQos
  • acs:vpc:{#regionId}:{#accountId}:trafficqos/{#QosId}
  • acs:vpc:{#regionId}:{#accountId}:TrafficQos/*
SnatTable
  • acs:vpc:{#regionId}:{#accountId}:snattable/{#SnatTableId}
Ipv6Translator
  • acs:vpc:{#regionId}:{#accountId}:ipv6trans/{#Ipv6TranslatorId}
  • acs:vpc:{#regionId}:{#accountId}:ipv6trans/*
VPC
  • acs:vpc:{#regionId}:{#accountId}:vpc/*
  • acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}
  • acs:vpc:{#regionId}:{#accountId}:vpc/{#InstanceId}
Ipv6Gateway
  • acs:vpc:{#regionId}:{#accountId}:ipv6gateway/{#Ipv6GatewayId}
  • acs:vpc:{#regionId}:{#accountId}:ipv6gateway/*
VpnGateway
  • acs:vpc:{#regionId}:{#accountId}:vpngateway/*
  • acs:vpc:{#regionId}:{#accountId}:vpngateway/{#VpnGatewayId}
  • acs:vpc:{#regionId}:{#accountId}:vpngateway/{#VpnInstanceId}
  • acs:vpc:{#Region}:{#AccountId}:vpngateway/{#VpnInstanceId}
  • acs:vpc:{#regionId}:{#accountId}:
PublicIpAddressPool
  • acs:vpc:{#regionId}:{#accountId}:publicipaddresspool/*
  • acs:vpc:{#regionId}:{#accountId}:publicipaddresspool/{#PublicIpAddressPoolId}
FullNat
  • acs:vpc:{#regionId}:{#accountId}:vpcfullnattable/{#FullNatTableId}
Ipv4Gateway
  • acs:vpc:{#regionId}:{#accountId}:ipv4gateway/{#ipv4gatewayId}
  • acs:vpc:{#regionId}:{#accountId}:ipv4gateway/*
NetworkAcl
  • acs:vpc:{#regionId}:{#accountId}:networkacl/{#NetworkAclId}
  • acs:vpc:{#regionId}:{#accountId}:networkacl/*
Address
  • acs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId}
  • acs:vpc:{#regionId}:{#accountId}:eip/*
ForwardTable
  • acs:vpc:{#regionId}:{#accountId}:forwardtable/{#ForwardTableId}
RouteTable
  • acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}
  • acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTable}
  • acs:vpc:{#regionId}:{#accountId}:routetable/*
IpsecServer
  • acs:vpc:{#regionId}:{#accountId}:vpnipsecserver/{#IpsecServerId}
  • acs:vpc:{#Region}:{#AccountId}: vpnipsecserver/{#IpsecServerId}
  • acs:vpc:{#regionId}:{#accountId}:ipsecserver/*
  • acs:vpc:{#regionId}:{#accountId}: vpnipsecserver/{#IpsecServerId}
VSwitch
  • acs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId}
  • acs:vpc:{#regionid}:{#accountId}:vswitch/*
SegmentAddress
  • acs:eip:{#regionId}:{#accountId}:eipsegment/{#SegmentInstanceId}
  • acs:vpc:{#regionId}:{#accountId}:eip/*
  • acs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId}
TrafficMirrorFilter
  • acs:vpc:{#regionId}:{#accountId}:trafficmirrorfilter/*
  • acs:vpc:{#regionId}:{#accountId}:trafficmirrorfilter/{#TrafficMirrorFilterId}
Instance
  • acs:vpc:{#regionId}:{#accountId}:instance/{#InstanceId}
  • acs:ecs:{#regionId}:{#accountId}:instance/{#Instanceid}
  • acs:ecs:{#regionId}:{#accountId}:instance/*
Association
  • acs:vpc:{#regionId}:{#accountId}:havip/{#HaVipId}
GatewayEndpoint
  • acs:vpc:{#regionId}:{#accountId}:gatewayendpoint/{#GatewayEndpointId}
  • acs:vpc:{#regionId}:{#accountId}:gatewayendpoint/*
CustomerGateway
  • acs:vpc:{#regionId}:{#accountId}:customergateway/*
  • acs:vpc:{#regionId}:{#accountId}:customergateway/{#CustomerGatewayId}
  • acs:vpc:{#Region}:{#AccountId}:customergateway/{#CustomerGatewayId}
CommonBandwidthPackage
  • acs:vpc:{#regionId}:{#accountId}:combandwidthpackage/{#CommonBandwidthPackageId}
  • acs:vpc:{#regionId}:{#accountId}:combandwidthpackage/*
RouteTargetGroup
  • acs:vpc:{#regionId}:{#accountId}:routetargetgroup/{#RouteTargetGroupId}
  • acs:vpc:{#regionId}:{#accountId}:routetargetgroup/*
PrefixList
  • acs:vpc:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}
  • acs:vpc:{#regionId}:{#accountId}:prefixlist/*
VpnConnections
  • acs:vpc:{#regionId}:{#accountId}:vpnconnection/{#VpnConnectionId}
GlobalAccelerationInstance
  • acs:vpc:{#regionId}:{#accountId}:globalaccelerationinstance/{#GlobalAccelerationInstanceId}
  • acs:vpc:{#regionId}:{#accountId}:globalaccelerationinstance/*
  • acs:vpc:{#regionId}:{#accountId}:GlobalAccelerationInstance/*
HaVip
  • acs:vpc:{#regionId}:{#accountId}:havip/{#HaVipId}
  • acs:vpc:{#regionId}:{#accountId}:havip/*
SslVpnServer
  • acs:vpc:{#regionId}:{#accountId}:sslvpnserver/*
  • acs:vpc:{#regionId}:{#accountId}:sslvpnserver/{#SslVpnServerId}
  • acs:vpc:{#Region}:{#AccountId}:sslvpnserver/{#SslVpnServerId}
TrafficMirrorSession
  • acs:vpc:{#regionId}:{#accountId}:trafficmirrorsession/*
  • acs:vpc:{#regionId}:{#accountId}:trafficmirrorsession/{#TrafficMirrorSessionId}
Eip
  • acs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId}
  • acs:vpc:{#regionId}:{#accountId}:eip/{#EipId}
DhcpOptionsSet
  • acs:vpc:{#regionId}:{#accountId}:dhcpoptionsset/{#DhcpOptionsSetId}
  • acs:vpc:{#regionId}:{#accountId}:dhcpoptionsset/*
SslVpnClientCert
  • acs:vpc:{#regionId}:{#accountId}:sslvpnclientcert/*
  • acs:vpc:{#regionId}:{#accountId}:sslvpnclientcert/{#SslVpnClientCertId}
TrafficMirrorService
  • acs:vpc:{#regionId}:{#accountId}:trafficmirror/*
Ipv6InternetBandwidth
  • acs:vpc:{#regionId}:{#accountId}:vpc/*
  • acs:vpc:{#regionId}:{#accountId}:ipv6bandwidth/*
  • acs:vpc:{#regionId}:{#accountId}:ipv6bandwidth/{#Ipv6InternetBandwidthId}
Ipv6Address
  • acs:vpc:{#regionId}:{#accountId}:ipv6address/*
  • acs:vpc:{#regionId}:{#accountId}:ipv6address/{#Ipv6AddressId}
VpnCertificateAttachment
  • acs:vpc:{#regionId}:{#accountId}:vpncertificateattachment/{#VpnGatewayId}/{#CertificateType}/{#CertificateId}
IPv6Translator
  • acs:vpc:{#regionId}:{#accountId}:ipv6trans/*
  • acs:vpc:{#regionId}:{#accountId}:ipv6trans/{#IPv6TranslatorId}
VRouter
  • acs:vpc:{#regionId}:{#accountId}:vrouter/*
  • acs:vpc:{#regionId}:{#accountId}:vrouter/{#VRouterId}
GrantRuleToCen
  • acs:vpc:{#regionId}:{#accountId}:vpc/{#InstanceId}
VSwitchCidrReservation
  • acs:vpc:{#regionId}:{#accountId}:vswitchcidrreservation/*
  • acs:vpc:{#regionId}:{#accountId}:vswitchcidrreservation/{#VSwitchCidrReservationId}
GatewayInfo
  • acs:vpc:{#regionId}:{#accountId}:eip/*
SnatEntry
  • acs:vpc:{#regionId}:{#accountId}:snattable/*
VpnAttachment
  • acs:vpc:{#Region}:{#AccountId}:vpnattachment/{#VpnConnectionId}
PublicIpAddressPoolService
  • acs:vpc:{#regionId}:{#accountId}:publicipaddresspoolservice/*
RouteEntry
  • acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}
Ipv6EgressRule
  • acs:vpc:{#regionId}:{#accountId}:ipv6gateway/{#Ipv6GatewayId}
physicalconnection
  • acs:vpc:{#regionId}:{#accountId}:physicalconnection/*

條件(Condition)

下表是專有網路VPC 定義的產品級條件關鍵字,這些條件關鍵字可以在 RAM 權限原則語句的Condition元素中使用,用來描述授予許可權的條件。以下僅列舉產品級的條件關鍵字,阿里雲定義的通用條件關鍵字也同樣適用專有網路VPC

其中,資料類型決定了您可以使用哪些條件運算子將請求中的值與權限原則語句中的值進行比較。您必須使用與資料類型匹配的條件運算子,否則無法匹配策略語句,授權行為無效。資料類型與條件運算子的對應關係,請參見條件操作類型

條件關鍵字

描述

類型

vpc:VRouter 路由器資訊 String
vpc:VPC VPC資訊 String
vpc:tag VPC的標籤 String
vpc:TargetAccountRDId 對端使用者資源目錄ID資訊 String
vpc:PhysicalConnection 物理專線資訊 String
vpc:VBR 邊界路由器資訊 String

相關操作

您可以建立自訂權限原則,並將權限原則授予 RAM 使用者、RAM 使用者組或 RAM 角色。具體操作如下: