计算
弹性云服务器 ECS
Flexus云服务
裸金属服务器 BMS
弹性伸缩 AS
镜像服务 IMS
专属主机 DeH
函数工作流 FunctionGraph
云手机服务器 CPH
Huawei Cloud EulerOS
网络
虚拟私有云 VPC
弹性公网IP EIP
虚拟专用网络 VPN
弹性负载均衡 ELB
NAT网关 NAT
云专线 DC
VPC终端节点 VPCEP
云连接 CC
企业路由器 ER
企业交换机 ESW
全球加速 GA
安全与合规
安全技术与应用
Web应用防火墙 WAF
企业主机安全 HSS
云防火墙 CFW
安全云脑 SecMaster
DDoS防护 AAD
数据加密服务 DEW
数据库安全服务 DBSS
云堡垒机 CBH
数据安全中心 DSC
云证书管理服务 CCM
边缘安全 EdgeSec
威胁检测服务 MTD
CDN与智能边缘
内容分发网络 CDN
CloudPond云服务
智能边缘云 IEC
迁移
主机迁移服务 SMS
对象存储迁移服务 OMS
云数据迁移 CDM
迁移中心 MGC
大数据
MapReduce服务 MRS
数据湖探索 DLI
表格存储服务 CloudTable
云搜索服务 CSS
数据接入服务 DIS
数据仓库服务 GaussDB(DWS)
数据治理中心 DataArts Studio
数据可视化 DLV
数据湖工厂 DLF
湖仓构建 LakeFormation
企业应用
云桌面 Workspace
应用与数据集成平台 ROMA Connect
云解析服务 DNS
专属云
专属计算集群 DCC
IoT物联网
IoT物联网
设备接入 IoTDA
智能边缘平台 IEF
用户服务
账号中心
费用中心
成本中心
资源中心
企业管理
工单管理
国际站常见问题
ICP备案
我的凭证
支持计划
客户运营能力
合作伙伴支持计划
专业服务
区块链
区块链服务 BCS
Web3节点引擎服务 NES
解决方案
SAP
高性能计算 HPC
视频
视频直播 Live
视频点播 VOD
媒体处理 MPC
实时音视频 SparkRTC
数字内容生产线 MetaStudio
存储
对象存储服务 OBS
云硬盘 EVS
云备份 CBR
存储容灾服务 SDRS
高性能弹性文件服务 SFS Turbo
弹性文件服务 SFS
云硬盘备份 VBS
云服务器备份 CSBS
数据快递服务 DES
专属分布式存储服务 DSS
容器
云容器引擎 CCE
容器镜像服务 SWR
应用服务网格 ASM
华为云UCS
云容器实例 CCI
管理与监管
云监控服务 CES
统一身份认证服务 IAM
资源编排服务 RFS
云审计服务 CTS
标签管理服务 TMS
云日志服务 LTS
配置审计 Config
资源访问管理 RAM
消息通知服务 SMN
应用运维管理 AOM
应用性能管理 APM
组织 Organizations
优化顾问 OA
IAM 身份中心
云运维中心 COC
资源治理中心 RGC
应用身份管理服务 OneAccess
数据库
云数据库 RDS
文档数据库服务 DDS
数据管理服务 DAS
数据复制服务 DRS
云数据库 GeminiDB
云数据库 GaussDB
分布式数据库中间件 DDM
数据库和应用迁移 UGO
云数据库 TaurusDB
人工智能
人脸识别服务 FRS
图引擎服务 GES
图像识别 Image
内容审核 Moderation
文字识别 OCR
AI开发平台ModelArts
图像搜索 ImageSearch
对话机器人服务 CBS
华为HiLens
视频智能分析服务 VIAS
语音交互服务 SIS
应用中间件
分布式缓存服务 DCS
API网关 APIG
微服务引擎 CSE
分布式消息服务Kafka版
分布式消息服务RabbitMQ版
分布式消息服务RocketMQ版
多活高可用服务 MAS
事件网格 EG
企业协同
华为云会议 Meeting
云通信
消息&短信 MSGSMS
云生态
合作伙伴中心
云商店
开发者工具
SDK开发指南
API签名指南
Terraform
华为云命令行工具服务 KooCLI
其他
产品价格详情
系统权限
管理控制台
客户关联华为云合作伙伴须知
消息中心
公共问题
开发与运维
应用管理与运维平台 ServiceStage
软件开发生产线 CodeArts
需求管理 CodeArts Req
部署 CodeArts Deploy
性能测试 CodeArts PerfTest
编译构建 CodeArts Build
流水线 CodeArts Pipeline
制品仓库 CodeArts Artifact
测试计划 CodeArts TestPlan
代码检查 CodeArts Check
代码托管 CodeArts Repo
云应用引擎 CAE
开天aPaaS
云消息服务 KooMessage
云手机服务 KooPhone
云空间服务 KooDrive

