Updated on 2025-11-10 GMT+08:00

Actions Supported by Policy-based Authorization

This section describes the actions supported by policy-based authorization in DEW.

Supported Actions

DEW provides system-defined policies that can be directly used in IAM. You can also create custom policies and use them to supplement system-defined policies, implementing more refined access control. Operations supported by policies are specific to APIs. The following are common concepts related to policies:

  • Permissions: statements in a policy that allow or deny certain operations
  • APIs: REST APIs that can be called by a user who has been granted specific permissions.
  • Actions: Specific operations that are allowed or denied in a custom policy.
  • Dependent actions: When assigning an action to users, you also need to assign dependent permissions for that action to take effect.
  • IAM or enterprise projects: Type of projects for which an action will take effect. For example, if you set the authorization scope of a custom policy to both IAM projects and enterprise projects, the policy takes effect for user groups in either IAM or enterprise projects. If an action supports only IAM projects, the custom policy that contains this action will take effect only for user groups in IAM. Administrators can check whether an action supports IAM projects or enterprise projects in the action list. "√" indicates that the action supports the project and "×" indicates that the action does not support the project. For details about the differences between IAM and enterprise management, see What Are the Differences Between IAM and Enterprise Management?

The following content describes the custom policy authorization supported by DEW.

Lifecycle Management

Table 1 Lifecycle management

Permission

API

Action

IAM

(Project)

Enterprise Project Name

(Enterprise Project)

Create a key

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

kms:cmk:create

Query the key list

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

kms:cmk:list

Enable a key

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

kms:cmk:enable

Disable a key

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

kms:cmk:disable

Query details about a key

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

kms:cmk:get

Create a DEK

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

kms:cmk:createDataKey

Create a plaintext-free DEK

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

kms:cmk:createDataKeyWithoutPlaintext

Encrypt a DEK

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

kms:cmk:encryptDataKey

Decrypt a DEK

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

kms:cmk:decryptDataKey

Encrypt data

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

kms:cmk:encryptData

Decrypt data

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

kms:cmk:decryptData

Generate a random number

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

kms::generateRandom

×

Sign data

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

kms:cmk:sign

Authenticate a signature

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

kms:cmk:verify

Query a public key

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

kms:cmk:getPublicKey

Query versions

/

kms::getVersions

×

Query key API version

/v1.0

kms::getVersion

×

Schedule key deletion

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

kms:cmk:scheduleKeyDeletion

Cancel scheduled key deletion

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

kms:cmk:cancelKeyDeletion

Query the number of key instances of a tenant

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

kms::getInstance

×

Query resource quotas

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

kms::getQuota

×

Modify key information - update a key alias

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

kms:cmk:updateKeyAlias

Modify key information - update key description

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

kms:cmk:updateKeyDescription

Create a grant

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

kms:cmk:createGrant

Query the grant list

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

kms:cmk:listGrants

Query retirable grants

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

kms::listRetirableGrants

×

Retire a grant

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

kms:cmk:retireGrant

×

Revoke a grant

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

kms:cmk:revokeGrant

Obtain parameters for importing a key

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

kms:cmk:getMaterial

Import key materials

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

kms:cmk:importMaterial

Delete key materials

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

kms:cmk:deleteMaterial

Enable key rotation

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

kms:cmk:enableRotation

Modify key rotation interval

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

kms:cmk:updateRotation

Disable key rotation

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

kms:cmk:disableRotation

Query key rotation status

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

kms:cmk:getRotation

Create a keystore

/v1.0/{project_id}/keystores/

kms:keystore:create

×

Delete a dedicated keystore

/v1.0/{project_id}/keystores/{keystore_id}

kms:keystore:delete

×

Enable a dedicated keystore

/v1.0/{project_id}/keystores/{keystore_id}/enable

kms:keystore:enable

×

Disable a dedicated keystore

/v1.0/{project_id}/keystores/{keystore_id}/disable

kms:keystore:disable

×

Query the list of dedicated keystores

/v1.0/{project_id}/keystores/

kms:keystore:list

×

Obtain a dedicated key store

/v1.0/{project_id}/keystores/{keystore_id}

kms:keystore:get

×

Add tags to a key

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

kms:cmk:createTag

Batch add or delete key tags

/v1.0/{project_id}/kms/{resource_id}/tags/action

kms:cmk:createTags

Query key instances

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

kms:cmk:listKeysByTag

×

Delete key tags

/v1.0/{project_id}/kms/{resource_id}/tags/{key}

kms:cmk:deleteTag

Query key tags

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

kms:cmk:getTags

Query project tags

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

kms::listAllTags

×