Updated on 2022-06-30 GMT+08:00

Instance Management

Table 1 DDM instance management

Permission

API

Action

IAM Project

Enterprise Project

Buying a pay-per-use instance

Buying a yearly/monthly DDM instance

POST /v1/{project_id}/instances

ddm:instance:create

Before buying 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:*
  • BSS Finance and BSS Operator policies

    The last permission is required only when you buy a yearly/monthly DDM instance.

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.