访问控制(RAM)是阿里云提供的管理用户身份与资源访问权限的服务。使用RAM可以让您避免与其他用户共享阿里云账号密钥,并可按需为用户授予最小权限。RAM中使用获取最小权限策略描述授权的具体内容。

本文为您介绍计算巢服务(ComputeNestSupplier)为RAM权限策略定义的操作(Action)、资源(Resource)和条件(Condition)。计算巢服务(ComputeNestSupplier)的RAM代码(RamCode)为 computenest、computenestsupplier,支持的授权粒度为资源级

权限策略通用结构

权限策略支持JSON格式,其通用结构如下:展开详情

操作(Action)

下表是计算巢服务(ComputeNestSupplier)定义的操作,这些操作可以在RAM权限策略语句的Action元素中使用,用来授予执行该操作的权限。下面对表中的具体项提供说明:展开详情

操作API访问级别资源类型条件关键字关联操作
computenestsupplier:AddServiceSharedAccounts
新增服务的共享账号
Create
Service
acs:computenestsupplier:{#regionId}:{#accountId}:service/{#serviceId}
computenestsupplier:ApproveServiceUsage
商家调用ApproveServiceUsage通过服务使用请求
Update
Service
acs:computenestsupplier:{#regionId}:{#accountId}:service/{#ServiceId}
computenestsupplier:BindCommoditySpecification
Update
Service
acs:computenestsupplier:*:{#accountId}:service/{#ServiceId}
computenestsupplier:CancelServiceRegistration
取消服务审核申请
Delete
ServiceRegistration
acs:computenestsupplier:{#regionId}:{#accountId}:serviceregistration/{#ServiceRegistrationId}
computenestsupplier:ContinueDeployServiceInstance
服务实例部署失败后,通过指定地域ID、服务ID、服务实例配置参数,继续部署服务实例
Update
ServiceInstance
acs:computenestsupplier:{#regionId}:{#accountId}:serviceinstance/{#serviceinstanceId}
computenestsupplier:CreateArtifact
创建部署物
Create
Artifact
acs:computenestsupplier:{#regionId}:{#accountId}:artifact/{#ArtifactId}
computenestsupplier:CreateOpsNotice
Create
OpsNotice
acs:computenestsupplier:{#regionId}:{#accountId}:opsnotice/*
computenestsupplier:CreateService
通过地域ID、部署类型、服务类型、服务名称等参数,创建新的服务
Create
Service
acs:computenestsupplier:{#regionId}:{#accountId}:service/*
computenestsupplier:CreateServiceInstance
通过指定地域ID、服务ID、服务版本等参数,创建并部署服务实例
Create
全部资源
*
computenestsupplier:CreateServiceTestCase
创建服务测试用例
Create
ServiceTestCase
acs:computenestsupplier:{#regionId}:{#accountId}:servicetestcase/*
资源(Resource)

下表是计算巢服务(ComputeNestSupplier)定义的资源,这些资源可以在RAM权限策略语句的Resource元素中使用,用来授予对该资源执行具体操作的权限。

其中,资源ARN是资源在阿里云上的唯一标识。具体说明如下:

  • {#}为变量标识,需要您替换为实际值。例如: {#ramcode} 需要您替换为实际的云服务RAM代码。
  • *表示全部。例如:
    • {#resourceType}/* :表示全部资源。
    • {#regionId}*时:表示全部地域。
    • {#accountId}*时:表示全部阿里云账号。
资源类型资源ARN
Artifact
  • acs:computenestsupplier:{#regionId}:{#AccountId}:artifact/{#ArtifactId}
  • acs:computenestsupplier:*:{#accountId}:artifact/{#ArtifactId}
  • acs:computenestsupplier:{#regionId}:{#accountId}:artifact/*
  • acs:computenest:{#regionId}:{#accountId}:*
  • acs:computenestsupplier:*:{#accountId}:artifact/*
  • acs:computenest::{#accountId}:artifact/{#ArtifactId}
IntranetConnectorEndpoint
  • acs:computenestsupplier:{#regionId}:{#accountId}:IntranetConnectorEndpoint/*
IntranetConnectorService
  • acs:computenestsupplier:{#regionId}:{#accountId}:intranetconnectorservice/{#VirtualInternetServiceId}
  • acs:computenestsupplier:{#regionId}:{#accountId}:intranetconnectorservice/*
OpsNotice
  • acs:computenestsupplier:{#regionId}:{#accountId}:opsnotice/*
  • acs:computenestsupplier:{#regionId}:{#accountId}:opsnotice/{#OpsNoticeId}
Policy
  • acs:computenestsupplier:{#regionId}:{#accountId}:policy/*
Service
  • acs:computenestsupplier:*:{#accountId}:service/{#ServiceId}
  • acs:computenestsupplier:{#regionId}:{#accountId}:service/{#serviceId}
  • acs:computenestsupplier:{#regionId}:{#accountId}:service/*
  • acs:computenest:{#regionId}:{#accountId}:service/{#ServiceId}
ServiceInstance
  • acs:computenestsupplier:{#regionId}:{#accountId}:serviceinstance/*
  • acs:computenestsupplier:{#regionId}:{#AccountId}:serviceinstance/{#ServiceInstanceId}
  • acs:computenestsupplier:*:{#accountId}:serviceinstance/{#serviceinstanceId}
ServiceRegistration
  • acs:computenestsupplier:{#regionId}:{#accountId}:serviceregistration/{#ServiceRegistrationId}
  • acs:computenestsupplier:{#regionId}:{#accountId}:serviceregistration/{#registrationId}
  • acs:computenestsupplier:{#regionId}:{#accountId}:serviceregistration/*
ServiceTestCase
  • acs:computenestsupplier:{#regionId}:{#accountId}:servicetestcase/*
  • acs:computenestsupplier:{#regionId}:{#accountId}:servicetestcase/{#TestCaseId}
ServiceTestTask
  • acs:computenestsupplier:{#regionId}:{#accountId}:servicetesttask/*
条件(Condition)

计算巢服务(ComputeNestSupplier)未定义产品级别的条件关键字。如需查看适用于所有云产品的通用条件关键字,请参见通用条件关键字

相关操作

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