訪問控制(RAM)是阿里云提供的管理用戶身份與資源訪問權限的服務。使用RAM可以讓您避免與其他用戶共享阿里云賬號密鑰,并可按需為用戶授予最小權限。RAM中使用權限策略描述授權的具體內容。
本文為您介紹智能計算靈駿(Eflo)為RAM權限策略定義的操作(Action)、資源(Resource)和條件(Condition)。智能計算靈駿(Eflo)的RAM代碼(RamCode)為eflo,支持的授權粒度為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)
下表是智能計算靈駿(Eflo)定義的操作,這些操作可以在RAM權限策略語句的Action
元素中使用,用來授予執行該操作的權限。下面對表中的具體項提供說明:- 操作:是指具體的權限點。
- API:是指操作對應的API接口。
- 訪問級別:是指每個操作的訪問級別,取值為寫入(Write)、讀取(Read)或列出(List)。
- 資源類型:是指操作中支持授權的資源類型。具體說明如下:
- 對于必選的資源類型,用背景高亮的方式表示。
- 對于不支持資源級授權的操作,用
全部資源
表示。
- 條件關鍵字:是指云產品自身定義的條件關鍵字。該列不體現適用于任何操作的通用條件關鍵字。
- 關聯操作:是指成功執行操作所需要的其他權限。操作者必須同時具備關聯操作的權限,操作才能成功。
操作 | API | 訪問級別 | 資源類型 | 條件關鍵字 | 關聯操作 |
---|---|---|---|---|---|
eflo:ListNodeInfosForPod | ListNodeInfosForPod | get | 全部資源 * | 無 | 無 |
eflo:InitializeVcc | InitializeVcc | Write | 全部資源 * | 無 | 無 |
eflo:CreateVccRouteEntry | CreateVccRouteEntry | create | 全部資源 * | 無 | 無 |
eflo:DeleteVccRouteEntry | DeleteVccRouteEntry | Write | 全部資源 * | 無 | 無 |
eflo:GetEr | GetEr | get | 全部資源 * | 無 | 無 |
eflo:ListVpds | ListVpds | get | Vpd acs:eflo:{#regionId}:{#accountId}:vpd/* | 無 | 無 |
eflo:GetVpd | GetVpd | get | Vpd acs:eflo:{#regionId}:{#accountId}:vpd/{#VpdId} | 無 | 無 |
eflo:GetErRouteEntry | GetErRouteEntry | get | 全部資源 * | 無 | 無 |
eflo:CreateErRouteMap | CreateErRouteMap | Write | 全部資源 * | 無 | 無 |
eflo:AssociateVpdCidrBlock | AssociateVpdCidrBlock | create | 全部資源 * | 無 | 無 |
eflo:CreateVpd | CreateVpd | create | Vpd acs:eflo:{#regionId}:{#accountId}:vpd/* | 無 | 無 |
eflo:UpdateErAttachment | UpdateErAttachment | Write | 全部資源 * | 無 | 無 |
eflo:ListNetworkInterfaces | ListNetworkInterfaces | get | 全部資源 * | 無 | 無 |
eflo:GetErRouteMap | GetErRouteMap | get | 全部資源 * | 無 | 無 |
eflo:DeleteEr | DeleteEr | delete | 全部資源 * | 無 | 無 |
eflo:UnassignLeniPrivateIpAddress | UnassignLeniPrivateIpAddress | delete | 全部資源 * | 無 | 無 |
eflo:GetVpdRouteEntry | GetVpdRouteEntry | get | 全部資源 * | 無 | 無 |
eflo:ListVpdRouteEntries | ListVpdRouteEntries | list | 全部資源 * | 無 | 無 |
eflo:ListErRouteMaps | ListErRouteMaps | list | 全部資源 * | 無 | 無 |
eflo:ListVccs | ListVccs | get | Vcc acs:eflo:{#regionId}:{#accountId}:vcc/* | 無 | 無 |
eflo:GetElasticNetworkInterface | GetElasticNetworkInterface | get | 全部資源 * | 無 | 無 |
eflo:UpdateVcc | UpdateVcc | update | Vcc acs:eflo:{#regionId}:{#accountId}:vcc/{#VccId} | 無 | 無 |
eflo:AssignPrivateIpAddress | AssignPrivateIpAddress | create | 全部資源 * | 無 | 無 |
eflo:UpdateSubnet | UpdateSubnet | update | 全部資源 * | 無 | 無 |
eflo:DeleteVpd | DeleteVpd | delete | Vpd acs:eflo:{#regionId}:{#accountId}:vpd/{#VpdId} | 無 | 無 |
eflo:DescribeSlr | DescribeSlr | get | 全部資源 * | 無 | 無 |
eflo:DeleteVccGrantRule | DeleteVccGrantRule | Write | 全部資源 * | 無 | 無 |
eflo:QueryInstanceNcd | QueryInstanceNcd | get | 全部資源 * | 無 | 無 |
eflo:CreateVccGrantRule | CreateVccGrantRule | create | 全部資源 * | 無 | 無 |
eflo:UpdateVpd | UpdateVpd | update | 全部資源 * | 無 | 無 |
eflo:ListVccGrantRules | ListVccGrantRules | list | 全部資源 * | 無 | 無 |
eflo:GetLeniPrivateIpAddress | GetLeniPrivateIpAddress | get | 全部資源 * | 無 | 無 |
eflo:DeleteSubnet | DeleteSubnet | delete | Subnet acs:eflo:{#regionId}:{#accountId}:subnet/{#SubnetId} | 無 | 無 |
eflo:ListSubnets | ListSubnets | get | 全部資源 * | 無 | 無 |
eflo:CreateElasticNetworkInterface | CreateElasticNetworkInterface | create | 全部資源 * | 無 | 無 |
eflo:GetSubnet | GetSubnet | get | Subnet acs:eflo:{#regionId}:{#accountId}:subnet/{#SubnetId} | 無 | 無 |
eflo:DeleteErAttachment | DeleteErAttachment | Write | 全部資源 * | 無 | 無 |
eflo:ListVccRouteEntries | ListVccRouteEntries | list | 全部資源 * | 無 | 無 |
eflo:CreateSubnet | CreateSubnet | create | 全部資源 * | 無 | 無 |
eflo:ListInstancesByNcd | ListInstancesByNcd | get | 全部資源 * | 無 | 無 |
eflo:UpdateElasticNetworkInterface | UpdateElasticNetworkInterface | update | 全部資源 * | 無 | 無 |
eflo:UpdateEr | UpdateEr | update | 全部資源 * | 無 | 無 |
eflo:DeleteVpdGrantRule | DeleteVpdGrantRule | Write | 全部資源 * | 無 | 無 |
eflo:GetVccRouteEntry | GetVccRouteEntry | get | 全部資源 * | 無 | 無 |
eflo:ListErAttachments | ListErAttachments | list | 全部資源 * | 無 | 無 |
eflo:UpdateErRouteMap | UpdateErRouteMap | Write | 全部資源 * | 無 | 無 |
eflo:GetVcc | GetVcc | get | Vcc acs:eflo:{#regionId}:{#accountId}:vcc/{#VccId} | 無 | 無 |
eflo:ListErRouteEntries | ListErRouteEntries | list | 全部資源 * | 無 | 無 |
eflo:GetVccGrantRule | GetVccGrantRule | get | 全部資源 * | 無 | 無 |
eflo:GetFabricTopology | GetFabricTopology | get | 全部資源 * | 無 | 無 |
eflo:CreateErAttachment | CreateErAttachment | Write | 全部資源 * | 無 | 無 |
eflo:DeleteErRouteMap | DeleteErRouteMap | Write | 全部資源 * | 無 | 無 |
eflo:GetNodeInfoForPod | GetNodeInfoForPod | get | 全部資源 * | 無 | 無 |
eflo:AssignLeniPrivateIpAddress | AssignLeniPrivateIpAddress | 全部資源 * | 無 | 無 | |
eflo:GetVpdGrantRule | GetVpdGrantRule | get | 全部資源 * | 無 | 無 |
eflo:GetNetworkInterface | GetNetworkInterface | get | 全部資源 * | 無 | 無 |
eflo:GetLniPrivateIpAddress | GetLniPrivateIpAddress | get | 全部資源 * | 無 | 無 |
eflo:UpdateLeniPrivateIpAddress | UpdateLeniPrivateIpAddress | update | 全部資源 * | 無 | 無 |
eflo:CreateVcc | CreateVcc | create | 全部資源 * | 無 | 無 |
eflo:DeleteElasticNetworkInterface | DeleteElasticNetworkInterface | Write | 全部資源 * | 無 | 無 |
eflo:GetErAttachment | GetErAttachment | get | 全部資源 * | 無 | 無 |
eflo:CreateVpdGrantRule | CreateVpdGrantRule | Write | 全部資源 * | 無 | 無 |
eflo:UnAssociateVpdCidrBlock | UnAssociateVpdCidrBlock | delete | 全部資源 * | 無 | 無 |
eflo:ListErs | ListErs | list | Er acs:eflo:{#regionId}:{#accountId}:er/* | 無 | 無 |
eflo:ListElasticNetworkInterfaces | ListElasticNetworkInterfaces | list | 全部資源 * | 無 | 無 |
eflo:CreateEr | CreateEr | create | 全部資源 * | 無 | 無 |
eflo:ListLeniPrivateIpAddresses | ListLeniPrivateIpAddresses | 全部資源 * | 無 | 無 | |
eflo:UnAssignPrivateIpAddress | UnAssignPrivateIpAddress | delete | 全部資源 * | 無 | 無 |
eflo:ListVpdGrantRules | ListVpdGrantRules | list | 全部資源 * | 無 | 無 |
eflo:ListLniPrivateIpAddress | ListLniPrivateIpAddress | get | 全部資源 * | 無 | 無 |
資源(Resource)
下表是智能計算靈駿(Eflo)定義的資源,這些資源可以在RAM權限策略語句的Resource
元素中使用,用來授予對該資源執行具體操作的權限。 其中,資源ARN是資源在阿里云上的唯一標識。具體說明如下:{#}
為變量標識,需要您替換為實際值。例如:{#ramcode}
需要您替換為實際的云服務RAM代碼。-
*
表示全部。例如:{#resourceType}
為*
時:表示全部資源。{#regionId}
為*
時:表示全部地域。{#accountId}
為*
時:表示全部阿里云賬號。
資源類型 | 資源ARN |
---|---|
Vcc | acs:eflo:{#regionId}:{#accountId}:vcc/* |
VccRouteEntry | acs:*:{#regionId}:{#accountId}:vcc_rte/* |
Vcc | acs:*:{#regionId}:{#accountId}:vcc/{#VccId} |
Er | acs::{#regionId}:{#accountId}:er/{#ErId} |
Vcc | acs:eflo:{#regionId}:{#accountId}:vcc/{#VccId} |
Vpd | acs:eflo:{#regionId}:{#accountId}:vpd/* |
Vpd | acs:eflo:{#regionId}:{#accountId}:vpd/{#VpdId} |
HighDensityElasticNetworkInterface | acs:eflo:{#regionId}:{#accountId}: |
ErRouteEntry | acs::{#regionId}:{#accountId}:er_rte/{#ErRouteEntryId} |
Er | acs:*:{#regionId}:{#accountId}:er/{#ErId} |
ErRouteMap | acs:*:{#regionId}:{#accountId}:er_rmap/* |
Vpd | acs:*:{#regionId}:{#accountId}:vpd/{#VpdId} |
ErAttachment | acs:*:{#regionId}:{#accountId}:er_attachment/#{ErAttachmentId} |
LingJunNetworkInterface | acs::{#regionId}:{#accountId}:LingJunNetworkInterface/* |
ErRouteMap | acs:*:{#regionId}:{#accountId}:er_rmap/{#ErRouteMapId} |
ElasticNetworkInterface | acs:eflo:{#regionId}:{#accountId}:leni_private_ip/* |
VpdRouteEntry | acs::*:{#accountId}:VpdRouteEntry/{#VpdRouteEntryId} |
VpdRouteEntry | acs::*:{#accountId}:VpdRouteEntry/* |
ErRouteMap | acs::{#regionId}:{#accountId}:er_rmap/* |
ElasticNetworkInterface | acs:eflo:{#regionId}:{#accountId}:elasticnetworkinterface/* |
PrivateIpAddress | acs::{#regionId}:{#accountId}:PrivateIpAddress/* |
Subnet | acs:eflo:{#regionId}:{#accountId}:subnet/{#SubnetId} |
PrivateIpAddress | acs:eflo:{#regionId}:{#accountId}:privateipaddress/{#IpName} |
HighDensityElasticNetworkInterface | acs:eflo:{#regionId}:{#accountId}:{#HighDensityElasticNetworkInterfaceId} |
VccGrantRule | acs::{#regionId}:{#accountId}:vccgrantrule/{#GrantRuleId} |
VccGrantRule | acs::{#regionId}:{#accountId}:vccgrantrule/* |
ElasticNetworkInterface | acs:eflo:{#regionId}:{#accountId}:leni_private_ip/{#IpName} |
Subnet | acs:eflo:{#regionId}:{#accountId}:subnet/* |
ErAttachment | acs::{#regionId}:{#accountId}:er_attachment/#{ErAttachmentId} |
VccRouteEntry | acs::*:{#accountId}:vcc_rte/* |
NetworkInterface | acs:eflo:{#regionId}:{#accountId}:networkinterface/{#NetworkInterfaceId} |
ElasticNetworkInterface | acs:eflo:{#regionId}:{#accountId}:leni/* |
VpdGrantRule | acs::{#regionId}:{#accountId}:vpdgrantrule/{#GrantRuleId} |
VccRouteEntry | acs::*:{#accountId}:vcc_rte/{#VccRouteEntryId} |
ErAttachment | acs::{#regionId}:{#accountId}:er_attachment/* |
ErRouteMap | acs::{#regionId}:{#accountId}:er_rmap/{#ErRouteMapId} |
ErRouteEntry | acs::{#regionId}:{#accountId}:er_rte/* |
LingJunNetworkInterface | acs::{#regionId}:{#accountId}:LingJunNetworkInterface/NetworkInterfaceId |
PrivateIpAddress | acs::{#regionId}:{#accountId}:PrivateIpAddress/IpName |
HighDensityElasticNetworkInterface | acs:eflo:{#regionId}:{#accountId}:{*} |
VPC | acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId} |
VSwitch | acs:vpc:{#regionId}:{#accountId}:vswitch/{#VSwitchId} |
CenInstance | acs:cen:*:{#accountId}:ceninstance/{#CenId} |
ErAttachment | acs::{#regionId}:{#accountId}:er_attachment/{#ErAttachmentId} |
VpdGrantRule | acs::{#regionId}:{#accountId}:vpdgrantrule/* |
Er | acs:eflo:{#regionId}:{#accountId}:er/* |
Er | acs::{#regionId}:{#accountId}:er/* |
條件(Condition)
智能計算靈駿(Eflo)未定義產品級別的條件關鍵字。如需查看適用于所有云產品的通用條件關鍵字,請參見通用條件關鍵字。