Identity Policy-based Authorization
IAM provides system-defined identity policies to define common permissions supported by cloud services. You can also create custom identity policies using the actions supported by cloud services for more refined access control.
In addition to IAM, the Organizations service also provides Service Control Policies (SCPs) to set access control policies.
SCPs do not actually grant any permissions to a principal. They only set permissions boundaries for the entity. When SCPs are attached to an organizational unit (OU) or a member account, the SCPs do not directly grant permissions to that OU or member account. Instead, the SCPs only determine what permissions are available for that member account or those member accounts under that OU. The granted permissions can be applied only if they are allowed by the SCPs.
To learn more about how IAM is different from Organizations for access control, see What Are the Differences in Access Control Between IAM and Organizations?
This section describes the elements used by IAM custom identity policies and Organizations SCPs. The elements include actions, resources, and conditions.
- For details about how to use these elements to edit an IAM custom identity policy, see Creating a Custom Identity Policy.
- For details about how to use these elements to create a custom SCP, see Creating an SCP.
Action
Actions are specific operations that are allowed or denied in an SCP.
- The Access Level column describes how the action is classified (List, Read, or Write). This classification helps you understand the level of access that an action grants when you use it in a policy.
- The Resource Type column indicates whether the action supports resource-level permissions.
- You can use a wildcard (*) to indicate all resource types. If this column is empty (-), the action does not support resource-level permissions and you must specify all resources ("*") in your identity policy statements.
- If this column includes a resource type, you must specify the URN in the Resource element of your policy statements.
- Required resources are marked with asterisks (*) in the table. If you specify a resource in a statement using this action, then it must be of this type.
For details about the resource types defined by CSS, see Resource Type.
- The Condition Key column contains keys that you can specify in the Condition element of an identity policy statement.
- If the Resource Type column has values for an action, the condition key takes effect only for the listed resource types.
- If the Resource Type column is empty (-) for an action, the condition key takes effect for all resources that action supports.
- If the Condition Key column is empty (-) for an action, the action does not support any condition keys.
For details about condition keys defined by CSS, see Condition.
- The Alias column lists the policy actions that are configured in identity policies. With these actions, you can control access to APIs that support policy-based authorization. For details, see Policies and Identity Policies.
The following table lists the actions that you can define in identity policy statements for CSS.
| Action | Description | Access Level | Resource Type (*: Required) | Condition Key | Alias |
|---|---|---|---|---|---|
| css:VPCEndpoint:updateWhitelist | Grant the permission to update an existing whitelist of VPC endpoints. | Write | cluster * | - | |
| css:log:updateBackupPolicy | Grant the permission to modify or delete log backups. | Write | cluster * | - | |
| css:snapshot:setSnapshotPolicy | Grant the permission to set backup policies. | Write | cluster * | - | |
| css:snapshot:getSnapshotPolicy | Grant the permission to query backup policies. | Read | cluster * | - | |
| css:snapshot:restore | Grant the permission to restore data from a snapshot. | Write | cluster * | - | |
| css:snapshot:create | Grant the permission to create a snapshot. | Write | cluster * | - | |
| css:publicIPAddress:associates | Grant the permission to enable or disable public access. | Write | cluster * | - | |
| css:publicIPAddress:setAccessControl | Grant the permission to manage whitelists for access control. | Write | cluster * | - | |
| css:tag:get | Grant the permission to query resource tags. | Read | cluster * | - | |
| css:publicIPAddress:modifyBandwidth | Grant the permission to modify the bandwidth size. | Write | cluster * | - | |
| css:VPCEndpoint:enableOrDisable | Grant the permission to create or delete a VPCEP. | Write | cluster * | - | |
| css:log:getBasicConfigurations | Grant the permission to query basic configurations. | Read | cluster * | - | |
| css:snapshot:list | Grant the permission to list snapshots. | List | cluster * | - | |
| css:log:list | Grant the permission to view logs. | List | cluster * | - | |
| css:snapshot:setSnapshotContiguration | Grant the permission to set basic snapshot configurations. | Write | cluster * | - | |
| css:cluster:listFlavors | Grant the permission to list flavor IDs. | List | - | - |
|
| css:cluster:listDiskType | Grant the permission to list available disk types. | List | - | - | - |
| css:tag:list | Grant the permission to query project tags. | List | cluster * | - | - |
| css:VPCEndpoint:manageConnection | Grant the permission to configure the connection of the endpoint. | Write | cluster * | - | |
| css:log:listJob | Grant the permission to list jobs. | List | cluster * | - | |
| css:cluster:downloadCert | Grant the permission to obtain the content of a certificate. | Read | - | - | - |
| css:cluster:get | Grant the permission to query cluster details. | Read | cluster * |
| |
| css:snapshot:enableAtomaticSnapsot | Grant the permission to set basic configurations for automatic snapshot backup. | Write | cluster * | - | |
| css:snapshot:delete | Grant the permission to delete a specified snapshot. | Write | cluster * | - | |
| css:IKThesaurus:get | Grant the permission to view the custom word dictionary configuration. | Read | cluster * | - | |
| css:cluster:restart | Grant the permission to restart an Elasticsearch cluster. | Write | cluster * | - | |
| css:cluster:modifySecurityGroup | Grant the permission to modify the cluster security group. | Write | cluster * | - | |
| css:configurations:list | Grant the permission to query parameter settings. | List | cluster * | - | |
| css:cluster:delete | Grant the permission to delete a cluster. | Write | cluster * | - | |
| css:cluster:modifySpecifications | Grant the permission to modify cluster specifications. | Write | cluster * | - | |
| css:cluster:list | Grant the permission to list cluster information. | List | cluster * | - |
|
| css:cluster:scaleOut | Grant the permission to scale out a cluster. | Write | cluster * | - | |
| css:IKThesaurus:load | Grant the permission to load a custom word dictionary. | Write | cluster * | - | |
| css:configurations:modify | Grant the permission to update parameter settings. | Write | cluster * | - | |
| css:configurations:get | Grant the permission to list parameters. | List | cluster * | - | |
| css:IKThesaurus:delete | Grant the permission to delete a word dictionary. | Write | cluster * | - | |
| css:cluster:expand | Grant the permission to scale out the quantity and storage capacity of instances. | Write | cluster * | - | |
| css:snapshot:disableSnapshotFuction | Grant the permission to disable the cluster snapshot function. | Write | cluster * | - | |
| css:cluster:upgradeCluster | Grant the permission to upgrade clusters or replace nodes. | Write | cluster * | - | |
| css:VPCEndpoint:listConnection | Grant the permission to query VPCEP connections. | List | cluster * | - | |
| css:cluster:scaleIn | Grant the permission to scale in a cluster. | Write | cluster * | - | |
| css:log:setBasicConfigurations | Grant the permission to set basic configurations. | Write | cluster * | - | |
| css:tag:addOrDelete | Grant the permission to add or delete resource tags in batches. | Tagging | cluster * | - | |
| - | |||||
| css:publicKibana:close | Grant the permission to disable public access. | Write | cluster * | - | |
| css:tag:edit | Grant the permission to modify cluster tags. | Tagging | cluster * | - | |
| - | |||||
| css:cluster:create | Grant the permission to create a cluster. | Write | cluster * | - | - |
| - | |||||
| css:cluster:toPeriod | Grant the permission to change the billing mode of a cluster to yearly/monthly. | Write | cluster * | - | |
| css:cluster:modifyName | Grant the permission to change the cluster name. | Write | cluster * | - | |
| css:log:backup | Grant the permission to back up logs. | Write | cluster * | - | |
| css:cluster:closeLogSetting | Grant the permission to disable logging. | Write | cluster * |
| |
| css:cluster:connectivityTest | Grant the permission to test the connectivity. | Write | cluster * | - | |
| css:cluster:openLogSetting | Grant the permission to enable logging. | Write | cluster * |
| |
| css:cluster:modifyPassword | Grant the permission to change the cluster password. | Write | cluster * | - | |
| css:publicIPAddress:disassociates | Grant the permission to unbind public networks. | Write | cluster * | - | |
| css:publicKibana:open | Grant the permission to bind public networks. | Write | cluster * | - | |
| css:tag:delete | Grant the permission to delete a tag. | Tagging | cluster * | - | |
| - | |||||
| css:cluster:shrinkNodes | Grant the permission to scale in a specified node. | Write | cluster * | - | |
| css:cluster:changeMode | Grant the permission to modify the security mode. | Write | cluster * | - | |
| css:cluster:addIndependenceNodes | Grant the permission to add independent master and client nodes. | Write | cluster * | - | |
| css:cluster:rollingReboot | Grant the permission to perform a rolling restart of an Elasticsearch cluster. | Write | cluster * |
| |
| css:logstash:listActions | Grant the permission to query operation records. | Read | cluster * | - | |
| css:cluster:uploadCerts | Grant the permission to upload certificates. | Write | cluster * | - | |
| css:cluster:deleteCerts | Grant the permission to delete certificates. | Write | cluster * | - | |
| css:cluster:listCerts | Grant the permission to list certificates. | List | cluster * |
| |
| css:cluster:getCertsDetail | Grant the permission to query certificate details. | Read | cluster * | - | |
| css:logstash:deleteConfTemplate | Grant the permission to delete a custom template. | Write | cluster * | - | |
| css:logstash:listConfigTemplate | Grant the permission to list templates. | List | - | - |
|
| css:logstash:confStop | Grant the permission to stop or hot-stop pipeline tasks for data migration. | Write | cluster * | - | |
| css:logstash:checkConnection | Grant the permission to test the connectivity. | Write | cluster * | - | |
| css:logstash:confDelete | Grant the permission to delete configuration files. | Write | cluster * | - | |
| css:logstash:confStart | Grant the permission to start or hot-start pipeline tasks for data migration. | Write | cluster * | - | |
| css:logstash:getConfDetail | Grant the permission to query the content of configuration files. | Read | cluster * | - | |
| css:cluster:azmigrate | Grant the permission to switch AZs. | Write | cluster * | - | |
| css:logstash:confUpdate | Grant the permission to update configuration files. | Write | cluster * | - | |
| css:logstash:listPipelines | Grant the permission to list pipelines. | List | cluster * | - | |
| css:cluster:retryAction | Grant the permission to retry a task or terminate the impact of a task. | Write | cluster * | - | |
| css:logstash:listConfs | Grant the permission to list configuration files. | List | cluster * | - | |
| css:logstash:configFavorites | Grant the permission to add items to a custom template. | Write | cluster * | - | |
| css:cluster:listUpgradeCluster | Grant the permission to obtain the upgrade image ID and upgrade details. | List | cluster * | - | |
| css:logstash:submitConf | Grant the permission to create configuration files. | Write | cluster * | - | |
| css:plugin:list | Grant the permission to list cluster plug-ins. | List | cluster * | - | |
| css:plugin:getOperationRecords | Grant the permission to query the plug-in operation records. | Read | cluster * | - | |
| css:plugin:delete | Grant the permission to delete plug-ins. | Write | cluster * | - | |
| css:plugin:installOrUninstall | Grant the permission to install or uninstall plug-ins. | Write | cluster * | - | |
| css:plugin:upload | Grant the permission to upload plug-ins. | Write | cluster * | - | |
| css:plugin:getDefault | Grant the permission to query default plug-ins. | Read | cluster * | - | |
| css:cluster:getAgencies | Grant the permission to obtain agents. | Read | - | - | - |
| css:cluster:modifyRoute | Grant the permission to modify cluster routes. | Write | cluster * | - | |
| css:cluster:getRoutes | Grant the permission to obtain the cluster routes. | Read | cluster * | - | |
| css:logstash:actionList | Grant the permission to list cluster tasks. | List | cluster * | - | |
| css:cluster:createUserInfo | Grant the permission to query information about a created user. | Write | cluster * | - | - |
| css:VPCEndpoint:modifyConnections | Grant the permission to modify the connection size. | Write | cluster * | - | |
| css:cluster:queryNeedDeleteInstances | Grant the permission to query the node to be deleted. | Write | cluster * | - | |
| css:cluster:queryKey | Grant the permission to obtain keys. | Read | - | - | - |
| css:cluster:queryKeys | Grant the permission to list keys. | List | - | - | - |
| css:cluster:getPubliczonePice | Grant the permission to obtain the bandwidth price. | Read | cluster * | - | - |
| css:datastore:get | Grant the permission to obtain the data engine. | Read | cluster * | - | - |
| css:datastore:list | Grant the permission to list data engines. | List | cluster * | - | - |
| css:publicIPAddress:enableOrDisableIPv6Function | Grant the permission to enable or disable IPv6. | Write | cluster * | - | |
| css:cluster:getDiskUsage | Grant the permission to obtain the cluster storage capacity status. | Read | cluster * | - | - |
| css:snapshot:showDetail | Grant the permission to obtain snapshot details. | Read | cluster * | - | - |
| css:cluster:getAvailableBuckets | Grant the permission to obtain an available OBS bucket. | List | - | - | - |
| css:cluster:checkCssName | Grant the permission to check cluster names. | Write | cluster * | - | - |
| css:snapshot:deleteAllFailedTask | Grant the permission to delete all failed tasks. | Write | - | - | - |
| css:snapshot:deleteSingleFailedTask | Grant the permission to delete specified failed tasks. | Write | - | - | - |
| css:snapshot:getAllFailedTask | Grant the permission to view failed backup tasks. | List | - | - | - |
| css::createServiceAgency | Grant the permission to create agencies. | Write | - | - | css:cluster:createServiceAgency |
| css:cluster:createAiOps | Grant the permission to create detection tasks. | Write | cluster * | - | |
| css:cluster:listAiOps | Grant the permission to list detection tasks. | List | cluster * | - | |
| css:cluster:deleteAiOps | Grant the permission to delete detection tasks. | Write | cluster * | - | |
| css:cluster:listSmnTopics | Grant the permission to list SMN topics. | List | cluster * | - | |
| css:cluster:listElbs | Grant the permission to list available load balancers for the current cluster. | List | cluster * | - | |
| css:cluster:elbSwitch | Grant the permission to enable or disable load balancing. | Write | cluster * | - | |
| css:cluster:createElbListener | Grant the permission to create listeners for the current cluster. | Write | cluster * | - | |
| css:cluster:updateElbListener | Grant the permission to modify listeners for the current cluster. | Write | cluster * | - | |
| css:cluster:getElbDetail | Grant the permission to query information about load balancers used by the current cluster. | Read | cluster * | - | |
| css:cluster:listElbCerts | Grant the permission to list load balancer certificates. | List | cluster * | - | |
| css:cluster:changeSubnet | Grant the permission to modify the subnet of the current cluster. | Write | cluster * | - | |
| css:cluster:getAccessPolicy | Grant the permission to obtain the access control policies of the current cluster. | Read | cluster * | - | |
| css:cluster:updateAccessPolicy | Grant the permission to modify the access control policies of the current cluster. | Write | cluster * | - | |
| css:cluster:updateAiOpsSetting | Grant the permission to update scheduled check settings for intelligent O&M. | Write | cluster * | - | |
| css:cluster:closeAiOpsSetting | Grant the permission to disable scheduled check for intelligent O&M. | Write | cluster * | - | |
| css:cluster:showAiOpsSetting | Grant the permission to check scheduled check settings for intelligent O&M. | Read | cluster * | - | |
| css:cluster:showAiOpsDetector | Grant the permission to check intelligent O&M check items. | Read | cluster * | - | |
| css:cluster:create | Grant the permission to create a cluster. | Write | cluster * | - | - |
| css:cluster:restart | Grant the permission to restart an Elasticsearch cluster. | Write | cluster * | - | |
| css:cluster:rollingReboot | Grant the permission to perform a rolling restart of an Elasticsearch cluster. | Write | cluster * | css:cluster:rollingRestart | |
| css:snapshot:setSnapshotPolicy | Grant the permission to set backup policies. | Write | cluster * | - | |
| css:logstash:confDelete | Grant the permission to delete configuration files. | Write | cluster * | - | |
| css:logstash:deleteConfTemplate | Grant the permission to delete a custom template. | Write | cluster * | - | |
| css:cluster:getAccessPolicy | Grant the permission to obtain the access control policies of the current cluster. | Read | cluster * | - | |
| css:cluster:updateAccessPolicy | Grant the permission to modify the access control policies of the current cluster. | Write | cluster * | - |
Each API of CSS usually supports one or more actions. Table 2 lists the supported actions and dependencies.
| API | Action | Dependency |
|---|---|---|
| css:cluster:create |
| |
| css:cluster:create |
| |
| css:cluster:modifySecurityGroup |
| |
| css:cluster:list | - | |
| css:cluster:get | - | |
| css:cluster:delete | - | |
| css:cluster:toPeriod | - | |
| css:cluster:modifyName | - | |
| POST /v1.0/{project_id}/clusters/{cluster_id}/password/reset | css:cluster:modifyPassword | - |
| css:cluster:restart | - | |
| css:cluster:restart | - | |
| css:cluster:restart | - | |
| css:cluster:scaleOut |
| |
| css:cluster:expand |
| |
| css:cluster:modifySpecifications |
| |
| css:cluster:listFlavors | ecs:cloudServerFlavors:get | |
| css:tag:list | - | |
| css:tag:get | - | |
| 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 |
|
| POST /v1.0/extend/{project_id}/clusters/{cluster_id}/role/shrink | css:cluster:scaleIn |
|
| css:cluster:downloadCert | - | |
| PUT /v1.0/{project_id}/clusters/{cluster_id}/instance/{instance_id}/replace | css:cluster:upgradeCluster |
|
| css:cluster:shrinkNodes |
| |
| css:cluster:changeMode | - | |
| POST /v1.0/{project_id}/clusters/{cluster_id}/type/{type}/independent | css:cluster:addIndependenceNodes |
|
| 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 |
|
| 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 |
|
| css:cluster:listDiskType | evs:types:get | |
| css:IKThesaurus:load |
| |
| css:IKThesaurus:get | - | |
| 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 | - |
| css:cluster:openLogSetting |
| |
| css:cluster:closeLogSetting | - | |
| css:log:listJob | - | |
| css:log:getBasicConfigurations | - | |
| css:log:setBasicConfigurations |
| |
| 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 | - |
| css:log:backup | - | |
| css:log:list | - | |
| POST /v1.0/{project_id}/clusters/{cluster_id}/logs/connectivity | css:cluster:connectivityTest | - |
| css:publicIPAddress:associates | - | |
| 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 |
|
| POST /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/setting | css:snapshot:setSnapshotContiguration |
|
| 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 |
|
| PUT /v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/close | css:VPCEndpoint:enableOrDisable |
|
| 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 | - |
| css:configurations:modify | - | |
| css:configurations:list | - | |
| 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 | - |
| css:logstash:deleteConfTemplate | - | |
| 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 | - |
| 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 | - |
| css:logstash:listConfigTemplate | - | |
| css:cluster:uploadCerts | - | |
| DELETE /v1.0/{project_id}/clusters/{cluster_id}/certs/{cert_id}/delete | css:cluster:deleteCerts | - |
| css:cluster:listCerts | - | |
| GET /v1.0/{project_id}/clusters/{cluster_id}/certs/{cert_id} | css:cluster:getCertsDetail | - |
| css:cluster:modifyRoute | - | |
| css:cluster:getRoutes | - | |
| css::createServiceAgency |
| |
| css:cluster:createAiOps | - | |
| 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:listElbs | elb:loadbalancers:list | |
| POST /v1.0/{project_id}/clusters/{cluster_id}/loadbalancers/es-switch | css:cluster:elbSwitch |
|
| css:cluster:createElbListener | - | |
| css:cluster:getElbDetail | - | |
| GET /v1.0/{project_id}/clusters/{cluster_id}/elb/certificates | css:cluster:listElbCerts | - |
| css:cluster:changeSubnet | - | |
| css:cluster:getDiskUsage | - | |
| css:cluster:listFlavors | - | |
| css:cluster:listFlavors | - | |
| css:cluster:listFlavors | - | |
| GET /v1.0/{project_id}/clusters/{cluster_id}/ai-ops/detector | css:cluster:showAiOpsDetector | - |
| css:cluster:showAiOpsSetting | - | |
| POST /v1.0/{project_id}/clusters/{cluster_id}/ai-ops/setting | css:cluster:updateAiOpsSetting | - |
| css:cluster:closeAiOpsSetting | - | |
| css:cluster:create |
| |
| css:cluster:restart | - | |
| POST /v2.0/{project_id}/clusters/{cluster_id}/rolling-restart | css:cluster:rollingReboot | - |
| POST /v2.0/{project_id}/clusters/{cluster_id}/rolling_restart | css:cluster:rollingReboot | - |
| 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}/lgsconf/delete | css:logstash:confDelete | - |
| css:logstash:deleteConfTemplate | - | |
| PUT /v1.0/{project_id}/clusters/{cluster_id}/es-listeners/{listener_id} | css:cluster:updateElbListener | - |
Resource Type
A resource is used to define the scope of resources to which an identity policy applies. If a specific resource type has been specified for an operation listed in Table 3, then when you select and fill in the corresponding resource URN in an identity policy statement containing that operation, the identity policy will only take effect on that specified resource. If the corresponding resource URN is not filled in, the identity policy will take effect on all resources under the specified resource type. If no resource type is specified, the default value of Resource is *, and the identity policy will apply to all resources. Additionally, you can set conditions in the identity policy to further refine the resource type.
The following table lists the resource types that you can define in identity policy statements for CSS.
Condition
About condition keys
A Condition element lets you specify conditions for when an identity policy is in effect. It contains condition keys and operators.
- Condition keys are the key values in the Condition element of an identity policy statement. Condition keys are classified into global condition keys and service-specific condition keys based on the application scope.
- Global condition keys (with the g: prefix) apply to all actions. Cloud services do not need to provide user identity information. Instead, the system automatically obtains such information and authenticates users. For details, see Global Condition Keys.
- Service-specific condition keys (with the abbreviation of a service name plus a colon as the prefix, for example, css:) apply only to operations of the service. For details, see Table 4.
- A condition key is single-valued if an API request provides only one piece of data for it, and multivalued if the request provides a list of multiple values. Single-valued condition keys have at most one value in the request context of an API call. Multivalued condition keys can have multiple values in the request context of an API call. For example, a request can originate from at most one VPC endpoint, so g:SourceVpce is a single-valued condition key. You can tag resources and include multiple tag key-value pairs in a request, so g:TagKeys is a multivalued condition key.
- A condition operator, a condition key, and a condition value together constitute a complete condition statement. An identity policy can be applied only when its request conditions are met. For supported condition operators, see Condition operators.
Service-specific condition keys supported by CSS
The following table lists the condition keys that you can define in custom identity policies for CSS. You can include these condition keys to specify conditions for when your identity policy is in effect.
| Service-specific Condition Key | Type | Single-valued/Multivalued | Description |
|---|---|---|---|
| boolean | Single-valued | Filter access permissions based on whether public access is enabled for the instance. |
Example condition keys
- css:AssociatePublicIp
Example: Disallow the creation of CSS clusters that have an EIP associated with it.
{ "Version": "5.0", "Statement": [ { "Effect": "Deny", "Action": [ "css:cluster:create" ], "Condition": { "Bool": { "css:AssociatePublicIp": [ "true" ] } } } ] }Example: Disallow the association of an EIP with a CSS cluster.
{ "Version": "5.0", "Statement": [ { "Effect": "Deny", "Action": [ "css:publicIPAddress:associates", "css:publicKibana:open" ] } ] }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot