授權信息
存取控制(RAM)是阿里雲提供的系統管理使用者身份與資源存取權限的服務。使用 RAM 可以讓您避免與其他使用者共用阿里雲帳號密鑰,並可按需為使用者授予最小許可權。RAM 中使用權限原則描述授權的具體內容。
本文為您介紹 為 RAM 權限原則定義的操作(Action)、資源(Resource)和條件(Condition)。 的 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)
下表是定義的操作,這些操作可以在 RAM 權限原則語句的Action元素中使用,用來授予執行該操作的許可權。下面對錶中的具體項提供說明:
操作:是指具體的許可權點。
API:是指操作對應的 API 介面。
存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。
資源類型:是指操作中支援授權的資源類型。具體說明如下:
對於必選的資源類型,用前面加 * 表示。
對於不支援資源級授權的操作,用
全部資源表示。
條件關鍵字:是指雲產品自身定義的條件關鍵字。該列不體現適用於任何操作的通用條件關鍵字。
關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。
|
操作 |
API |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
| vpc:DescribeFlowLogs | DescribeFlowLogs | get |
*FlowLog
|
無 | 無 |
| vpc:DescribeVpnConnection | DescribeVpnConnection | get |
*VpnConnection
|
無 | 無 |
| vpc:CreateVbrHa | CreateVbrHa | create |
*VirtualBorderRouter
|
無 | 無 |
| vpc:OpenFlowLogService | OpenFlowLogService | create |
*FlowLogService
|
無 | 無 |
| vpc:ModifyNatGatewaySpec | ModifyNatGatewaySpec | update |
*NatGateway
|
無 | 無 |
| vpc:ModifyCommonBandwidthPackageAttribute | ModifyCommonBandwidthPackageAttribute | update |
*BandwidthPackage
|
無 | 無 |
| vpc:ChangeResourceGroup | ChangeResourceGroup | update |
*All Resource
Ipv6Gateway
|
無 | 無 |
| vpc:DescribeSnatTableEntries | DescribeSnatTableEntries | get |
*SnatTable
|
無 | 無 |
| vpc:AddIPv6TranslatorAclListEntry | AddIPv6TranslatorAclListEntry | create |
*Ipv6Translator
|
無 | 無 |
| vpc:AllocateVpcIpv6Cidr | AllocateVpcIpv6Cidr | none |
*All Resource
|
vpc:tag |
無 |
| vpc:ModifyIpv6GatewayAttribute | ModifyIpv6GatewayAttribute | update |
*Ipv6Gateway
|
無 | 無 |
| vpc:CreateEnhancedVpnGateway | CreateEnhancedVpnGateway | create |
*All Resource
|
無 | 無 |
| vpc:CreateNatGateway | CreateNatGateway | create |
*NatGateway
|
無 | 無 |
| vpc:ModifyExpressCloudConnectionAttribute | ModifyExpressCloudConnectionAttribute | update |
*PhysicalConnection
|
無 | 無 |
| vpc:CreatePublicIpAddressPool | CreatePublicIpAddressPool | create |
*PublicIpAddressPool
|
vpc:VRouter |
無 |
| vpc:CreateVpc | CreateVpc | create |
*VPC
|
無 | 無 |
| vpc:ModifyNatGatewayAttribute | ModifyNatGatewayAttribute | update |
*NatGateway
|
無 | 無 |
| vpc:ModifyFullNatEntryAttribute | ModifyFullNatEntryAttribute | update |
*FullNat
|
無 | 無 |
| vpc:EnableVpcIpv4Gateway | EnableVpcIpv4Gateway | update |
*Ipv4Gateway
|
無 | 無 |
| vpc:DeleteNatGateway | DeleteNatGateway | delete |
*NatGateway
|
無 | 無 |
| vpc:DeletePublicIpAddressPoolCidrBlock | DeletePublicIpAddressPoolCidrBlock | delete |
*PublicIpAddressPool
|
無 | 無 |
| vpc:PublishVpnRouteEntry | PublishVpnRouteEntry | update |
*VpnGateway
|
無 | 無 |
| vpc:DescribeIpv6Gateways | DescribeIpv6Gateways | get |
Ipv6Gateway
|
無 | 無 |
| vpc:DeleteVpnGateway | DeleteVpnGateway | delete |
*VpnGateway
|
無 | 無 |
| vpc:DeleteBgpPeer | DeleteBgpPeer | delete |
*VirtualBorderRouter
|
無 | 無 |
| vpc:ListPublicIpAddressPoolCidrBlocks | ListPublicIpAddressPoolCidrBlocks | get |
*PublicIpAddressPool
|
無 | 無 |
| vpc:ModifyNetworkAclAttributes | ModifyNetworkAclAttributes | update |
*NetworkAcl
|
無 | 無 |
| vpc:ModifyPhysicalConnectionAttribute | ModifyPhysicalConnectionAttribute | update |
*PhysicalConnection
|
無 | 無 |
| vpc:SetHighDefinitionMonitorLogStatus | SetHighDefinitionMonitorLogStatus |
*Address
|
無 | 無 | |
| vpc:CreateVirtualPhysicalConnection | CreateVirtualPhysicalConnection | create |
*PhysicalConnection
|
無 | 無 |
| vpc:DescribeRouterInterfaces | DescribeRouterInterfaces | list |
*RouterInterface
*VirtualBorderRouter
*RouterInterface
*TrafficQos
|
無 | 無 |
| vpc:DescribeVpcAttribute | DescribeVpcAttribute | get |
*VPC
*HaVip
|
無 | 無 |
| vpc:GetFlowLogServiceStatus | GetFlowLogServiceStatus | get |
*FlowLogService
|
無 | 無 |
| vpc:ListTagResourcesForExpressConnect | ListTagResourcesForExpressConnect | list |
*All Resource
*VPC
|
無 | 無 |
| vpc:CreateForwardEntry | CreateForwardEntry | create |
*ForwardTable
|
無 | 無 |
| vpc:ModifyRouteEntry | ModifyRouteEntry | update |
*RouteTable
*TrafficMirrorFilter
|
無 | 無 |
| vpc:UpdatePublicIpAddressPoolAttribute | UpdatePublicIpAddressPoolAttribute | update |
*PublicIpAddressPool
|
無 | 無 |
| vpc:DescribeVpnConnections | DescribeVpnConnections | list |
VpnConnection
|
無 | 無 |
| vpc:DeleteIpsecServer | DeleteIpsecServer | delete |
*IpsecServer
|
無 | 無 |
| vpc:CreateFailoverTestJob | CreateFailoverTestJob | create |
*VirtualBorderRouter
|
無 | 無 |
| vpc:ListGeographicSubRegions | ListGeographicSubRegions | list |
*All Resource
|
無 | 無 |
| vpc:CreatePhysicalConnectionOccupancyOrder | CreatePhysicalConnectionOccupancyOrder | create |
*PhysicalConnection
|
無 | 無 |
| vpc:UnassociateRouteTable | UnassociateRouteTable | update |
*VSwitch
GatewayEndpoint
|
無 | 無 |
| vpc:TransformEipSegmentToPublicIpAddressPool | TransformEipSegmentToPublicIpAddressPool | create |
*All Resource
*VPC
|
無 | 無 |
| vpc:CreateVpnGateway | CreateVpnGateway | create |
*VpnGateway
Address
NatGateway
RouteTable
VPC
VpnGateway
VSwitch
|
vpc:tag |
無 |
| vpc:ModifyRouteTableAttributes | ModifyRouteTableAttributes | update |
*RouteTable
Eip
VPC
PrefixList
GatewayEndpoint
DhcpOptionsSet
FlowLog
HaVip
Ipv4Gateway
Ipv6Gateway
PublicIpAddressPool
TrafficMirrorFilter
TrafficMirrorSession
|
無 | 無 |
| vpc:DeleteEnhancedVpnGateway | DeleteEnhancedVpnGateway | delete |
*VpnGateway
|
無 | 無 |
| vpc:DeleteRouterInterface | DeleteRouterInterface | delete |
*RouterInterface
Address
NatGateway
RouteTable
VPC
VpnGateway
VSwitch
|
vpc:tag |
無 |
| vpc:DeleteFailoverTestJob | DeleteFailoverTestJob | delete |
*PhysicalConnection
|
無 | 無 |
| vpc:AddCommonBandwidthPackageIps | AddCommonBandwidthPackageIps | create |
*BandwidthPackage
|
無 | 無 |
| vpc:CreateTrafficMirrorFilter | CreateTrafficMirrorFilter | create |
*TrafficMirrorFilter
|
無 | 無 |
| vpc:CreateVpnPbrRouteEntry | CreateVpnPbrRouteEntry | create |
*VpnGateway
|
無 | 無 |
| vpc:CreatePhysicalConnectionSetupOrder | CreatePhysicalConnectionSetupOrder | create |
*All Resource
|
無 | 無 |
| vpc:ActiveFlowLog | ActiveFlowLog | update |
*FlowLog
|
無 | 無 |
| vpc:ModifyIPv6TranslatorEntry | ModifyIPv6TranslatorEntry | update |
*Ipv6Translator
|
無 | 無 |
| vpc:AssociateEipAddress | AssociateEipAddress | update |
*Address
|
無 | 無 |
| vpc:DescribeIpv6EgressOnlyRules | DescribeIpv6EgressOnlyRules | get |
*Ipv6Gateway
|
無 | 無 |
| vpc:DeactiveFlowLog | DeactiveFlowLog | update |
*FlowLog
|
無 | 無 |
| vpc:RemoveCommonBandwidthPackageIp | RemoveCommonBandwidthPackageIp | delete |
*BandwidthPackage
|
無 | 無 |
| vpc:DescribeNatGatewayAssociateNetworkInterfaces | DescribeNatGatewayAssociateNetworkInterfaces | list |
NatGateway
|
無 | 無 |
| vpc:ListNatIps | ListNatIps | get |
*NatGateway
*VirtualBorderRouter
*RouterInterface
*TrafficQos
|
無 | 無 |
| vpc:CreateDefaultVSwitch | CreateDefaultVSwitch | create |
*VSwitch
|
vpc:VPC |
無 |
| vpc:AssociateRouteTablesWithVpcGatewayEndpoint | AssociateRouteTablesWithVpcGatewayEndpoint | create |
*GatewayEndpoint
|
無 | 無 |
| vpc:CreateCustomerGateway | CreateCustomerGateway | create |
*CustomerGateway
|
無 | 無 |
| vpc:DeleteCommonBandwidthPackage | DeleteCommonBandwidthPackage | delete |
*CommonBandwidthPackage
|
無 | 無 |
| vpc:RevokeInstanceFromCen | RevokeInstanceFromCen | update |
*VirtualBorderRouter
|
無 | 無 |
| vpc:ListVpcPublishedRouteEntries | ListVpcPublishedRouteEntries | list |
*RouteTable
|
無 | 無 |
| vpc:CreateExpressCloudConnection | CreateExpressCloudConnection | create |
*All Resource
|
無 | 無 |
| vpc:DissociateRouteTablesFromVpcGatewayEndpoint | DissociateRouteTablesFromVpcGatewayEndpoint | delete |
*GatewayEndpoint
|
無 | 無 |
| vpc:UpdateRouteTargetGroup | UpdateRouteTargetGroup | update |
*RouteTargetGroup
|
無 | 無 |
| vpc:ModifyIPv6TranslatorBandwidth | ModifyIPv6TranslatorBandwidth | update |
*Ipv6Translator
|
無 | 無 |
| vpc:UpdateVirtualBorderBandwidth | UpdateVirtualBorderBandwidth | update |
*VirtualBorderRouter
|
無 | 無 |
| vpc:TerminatePhysicalConnection | TerminatePhysicalConnection | update |
*PhysicalConnection
|
無 | 無 |
| vpc:CreateNatIp | CreateNatIp | create |
*NatGateway
|
無 | 無 |
| vpc:GetIpv4GatewayAttribute | GetIpv4GatewayAttribute | get |
*Ipv4Gateway
|
無 | 無 |
| vpc:DeletionProtection | DeletionProtection | delete |
*Address
|
無 | 無 |
| vpc:GetVpcPrefixListEntries | GetVpcPrefixListEntries | get |
*PrefixList
|
無 | 無 |
| vpc:DescribeVpnCrossAccountAuthorizations | DescribeVpnCrossAccountAuthorizations | get |
*VpnConnections
|
無 | 無 |
| vpc:ListPrefixLists | ListPrefixLists | list |
PrefixList
|
無 | 無 |
| vpc:ListVpcEndpointServicesByEndUser | ListVpcEndpointServicesByEndUser | list |
*All Resource
|
無 | 無 |
| vpc:ModifyGlobalAccelerationInstanceAttributes | ModifyGlobalAccelerationInstanceAttributes | update |
*GlobalAccelerationInstance
*RouteTable
|
無 | 無 |
| vpc:TagResourcesForExpressConnect | TagResourcesForExpressConnect | update |
*PhysicalConnection
|
無 | 無 |
| vpc:ConfirmPhysicalConnection | ConfirmPhysicalConnection | get |
*All Resource
|
無 | 無 |
| vpc:DescribeNatGateways | DescribeNatGateways | get |
NatGateway
|
vpc:VPC |
無 |
| vpc:CreateCommonBandwidthPackage | CreateCommonBandwidthPackage | create |
*CommonBandwidthPackage
GrantRuleToCen
|
無 | 無 |
| vpc:AssociateHaVip | AssociateHaVip | create |
*Instance
|
無 | 無 |
| vpc:CreateVpcGatewayEndpoint | CreateVpcGatewayEndpoint | create |
*GatewayEndpoint
|
無 | 無 |
| vpc:ModifySnatEntry | ModifySnatEntry | update |
*SnatTable
|
無 | 無 |
| vpc:CreateIPv6TranslatorEntry | CreateIPv6TranslatorEntry | create |
*Ipv6Translator
|
無 | 無 |
| vpc:CreateSslVpnServer | CreateSslVpnServer | create |
*SslVpnServer
|
無 | 無 |
| vpc:ListVirtualPhysicalConnections | ListVirtualPhysicalConnections | list |
*PhysicalConnection
|
無 | 無 |
| vpc:GetVpcRouteEntrySummary | GetVpcRouteEntrySummary | list |
RouteTable
|
無 | 無 |
| vpc:DescribeGrantRulesToEcr | DescribeGrantRulesToEcr | list |
*VirtualBorderRouter
|
無 | 無 |
| vpc:ConnectRouterInterface | ConnectRouterInterface | update |
*RouterInterface
*VSwitch
|
無 | 無 |
| vpc:CreateTrafficMirrorSession | CreateTrafficMirrorSession | create |
*TrafficMirrorSession
*TrafficMirrorFilter
|
無 | 無 |
| vpc:DeleteBgpNetwork | DeleteBgpNetwork | delete |
*VirtualBorderRouter
|
無 | 無 |
| vpc:DeleteRouteTargetGroup | DeleteRouteTargetGroup | delete |
*All Resource
|
無 | 無 |
| vpc:CopyNetworkAclEntries | CopyNetworkAclEntries | update |
*NetworkAcl
*FlowLog
VPC
|
無 | 無 |
| vpc:DeleteTrafficMirrorFilterRules | DeleteTrafficMirrorFilterRules | delete |
*TrafficMirrorFilter
*VSwitch
|
無 | 無 |
| vpc:DeleteVpcGatewayEndpoint | DeleteVpcGatewayEndpoint | delete |
*GatewayEndpoint
|
無 | 無 |
| vpc:CreateTrafficMirrorFilterRules | CreateTrafficMirrorFilterRules | create |
*TrafficMirrorFilter
*VSwitch
|
無 | 無 |
| vpc:CreateVcoRouteEntry | CreateVcoRouteEntry | create |
*VpnConnections
|
無 | 無 |
| vpc:DescribeServerRelatedGlobalAccelerationInstances | DescribeServerRelatedGlobalAccelerationInstances | get |
*All Resource
|
無 | 無 |
| vpc:DeleteHaVip | DeleteHaVip | delete |
*HaVip
|
無 | 無 |
| vpc:DeleteForwardEntry | DeleteForwardEntry | delete |
*ForwardTable
|
無 | 無 |
| vpc:ModifyCustomerGatewayAttribute | ModifyCustomerGatewayAttribute | update |
*CustomerGateway
TrafficMirrorFilter
|
無 | 無 |
| vpc:UpdateIpv4GatewayAttribute | UpdateIpv4GatewayAttribute | update |
*Ipv4Gateway
|
無 | 無 |
| vpc:ListVpcGatewayEndpoints | ListVpcGatewayEndpoints | list |
GatewayEndpoint
|
vpc:TargetAccountRDId |
無 |
| vpc:DeleteVpnRouteEntry | DeleteVpnRouteEntry | delete |
*VpnGateway
|
無 | 無 |
| vpc:ListPhysicalConnectionFeatures | ListPhysicalConnectionFeatures | list |
*PhysicalConnection
*VPC
|
無 | 無 |
| vpc:DescribeVpnGateway | DescribeVpnGateway | get |
*VpnGateway
|
無 | 無 |
| vpc:UpdateVirtualPhysicalConnection | UpdateVirtualPhysicalConnection | update |
*PhysicalConnection
*VPC
|
無 | 無 |
| vpc:CreateVpconnFromVbr | CreateVpconnFromVbr | create |
*VirtualBorderRouter
|
無 | 無 |
| vpc:CreateIpv4Gateway | CreateIpv4Gateway | create |
*Ipv4Gateway
|
無 | 無 |
| vpc:AllocateEipAddressPro | AllocateEipAddressPro | create |
*Address
|
無 | 無 |
| vpc:GetNatGatewayAttribute | GetNatGatewayAttribute | get |
*NatGateway
|
無 | 無 |
| vpc:AllocateEipSegmentAddress | AllocateEipSegmentAddress | create |
*SegmentAddress
|
無 | 無 |
| vpc:CreateNetworkAcl | CreateNetworkAcl | create |
*NetworkAcl
|
無 | 無 |
| vpc:ListTagResources | ListTagResources | get |
BandwidthPackage
Address
|
無 | 無 |
| vpc:ModifyGlobalAccelerationInstanceSpec | ModifyGlobalAccelerationInstanceSpec | update |
*GlobalAccelerationInstance
|
無 | 無 |
| vpc:MoveResourceGroup | MoveResourceGroup | update |
BandwidthPackage
|
vpc:tag |
無 |
| vpc:ModifyExpressConnectTrafficQosRule | ModifyExpressConnectTrafficQosRule | update |
*All Resource
|
vpc:tag |
無 |
| vpc:CancelCommonBandwidthPackageIpBandwidth | CancelCommonBandwidthPackageIpBandwidth | update |
*BandwidthPackage
|
無 | 無 |
| vpc:DescribeSslVpnClientCerts | DescribeSslVpnClientCerts | list |
SslVpnClientCert
|
無 | 無 |
| vpc:DescribeCustomerGateways | DescribeCustomerGateways | list |
CustomerGateway
|
vpc:tag |
無 |
| vpc:StartFailoverTestJob | StartFailoverTestJob | update |
*VirtualBorderRouter
*PhysicalConnection
|
vpc:TargetAccountRDId |
無 |
| vpc:DeleteRouteEntry | DeleteRouteEntry | delete |
*RouteTable
|
無 | 無 |
| vpc:TagResources | TagResources | update |
BandwidthPackage
|
無 | 無 |
| vpc:RemoveSourcesFromTrafficMirrorSession | RemoveSourcesFromTrafficMirrorSession | update |
*TrafficMirrorSession
|
無 | 無 |
| vpc:OpenTrafficMirrorService | OpenTrafficMirrorService | create |
*All Resource
|
無 | 無 |
| vpc:UnassociateVpcCidrBlock | UnassociateVpcCidrBlock | delete |
*VPC
|
vpc:VBR vpc:VRouter |
無 |
| vpc:ListGatewayRouteTableEntries | ListGatewayRouteTableEntries | list |
*RouteTable
|
無 | 無 |
| vpc:DescribeVpnConnectionLogs | DescribeVpnConnectionLogs | list |
*VpnConnection
|
無 | 無 |
| vpc:DescribeHighDefinitionMonitorLogAttribute | DescribeHighDefinitionMonitorLogAttribute | get |
*Address
|
無 | 無 |
| vpc:DescribeEcGrantRelation | DescribeEcGrantRelation | list |
*VirtualBorderRouter
VPC
|
vpc:tag |
無 |
| vpc:DeleteNetworkAcl | DeleteNetworkAcl | delete |
*NetworkAcl
*VPC
|
無 | 無 |
| vpc:DeletePublicIpAddressPool | DeletePublicIpAddressPool | delete |
*PublicIpAddressPool
|
無 | 無 |
| vpc:RemoveIPv6TranslatorAclListEntry | RemoveIPv6TranslatorAclListEntry | delete |
*Ipv6Translator
NatGateway
RouteTable
VPC
VSwitch
|
vpc:tag |
無 |
| vpc:ModifyVpcPrefixList | ModifyVpcPrefixList | update |
*PrefixList
|
無 | 無 |
| vpc:ModifyExpressConnectTrafficQosQueue | ModifyExpressConnectTrafficQosQueue | update |
*All Resource
|
無 | 無 |
| vpc:UpdateDhcpOptionsSetAttribute | UpdateDhcpOptionsSetAttribute | update |
*DhcpOptionsSet
|
無 | 無 |
| vpc:DeleteVcoRouteEntry | DeleteVcoRouteEntry | delete |
*VpnConnections
|
無 | 無 |
| vpc:ModifyVpnAttachmentAttribute | ModifyVpnAttachmentAttribute | update |
*VpnConnections
*HaVip
|
無 | 無 |
| vpc:DeleteExpressConnectTrafficQosRule | DeleteExpressConnectTrafficQosRule | delete |
*All Resource
|
無 | 無 |
| vpc:DescribeIpv6Addresses | DescribeIpv6Addresses | list |
*Ipv6InternetBandwidth
|
無 | 無 |
| vpc:VpcDescribeVpcNatGatewayNetworkInterfaceQuota | VpcDescribeVpcNatGatewayNetworkInterfaceQuota | get |
*All Resource
*VPC
|
無 | 無 |
| vpc:DeleteVpnConnection | DeleteVpnConnection | delete |
*VpnConnection
*VSwitch
|
vpc:tag |
無 |
| vpc:DeleteIpv6Gateway | DeleteIpv6Gateway | delete |
*Ipv6Gateway
|
無 | 無 |
| vpc:AllocateIpv6Address | AllocateIpv6Address | create |
*Ipv6Address
|
vpc:VRouter vpc:VBR |
無 |
| vpc:ModifyIPv6TranslatorAttribute | ModifyIPv6TranslatorAttribute | update |
*Ipv6Translator
|
無 | 無 |
| vpc:ModifyEipForwardMode | ModifyEipForwardMode | update |
*Address
|
無 | 無 |
| vpc:DescribeSslVpnClientCert | DescribeSslVpnClientCert | get |
*SslVpnClientCert
|
無 | 無 |
| vpc:ModifyExpressConnectTrafficQos | ModifyExpressConnectTrafficQos | update |
*All Resource
|
無 | 無 |
| vpc:AddPublicIpAddressPoolCidrBlock | AddPublicIpAddressPoolCidrBlock | create |
*PublicIpAddressPool
|
無 | 無 |
| vpc:DescribeVSwitchAttributes | DescribeVSwitchAttributes | get |
*VSwitch
|
無 | 無 |
| vpc:ModifyVpnPbrRouteEntryAttribute | ModifyVpnPbrRouteEntryAttribute | update |
*VpnGateway
|
無 | 無 |
資源(Resource)
下表是定義的資源,這些資源可以在 RAM 權限原則語句的Resource元素中使用,用來授予對該資源執行具體操作的許可權。 其中,資源 ARN 是資源在阿里雲上的唯一標識。具體說明如下:
{#}為變數標識,需要您替換為實際值。例如:{#ramcode}需要您替換為實際的雲端服務RAM代碼。*表示全部。例如:{#resourceType}為*時:表示全部資源。{#regionId}為*時:表示全部地區。{#accountId}為*時:表示全部阿里雲帳號。
資源類型 |
資源 ARN |
| FlowLog |
|
| VpnConnection |
|
| VirtualBorderRouter |
|
| FlowLogService |
|
| NatGateway |
|
| BandwidthPackage |
|
| PhysicalConnection |
|
| RouterInterface |
|
| TrafficQos |
|
| SnatTable |
|
| Ipv6Translator |
|
| VPC |
|
| Ipv6Gateway |
|
| VpnGateway |
|
| PublicIpAddressPool |
|
| FullNat |
|
| Ipv4Gateway |
|
| NetworkAcl |
|
| Address |
|
| ForwardTable |
|
| RouteTable |
|
| IpsecServer |
|
| VSwitch |
|
| SegmentAddress |
|
| TrafficMirrorFilter |
|
| Instance |
|
| Association |
|
| GatewayEndpoint |
|
| CustomerGateway |
|
| CommonBandwidthPackage |
|
| RouteTargetGroup |
|
| PrefixList |
|
| VpnConnections |
|
| GlobalAccelerationInstance |
|
| HaVip |
|
| SslVpnServer |
|
| TrafficMirrorSession |
|
| Eip |
|
| DhcpOptionsSet |
|
| SslVpnClientCert |
|
| TrafficMirrorService |
|
| Ipv6InternetBandwidth |
|
| Ipv6Address |
|
| VpnCertificateAttachment |
|
| IPv6Translator |
|
| VRouter |
|
| GrantRuleToCen |
|
| VSwitchCidrReservation |
|
| GatewayInfo |
|
| SnatEntry |
|
| VpnAttachment |
|
| PublicIpAddressPoolService |
|
| RouteEntry |
|
| Ipv6EgressRule |
|
| physicalconnection |
|
條件(Condition)
下表是 定義的產品級條件關鍵字,這些條件關鍵字可以在 RAM 權限原則語句的Condition元素中使用,用來描述授予許可權的條件。以下僅列舉產品級的條件關鍵字,阿里雲定義的通用條件關鍵字也同樣適用。
其中,資料類型決定了您可以使用哪些條件運算子將請求中的值與權限原則語句中的值進行比較。您必須使用與資料類型匹配的條件運算子,否則無法匹配策略語句,授權行為無效。資料類型與條件運算子的對應關係,請參見條件操作類型。
條件關鍵字 |
描述 |
類型 |
| vpc:VRouter | 路由器資訊 | String |
| vpc:VPC | VPC資訊 | String |
| vpc:tag | VPC的標籤 | String |
| vpc:TargetAccountRDId | 對端使用者資源目錄ID資訊 | String |
| vpc:PhysicalConnection | 物理專線資訊 | String |
| vpc:VBR | 邊界路由器資訊 | String |
相關操作
您可以建立自訂權限原則,並將權限原則授予 RAM 使用者、RAM 使用者組或 RAM 角色。具體操作如下: