Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Data Encryption Workshop (DEW)

Updated on 2025-02-25 GMT+08:00

The Organizations service provides Service Control Policies (SCPs) to set access control policies.

SCPs do not actually grant any permissions to an entity. They only set the permission boundary for the entity. When SCPs are attached to an organizational unit (OU) or a member account, the SCPs do not directly grant permissions to the OU or member account. Instead, the SCPs only determine what permissions are available for the member account or the member accounts under the OU.

This section describes the elements used by Organizations SCPs, which include actions, resources, and conditions.

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 in a policy.

  • The Access Level column describes how the action is classified (List, Read, or Write). This 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 does not contain any value (-), you must specify all resources (*) in your SCP statements.
    • If resource types are specified for this column, specify the resource URN in the statement that contains the action.
    • Required resources are marked with asterisks (*) in the table.

    For details about resource types defined by DEW, see Resources.

  • The Condition Key column contains keys that you can specify in the Condition element of an SCP statement.
    • If the Resource Type column has values for an action, the condition key only 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 resource types 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 DEW, see Conditions.

The following table describes the actions that you can define in SCP statements for DEW.

Table 1 Actions supported by KMS

Action

Description

Access Level

Resource Type (* required)

Condition Key

kms:cmk:create

Grant the permission to create KMS keys.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage

-

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

kms:cmk:list

Grant the permission to view all KMS keys of a user.

list

KeyId *

-

-

g:EnterpriseProjectId

kms:cmk:enable

Grant the permission to enable KMS keys.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

kms:cmk:disable

Grant the permission to disable KMS keys.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

kms:cmk:get

Grant the permission to view details about KMS keys.

read

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • kms:RequestAlias
  • kms:ResourceAliases

kms:cmk:createDataKey

Grant the permission to use KMS keys to generate data keys.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • kms:RecipientAttestation
  • kms:RequestAlias
  • kms:ResourceAliases
  • kms:EncryptionContext

kms:cmk:createDataKeyWithoutPlaintext

Grant the permission to use KMS keys to generate data keys that do not contain plaintext versions.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • kms:RequestAlias
  • kms:ResourceAliases
  • kms:EncryptionContext

kms:cmk:encryptDataKey

Grant the permission to encrypt data keys.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • kms:RequestAlias
  • kms:ResourceAliases
  • kms:EncryptionContext

kms:cmk:decryptDataKey

Grant the permission to decrypt data keys.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • kms:RecipientAttestation
  • kms:RequestAlias
  • kms:ResourceAliases
  • kms:EncryptionContext

kms:cmk:encryptData

Grant the permission to use a specified KMS key to encrypt small volumes of data.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • kms:EncryptionAlgorithm
  • kms:RequestAlias
  • kms:ResourceAliases
  • kms:EncryptionContext

kms:cmk:decryptData

Grant the permission to use a specified KMS key to decrypt data.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • kms:EncryptionAlgorithm
  • kms:RecipientAttestation
  • kms:RequestAlias
  • kms:ResourceAliases
  • kms:EncryptionContext

kms::generateRandom

Grant the permission to generate secure random strings.

write

-

kms:RecipientAttestation

kms:cmk:sign

Grant the permission to generate digital signatures.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • kms:MessageType
  • kms:SigningAlgorithm
  • kms:RequestAlias
  • kms:ResourceAliases

kms:cmk:verify

Grant the permission to use a specified KMS key to verify digital signatures.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • kms:MessageType
  • kms:SigningAlgorithm
  • kms:RequestAlias
  • kms:ResourceAliases

kms:cmk:generateMac

Grant the permission to generate message verification codes.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • kms:MessageType
  • kms:SigningAlgorithm
  • kms:RequestAlias
  • kms:ResourceAliases

kms:cmk:verifyMac

Grant the permission to use a specified KMS key to verify message verification codes.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • kms:MacAlgorithm
  • kms:RequestAlias
  • kms:ResourceAliases

kms:cmk:getPublicKey

Grant the permission to query the public key of KMS keys.

read

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • kms:RequestAlias
  • kms:ResourceAliases

kms::getVersions

Grant the permission to query the service version.

read

-

-

kms::getVersion

Grant the permission to query the API version of a service key.

read

-

-

kms::getInstance

Grant the permission to query the number of key instances of a user.

read

-

-

kms::getQuota

Grant the permission to query user quotas.

read

-

-

kms:cmk:scheduleKeyDeletion

Grant the permission to periodically delete KMS keys.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

kms:ScheduleKeyDeletionPendingWindowInDays

kms:cmk:cancelKeyDeletion

Grant the permission to cancel the scheduled deletion of KMS keys.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

kms:cmk:updateKeyAlias

Grant the permission to change the alias of a key.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

kms:cmk:updateKeyDescription

Grant the permission to change the key description.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

kms:cmk:createGrant

Grant the permission to create grants for a specified key.

permission_management

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

  • kms:GranteePrincipalType
  • kms:GrantOperations
  • kms:GranteePrincipal
  • kms:RetiringPrincipal

kms:cmk:listGrants

Grant the permission to query the grant list of a specified key.

list

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

kms::listRetirableGrants

Grant the permission to query the retirable grant list of CMKs.

list

-

-

kms:cmk:retireGrant

Permission granted to retire a grant for a specified CMK.

permission_management

KeyId *

g:ResourceTag/<tag-key>

kms:cmk:revokeGrant

Grant the permission to cancel the grants of a specified key.

permission_management

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

kms:cmk:getMaterial

Grant the permission to obtain key import parameters.

read

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

kms:WrappingAlgorithm

kms:cmk:importMaterial

Grant the permission to import key materials.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

kms:ExpirationTime

kms:cmk:deleteMaterial

Grant the permission to delete key materials.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

kms:cmk:enableRotation

Grant the permission to enable rotation for a specified key.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

kms:cmk:updateRotation

Grant the permission to change the rotation period of a specified key.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

kms:cmk:disableRotation

Grant the permission to disable rotation for a key.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

kms:cmk:getRotation

Grant the permission to query the rotation status of a specified key.

read

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

kms:cmk:createTag

Grant the permission to add tags to a specified key.

tagging

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

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

kms:cmk:createTags

Grant the permission to add or delete tags of a specified key in batches.

tagging

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

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

kms:cmk:listKeysByTag

Grant the permission to query a specified key instance.

list

KeyId *

-

kms:cmk:deleteTag

Grant the permission to delete a specified key tag.

tagging

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

g:TagKeys

kms:cmk:getTags

Grant the permission to query a specified key tag.

read

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

kms::listAllTags

Grant the permission to query the tags of a specified key project.

list

-

-

kms:cmk:replicate

Grant the permission to copy a KMS key.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

kms:cmk:updatePrimaryRegion

Grant the permission to update the primary region.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

-

kms:PrimaryRegion

kms:alias:create

Grant the permission to create an alias.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

alias *

-

kms:alias:delete

Grant the permission to delete an alias.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

alias *

-

kms:alias:list

Grant the permission to query the alias list.

list

-

-

kms:alias:associate

Grant the permission to associate an alias.

write

KeyId *

  • kms:KeyOrigin
  • kms:KeySpec
  • kms:KeyUsage
  • kms:MultiRegionKeyType
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

alias *

-

Table 2 Actions supported by KPS

Action

Description

Access Level

Resource Type (* required)

Condition Key

kps:SSHKeyPair:create

Grant the permission to create and import SSH key pairs.

write

SSHKeyPair *

  • kps:KmsKeyId
  • kps:Algorithm

kps:SSHKeyPair:delete

Grant the permission to delete SSH key pairs.

write

SSHKeyPair *

-

kps:SSHKeyPair:get

Grant the permission to query SSH key pair details.

read

SSHKeyPair *

-

kps:SSHKeyPair:list

Grant the permission to query the SSH key pair list.

list

SSHKeyPair *

-

kps:SSHKeyPair:update

Grant the permission to update the description of SSH key pairs.

write

SSHKeyPair *

-

kps:SSHKeyPair:bind

Grant the permission to bind a new SSH key pair to a VM.

write

SSHKeyPair *

-

kps::deleteFailedTask

Grant the permission to delete failed tasks.

write

-

-

kps:SSHKeyPair:unbind

Grant the permission to unbind an SSH key pair from a VM.

write

SSHKeyPair *

-

kps::getFailedTask

Grant the permission to query the information about failed tasks.

