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

Actions Supported by Policy-based Authorization

This section describes the actions supported by DMS for RabbitMQ in policy-based authorization.

Supported Actions

DMS for RabbitMQ provides system-defined policies that can be directly used in IAM. You can also create custom policies to supplement system-defined policies for 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
  • Dependencies: actions which a specific action depends on. When allowing an action for a user, you also need to allow any existing action dependencies for that user.
  • IAM projects/Enterprise projects: the authorization scope of a custom policy. A custom policy can be applied to IAM projects or enterprise projects or both. Policies that contain actions for both IAM and enterprise projects can be used and applied for both IAM and Enterprise Management. Policies that contain actions only for IAM projects can be used and applied to IAM only. Administrators can check whether an action supports IAM projects or enterprise projects in the action list. For details about the differences between IAM and enterprise management, see Differences Between IAM and Enterprise Management.

DMS for RabbitMQ supports the following actions that can be defined in custom policies.

  • Lifecycle management actions, including actions supported by RabbitMQ lifecycle management APIs, such as the APIs for creating an instance, querying the instance list, modifying instance information, and batch restarting or deleting instances.
  • Instance management actions, including actions supported by RabbitMQ instance management APIs, such as the APIs for resetting passwords, querying the plug-in list, and enabling or disabling a plug-in.
  • Specification modification management action, including the action supported by the specification modification management API for modifying instance specifications.
  • Background task management actions, including actions supported by background task management APIs, such as the APIs for querying the background task list of an instance and querying a specified background task.
  • Tag management actions, including actions supported by tag management APIs, such as the APIs for querying instance tags and project tags.

Lifecycle Management

Table 1 Lifecycle management actions

Permission

API

Action

IAM

Project

Enterprise

Project

Creating a pay-per-use instance

POST /v2/{engine}/{project_id}/instances

dms:instance:create

Querying all instances

GET /v2/{project_id}/instances

dms:instance:list

Querying an instance

GET /v2/{project_id}/instances/{instance_id}

dms:instance:get

Deleting an instance

DELETE /v2/{project_id}/instances/{instance_id}

dms:instance:delete

Modifying an instance

PUT /v2/{project_id}/instances/{instance_id}

dms:instance:modify

Batch restarting or deleting instances

POST /v2/{project_id}/instances/action

Restart: dms:instance:modifyStatus

Delete: dms:instance:delete

Instance Management

Table 2 Instance management actions

Permission

API

Action

IAM

Project

Enterprise

Project

Resetting a password

POST /v2/{project_id}/instances/{instance_id}/password

dms:instance:resetAuthInfo

Listing plug-ins

GET /v2/{project_id}/instances/{instance_id}/rabbitmq/plugins

dms:instance:list

Enabling or disabling a plug-in

PUT /v2/{project_id}/instances/{instance_id}/rabbitmq/plugins

dms:instance:modify

Specification Modification Management

Table 3 Specification modification management action

Permission

API

Action

IAM

Project

Enterprise

Project

Modifying instance specifications

POST /v2/{project_id}/instances/{instance_id}/extend

dms:instance:scale

Background Task Management

Table 4 Background task management actions

Permission

API

Action

IAM

Project

Enterprise

Project

Listing background tasks

GET /v2/{project_id}/instances/{instance_id}/tasks

dms:instance:getBackgroundTask

Querying a background task

GET /v2/{project_id}/instances/{instance_id}/tasks/{task_id}

dms:instance:getBackgroundTask

Deleting a background task

GET /v2/{project_id}/instances/{instance_id}/tasks/{task_id}

dms:instance:deleteBackgroundTask

Tag Management

Table 5 Tag management actions

Permission

API

Action

IAM

Project

Enterprise

Project

Batch adding or deleting tags

POST /v2/{project_id}/rabbitmq/{instance_id}/tags/action

dms:instance:modify

Listing tags of an instance

GET /v2/{project_id}/rabbitmq/{instance_id}/tags

dms:instance:get

Listing tags of a project

GET /v2/{project_id}/rabbitmq/tags

dms:instance:get

Table 6 shows fine-grained permission dependencies of DMS for RabbitMQ.

Table 6 Fine-grained permission dependencies of DMS for RabbitMQ

Action

Description

Dependencies

dms:instance:get

Viewing instance details

None

dms:instance:getBackgroundTask

Viewing background task details

None

dms:instance:resetAuthInfo

Resetting instance passwords

None

dms:instance:scale

Enabling instance scale-up

  • vpc:vpcs:get
  • vpc:ports:create
  • vpc:securityGroups:get
  • vpc:ports:get
  • vpc:subnets:get
  • vpc:vpcs:list
  • vpc:publicIps:get
  • vpc:publicIps:list
  • vpc:ports:update
  • vpc:publicIps:update

dms:instance:modify

Modifying an instance

  • vpc:vpcs:get
  • vpc:ports:create
  • vpc:securityGroups:get
  • vpc:ports:get
  • vpc:subnets:get
  • vpc:vpcs:list
  • vpc:publicIps:get
  • vpc:publicIps:list
  • vpc:ports:update
  • vpc:publicIps:update

dms:instance:deleteBackgroundTask

Deleting a background task

None

dms:instance:modifyStatus

Restarting an instance

None

dms:instance:delete

Deleting an instance

None

dms:instance:create

Creating an instance

  • vpc:vpcs:get
  • vpc:ports:create
  • vpc:securityGroups:get
  • vpc:ports:get
  • vpc:subnets:get
  • vpc:vpcs:list
  • vpc:publicIps:get
  • vpc:publicIps:list
  • vpc:ports:update
  • vpc:publicIps:update

dms:instance:list

Viewing the instance list

None