Updated on 2022-08-17 GMT+08:00

Instance Management

Table 1 DDM instance management

Permission

API

Action

IAM Project

Enterprise Project

Creating an instance

POST /v1/{project_id}/instances

ddm:instance:create

Before creating a DDM instance, obtain the following dependent permissions:

  • ecs:*:get*
  • ecs:*:list*
  • vpc:vpcs:list
  • vpc:securityGroups:get
  • vpc:subnets:get
  • ecs:cloudServerNics:update
  • ecs:serverInterfaces:use
  • Global or region-level vpc:ports:*

Querying DDM Instances

GET /v1/{project_id}/instances?offset={offset}&limit={limit}

ddm:instance:list

Querying Details of a DDM Instance

GET /v1/{project_id}/instances/{instance_id}

ddm:instance:get

  • vpc:*:get*
  • vpc:*:list*

Modifying a DDM Instance

PUT /v1/{project_id}/instances/{instance_id}

ddm:instance:modify

To modify a security group, the following permissions must be configured:
  • vpc:*:get*
  • vpc:*:list*
  • vpc:ports:update
  • vpc:securityGroups:get

Restarting a DDM Instance

POST /v1/{project_id}/instances/{instance_id}/action

ddm:instance:reboot

Deleting a DDM Instance

DELETE /v1/{project_id}/instances/{instance_id}?delete_rds_data=true

ddm:instance:delete

vpc:ports:delete

The check mark (√) indicates that an action takes effect. The cross mark (x) indicates that an action does not take effect.