list

-

-

kps::getTask

Grant the permission to query the execution status of the current task.

list

-

-

kps::getRunningTask

Grant the permission to query the information about tasks that are being processed.

list

-

-

kps:SSHKeyPair:importPrivateKey

Grant the permission to import a private key to a key pair.

write

SSHKeyPair *

kps:KmsKeyId

kps:SSHKeyPair:exportPrivateKey

Grant the permission to export the private key from a key pair.

write

SSHKeyPair *

-

kps:SSHKeyPair:clearPrivateKey

Grant the permission to clear the private key of a key pair.

write

SSHKeyPair *

-

Table 3 Actions supported by CSMS

Action

Description

Access Level

Resource Type (* required)

Condition Key

csms:secret:create

Grant the permission to create and restore secrets.

write

secretName *

  • csms:Type
  • csms:KmsKeyId

-

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

csms:secret:delete

Grant the permission to delete secrets immediately.

write

secretName *

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

csms:secret:update

Grant the permission to update secret metadata information.

write

secretName *

  • csms:Type
  • csms:KmsKeyId
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

csms:secret:get

Grant the permission to query and download secret information.

read

secretName *

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

csms:secret:list

Grant the permission to query all secrets created by the current user in the current project.

list

secretName *

g:EnterpriseProjectId

csms:secret:createVersion

Grants the permission to create a new secret version in a specified secret.

write

secretName *

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

csms:secret:getVersion

Grants permission to query the version information about a specified secret and its plaintext secret values.

read

secretName *

  • csms:Type
  • csms:VersionId
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

csms:secret:listVersion

Grants the permission to query the version list of a specified secret.

list

secretName *

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

csms:secret:createStage

Grant the permission to create secret version status.

write

secretName *

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

csms:secret:getStage

Grant the permission to use the secret version status to query version information.

read

secretName *

  • csms:Type
  • csms:VersionStage
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

csms:secret:updateStage

Grant the permission to update the secret version status.

write

secretName *

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

csms:secret:deleteStage

Grant the permission to delete the state of a specified secret version.

write

secretName *

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

csms::getSecretQuota

Grant the permission to query the secret quota of a specified project.

read

-

-

csms:secret:scheduleDeletion

Grant the permission to create a scheduled secret deletion task.

write

secretName *

  • csms:Type
  • csms:RecoveryWindowInDays
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

csms:secret:restoreSecret

Grant the permission to cancel a scheduled secret deletion task.

write

secretName *

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

csms:secret:rotate

Grant the permission to rotate a secret.

write

secretName *

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

csms:secret:getSecretsByTag

Grant the permission to return the secret list through tag filtering.

list

secretName *

-

csms:secret:batchCreateOrDeleteTags

Grant the permission to add or delete secret tags in batches.

tagging

secretName *

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

-

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

csms:secret:createTag

Grant the permission to add secret tags.

tagging

secretName *

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

-

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

csms:secret:deleteTag

Grant the permission to delete secret tags.

tagging

secretName *

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

-

g:TagKeys

csms:secret:listTags

Grant the permission to query secret tags.

list

secretName *

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

csms::listProjectTags

Grant the permission to query all secret tag sets of a user in a specified project.

list

-

-

csms:secret:updateVersion

Grant the permission to update the validity period of a secret version.

write

secretName *

  • csms:Type
  • csms:VersionId
  • g:EnterpriseProjectId
  • g:ResourceTag/<tag-key>

csms::createEvent

Grant the permission to create secret events.

write

-

-

csms::listEvents

Grant the permission to query all event notifications created by the current user in a project.

list

-

-

csms::getEvent

Grant the permission to query specified event notification information.

read

-

-

csms::updateEvent

Grant the permission to update the information of a specified event notification.

write

-

-

csms::deleteEvent

Grant the permission to immediately delete a specified event notification.

write

-

-

csms::listNotificationRecords

Grant the permission to query the triggered event notification records.

list

-

-

csms::listTasks

Grant the permission to query secret rotation tasks.

List

-

-

Table 4 Actions supported by Dedicated HSM

Action

Description

Access Level

Resource Type (* required)

Condition Key

dhsm:hsm:get

Grant the permission to query HSM details.

read

DHSM

-

dhsm:hsm:getJobInfo

Grant the permission to query task details.

read

DHSM

-

dhsm:cluster:getCsr

Grant the permission to download the certificate request file.

read

DHSM

-

dhsm:cluster:getCert

Grant the permission to query the cluster certificates.

read

DHSM

-

dhsm::getPreCreatedInfo

Grant the permission to query HSM resource information.

read

DHSM

-

dhsm:hsm:delete

Grant the permission to delete HSM details.

write

DHSM

-

dhsm:hsm:updateAlias

Grant the permission to update HSM information.

write

DHSM

-

dhsm:hsm:create

Grant the permission to create an HSM.

write

DHSM

-

dhsm:hsm:updateHsm

Grant the permission to update HSM information.

write

DHSM

-

dhsm:cluster:create

Grant the permission to create a cluster.

write

DHSM

-

dhsm:cluster:update

Grant the permission to update a cluster.

write

DHSM

-

dhsm:cluster:delete

Grant the permission to delete a cluster.

write

DHSM

-

dhsm:cluster:addVsm

Grant the permission to add HSMs in batches.

write

DHSM

-

dhsm:cluster:updateCert

Grant the permission to configure a certificate.

write

DHSM

-

dhsm:hsm:createInstallOrder

Grant the permission to create an installation order.

write

DHSM

-

dhsm:hsm:createOrder

Grant the permission to create an order.

write

DHSM

-

dhsm:hsm:inquiryResource

Grant the permission to query the price.

read

DHSM

-

dhsm:hsm:list

Grant the permission to obtain the HSM list.

list

DHSM

-

dhsm:cluster:list

Grant the permission to query a cluster.

list

DHSM

-

dhsm:hsm:listHsmsByTag

Grant the permission to query an HSM instance.

list

DHSM

-

dhsm:hsm:getHsmTags

Grant the permission to obtain the tag list.

list

DHSM

-

dhsm::listTags

Grant the permission to query all tags of an HSM.

list

DHSM

-

dhsm::listChargeSpecCode

Grant the permission to query the specification code.

list

DHSM

-

dhsm:hsm:createTags

Grant the permission to create or delete tags in batches.

tagging

DHSM

-

dhsm:hsm:createResourceTag

Grant the permission to create a resource tag.

tagging

DHSM

-

dhsm:hsm:deleteResourceTag

Grant the permission to delete a resource tag.

tagging

DHSM

-

DEW APIs usually support one or more actions. Table 5, Table 6, and Table 7 describe the actions and dependencies supported by APIs, as well as the actions on which the API depends.

Table 5 Actions and dependencies supported by KMS APIs

API

Action

Dependent Permission

POST /v1.0/{project_id}/kms/create-key

kms:cmk:create

-

POST /v1.0/{project_id}/kms/list-keys

kms:cmk:list

-

POST /v1.0/{project_id}/kms/enable-key

kms:cmk:enable

-

POST /v1.0/{project_id}/kms/disable-key

kms:cmk:disable

-

POST /v1.0/{project_id}/kms/describe-key

kms:cmk:get

-

POST /v1.0/{project_id}/kms/create-datakey

kms:cmk:createDataKey

-

POST /v1.0/{project_id}/kms/create-datakey-without-plaintext

kms:cmk:createDataKeyWithoutPlaintext

-

POST /v1.0/{project_id}/kms/encrypt-datakey

kms:cmk:encryptDataKey

-

POST /v1.0/{project_id}/kms/decrypt-datakey

kms:cmk:decryptDataKey

-

POST /v1.0/{project_id}/kms/encrypt-data

kms:cmk:encryptData

-

POST /v1.0/{project_id}/kms/decrypt-data

kms:cmk:decryptData

-

POST /v1.0/{project_id}/kms/gen-random

kms::generateRandom

-

POST /v1.0/{project_id}/kms/sign

kms:cmk:sign

-

POST /v1.0/{project_id}/kms/verify

kms:cmk:verify

-

POST /v1.0/{project_id}/kms/get-publickey

kms:cmk:getPublicKey

-

GET /

kms::getVersions

-

GET /{version_id}

kms::getVersion

-

POST /v1.0/{project_id}/kms/schedule-key-deletion

kms:cmk:scheduleKeyDeletion

-

POST /v1.0/{project_id}/kms/cancel-key-deletion

kms:cmk:cancelKeyDeletion

-

GET /v1.0/{project_id}/kms/user-instances

kms::getInstance

-

GET /v1.0/{project_id}/kms/user-quotas

kms::getQuota

-

POST /v1.0/{project_id}/kms/update-key-alias

kms:cmk:updateKeyAlias

-

POST /v1.0/{project_id}/kms/update-key-description

kms:cmk:updateKeyDescription

-

POST /v1.0/{project_id}/kms/create-grant

kms:cmk:createGrant

-

POST /v1.0/{project_id}/kms/list-grants

kms:cmk:listGrants

-

POST /v1.0/{project_id}/kms/list-retirable-grants

kms::listRetirableGrants

-

POST /v1.0/{project_id}/kms/retire-grant

kms:cmk:retireGrant

-

POST /v1.0/{project_id}/kms/revoke-grant

kms:cmk:revokeGrant

-

POST /v1.0/{project_id}/kms/get-parameters-for-import

kms:cmk:getMaterial

-

POST /v1.0/{project_id}/kms/import-key-material

kms:cmk:importMaterial

-

POST /v1.0/{project_id}/kms/delete-imported-key-material

kms:cmk:deleteMaterial

-

POST /v1.0/{project_id}/kms/enable-key-rotation

kms:cmk:enableRotation

-

POST /v1.0/{project_id}/kms/update-key-rotation-interval

kms:cmk:updateRotation

-

POST /v1.0/{project_id}/kms/disable-key-rotation

kms:cmk:disableRotation

-

POST /v1.0/{project_id}/kms/get-key-rotation-status

kms:cmk:getRotation

-

POST /v1.0/{project_id}/kms/{key_id}/tags

kms:cmk:createTag

-

POST /v1.0/{project_id}/kms/{key_id}/tags/action

kms:cmk:createTags

-

POST /v1.0/{project_id}/kms/{resource_instances}/action

kms:cmk:listKeysByTag

-

DELETE /v1.0/{project_id}/kms/{key_id}/tags/{key}

kms:cmk:deleteTag

-

GET /v1.0/{project_id}/kms/{key_id}/tags

kms:cmk:getTags

-

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

kms::listAllTags

-

POST /v2/{project_id}/kms/keys/{key_id}/replicate

kms:cmk:replicate

-

PUT /v2/{project_id}/kms/keys/{key_id}/update-primary-region

kms:cmk:updatePrimaryRegion

-

Table 6 Actions and dependencies supported by CSMS APIs

API

Action

Dependencies

POST /v1/{project_id}/secrets

csms:secret:create

kms:cmk:createDataKey

POST /v1/{project_id}/secrets/{secret_name}/backup

csms:secret:get

  • kms:cmk:createDataKey
  • kms:cmk:decryptDataKey
  • kms:cmk:list

POST /v1/{project_id}/secrets/restore

csms:secret:create

kms:cmk:decryptDataKey

DELETE /v1/{project_id}/secrets/{secret_name}

csms:secret:delete

-

PUT /v1/{project_id}/secrets/{secret_name}

csms:secret:update

-

GET /v1/{project_id}/secrets/{secret_name}

csms:secret:get

-

GET /v1/{project_id}/secrets

csms:secret:list

-

POST /v1/{project_id}/secrets/{secret_name}/versions

csms:secret:createVersion

kms:cmk:createDataKey

GET /v1/{project_id}/secrets/{secret_name}/versions/{version_id}

csms:secret:getVersion

kms:cmk:decryptDataKey

GET /v1/{project_id}/secrets/{secret_name}/versions

csms:secret:listVersion

-

GET /v1/{project_id}/secrets/{secret_name}/stages/{stage_name}

csms:secret:getStage

-

PUT /v1/{project_id}/secrets/{secret_name}/stages/{stage_name}

csms:secret:updateStage

-

DELETE /v1/{project_id}/secrets/{secret_name}/stages/{stage_name}

csms:secret:deleteStage

-

POST /v1/{project_id}/secrets/{secret_name}/scheduled-deleted-tasks/create

csms:secret:scheduleDeletion

-

POST /v1/{project_id}/secrets/{secret_name}/scheduled-deleted-tasks/cancel

