更新时间:2025-09-26 GMT+08:00
分享

云容器引擎 CCE

云服务在IAM预置了常用的权限,称为系统身份策略。如果IAM系统身份策略无法满足授权要求,管理员可以根据各服务支持的授权项,创建IAM自定义身份策略来进行精细的访问控制,IAM自定义身份策略是对系统身份策略的扩展和补充。

除IAM服务外,Organizations服务中的服务控制策略(Service Control Policy,以下简称SCP)也可以使用这些授权项元素设置访问控制策略。

SCP不直接进行授权,只划定权限边界。将SCP绑定到组织单元或者成员账号时,并没有直接对组织单元或成员账号授予操作权限,而是规定了成员账号或组织单元包含的成员账号的授权范围。IAM身份策略授予权限的有效性受SCP限制,只有在SCP允许范围内的权限才能生效。

IAM服务与Organizations服务在使用这些元素进行访问控制时,存在着一些区别,详情请参见:IAM服务与Organizations服务权限访问控制的区别

本章节介绍IAM服务身份策略授权场景中自定义身份策略和组织服务中SCP使用的元素,这些元素包含了操作(Action)、资源(Resource)和条件(Condition)。

操作(Action)

操作(Action)即为身份策略中支持的授权项。

  • “访问级别”列描述如何对操作进行分类(List、Read和Write等)。此分类可帮助您了解在身份策略中相应操作对应的访问级别。
  • “资源类型”列指每个操作是否支持资源级权限。
    • 资源类型支持通配符号*表示所有。如果此列没有值(-),则必须在身份策略语句的Resource元素中指定所有资源类型(“*”)。
    • 如果该列包含资源类型,则必须在具有该操作的语句中指定该资源的URN。
    • 资源类型列中必需资源在表中用星号(*)标识,表示使用此操作必须指定该资源类型。

    关于CCE定义的资源类型的详细信息请参见资源类型(Resource)

  • “条件键”列包括了可以在身份策略语句的Condition元素中支持指定的键值。
    • 如果该授权项资源类型列存在值,则表示条件键仅对列举的资源类型生效。
    • 如果该授权项资源类型列没有值(-),则表示条件键对整个授权项生效。
    • 如果此列条件键没有值(-),表示此操作不支持指定条件键。

    关于CCE定义的条件键的详细信息请参见条件(Condition)

  • “别名”列包括了可以在身份策略中配置的策略授权项。通过这些授权项,可以控制支持策略授权的API访问。详细信息请参见身份策略兼容性说明

您可以在身份策略语句的Action元素中指定以下CCE的相关操作。

表1 CCE支持的授权项

授权项

描述

访问级别

资源类型(*为必须)

条件键

别名

cce:imageCache:create

授予创建镜像缓存的权限。

Write

-

-

-

cce:imageCache:delete

授予删除镜像缓存的权限。

Write

imageCache *

-

-

cce:imageCache:list

授予查看镜像缓存列表的权限。

List

-

-

-

cce:imageCache:get

授予查看用户指定镜像缓存详情的权限。

Read

imageCache *

-

-

cce:packageProduct:list

授予查看套餐包列表的权限。

List

-

-

-

cce:packageProduct:subscribe

授予订购套餐包的权限。

Write

-

-

-

cce:cluster:createCluster

授予创建集群的权限。

Write

cluster *

-

  • cce:cluster:create

-

cce:cluster:delete

授予删除集群的权限。

Write

cluster *

-

cce:cluster:updateCluster

授予更新集群的权限。

Write

cluster *

  • cce:cluster:update

cce:cluster:upgrade

授予执行集群版本升级的权限。

Write

cluster *

-

cce:cluster:start

授予唤醒休眠集群的权限。

Write

cluster *

-

cce:cluster:stop

授予对集群执行休眠操作的权限。

Write

cluster *

-

cce:cluster:list

授予查看集群详情列表的权限。

List

cluster *

-

-

cce:cluster:getCluster

授予查看用户指定集群详情的权限。

Read

cluster *

  • cce:cluster:get

cce:cluster:getEndpoints

授予查看用户指定集群访问地址的权限。

Read

cluster *

  • cce:cluster:get

cce:cluster:resize

授予对集群进行规格变更的权限。

Write

cluster *

-

cce:cluster:toperiod

授予对集群按需转包周期的权限。

Write

cluster *

-

cce:cluster:eipBinding

授予对集群绑定/解绑公网IP的权限。

Write

cluster *

  • cce:cluster:update

cce:cluster:generateClientCredential

授予生成集群客户端访问凭据的权限。

Read

cluster *

  • cce:cluster:get

cce:cluster:revokeClientCredential

授予吊销集群证书的权限。

Write

cluster *

-

cce:cluster:rotateCredentials

授予轮转集群证书的权限。

Write

cluster *

-

cce:cluster:addTags

授予添加集群标签的权限。

Tagging

cluster *

  • cce:tag:operate

-

cce:cluster:removeTags

授予删除集群标签的权限。

Tagging

cluster *

  • cce:tag:operate

-

cce:cluster:listTags

授予列举项目下所有集群标签的权限。

Read

-

-

  • cce:tag:list

cce:cluster:listTagsForCluster

授予查询项目标签的权限。

Read

cluster *

g:ResourceTag/<tag-key>

  • cce:cluster:get

cce:cluster:listClustersByTag

授予按标签查询集群列表的权限。

Read

-

g:TagKeys

  • cce:cluster:list

cce:cluster:validate

授予对集群参数进行合法性校验的权限。

Read

cluster *

-

  • cce:cluster:create

-

cce:cluster:getConfigurationTemplate

授予查询集群配置模板信息的权限。

Read

cluster *

-

  • cce:cluster:get

-

cce:cluster:getConfiguration

授予查询集群当前配置的权限。

Read

cluster *

  • cce:cluster:get

cce:cluster:updateConfiguration

授予更新集群配置的权限。

Write

cluster *

  • cce:cluster:update

cce:cluster:getLogConfig

授予查询集群当前日志采集配置的权限。

Read

cluster *

-

cce:cluster:updateLogConfig

授予更新集群日志采集配置的权限。

Write

cluster *

-

cce:cluster:checkLock

授予检查并释放集群上CBC相关锁的权限。

Write

-

-

-

cce:partition:create

授予接入分区的权限。

Write

cluster *

-

-

-

cce:partition:update

授予更新分区的权限。

Write

cluster *

g:EnterpriseProjectId

-

cce:partition:get

授予查询指定分区详情的权限。

Read

cluster *

g:EnterpriseProjectId

-

cce:partition:list

授予查看指定集群的分区列表。

List

cluster *

-

-

-

cce:nodepool:create

授予创建节点池的权限。

Write

cluster *

-

-

-

cce:nodepool:delete

授予删除节点池的权限。

Write

cluster *

g:EnterpriseProjectId

-

cce:nodepool:updateNodepool

授予更新节点池的权限。

Write

cluster *

-

  • cce:nodepool:update

-

cce:nodepool:upgradeNodepool

授予升级节点池的权限。

Write

cluster *

-

  • cce:nodepool:update

-

g:EnterpriseProjectId

cce:nodepool:scale

授予扩缩容节点池的权限。

Write

cluster *

g:EnterpriseProjectId

-

cce:nodepool:getNodepool

授予查询指定节点池详情的权限。

Read

cluster *

g:EnterpriseProjectId

  • cce:nodepool:get

cce:nodepool:list

授予查看指定集群的节点池列表。

List

cluster *

-

-

-

cce:nodepool:getQuota

授予查询节点池配额的权限。

Read

cluster *

-

  • cce:nodepool:get

-

cce:nodepool:migrate

授予在节点池间迁移节点的权限。

Write

cluster *

-

  • cce:nodepool:update

-

cce:nodepool:sync

授予对节点池中节点进行配置同步的权限。

Write

cluster *

g:EnterpriseProjectId

  • cce:nodepool:get

cce:nodepool:getConfigurationTemplate

授予查询节点池配置模板的权限。

Read

cluster *

g:EnterpriseProjectId

  • cce:nodepool:get

cce:nodepool:getConfiguration

授予查询节点池配置的权限。

Read

cluster *

g:EnterpriseProjectId

  • cce:nodepool:get

cce:nodepool:updateConfiguration

授予更新节点池配置的权限。

Write

cluster *

g:EnterpriseProjectId

  • cce:nodepool:update

cce:node:createNode

授予创建节点的权限。

Write

cluster *

-

  • cce:node:create

-

cce:node:reportStatus

授予节点上报状态的权限。

Write

cluster *

g:EnterpriseProjectId

  • cce:node:get

cce:node:delete

授予删除节点的权限。

Write

cluster *

g:EnterpriseProjectId

-

cce:node:update

授予更新节点的权限。

Write

cluster *

g:EnterpriseProjectId

-

cce:node:getNode

授予查询指定节点详情的权限。

Read

cluster *

g:EnterpriseProjectId

  • cce:node:get

cce:node:list

授予查看指定集群的节点列表。

List

cluster *

-

-

-

cce:node:reset

授予重置节点的权限。

Write

cluster *

-

  • cce:node:create

-

cce:node:add

授予纳管节点的权限。

Write

cluster *

-

  • cce:node:create

-

cce:node:remove

授予释放节点的权限。

Write

cluster *

-

-

-

cce:node:migrate

授予在集群间迁移节点的权限。

Write

cluster *

-

-

-

cce:node:unlock

授予解锁节点的权限(用于节点ECS资源防呆场景,内部交互使用)。

Write

cluster *

-

  • cce:node:update

-

cce:node:sync

授予同步节点基础设施资源状态的权限。

Read

cluster *

g:EnterpriseProjectId

  • cce:node:get

cce:node:toperiod

授予批量将节点从按需转成包周期的权限。

Write

cluster *

-

-

-

cce:job:delete

授予删除任务的权限。

Write

cluster *

-

cce:job:get

授予查询指定任务详情的权限。

Read

cluster *

-

cce:job:list

授予查看任务列表。

List

cluster *

-

-

-

cce:ClusterId

cce:quota:get

授予查询CCE服务相关资源配额的权限。

Read

-

-

-

cce:addonInstance:create

授予创建插件实例的权限。

Write

cluster *

-

-

-

cce:addonInstance:delete

授予删除插件实例的权限。

Write

cluster *

-

cce:addonInstance:update

授予更新插件实例的权限。

Write

cluster *

-

cce:addonInstance:get

授予查询指定插件实例详情的权限。

Read

cluster *

-

cce:addonInstance:list

授予查看指定集群的插件实例列表的权限。

List

cluster *

-

-

-

cce:addonInstance:rollback

授予回滚指定插件实例的权限。

Write

cluster *

-

cce:chart:upload

授予上传应用模板的权限。

Write

-

-

-

cce:chart:delete

授予删除应用模板的权限。

Write

-

-

-

cce:chart:update

授予更新应用模板的权限。

Write

-

-

-

cce:chart:listChart

授予查看应用模板详情列表的权限。

List

-

-

  • cce:chart:list

cce:chart:getChart

授予查看用户指定应用模板详情的权限。

Read

-

-

  • cce:chart:get

cce:chart:download

授予查看用户下载应用模板的权限。

Read

-

-

  • cce:chart:get

cce:chart:getQuota

授予查看应用模板配额的权限。

Read

-

-

  • cce:chart:list

cce:release:create

授予创建应用实例的权限。

Write

-

-

cce:release:delete

授予删除应用实例的权限。

Write

cluster *

-

cce:release:update

授予更新应用实例的权限。

Write

cluster *

-

cce:release:get

授予查询指定应用实例详情的权限。

Read

cluster *

-

cce:release:list

授予查看指定集群的应用实例列表的权限。

List

cluster *

-

-

-

cce:permissionApplyOrder:create

授予创建(白名单)权限申请的权限。

Write

-

-

  • cce:cluster:upgrade

cce:permissionApplyOrder:list

授予查看(白名单)权限申请列表的权限。

List

-

-

  • cce:cluster:list

cce:longaksk:getConfig

授予获取longAKSK配置的权限。

Read

-

-

-

cce:longaksk:updateConfig

授予更新longAKSK配置的权限。

Write

-

-

-

cce:cluster:getLongAKSKConfig

授予获取集群longAKSK配置的权限。

Read

cluster *

-

cce:cluster:updateLongAKSKConfig

授予更新集群longAKSK配置的权限。

Write

cluster *

-

cce:accessPolicy:get

授予获取访问策略的权限。

Read

-

-

-

cce:accessPolicy:list

授予获取访问策略列表的权限。

Read

-

-

-

cce:accessPolicy:post

授予创建访问策略的权限。

Write

-

-

-

cce:accessPolicy:put

授予更新访问策略的权限。

Write

-

-

-

cce:accessPolicy:delete

授予删除访问策略的权限。

Write

-

-

-

cce:imageCache:get

授予查看指定镜像缓存详情的权限。

Read

-

-

-

cce:imageCache:list

授予查看镜像缓存列表的权限。

List

-

-

-

cce:imageCache:create

授予创建镜像缓存的权限。

Write

-

-

-

cce:imageCache:delete

授予删除镜像缓存的权限。

Write

-

-

-

cce:hypernode:list

授予查看集群内超节点列表的权限。

List

cluster *

-

-

cce:packageProduct:list

授予查看套餐包列表的权限。

List

-

-

-

cce:packageProduct:subscribe

授予订购套餐包的权限。

Write

-

-

-

CCE的API通常对应着一个或多个授权项。表2展示了API与授权项的关系,以及该API需要依赖的授权项。

表2 API与授权项的关系

API

对应的授权项

依赖的授权项

POST /v5/imagecaches

cce:imageCache:create

-

DELETE /v5/imagecaches/{image_cache_id}

cce:imageCache:delete

-

GET /v5/imagecaches/{image_cache_id}

cce:imageCache:get

-

GET /v5/imagecaches

cce:imageCache:list

-

GET /v5/package-products

cce:packageProduct:list

-

POST /v5/package-products/subscribe

cce:packageProduct:subscribe

-

GET /api/v3/projects/{project_id}/longaksk/config

cce:longaksk:getConfig

-

PUT /api/v3/projects/{project_id}/longaksk/config

cce:longaksk:updateConfig

-

GET /api/v3/projects/{project_id}/clusters/{cluster_id}/longaksk/config

cce:cluster:getLongAKSKConfig

-

PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/longaksk/config

cce:cluster:updateLongAKSKConfig

-

GET /api/v3/access-policies/{policy_id}

cce:accessPolicy:get

-

GET /api/v3/access-policies

cce:accessPolicy:list

-

POST /api/v3/access-policies

cce:accessPolicy:post

-

PUT /api/v3/access-policies/{policy_id}

cce:accessPolicy:put

-

DELETE /api/v3/access-policies/{policy_id}

cce:accessPolicy:delete

-

GET /api/v3/projects/{project_id}/quotas

cce:quota:get

-

POST /api/v3/projects/{project_id}/clusters

cce:cluster:createCluster

-

DELETE /api/v3/projects/{project_id}/clusters/{cluster_id}

cce:cluster:delete

-

PUT /api/v3/projects/{project_id}/clusters/{cluster_id}

cce:cluster:updateCluster

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade

cce:cluster:upgrade

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade/retry

cce:cluster:upgrade

-

GET /api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade/tasks/{task_id}

cce:cluster:getCluster

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade/continue

cce:cluster:upgrade

-

GET /api/v3.1/projects/{project_id}/clusters/{cluster_id}/operation/snapshot/tasks

cce:cluster:getCluster

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgradeworkflows

cce:cluster:upgrade

-

GET /api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgradeworkflows

cce:cluster:getCluster

-

GET /api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade/tasks

cce:cluster:getCluster

-

PATCH /api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgradeworkflows/{upgrade_workflow_id}

cce:cluster:upgrade

-

GET /api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgradeworkflows/{upgrade_workflow_id}

cce:cluster:getCluster

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade/pause

cce:cluster:upgrade

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/operation/awake

cce:cluster:start

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/operation/hibernate

cce:cluster:stop

-

GET /api/v3/projects/{project_id}/clusters

cce:cluster:list

-

GET /api/v3/projects/{project_id}/clusters/{cluster_id}

cce:cluster:getCluster

-

GET /api/v3/projects/{project_id}/clusters/{cluster_id}/openapi

cce:cluster:getEndpoints

-

GET /v5/imagecaches/{image_cache_id}

cce:imageCache:get

-

GET /v5/imagecaches

cce:imageCache:list

-

POST /v5/imagecaches

cce:imageCache:create

-

DELETE /v5/imagecaches/{image_cache_id}

cce:imageCache:delete

-

GET /v5/package-products

cce:packageProduct:list

-

POST /v5/package-products/subscribe

cce:packageProduct:subscribe

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/operation/resize

cce:cluster:resize

-

PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/mastereip

cce:cluster:eipBinding

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/clustercert

cce:cluster:generateClientCredential

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/clustercertrevoke

cce:cluster:revokeClientCredential

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/tags/create

cce:cluster:addTags

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/tags/delete

cce:cluster:removeTags

-

PUT /v1/services/checklock/cce

cce:cluster:checkLock

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/partitions

cce:partition:create

-

PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/partitions/{partition_name}

cce:partition:update

-

GET /api/v3/projects/{project_id}/clusters/{cluster_id}/partitions/{partition_name}

cce:partition:get

-

GET /api/v3/projects/{project_id}/clusters/{cluster_id}/partitions

cce:partition:list

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/nodepools

cce:nodepool:create

-

DELETE /api/v3/projects/{project_id}/clusters/{cluster_id}/nodepools/{nodepool_id}

cce:nodepool:delete

-

PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/nodepools/{nodepool_id}

cce:nodepool:updateNodepool

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/nodepools/{nodepool_id}/operation/upgrade

cce:nodepool:upgradeNodepool

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/nodepools/{nodepool_id}/operation/scale

cce:nodepool:scale

-

GET /api/v3/projects/{project_id}/clusters/{cluster_id}/nodepools/{nodepool_id}

cce:nodepool:getNodepool

-

GET /api/v3/projects/{project_id}/clusters/{cluster_id}/nodepools

cce:nodepool:list

-

PUT /api/v3.1/projects/{project_id}/clusters/{cluster_id}/nodepool/{nodepool_id}/sync

cce:nodepool:sync

-

GET /api/v3/projects/{project_id}/clusters/{cluster_id}/nodepools/{nodepool_id}/configuration/detail

cce:nodepool:getConfigurationTemplate

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes

cce:node:createNode

-

DELETE /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/{node_id}

cce:node:delete

-

PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/{node_id}

cce:node:update

-

GET /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/{node_id}

cce:node:getNode

-

GET /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes

cce:node:list

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/sync

cce:node:update

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/nodepools/{nodepool_id}/nodes/add

cce:node:add

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/reset

cce:node:reset

-

POST /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/add

cce:node:add

-

PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/operation/remove

cce:node:remove

-

PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/operation/migrateto/{target_cluster_id}

cce:node:migrate

-

GET /api/v2/projects/{project_id}/clusters/{cluster_id}/nodes/{node_id}/sync

cce:node:sync

-

DELETE /api/v2/projects/{project_id}/jobs/{job_id}

cce:job:delete

-

GET /api/v3/projects/{project_id}/jobs/{job_id}

cce:job:get

-

GET /api/v2/projects/{project_id}/jobs

cce:job:list

-

GET /api/v3/addontemplates

cce:cluster:list

-

POST /api/v3/addons

cce:addonInstance:create

-

DELETE /api/v3/addons/{id}

cce:addonInstance:delete

-

PUT /api/v3/addons/{id}

cce:addonInstance:update

-

GET /api/v3/addons/{id}

cce:addonInstance:get

-

GET /api/v3/addons

cce:addonInstance:list

-

POST /api/v3/addons/{id}/operation/rollback

cce:addonInstance:rollback

-

POST /v2/charts

cce:chart:upload

-

DELETE /v2/charts/{chart_id}

cce:chart:delete

-

PUT /v2/charts/{chart_id}

cce:chart:update

-

GET /v2/charts/{chart_id}

cce:chart:getChart

-

GET /v2/charts

cce:chart:listChart

-

GET /v2/charts/{chart_id}/archive

cce:chart:download

-

POST /cce/cam/v3/clusters/{cluster_id}/releases

cce:release:create

-

DELETE /cce/cam/v3/clusters/{cluster_id}/namespace/{namespace}/releases/{name}

cce:release:delete

-

PUT /cce/cam/v3/clusters/{cluster_id}/namespace/{namespace}/releases/{name}

cce:release:update

-

GET /cce/cam/v3/clusters/{cluster_id}/namespace/{namespace}/releases/{name}

cce:release:get

-

GET /cce/cam/v3/clusters/{cluster_id}/releases

cce:release:list

-

POST /autopilot/v3/projects/{project_id}/clusters

cce:cluster:createCluster

-

POST /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/clustercert

cce:cluster:generateClientCredential

-

DELETE /autopilot/v3/projects/{project_id}/clusters/{cluster_id}

cce:cluster:delete

-

GET /autopilot/v3/projects/{project_id}/clusters

cce:cluster:list

-

GET /autopilot/v3/projects/{project_id}/clusters/{cluster_id}

cce:cluster:getCluster

-

GET /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/openapi

cce:cluster:getEndpoints

-

GET /autopilot/v3/projects/{project_id}/jobs/{job_id}

cce:job:get

-

PUT /autopilot/v3/projects/{project_id}/clusters/{cluster_id}

cce:cluster:updateCluster

-

PUT /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/mastereip

cce:cluster:eipBinding

-

POST /autopilot/v3/addons

cce:addonInstance:create

-

DELETE /autopilot/v3/addons/{id}

cce:addonInstance:delete

-

PUT /autopilot/v3/addons/{id}

cce:addonInstance:update

-

GET /autopilot/v3/addons/{id}

cce:addonInstance:get

-

GET /autopilot/v3/addons

cce:addonInstance:list

-

POST /autopilot/v3/addons/{id}/operation/rollback

cce:addonInstance:rollback

-

POST /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade

cce:cluster:upgrade

-

POST /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade/retry

cce:cluster:upgrade

-

GET /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade/tasks/{task_id}

cce:cluster:getCluster

-

GET /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/operation/precheck/tasks/{task_id}

cce:cluster:getCluster

-

GET /autopilot/v3.1/projects/{project_id}/clusters/{cluster_id}/operation/snapshot/tasks

cce:cluster:getCluster

-

POST /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgradeworkflows

cce:cluster:upgrade

-

POST /autopilot/v3.1/projects/{project_id}/clusters/{cluster_id}/operation/snapshot

cce:cluster:upgrade

-

GET /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgradeworkflows

cce:cluster:getCluster

-

POST /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/operation/precheck

cce:cluster:upgrade

-

GET /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/operation/precheck/tasks

cce:cluster:getCluster

-

GET /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/upgradeinfo

cce:cluster:getCluster

-

GET /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade/tasks

cce:cluster:getCluster

-

PATCH /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgradeworkflows/{upgrade_workflow_id}

cce:cluster:upgrade

-

POST /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/operation/postcheck

cce:cluster:upgrade

-

GET /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgradeworkflows/{upgrade_workflow_id}

cce:cluster:getCluster

-

GET /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/upgradeplans

cce:cluster:getCluster

-

PUT /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/upgradeplans/{upgrade_plan_id}

cce:cluster:upgrade

-

POST /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/tags/create

cce:cluster:addTags

-

POST /autopilot/v3/projects/{project_id}/clusters/{cluster_id}/tags/delete

cce:cluster:removeTags

-

GET /autopilot/v3/projects/{project_id}/quotas

cce:quota:get

-

POST /autopilot/v2/charts

cce:chart:upload

-

DELETE /autopilot/v2/charts/{chart_id}

cce:chart:delete

-

PUT /autopilot/v2/charts/{chart_id}

cce:chart:update

-

GET /autopilot/v2/charts/{chart_id}

cce:chart:getChart

-

GET /autopilot/v2/charts

cce:chart:listChart

-

GET /autopilot/v2/charts/{chart_id}/archive

cce:chart:download

-

GET /autopilot/v2/charts/{project_id}/quotas

cce:chart:getQuota

-

GET /autopilot/v2/charts/{chart_id}/values

cce:chart:getChart

-

POST /autopilot/cam/v3/clusters/{cluster_id}/releases

cce:release:create

-

DELETE /autopilot/cam/v3/clusters/{cluster_id}/namespace/{namespace}/releases/{name}

cce:release:delete

-

PUT /autopilot/cam/v3/clusters/{cluster_id}/namespace/{namespace}/releases/{name}

cce:release:update

-

GET /autopilot/cam/v3/clusters/{cluster_id}/namespace/{namespace}/releases/{name}

cce:release:get

-

GET /autopilot/cam/v3/clusters/{cluster_id}/releases

cce:release:list

-

GET /autopilot/cam/v3/clusters/{cluster_id}/namespace/{namespace}/releases/{name}/history

cce:release:get

-

资源类型(Resource)

资源类型(Resource)表示身份策略所作用的资源。如表3中的某些操作指定了可以在该操作指定的资源类型,则必须在具有该操作的身份策略语句中指定该资源的URN,身份策略仅作用于此资源;如未指定,Resource默认为“*”,则身份策略将应用到所有资源。您也可以在身份策略中设置条件,从而指定资源类型。

CCE定义了以下可以在自定义身份策略的Resource元素中使用的资源类型。

表3 CCE支持的资源类型

资源类型

URN

cluster

cce:<region>:<account-id>:cluster:<cluster-name>

imageCache

cce:<region>:<account-id>:imageCache:<imageCache-name>

条件(Condition)

条件键概述

条件(Condition)是身份策略生效的特定条件,包括条件键运算符

  • 条件键表示身份策略语句的Condition元素中的键值。根据适用范围,分为全局级条件键和服务级条件键。
    • 全局级条件键(前缀为g:)适用于所有操作,在鉴权过程中,云服务不需要提供用户身份信息,系统将自动获取并鉴权。详情请参见:全局条件键
    • 服务级条件键(前缀通常为服务缩写,如cce:)仅适用于对应服务的操作,详情请参见表4
    • 单值/多值表示API调用时请求中与条件关联的值数。单值条件键在API调用时的请求中最多包含一个值,多值条件键在API调用时请求可以包含多个值。例如:g:SourceVpce是单值条件键,表示仅允许通过某个VPC终端节点发起请求访问某资源,一个请求最多包含一个VPC终端节点ID值。g:TagKeys是多值条件键,表示请求中携带的所有标签的key组成的列表,当用户在调用API请求时传入标签可以传入多个值。
  • 运算符与条件键、条件值一起构成完整的条件判断语句,当请求信息满足该条件时,身份策略才能生效。支持的运算符请参见:运算符

CCE支持的服务级条件键

CCE定义了以下可以在自定义身份策略的Condition元素中使用的条件键,您可以使用这些条件键进一步细化身份策略语句应用的条件。

表4 CCE支持的服务级条件键

服务级条件键

类型

单值/多值

说明

cce:ClusterId

string

单值

按照在请求中传递的集群ID筛选访问权限。

cce:nodeTransferSourceCluster

string

单值

按照节点迁移的源集群ID筛选访问权限。

cce:nodeTransferTargetCluster

string

单值

按照节点迁移的目的集群ID筛选访问权限。

cce:AssociatePublicIp

boolean

单值

按照关联eip开关值筛选节点绑定eip的权限。

cce:VpcId

string

单值

按照vpc id筛选访问权限。

cce:SubnetId

string

单值

按照subnet id筛选访问权限。

cce:Subnets

string

多值

按照subnet id列表筛选访问权限。

cce:KmsKeys

string

多值

按照kms密钥列表筛选访问权限。

cce:AvailableZones

string

多值

按照AvailableZone列表筛选访问权限。

相关文档