访问控制(RAM)是阿里云提供的管理用户身份与资源访问权限的服务。使用RAM可以让您避免与其他用户共享阿里云账号密钥,并可按需为用户授予最小权限。RAM中使用权限策略描述授权的具体内容。
本文为您介绍智能计算灵骏(eflo)为RAM权限策略定义的操作(Action)、资源(Resource)和条件(Condition)。智能计算灵骏(eflo)的RAM代码(RamCode)为 eflo,支持的授权粒度为资源级。
权限策略通用结构
权限策略支持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:AssignLeniPrivateIpAddress | AssignLeniPrivateIpAddress | update | *ElasticNetworkInterface acs:eflo:{#regionId}:{#accountId}:ElasticNetworkInterface/{#ElasticNetworkInterfaceId} | 无 | 无 |
eflo:AssignPrivateIpAddress | AssignPrivateIpAddress | create | *PrivateIpAddress acs:eflo:{#regionId}:{#accountId}:NetworkInterface/{#NetworkInterfaceId} | 无 | 无 |
eflo:AssociateVpdCidrBlock | AssociateVpdCidrBlock | create | *Vpd acs:eflo:{#regionId}:{#accountId}:Vpd/{#VpdId} | 无 | 无 |
eflo:AttachElasticNetworkInterface | AttachElasticNetworkInterface | update | *ElasticNetworkInterface acs:eflo:{#regionId}:{#accountId}:ElasticNetworkInterface/{#ElasticNetworkInterfaceId} | 无 | 无 |
eflo:CreateElasticNetworkInterface | CreateElasticNetworkInterface | create | *ElasticNetworkInterface acs:eflo:{#regionId}:{#accountId}:ElasticNetworkInterface/* | 无 | 无 |
eflo:CreateEr | CreateEr | create | *Er acs:eflo:{#regionId}:{#accountId}:Er/* | 无 | 无 |
eflo:CreateErAttachment | CreateErAttachment | create | *ErAttachment acs:eflo:{#regionId}:{#accountId}:Er_Attachment/* | 无 | 无 |
eflo:CreateErRouteMap | CreateErRouteMap | create | *ErRouteMap acs:eflo:{#regionId}:{#accountId}:Er_RMap/* | 无 | 无 |
eflo:CreateSubnet | CreateSubnet | create | *Subnet acs:eflo:{#regionId}:{#accountId}:Subnet/* | 无 | 无 |
eflo:CreateVcc | CreateVcc | create | *Vcc acs:eflo:{#regionId}:{#accountId}:Vcc/* | 无 | 无 |
eflo:CreateVccGrantRule | CreateVccGrantRule | create | *VccGrantRule acs:eflo:{#regionId}:{#accountId}:VccGrantRule/* | 无 | 无 |
eflo:CreateVccRouteEntry | CreateVccRouteEntry | create | *VccRouteEntry acs:eflo:{#regionId}:{#accountId}:Vcc_Rte/* | 无 | 无 |
eflo:CreateVpd | CreateVpd | create | *Vpd acs:eflo:{#regionId}:{#accountId}:vpd/* | 无 | 无 |
eflo:CreateVpdGrantRule | CreateVpdGrantRule | create | *VpdGrantRule acs:eflo:{#regionId}:{#accountId}:VpdGrantRule/* | 无 | 无 |
eflo:DeleteElasticNetworkInterface | DeleteElasticNetworkInterface | delete | *ElasticNetworkInterface acs:eflo:{#regionId}:{#accountId}:ElasticNetworkInterface/{#ElasticNetworkInterfaceId} | 无 | 无 |
eflo:DeleteEr | DeleteEr | delete | *Er acs:eflo:{#regionId}:{#accountId}:Er/{#ErId} | 无 | 无 |
eflo:DeleteErAttachment | DeleteErAttachment | delete | *ErAttachment acs:eflo:{#regionId}:{#accountId}:Er_Attachment/{#ErAttachmentId} | 无 | 无 |
eflo:DeleteErRouteMap | DeleteErRouteMap | delete | *全部资源 * | 无 | 无 |
eflo:DeleteSubnet | DeleteSubnet | delete | *Subnet acs:eflo:{#regionId}:{#accountId}:subnet/{#SubnetId} | 无 | 无 |
eflo:DeleteVccGrantRule | DeleteVccGrantRule | delete | *VccGrantRule acs:eflo:{#regionId}:{#accountId}:VccGrantRule/{#GrantRuleId} | 无 | 无 |
eflo:DeleteVccRouteEntry | DeleteVccRouteEntry | delete | *VccRouteEntry acs:eflo:{#regionId}:{#accountId}:Vcc_Rte/{#VccRouteEntryId} | 无 | 无 |
eflo:DeleteVpd | DeleteVpd | delete | *Vpd acs:eflo:{#regionId}:{#accountId}:vpd/{#VpdId} | 无 | 无 |
eflo:DeleteVpdGrantRule | DeleteVpdGrantRule | delete | *VpdGrantRule acs:eflo:{#regionId}:{#accountId}:VpdGrantRule/{#GrantRuleId} | 无 | 无 |
eflo:DescribeSlr | DescribeSlr | get | *全部资源 * | 无 | 无 |
eflo:DetachElasticNetworkInterface | DetachElasticNetworkInterface | update | *ElasticNetworkInterface acs:eflo:{#regionId}:{#accountId}:ElasticNetworkInterface/{#ElasticNetworkInterfaceId} | 无 | 无 |
eflo:GetDestinationCidrBlock | GetDestinationCidrBlock | get | *全部资源 * | 无 | 无 |
eflo:GetElasticNetworkInterface | GetElasticNetworkInterface | get | *ElasticNetworkInterface acs:eflo:{#regionId}:{#accountId}:ElasticNetworkInterface/{#ElasticNetworkInterfaceId} | 无 | 无 |
eflo:GetEr | GetEr | get | *Er acs:eflo:{#regionId}:{#accountId}:Er/{#ErId} | 无 | 无 |
eflo:GetErAttachment | GetErAttachment | get | *ErAttachment acs:eflo:{#regionId}:{#accountId}:Er_Attachment/{#ErAttachmentId} | 无 | 无 |
eflo:GetErRouteEntry | GetErRouteEntry | get | *ErRouteEntry acs:eflo:{#regionId}:{#accountId}:Er_Rte/{#ErRouteEntryId} | 无 | 无 |
eflo:GetErRouteMap | GetErRouteMap | get | *ErRouteMap acs:eflo:{#regionId}:{#accountId}:Er_RMap/{#ErRouteMapId} | 无 | 无 |
eflo:GetFabricTopology | GetFabricTopology | get | *全部资源 * | 无 | 无 |
eflo:GetLeniPrivateIpAddress | GetLeniPrivateIpAddress | get | *ElasticNetworkInterface acs:eflo:{#regionId}:{#accountId}:ElasticNetworkInterface/{#ElasticNetworkInterfaceId} | 无 | 无 |
eflo:GetLniPrivateIpAddress | GetLniPrivateIpAddress | get | *PrivateIpAddress acs:eflo:{#regionId}:{#accountId}:NetworkInterface/{#NetworkInterfaceId} | 无 | 无 |
eflo:GetNetworkInterface | GetNetworkInterface | get | *NetworkInterface acs:eflo:{#regionId}:{#accountId}:NetworkInterface/{#NetworkInterfaceId} | 无 | 无 |
eflo:GetNodeInfoForPod | GetNodeInfoForPod | get | *全部资源 * | 无 | 无 |
eflo:GetSubnet | GetSubnet | get | *Subnet acs:eflo:{#regionId}:{#accountId}:subnet/{#SubnetId} | 无 | 无 |
eflo:GetVcc | GetVcc | get | *Vcc acs:eflo:{#regionId}:{#accountId}:vcc/{#VccId} | 无 | 无 |
eflo:GetVccGrantRule | GetVccGrantRule | get | *VccGrantRule acs:eflo:{#regionId}:{#accountId}:VccGrantRule/{#GrantRuleId} | 无 | 无 |
eflo:GetVccRouteEntry | GetVccRouteEntry | get | *VccRouteEntry acs:eflo:{#regionId}:{#accountId}:Vcc_Rte/{#VccRouteEntryId} | 无 | 无 |
eflo:GetVpd | GetVpd | get | *Vpd acs:eflo:{#regionId}:{#accountId}:vpd/{#VpdId} | 无 | 无 |
eflo:GetVpdGrantRule | GetVpdGrantRule | get | *VpdGrantRule acs:eflo:{#regionId}:{#accountId}:VpdGrantRule/{#GrantRuleId} | 无 | 无 |
eflo:GetVpdRouteEntry | GetVpdRouteEntry | get | *VpdRouteEntry acs:eflo:{#regionId}:{#accountId}:Vpd_Rte/{#VpdRouteEntryId} | 无 | 无 |
eflo:InitializeVcc | InitializeVcc | none | *全部资源 * | 无 | 无 |
eflo:ListElasticNetworkInterfaces | ListElasticNetworkInterfaces | list | *ElasticNetworkInterface acs:eflo:{#regionId}:{#accountId}:ElasticNetworkInterface/* | 无 | 无 |
eflo:ListErAttachments | ListErAttachments | list | *ErAttachment acs:eflo:{#regionId}:{#accountId}:Er_Attachment/* | 无 | 无 |
eflo:ListErRouteEntries | ListErRouteEntries | list | *ErRouteEntry acs:eflo:{#regionId}:{#accountId}:Er_Rte/* | 无 | 无 |
eflo:ListErRouteMaps | ListErRouteMaps | list | *ErRouteMap acs:eflo:{#regionId}:{#accountId}:Er_RMap/{#ErRouteMapId} | 无 | 无 |
eflo:ListErs | ListErs | list | *Er acs:eflo:{#regionId}:{#accountId}:er/* | 无 | 无 |
eflo:ListInstancesByNcd | ListInstancesByNcd | get | *全部资源 * | 无 | 无 |
eflo:ListLeniPrivateIpAddresses | ListLeniPrivateIpAddresses | list | *ElasticNetworkInterfacePrivateIp acs:eflo:{#regionId}:{#accountId}:ElasticNetworkInterface/* | 无 | 无 |
eflo:ListLniPrivateIpAddress | ListLniPrivateIpAddress | get | *PrivateIpAddress acs:eflo:{#regionId}:{#accountId}:NetworkInterface/* | 无 | 无 |
eflo:ListNetworkInterfaces | ListNetworkInterfaces | list | *NetworkInterface acs:eflo:{#regionId}:{#accountId}:NetworkInterface/* | 无 | 无 |
eflo:ListNodeInfosForPod | ListNodeInfosForPod | list | *全部资源 * | 无 | 无 |
eflo:ListSubnets | ListSubnets | get | *Subnet acs:eflo:{#regionId}:{#accountId}:Subnet/* | 无 | 无 |
eflo:ListVccFlowInfos | ListVccFlowInfos | list | *Vcc acs:eflo:{#regionId}:{#accountId}:Vcc/{#VccId} | 无 | 无 |
eflo:ListVccGrantRules | ListVccGrantRules | list | *VccGrantRule acs:eflo:{#regionId}:{#accountId}:VccGrantRule/* | 无 | 无 |
eflo:ListVccRouteEntries | ListVccRouteEntries | list | *VccRouteEntry acs:eflo:{#regionId}:{#accountId}:Vcc_Rte/* | 无 | 无 |
eflo:ListVccs | ListVccs | get | *Vcc acs:eflo:{#regionId}:{#accountId}:vcc/* | 无 | 无 |
eflo:ListVpdGrantRules | ListVpdGrantRules | list | *VpdGrantRule acs:eflo:{#regionId}:{#accountId}:VpdGrantRule/* | 无 | 无 |
eflo:ListVpdRouteEntries | ListVpdRouteEntries | list | *VpdRouteEntry acs:eflo:{#regionId}:{#accountId}:Vpd_Rte/* | 无 | 无 |
eflo:ListVpds | ListVpds | get | *Vpd acs:eflo:{#regionId}:{#accountId}:vpd/* | 无 | 无 |
eflo:QueryInstanceNcd | QueryInstanceNcd | get | *全部资源 * | 无 | 无 |
eflo:RefundVcc | RefundVcc | delete | *Vcc acs:eflo:{#regionId}:{#accountId}:Vcc/{#VccId} | 无 | 无 |
eflo:RetryVcc | RetryVcc | update | *Vcc acs:eflo:{#regionId}:{#accountId}:vcc/{#VccId} | 无 | 无 |
eflo:UnAssignPrivateIpAddress | UnAssignPrivateIpAddress | delete | *PrivateIpAddress acs:eflo:{#regionId}:{#accountId}:NetworkInterface/{#NetworkInterfaceId} | 无 | 无 |
eflo:UnAssociateVpdCidrBlock | UnAssociateVpdCidrBlock | delete | *Vpd acs:eflo:{#regionId}:{#accountId}:Vpd/{#VpdId} | 无 | 无 |
eflo:UnassignLeniPrivateIpAddress | UnassignLeniPrivateIpAddress | update | *ElasticNetworkInterface acs:eflo:{#regionId}:{#accountId}:ElasticNetworkInterface/{#ElasticNetworkInterfaceId} | 无 | 无 |
eflo:UpdateElasticNetworkInterface | UpdateElasticNetworkInterface | update | *ElasticNetworkInterface acs:eflo:{#regionId}:{#accountId}:Elasticnetworkinterface/{#ElasticNetworkInterfaceId} | 无 | 无 |
eflo:UpdateEr | UpdateEr | update | *Er acs:eflo:{#regionId}:{#accountId}:Er/{#ErId} | 无 | 无 |
eflo:UpdateErAttachment | UpdateErAttachment | update | *ErAttachment acs:eflo:{#regionId}:{#accountId}:Er_Attachment/{#ErAttachmentId} | 无 | 无 |
eflo:UpdateErRouteMap | UpdateErRouteMap | update | *ErRouteMap acs:eflo:{#regionId}:{#accountId}:Er_RMap/{#ErRouteMapId} | 无 | 无 |
eflo:UpdateLeniPrivateIpAddress | UpdateLeniPrivateIpAddress | update | *ElasticNetworkInterface acs:eflo:{#regionId}:{#accountId}:Elasticnetworkinterface/{#ElasticNetworkInterfaceId} | 无 | 无 |
eflo:UpdateSubnet | UpdateSubnet | update | *Subnet acs:eflo:{#regionId}:{#accountId}:Subnet/{#SubnetId} | 无 | 无 |
eflo:UpdateVcc | UpdateVcc | update | *Vcc acs:eflo:{#regionId}:{#accountId}:vcc/{#VccId} | 无 | 无 |
eflo:UpdateVpd | UpdateVpd | update | *Vpd acs:eflo:{#regionId}:{#accountId}:vpd/{#VpdId} | 无 | 无 |
资源(Resource)
下表是智能计算灵骏(eflo)定义的资源,这些资源可以在RAM权限策略语句的Resource
元素中使用,用来授予对该资源执行具体操作的权限。 其中,资源ARN是资源在阿里云上的唯一标识。具体说明如下:{#}
为变量标识,需要您替换为实际值。例如:{#ramcode}
需要您替换为实际的云服务RAM代码。-
*
表示全部。例如:{#resourceType}
为*
时:表示全部资源。{#regionId}
为*
时:表示全部地域。{#accountId}
为*
时:表示全部阿里云账号。
资源类型 | 资源ARN |
---|---|
ElasticNetworkInterface |
|
ElasticNetworkInterfacePrivateIp |
|
Er |
|
ErAttachment |
|
ErRouteEntry |
|
ErRouteMap |
|
HighDensityElasticNetworkInterface |
|
NetworkInterface |
|
Node |
|
PrivateIpAddress |
|
Subnet |
|
Vcc |
|
VccGrantRule |
|
VccRouteEntry |
|
Vpd |
|
VpdGrantRule |
|
VpdRouteEntry |
|
条件(Condition)
智能计算灵骏(eflo)未定义产品级别的条件关键字。如需查看适用于所有云产品的通用条件关键字,请参见通用条件关键字。