csms:secret:restoreSecret

-

POST /v1/{project_id}/secrets/{secret_name}/rotate

csms:secret:rotate

  • rds:password:update
  • kms:cmk:createGrant
  • kms:cmk:retireGrant

POST /v1/{project_id}/csms/{resource_instances}/action

csms:secret:getSecretsByTag

-

POST /v1/{project_id}/csms/{secret_id}/tags/action

csms:secret:batchCreateOrDeleteTags

-

POST /v1/{project_id}/csms/{secret_id}/tags

csms:secret:createTag

-

DELETE /v1/{project_id}/csms/{secret_id}/tags/{key}

csms:secret:deleteTag

-

GET /v1/{project_id}/csms/{secret_id}/tags

csms:secret:listTags

-

GET /v1/{project_id}/csms/tags

csms::listProjectTags

-

PUT /v1/{project_id}/secrets/{secret_name}/versions/{version_id}

csms:secret:updateVersion

-

POST /v1/{project_id}/csms/events

csms::createEvent

-

GET /v1/{project_id}/csms/events

csms::listEvents

-

GET /v1/{project_id}/csms/events/{event_name}

csms::getEvent

-

PUT /v1/{project_id}/csms/events/{event_name}

csms::updateEvent

-

DELETE /v1/{project_id}/csms/events/{event_name}

csms::deleteEvent

-

GET /v1/{project_id}/csms/notification-records

csms::listNotificationRecords

-

GET /v1/{project_id}/csms/tasks

csms::listTasks

-

Table 7 Actions and dependencies supported by KPS APIs

API

Action

Dependencies

POST /v3/{project_id}/keypairs

kps:SSHKeyPair:create

  • kms:cmk:createDataKey
  • kms:cmk:list

DELETE /v3/{project_id}/keypairs/{keypair_name}

kps:SSHKeyPair:delete

-

GET /v3/{project_id}/keypairs/{keypair_name}

kps:SSHKeyPair:get

-

GET /v3/{project_id}/keypairs

kps:SSHKeyPair:list

-

PUT /v3/{project_id}/keypairs/{keypair_name}

kps:SSHKeyPair:update

-

POST /v3/{project_id}/keypairs/associate

kps:SSHKeyPair:bind

  • ecs:cloudServers:createServers
  • ecs:cloudServers:deleteServers
  • ecs:cloudServers:showServer
  • ecs:cloudServers:attach
  • ecs:cloudServers:listServerBlockDevices
  • ecs:cloudServers:showServerBlockDevice
  • ecs:cloudServers:detachVolume
  • ecs:cloudServers:listServerInterfaces
  • ecs:cloudServers:listServersDetails
  • ecs:cloudServerFlavors:get
  • ecs:cloudServerQuotas:get
  • evs:types:get
  • evs:volumes:use
  • ims:images:get
  • vpc:subnets:list

DELETE /v3/{project_id}/failed-tasks

kps::deleteFailedTask

-

DELETE /v3/{project_id}/failed-tasks/{task_id}

kps::deleteFailedTask

-

POST /v3/{project_id}/keypairs/disassociate

kps:SSHKeyPair:unbind

  • ecs:cloudServers:createServers
  • ecs:cloudServers:deleteServers
  • ecs:cloudServers:showServer
  • ecs:cloudServers:attach
  • ecs:cloudServers:listServerBlockDevices
  • ecs:cloudServers:showServerBlockDevice
  • ecs:cloudServers:detachVolume
  • ecs:cloudServers:listServerInterfaces
  • ecs:cloudServers:listServersDetails
  • ecs:cloudServerFlavors:get
  • ecs:cloudServerQuotas:get
  • evs:types:get
  • evs:volumes:use
  • ims:images:get
  • vpc:subnets:list

GET /v3/{project_id}/failed-tasks

kps::getFailedTask

-

GET /v3/{project_id}/tasks/{task_id}

kps::getTask

-

GET /v3/{project_id}/running-tasks

kps::getRunningTask

-

POST /v3/{project_id}/keypairs/private-key/import

kps:SSHKeyPair:importPrivateKey

  • kms:cmk:createDataKey
  • kms:cmk:list

POST /v3/{project_id}/keypairs/private-key/export

kps:SSHKeyPair:exportPrivateKey

kms:cmk:decryptDataKey

POST /v3/{project_id}/keypairs/batch-associate

kps:SSHKeyPair:bind

  • ecs:cloudServers:createServers
  • ecs:cloudServers:deleteServers
  • ecs:cloudServers:showServer
  • ecs:cloudServers:attach
  • ecs:cloudServers:listServerBlockDevices
  • ecs:cloudServers:showServerBlockDevice
  • ecs:cloudServers:detachVolume
  • ecs:cloudServers:listServerInterfaces
  • ecs:cloudServers:listServersDetails
  • ecs:cloudServerFlavors:get
  • ecs:cloudServerQuotas:get
  • evs:types:get
  • evs:volumes:use
  • ims:images:get
  • vpc:subnets:list

DELETE /v3/{project_id}/keypairs/{keypair_name}/private-key

kps:SSHKeyPair:clearPrivateKey

-

Table 8 Actions and dependencies supported by Dedicated HSM APIs

API

Action

Dependent Permission

GET /v1/{project_id}/dew/hsms/{hsm_id}

dhsm:hsm:get

-

GET /v1/{project_id}/dew/hsms/jobs/{job_id}

dhsm:hsm:getJobInfo

-

GET /v1/{project_id}/dew/clusters/{cluster_id}/csr

dhsm:cluster:getCsr

-

GET /v1/{project_id}/dew/clusters/{cluster_id}/cert

dhsm:cluster:getCert

-

GET /v1/{project_id}/dew/resources

dhsm::getPreCreatedInfo

-

DELETE /v1/{project_id}/dew/hsms/{hsm_id}

dhsm:hsm:delete

-

PUT /v1/{project_id}/dew/hsms/{hsm_id}

dhsm:hsm:updateAlias

-

POST /v1/{project_id}/dew/hsms

dhsm:hsm:create

-

PUT /v1/{project_id}/dew/hsms/{hsm_id}

dhsm:hsm:updateHsm

-

POST /v1/{project_id}/dew/clusters

dhsm:cluster:create

-

PUT /v1/{project_id}/dew/clusters/{cluster_id}

dhsm:cluster:update

-

DELETE /v1/{project_id}/dew/clusters/{cluster_id}

dhsm:cluster:delete

-

POST /v1/{project_id}/dew/clusters/{cluster_id}/vsms

dhsm:cluster:addVsm

-

POST /v1/{project_id}/dew/clusters/{cluster_id}/cert

dhsm:cluster:updateCert

-

POST /v1/{project_id}/dew/install-order

dhsm:hsm:createInstallOrder

-

POST /v1/{project_id}/dew/order

dhsm:hsm:createOrder

-

POST /v1/dew/inquiry/resource

dhsm:hsm:inquiryResource

-

GET /v1/{project_id}/dew/hsms

dhsm:hsm:list

-

GET /v1/{project_id}/dew/clusters

dhsm:cluster:list

-

POST /v1/{project_id}/hsm/{resource_instances}/action

dhsm:hsm:listHsmsByTag

-

GET /v1/{project_id}/hsm/{resource_id}/tags

dhsm:hsm:getHsmTags

-

GET /v1/{project_id}/hsm/tags

dhsm::listTags

-

GET /v1/dew/spec-codes

dhsm::listChargeSpecCode

-

POST /v1/{project_id}/hsm/{resource_id}/tags/action

dhsm:hsm:createTags

-

POST /v1/{project_id}/hsm/{resource_id}/tags

dhsm:hsm:createResourceTag

-

DELETE /v1/{project_id}/hsm/{resource_id}/tags/{key}

dhsm:hsm:deleteResourceTag

-

Resources

A resource type indicates the resources that an SCP policy applies to. Some actions describes in Table 9 can be restricted to specific resources. If you specify a resource URN in an SCP statement, the SCPs only applies to the specified resources. If no resource URN is specified, the value of Resource will be * by default, and the SCP will apply to all resources. You can also set conditions in an SCP to specify the resource type.

The following table lists the resource types that you can define in SCP statements for DEW.

Table 9 Resource types supported by DEW

Resource Type

URN

KeyId

kms:<region>:<account-id>:KeyId:<cmk-id>

alias

kms:<region>:<account-id>:alias:<alias-name>

secretName

csms:<region>:<account-id>:secretName:<secret-name>

dhsm

dhsm:<region>:<account-id>:hsm:<hsm-id>

cluster

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

Conditions

A Condition element lets you specify the conditions for an SCP to take effect. It contains condition keys and operators.

  • The condition key you specify can be a global condition key or a service-specific condition key.
    • Global condition keys (with the g: prefix) apply to all actions. Cloud services do not need to provide user identity information. Instead, IAM 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, DEW:) apply only to operations of the corresponding service. For details, see Table 10.
    • The number of values associated with a condition key in the request context of an API call makes the condition key single-valued or multivalued. 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, condition key, and a condition value together constitute a complete condition statement. An SCP can be applied only when its request conditions are met. For supported condition operators, see Operators.

The following table lists the condition keys that you can define in SCPs for DEW. You can use the condition keys to set conditions for detailed SCP statements.

NOTE:

KPS does not support service-level condition keys in identity policies.

Table 10 Service-specific condition keys supported by DEW

Service-specific Condition Key

Type

Single-valued/Multivalued

Description

kms:EncryptionAlgorithm

string

Single-valued

Search for the encryption and decryption operations based on the value of encryption and decryption algorithms in the request.

kms:GranteePrincipalType

string

Single-valued

Search for the CreateGrant operations based on the authorization subject type in the request.

kms:GrantOperations

string

Multivalued

Search for the CreateGrant operations based on the operations that need to be authorized.

kms:GranteePrincipal

string

Single-valued

Search for the CreateGrant operations based on the authorized subjects in the authorization.

kms:KeyOrigin

string

Single-valued

Search for the API operations based on the origin attribute of the created or used KMS key.

kms:KeySpec

string

Single-valued

Search for the API operations based on the key_spec attribute of the created or used KMS key.

kms:KeyUsage

string

Single-valued

Search for the API operations based on the key_usage attribute of the created or used KMS key.

kms:MessageType

string

Single-valued

Search for the signing and signature verification operations based on the value of message_type in the request.

kms:RetiringPrincipal

string

Single-valued

Search for the CreateGrant operations based on value of retiring_principal in the grant.

kms:SigningAlgorithm

string

Single-valued

Search for the signing and verification operations based on the value of signing_algorithm in the request.

kms:ExpirationTime

date

Single-valued

Search for the ImportKeyMaterial operations based on the value of expiration_time in the request.

kms:WrappingAlgorithm

string

Single-valued

Search for the CreateParametersForImport operations based on the value of wrapping_algorithm in the request.

kms:RecipientAttestation

string

Single-valued

Search for the CreateDatakey, DecryptData, DecryptDatakey, and CreateRandom operations based on the value of platform configuration register (PCR) of the proof document in the request.

kms:MacAlgorithm

string

Single-valued

Search for the message authentication code generation or verification operations based on the value of mac_algorithm in the request.

kms:RequestAlias

string

Single-valued

Filter access to API operations based on key_id in the request.

kms:ResourceAliases

string

Multivalued

Filter access to API operations based on alias of the KMS key.

kms:MultiRegionKeyType

string

Single-valued

Filter access to API operations based on MultiRegionKeyType in the KMS key field.

kms:PrimaryRegion

string

Single-valued

Filter access to API operations based on primary_region in the request.

kms:EncryptionContext

string

Single-valued

Filter access to API operations based on additional_authenticated_data in the request.

kms:ScheduleKeyDeletionPendingWindowInDays

numeric

Single-valued

Filter access to API operations based on pending_days in the request.

csms:Type

string

Single-valued

Filter access permissions by secret type.

csms:KmsKeyId

string

Single-valued

Filter access permissions by KMS key ID.

csms:VersionId

string

Single-valued

Filter access permissions by secret version ID.

csms:VersionStage

string

Single-valued

Filter access permissions by secret version status.

csms:RecoveryWindowInDays

numeric

Single-valued

Filter access permissions by secret deletion waiting time.

kps:KmsKeyId

string

Single-valued

Filter access permissions by KMS key ID in the request.

kps:Algorithm

string

Single-valued

Filter access permissions by the algorithm used by the SSH key pair in the request.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback