资源级权限指的是能够指定用户对哪些资源具有执行操作的能力。例如,您可授权用户拥有广州地域的轻量应用服务器操作权限。
在访问管理 CAM 中轻量应用服务器可授权的资源类型如下:
资源类型 | 授权策略中的资源描述方法 |
实例相关 | qcs::lighthouse:$region:$account:instance/* |
镜像相关 | qcs::lighthouse:$region:$account:blueprint/* |
快照相关 | qcs::lighthouse:$region:$account:snapshot/* |
密钥相关 | qcs::lighthouse:$region:$account:keypair/* |
下表中列出了当前支持资源级权限的轻量应用服务器的 API 操作,以及每个操作支持的资源和条件密钥。设置资源路径时,您需要将
$region
、$account
等变量参数修改为您实际的参数信息,同时您也可以在路径中使用 *
通配符。
访问管理策略中的 region、action、account、resource 等相关概念请参见 资源描述方式。注意
表中未列出的轻量应用服务器 API 操作即表示该 API 操作不支持资源级权限。针对不支持资源级权限的 API 操作,您仍可以向用户授予使用该操作的权限,但是策略语句的资源元素必须指定为
*
。实例相关
API 接口:action | 接口功能 | 资源路径:resource |
ModifyInstancesBundle | 变更实例套餐 | qcs::lighthouse:$region:$account:instance/$instanceId |
RenewInstances | 续费实例 | qcs::lighthouse:$region:$account:instance/$instanceId |
IsolateInstances | 隔离实例 | qcs::lighthouse:$region:$account:instance/$instanceId |
ModifyInstancesAttribute | 修改实例的属性 | qcs::lighthouse:$region:$account:instance/$instanceId |
ModifyInstancesRenewFlag | 修改实例续费标识 | qcs::lighthouse:$region:$account:instance/$instanceId |
RebootInstances | 重启实例 | qcs::lighthouse:$region:$account:instance/$instanceId |
ResetInstance | 重装系统 | qcs::lighthouse:$region:$account:instance/$instanceId |
ResetInstancesPassword | 重置实例密码 | qcs::lighthouse:$region:$account:instance/$instanceId |
StartInstances | 启动实例 | qcs::lighthouse:$region:$account:instance/$instanceId |
StopInstances | 关闭实例 | qcs::lighthouse:$region:$account:instance/$instanceId |
TerminateInstances | 销毁实例 | qcs::lighthouse:$region:$account:instance/$instanceId |
DescribeInstancesDeniedActions | 查看实例操作限制列表 | qcs::lighthouse:$region:$account:instance/$instanceId |
DescribeInstancesReturnable | 查询实例是否可退还 | qcs::lighthouse:$region:$account:instance/$instanceId |
DescribeInstancesTrafficPackages | 查看实例流量包详情 | qcs::lighthouse:$region:$account:instance/$instanceId |
DescribeInstanceVncUrl | 查询实例管理终端地址 | qcs::lighthouse:$region:$account:instance/$instanceId |
DescribeResetInstanceBlueprints | 查询重置实例的镜像信息 | qcs::lighthouse:$region:$account:instance/$instanceId |
快照相关
API 接口:action | 接口功能 | 资源路径:resource |
CreateInstanceSnapshot | 创建实例快照 | qcs::lighthouse:$region:$account:instance/$instanceId qcs::lighthouse:$region:$account:snapshot/* |
DeleteSnapshots | 删除快照 | qcs::lighthouse:$region:$account:snapshot/$snapshotId |
ApplyInstanceSnapshot | 回滚实例快照 | qcs::lighthouse:$region:$account:instance/$instanceId qcs::lighthouse:$region:$account:snapshot/$snapshotId |
DescribeSnapshotsDeniedActions | 查看快照操作限制列表 | qcs::lighthouse:$region:$account:snapshot/$snapshotId |
ModifySnapshotAttribute | 修改快照信息 | qcs::lighthouse:$region:$account:snapshot/$snapshotId |
防火墙相关
API 接口:action | 接口功能 | 资源路径:resource |
CreateFirewallRules | 添加防火墙规则 | qcs::lighthouse:$region:$account:instance/$instanceId |
DeleteFirewallRules | 删除防火墙规则 | qcs::lighthouse:$region:$account:instance/$instanceId |
DescribeFirewallRules | 查询防火墙规则 | qcs::lighthouse:$region:$account:instance/$instanceId |
ModifyFirewallRules | 修改防火墙规则 | qcs::lighthouse:$region:$account:instance/$instanceId |
ModifyFirewallRuleDescription | 修改防火墙规则描述 | qcs::lighthouse:$region:$account:instance/$instanceId |
密钥相关
API 接口:action | 接口功能 | 资源路径:resource |
DeleteKeyPairs | 删除密钥对 | qcs::lighthouse:$region:$account:keypair/$keypairId |
AssociateInstancesKeyPairs | 绑定密钥对 | qcs::lighthouse:$region:$account:instance/$instanceId qcs::lighthouse:$region:$account:keypair/$keypairId |
DisassociateInstancesKeyPairs | 解绑密钥对 | qcs::lighthouse:$region:$account:instance/$instanceId qcs::lighthouse:$region:$account:keypair/$keypairId |
镜像相关
API 接口:action | 接口功能 | 资源路径:resource |
CreateBlueprint | 创建镜像 | qcs::lighthouse:$region:$account:instance/$instanceId qcs::lighthouse:$region:$account:blueprint/* |
DeleteBlueprints | 删除镜像 | qcs::lighthouse:$region:$account:blueprint/$blueprintId |
DescribeBlueprintInstances | 查询镜像实例信息 | qcs::lighthouse:$region:$account:instance/$instanceId |
ModifyBlueprintAttribute | 修改镜像属性 | qcs::lighthouse:$region:$account:blueprint/$blueprintId |
套餐相关
API 接口:action | 接口功能 | 资源路径:resource |
DescribeModifyInstanceBundles | 查询实例可变更套餐列表 | qcs::lighthouse:$region:$account:instance/$instanceId |
计费相关
API 接口:action | 接口功能 | 资源路径:resource |
InquirePriceRenewInstances | 续费实例询价 | qcs::lighthouse:$region:$account:instance/$instanceId |