云搜索服务 CSS

更新时间:2025-02-24 GMT+08:00

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

SCP不直接进行授权,只划定权限边界。将SCP绑定到组织单元或者成员账号时,并没有直接对组织单元或成员账号授予操作权限,而是规定了成员账号或组织单元包含的成员账号的授权范围。

本章节介绍组织服务中SCP使用的元素,这些元素包含了操作(Action)、资源(Resource)和条件(Condition)。

如何使用这些元素编辑SCP自定义策略,请参考创建SCP

操作(Action)

操作(Action)即为SCP中支持的授权项。

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

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

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

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

您可以在SCP语句的Action元素中指定以下CSS的相关操作。

表1 CSS支持的授权项

授权项

描述

访问级别

资源类型(*为必须)

条件键

css:VPCEndpoint:updateWhitelist

授予权限更新已存在的终端节点白名单。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:log:updateBackupPolicy

授予权限日志备份修改或删除。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:snapshot:setSnapshotPolicy

授予权限操作备份策略。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:snapshot:getSnapshotPolicy

授予权限查询备份策略。

read

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:snapshot:restore

授予权限恢复快照。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:snapshot:create

授予权限创建快照。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:publicIPAddress:associates

授予权限开启或关闭公网访问。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:publicIPAddress:setAccessControl

授予权限对白名单列表进行操作。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:tag:get

授予权限查询资源标签。

read

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:publicIPAddress:modifyBandwidth

授予权限修改带宽大小。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:VPCEndpoint:enableOrDisable

授予权限创建或删除VPCEP。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:log:getBasicConfigurations

授予权限日志基础配置查询。

read

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:snapshot:list

授予权限查看快照列表。

list

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:log:list

授予权限查看日志。

list

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:snapshot:setSnapshotContiguration

授予权限设置快照基础配置。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:listFlavors

授予权限查询规格ID列表。

list

-

-

css:cluster:listDiskType

授予权限列举可用磁盘类型。

list

-

-

css:tag:list

授予权限查询项目标签。

list

cluster *

-

css:VPCEndpoint:manageConnection

授予权限操作终端节点的连接。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:log:listJob

授予权限查询作业列表。

list

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:downloadCert

授予权限获取证书内容。

read

-

-

css:cluster:get

授予权限查询集群详情。

read

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:snapshot:enableAtomaticSnapsot

授予权限设置快照自动备份的基础配置。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:snapshot:delete

授予权限删除指定快照。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:IKThesaurus:get

授予权限查看自定义词库配置。

read

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:restart

授予权限重启ElasticSearch集群。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:modifySecurityGroup

授予权限修改集群安全组。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:configurations:list

授予权限查询获取参数配置的任务操作列表。

list

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:delete

授予权限删除集群。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:modifySpecifications

授予权限修改集群规格。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:list

授予权限列举集群信息。

list

cluster *

-

css:cluster:scaleOut

授予权限扩容集群。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:IKThesaurus:load

授予权限加载自定义词库。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:configurations:modify

授予权限更新参数配置。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:configurations:get

授予权限列举参数配置列表。

list

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:IKThesaurus:delete

授予权限删除词库。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:expand

授予权限扩容实例的数量和存储容量。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:snapshot:disableSnapshotFuction

授予权限关闭集群快照功能。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:upgradeCluster

授予权限升级集群或节点替换。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:VPCEndpoint:listConnection

授予权限查询VPCEP的连接。

list

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:scaleIn

授予权限对集群缩容。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:log:setBasicConfigurations

授予权限日志基础配置设置。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:tag:addOrDelete

授予权限批量添加删除资源标签。

tagging

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • g:RequestTag/<tag-key>
  • g:TagKeys

css:publicKibana:close

授予权限关闭公网访问。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:tag:edit

授予权限修改集群标签。

tagging

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • g:RequestTag/<tag-key>
  • g:TagKeys

css:cluster:create

授予权限创建集群。

write

cluster *

-

-

  • g:EnterpriseProjectId
  • g:RequestTag/<tag-key>
  • g:TagKeys

css:cluster:toPeriod

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

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:modifyName

授予权限修改集群名称。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:log:backup

授予权限对日志备份。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:closeLogSetting

授予权限关闭日志功能。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:openLogSetting

授予权限开启日志功能。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:modifyPassword

授予权限修改集群密码。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:publicIPAddress:disassociates

授予权限解绑公网。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:publicKibana:open

授予权限绑定公网。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:tag:delete

授予权限删除标签。

tagging

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

g:TagKeys

css:cluster:shrinkNodes

授予权限指定节点缩容。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:changeMode

授予权限修改安全模式。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:addIndependenceNodes

授予权限添加独立master,client。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:rollingReboot

授予权限滚动重启ElasticSearch集群。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:logstash:listActions

授予权限查询操作记录。

read

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:uploadCerts

授予权限上传证书。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:deleteCerts

授予权限删除证书。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:listCerts

授予权限查询证书列表。

list

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:getCertsDetail

授予权限查询证书详情。

read

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:logstash:deleteConfTemplate

授予权限删除自定义模板。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:logstash:listConfigTemplate

授予权限查询模板列表。

list

-

-

css:logstash:confStop

授予权限停止或热停止pipeline迁移数据。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:logstash:checkConnection

授予权限连通性测试。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:logstash:confDelete

授予权限删除配置文件。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:logstash:confStart

授予权限启动或热启动pipeline迁移数据。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:logstash:getConfDetail

授予权限用于查询配置文件内容。

read

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:azmigrate

授予权限进行可用区切换。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:logstash:confUpdate

授予权限更新配置文件。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:logstash:listPipelines

授予权限查询pipeline列表。

list

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:retryAction

授予权限重试该任务或终止该任务的影响。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:logstash:listConfs

授予权限查询配置文件列表。

list

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:logstash:configFavorites

授予权限添加到自定义模板。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:listUpgradeCluster

授予权限获取升级镜像id及升级详情。

list

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:logstash:submitConf

授予权限创建配置文件。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:plugin:list

授予权限查询集群插件列表。

list

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:plugin:getOperationRecords

授予权限查询插件的操作记录。

read

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:plugin:delete

授予权限删除插件。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:plugin:installOrUninstall

授予权限安装或卸载插件。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:plugin:upload

授予权限上传插件。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:plugin:getDefault

授予权限查询默认插件。

read

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:getAgencies

授予权限获取代理。

read

-

-

css:cluster:modifyRoute

授予权限修改集群路由。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:getRoutes

授予权限获取集群路由。

read

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:logstash:actionList

授予权限查询集群任务列表。

list

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:createUserInfo

授予权限查创建用户信息。

write

cluster *

-

css:VPCEndpoint:modifyConnections

授予权限修改连接大小。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:queryNeedDeleteInstances

授予权限查询需要删除的节点。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:queryKey

授予权限获得密钥。

read

-

-

css:cluster:queryKeys

授予权限获得密钥列表。

list

-

-

css:cluster:getPubliczonePice

授予权限获取带宽价格。

read

cluster *

-

css:datastore:get

授予权限获取数据引擎。

read

cluster *

-

css:datastore:list

授予权限获取数据引擎列表。

list

cluster *

-

css:cluster:getDiskUsage

授予权限获取集群存储容量状态。

read

cluster *

-

css:snapshot:showDetail

授予权限获得快照详情。

read

cluster *

-

css:cluster:getAvailableBuckets

授予权限获取可用OBS桶。

list

-

-

css:cluster:checkCssName

授予权限检查集群名称。

write

cluster *

-

css:snapshot:deleteAllFailedTask

授予权限删除所有的失败任务。

write

-

-

css:snapshot:deleteSingleFailedTask

授予权限删除指定失败任务。

write

-

-

css:snapshot:getAllFailedTask

授予权限查看备份失败任务。

list

-

-

css::createServiceAgency

授予权限创建委托。

write

-

-

css:cluster:createAiOps

授予权限创建检测任务。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:listAiOps

授予权限获取检测任务列表。

list

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:deleteAiOps

授予权限删除检测任务。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:listSmnTopics

授予权限获取SMN主题列表。

list

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:listElbs

授予权限下获取当前集群可用的负载均衡器列表。

list

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:elbSwitch

授予权限打开或关闭负载均衡功能。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:createElbListener

授予权限为当前集群创建监听器。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:updateElbListener

授予权限修改当前集群的监听器。

write

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:getElbDetail

授予权限查询当前集群使用的负载均衡器信息。

read

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

css:cluster:listElbCerts

授予权限获取负载均衡器证书列表。

list

cluster *

  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

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

表2 API与授权项的关系

API

对应的授权项

依赖的授权项

POST /v1.0/{project_id}/clusters

css:cluster:create

  • ecs:cloudServerFlavors:get
  • evs:types:get
  • vpc:vpcs:list
  • vpc:securityGroups:list
  • vpc:securityGroups:get
  • vpc:subnets:list
  • vpc:subnets:get
  • vpc:ports:create
  • vpc:ports:update
  • vpc:ports:delete
  • vpc:ports:get
  • css:cluster:getAgencies
  • iam:agencies:listAgencies
  • iam:permissions:listRolesForAgency
  • iam:permissions:listRolesForAgencyOnProject
  • iam:agencies:pass

POST /v2.0/{project_id}/clusters

css:cluster:create

  • ecs:cloudServerFlavors:get
  • evs:types:get
  • vpc:vpcs:list
  • vpc:securityGroups:list
  • vpc:securityGroups:get
  • vpc:subnets:list
  • vpc:subnets:get
  • vpc:ports:create
  • vpc:ports:update
  • vpc:ports:delete
  • vpc:ports:get
  • css:cluster:getAgencies
  • iam:agencies:listAgencies
  • iam:permissions:listRolesForAgency
  • iam:permissions:listRolesForAgencyOnProject
  • iam:agencies:pass

POST /v1.0/{project_id}/clusters/{cluster_id}/sg/change

css:cluster:modifySecurityGroup

  • vpc:securityGroups:list
  • vpc:ports:update

GET /v1.0/{project_id}/clusters

css:cluster:list

-

GET /v1.0/{project_id}/clusters/{cluster_id}

css:cluster:get

-

DELETE /v1.0/{project_id}/clusters/{cluster_id}

css:cluster:delete

-

POST /v1.0/{project_id}/cluster/{cluster_id}/period

css:cluster:toPeriod

-

POST /v1.0/{project_id}/clusters/{cluster_id}/changename

css:cluster:modifyName

-

POST /v1.0/{project_id}/clusters/{cluster_id}/password/reset

css:cluster:modifyPassword

-

POST /v1.0/{project_id}/clusters/{cluster_id}/restart

css:cluster:restart

-

POST /v2.0/{project_id}/clusters/{cluster_id}/restart

css:cluster:restart

-

POST /v1.0/{project_id}/clusters/{cluster_id}/extend

css:cluster:scaleOut

  • ecs:cloudServerFlavors:get
  • evs:types:get
  • vpc:vpcs:list
  • vpc:subnets:list
  • vpc:subnets:get
  • vpc:ports:create
  • vpc:ports:update
  • vpc:ports:delete
  • vpc:ports:get

POST /v1.0/{project_id}/clusters/{cluster_id}/role_extend

css:cluster:expand

  • ecs:cloudServerFlavors:get
  • evs:types:get
  • vpc:vpcs:list
  • vpc:subnets:list
  • vpc:subnets:get
  • vpc:ports:create
  • vpc:ports:update
  • vpc:ports:delete
  • vpc:ports:get

POST /v1.0/{project_id}/clusters/{cluster_id}/flavor

css:cluster:modifySpecifications

ecs:cloudServerFlavors:get

GET /v1.0/{project_id}/es-flavors

css:cluster:listFlavors

ecs:cloudServerFlavors:get

GET /v1.0/{project_id}/{resource_type}/tags

css:tag:list

-

GET /v1.0/{project_id}/{resource_type}/{cluster_id}/tags

css:tag:get

-

POST /v1.0/{project_id}/{resource_type}/{cluster_id}/tags

css:tag:edit

-

DELETE /v1.0/{project_id}/{resource_type}/{cluster_id}/tags/{key}

css:tag:delete

-

POST /v1.0/{project_id}/{resource_type}/{cluster_id}/tags/action

css:tag:addOrDelete

-

POST /v1.0/{project_id}/clusters/{cluster_id}/{types}/flavor

css:cluster:modifySpecifications

ecs:cloudServerFlavors:get

POST /v1.0/extend/{project_id}/clusters/{cluster_id}/role/shrink

css:cluster:scaleIn

  • iam:agencies:listAgencies
  • iam:permissions:listRolesForAgency
  • iam:permissions:listRolesForAgencyOnProject

GET /v1.0/{project_id}/cer/download

css:cluster:downloadCert

-

PUT /v1.0/{project_id}/clusters/{cluster_id}/instance/{instance_id}/replace

css:cluster:upgradeCluster

  • iam:agencies:listAgencies
  • iam:permissions:listRolesForAgency
  • iam:permissions:listRolesForAgencyOnProject

POST /v1.0/{project_id}/clusters/{cluster_id}/node/offline

css:cluster:shrinkNodes

  • iam:agencies:listAgencies
  • iam:permissions:listRolesForAgency
  • iam:permissions:listRolesForAgencyOnProject

POST /v1.0/{project_id}/clusters/{cluster_id}/mode/change

css:cluster:changeMode

-

POST /v1.0/{project_id}/clusters/{cluster_id}/type/{type}/independent

css:cluster:addIndependenceNodes

  • ecs:cloudServerFlavors:get
  • evs:types:get
  • vpc:vpcs:list
  • vpc:subnets:list
  • vpc:subnets:get
  • vpc:ports:create
  • vpc:ports:update
  • vpc:ports:delete
  • vpc:ports:get

POST /v1.0/{project_id}/clusters/{cluster_id}/inst-type/{inst_type}/image/upgrade

css:cluster:upgradeCluster

-

POST /v1.0/{project_id}/clusters/{cluster_id}/inst-type/{inst_type}/azmigrate

css:cluster:azmigrate

  • iam:agencies:listAgencies
  • iam:permissions:listRolesForAgency
  • iam:permissions:listRolesForAgencyOnProject

GET /v1.0/{project_id}/clusters/{cluster_id}/upgrade/detail

css:cluster:listUpgradeCluster

-

GET /v1.0/{project_id}/clusters/{cluster_id}/target/{upgrade_type}/images

css:cluster:listUpgradeCluster

-

PUT /v1.0/{project_id}/clusters/{cluster_id}/upgrade/{action_id}/retry

css:cluster:retryAction

-

POST /v1.0/{project_id}/clusters/{cluster_id}/thesaurus

css:IKThesaurus:load

  • obs:bucket:listAllMyBuckets
  • obs:bucket:getBucketLocation
  • obs:bucket:getBucketStoragePolicy
  • obs:object:getObject

GET /v1.0/{project_id}/clusters/{cluster_id}/thesaurus

css:IKThesaurus:get

-

DELETE /v1.0/{project_id}/clusters/{cluster_id}/thesaurus

css:IKThesaurus:delete

-

POST /v1.0/{project_id}/clusters/{cluster_id}/publickibana/open

css:publicKibana:open

-

PUT /v1.0/{project_id}/clusters/{cluster_id}/publickibana/close

css:publicKibana:close

-

POST /v1.0/{project_id}/clusters/{cluster_id}/publickibana/bandwidth

css:publicIPAddress:modifyBandwidth

-

POST /v1.0/{project_id}/clusters/{cluster_id}/publickibana/whitelist/update

css:publicIPAddress:setAccessControl

-

PUT /v1.0/{project_id}/clusters/{cluster_id}/publickibana/whitelist/close

css:publicIPAddress:setAccessControl

-

POST /v1.0/{project_id}/clusters/{cluster_id}/logs/open

css:cluster:openLogSetting

  • iam:agencies:pass
  • obs:bucket:listAllMyBuckets
  • obs:bucket:getBucketLocation
  • obs:bucket:getBucketStoragePolicy
  • iam:agencies:listAgencies

PUT /v1.0/{project_id}/clusters/{cluster_id}/logs/close

css:cluster:closeLogSetting

-

GET /v1.0/{project_id}/clusters/{cluster_id}/logs/records

css:log:listJob

-

GET /v1.0/{project_id}/clusters/{cluster_id}/logs/settings

css:log:getBasicConfigurations

-

POST /v1.0/{project_id}/clusters/{cluster_id}/logs/settings

css:log:setBasicConfigurations

  • obs:bucket:listAllMyBuckets
  • obs:bucket:getBucketLocation
  • obs:bucket:getBucketStoragePolicy
  • iam:agencies:listAgencies
  • iam:agencies:pass

POST /v1.0/{project_id}/clusters/{cluster_id}/logs/policy/update

css:log:updateBackupPolicy

-

PUT /v1.0/{project_id}/clusters/{cluster_id}/logs/policy/close

css:log:updateBackupPolicy

-

POST /v1.0/{project_id}/clusters/{cluster_id}/logs/collect

css:log:backup

-

POST /v1.0/{project_id}/clusters/{cluster_id}/logs/search

css:log:list

-

POST /v1.0/{project_id}/clusters/{cluster_id}/public/open

css:publicIPAddress:associates

-

PUT /v1.0/{project_id}/clusters/{cluster_id}/public/close

css:publicIPAddress:disassociates

-

POST /v1.0/{project_id}/clusters/{cluster_id}/public/bandwidth

css:publicIPAddress:modifyBandwidth

-

POST /v1.0/{project_id}/clusters/{cluster_id}/public/whitelist/update

css:publicIPAddress:setAccessControl

-

PUT /v1.0/{project_id}/clusters/{cluster_id}/public/whitelist/close

css:publicIPAddress:setAccessControl

-

POST /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/auto_setting

css:snapshot:enableAtomaticSnapsot

  • obs:bucket:createBucket
  • obs:bucket:headBucket
  • iam:agencies:listAgencies
  • iam:agencies:createAgency
  • iam:permissions:grantRoleToAgency

POST /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/setting

css:snapshot:setSnapshotContiguration

  • obs:bucket:listAllMyBuckets
  • obs:bucket:getBucketLocation
  • obs:bucket:getBucketStoragePolicy
  • iam:agencies:listAgencies
  • iam:agencies:pass

POST /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot

css:snapshot:create

iam:agencies:pass

POST /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/{snapshot_id}/restore

css:snapshot:restore

-

DELETE /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/{snapshot_id}

css:snapshot:delete

-

POST /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/policy

css:snapshot:setSnapshotPolicy

-

GET /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/policy

css:snapshot:getSnapshotPolicy

-

GET /v1.0/{project_id}/clusters/{cluster_id}/index_snapshots

css:snapshot:list

-

DELETE /v1.0/{project_id}/clusters/{cluster_id}/index_snapshots

css:snapshot:disableSnapshotFuction

-

POST /v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/open

css:VPCEndpoint:enableOrDisable

  • vpcep:endpoints:create
  • vpcep:endpoints:list
  • vpcep:endpoints:get
  • vpcep:endpoints:delete
  • vpcep:endpoints:update

PUT /v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/close

css:VPCEndpoint:enableOrDisable

  • vpcep::listQuotas
  • vpcep:endpoints:create
  • vpcep:endpoints:list
  • vpcep:endpoints:get
  • vpcep:endpoints:delete
  • vpcep:endpoints:update

GET /v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/connections

css:VPCEndpoint:listConnection

vpcep:endpoints:get

POST /v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/connections

css:VPCEndpoint:manageConnection

-

POST /v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/permissions

css:VPCEndpoint:updateWhitelist

-

POST /v1.0/{project_id}/clusters/{cluster_id}/ymls/update

css:configurations:modify

-

GET /v1.0/{project_id}/clusters/{cluster_id}/ymls/joblists

css:configurations:list

-

GET /v1.0/{project_id}/clusters/{cluster_id}/ymls/template

css:configurations:get

-

POST /v2.0/{project_id}/clusters/{cluster_id}/snapshots/policy/open

css:snapshot:setSnapshotPolicy

-

PUT /v2.0/{project_id}/clusters/{cluster_id}/snapshots/policy/close

css:snapshot:setSnapshotPolicy

-

POST /v2.0/{project_id}/clusters/{cluster_id}/rolling_restart

css:cluster:rollingReboot

-

GET /v1.0/{project_id}/clusters/{cluster_id}/lgsconf/listactions

css:logstash:listActions

-

DELETE /v1.0/{project_id}/lgsconf/deletetemplate

css:logstash:deleteConfTemplate

-

POST /v1.0/{project_id}/clusters/{cluster_id}/lgsconf/stop

css:logstash:confStop

-

POST /v1.0/{project_id}/clusters/{cluster_id}/lgsconf/hot-stop

css:logstash:confStop

-

POST /v1.0/{project_id}/clusters/{cluster_id}/checkconnection

css:logstash:checkConnection

-

DELETE /v1.0/{project_id}/clusters/{cluster_id}/lgsconf/delete

css:logstash:confDelete

-

POST /v1.0/{project_id}/clusters/{cluster_id}/lgsconf/start

css:logstash:confStart

-

POST /v1.0/{project_id}/clusters/{cluster_id}/lgsconf/hot-start

css:logstash:confStart

-

GET /v1.0/{project_id}/clusters/{cluster_id}/lgsconf/confdetail

css:logstash:getConfDetail

-

POST /v1.0/{project_id}/clusters/{cluster_id}/lgsconf/update

css:logstash:confUpdate

-

GET /v1.0/{project_id}/clusters/{cluster_id}/lgsconf/listpipelines

css:logstash:listPipelines

-

POST /v1.0/{project_id}/clusters/{cluster_id}/lgsconf/submit

css:logstash:submitConf

-

POST /v1.0/{project_id}/clusters/{cluster_id}/lgsconf/favorite

css:logstash:configFavorites

-

GET /v1.0/{project_id}/clusters/{cluster_id}/lgsconf/listconfs

css:logstash:listConfs

-

GET /v1.0/{project_id}/lgsconf/template

css:logstash:listConfigTemplate

-

POST /v1.0/{project_id}/clusters/{cluster_id}/certs/upload

css:cluster:uploadCerts

-

DELETE /v1.0/{project_id}/clusters/{cluster_id}/certs/{cert_id}/delete

css:cluster:deleteCerts

-

GET /v1.0/{project_id}/clusters/{cluster_id}/certs

css:cluster:listCerts

-

GET /v1.0/{project_id}/clusters/{cluster_id}/certs/{cert_id}

css:cluster:getCertsDetail

-

POST /v1.0/{project_id}/clusters/{cluster_id}/route

css:cluster:modifyRoute

-

GET /v1.0/{project_id}/clusters/{cluster_id}/route

css:cluster:getRoutes

-

POST /v1.0/{project_id}/clusters/{cluster_id}/ai-ops

css:cluster:createAiOps

-

GET /v1.0/{project_id}/clusters/{cluster_id}/ai-ops

css:cluster:listAiOps

-

DELETE /v1.0/{project_id}/clusters/{cluster_id}/ai-ops/{aiops_id}

css:cluster:deleteAiOps

-

GET /v1.0/{project_id}/domains/{domain_id}/ai-ops/smn-topics

css:cluster:listSmnTopics

  • css:cluster:getAgencies
  • iam:agencies:list
  • iam:agencies:listAgencies
  • iam:agencies:listAttachedPolicies
  • iam:agencies:pass

GET /v1.0/{project_id}/clusters/{cluster_id}/loadbalancers

css:cluster:listElbs

elb:loadbalancers:list

POST /v1.0/{project_id}/clusters/{cluster_id}/loadbalancers/es-switch

css:cluster:elbSwitch

  • elb:loadbalancers:list
  • iam:agencies:listAgencies
  • iam:permissions:listRolesForAgency
  • iam:permissions:listRolesForAgencyOnProject
  • iam:agencies:pass

POST /v1.0/{project_id}/clusters/{cluster_id}/es-listeners

css:cluster:createElbListener

-

GET /v1.0/{project_id}/clusters/{cluster_id}/es-listeners

css:cluster:getElbDetail

-

GET /v1.0/{project_id}/clusters/{cluster_id}/elb/certificates

css:cluster:listElbCerts

-

PUT /v1.0/{project_id}/clusters/{cluster_id}/es-listeners/{listener_id}

css:cluster:updateElbListener

-

资源类型(Resource)

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

CSS定义了以下可以在SCP的Resource元素中使用的资源类型。

表3 CSS支持的资源类型

资源类型

URN

cluster

css:<region>:<account-id>:cluster:<cluster-id>

条件(Condition)

条件键概述

条件(Condition)是SCP生效的特定条件,包括条件键运算符

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

CSS支持的服务级条件键

CSS定义了以下可以在SCP的Condition元素中使用的条件键,您可以使用这些条件键进一步细化SCP语句应用的条件。

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

服务级条件键

类型

单值/多值

说明

css:AssociatePublicIp

boolean

单值

是否允许实例开启公网访问。

条件键示例

  • css:AssociatePublicIp

    示例:禁止创建带EIP的CSS集群

    {
      "Version": "5.0",
      "Statement": [
        {
          "Effect": "Deny",
          "Action": [
            "css:cluster:create"
          ],
          "Condition": {
            "Bool": {
              "css:AssociatePublicIp": [
                "true"
              ]
            }
          }
        }
      ]
    }

    示例:禁止给CSS集群绑定EIP

    {
      "Version": "5.0",
      "Statement": [
        {
          "Effect": "Deny",
          "Action": [
            "css:publicIPAddress:associates",
            "css:publicKibana:open"
          ]
        }
      ]
    }

我们使用cookie来确保您的高速浏览体验。继续浏览本站,即表示您同意我们使用cookie。 详情

文档反馈

文档反馈

意见反馈

0/500

标记内容

同时提交标记内容