• Elastic Cloud Server

ecs
  1. Help Center
  2. Elastic Cloud Server
  3. API Reference
  4. Appendix
  5. API Permissions
  6. Disk Management

Disk Management

API

API Function

Permissions

POST /v2/{tenant_id}/servers/{server_id}/os-volume_attachments

Attaches a disk to an ECS (native OpenStack API).

  • ecs:serverVolumeAttachments:create
  • ecs:serverVolumes:use
  • evs:volumes:list
  • evs:volumes:get
  • evs:volumes:update
  • evs:volumes:attach
  • evs:volumes:manage

DELETE /v2/{tenant_id}/servers/{server_id}/os-volume_attachments/{volume_id}

Detaches a disk from an ECS (native OpenStack API).

  • ecs:serverVolumeAttachments:delete
  • ecs:serverVolumes:use
  • evs:volumes:list
  • evs:volumes:get
  • evs:volumes:update
  • evs:volumes:detach
  • evs:volumes:manage

GET /v2/{tenant_id}/servers/{server_id}/os-volume_attachments

Queries information about the disks attached to an ECS (native OpenStack API).

  • ecs:serverVolumeAttachments:list
  • ecs:serverVolumes:use
  • ecs:servers:get

GET /v2/{tenant_id}/servers/{server_id}/os-volume_attachments/{volume_id}

Queries information about a disk attached to an ECS (native OpenStack API).

  • ecs:serverVolumeAttachments:get
  • ecs:serverVolumes:use

POST /v2/{tenant_id}/os-volumes

Creates a disk (native OpenStack API).

  • ecs:serverVolumes:use
  • evs:volumes:create

DELETE /v2/{tenant_id}/os-volumes/{volume_id}

Deletes a disk (native OpenStack API).

  • ecs:serverVolumes:use
  • evs:volumes:get
  • evs:volumes:delete

GET /v2/{tenant_id}/os-volumes/{volume_id}

Queries a disk (native OpenStack API).

  • ecs:serverVolumes:use
  • evs:volumes:get

GET /v2/{tenant_id}/os-volumes

Queries disks (native OpenStack API).

  • ecs:serverVolumes:use
  • evs:volumes:get
  • evs:volumes:list

GET /v2/{tenant_id}/os-volumes/detail

Queries detailed disk information (native OpenStack API).

  • ecs:serverVolumes:use
  • evs:volumes:get
  • evs:volumes:list

DELETE /v1/{tenant_id}/cloudservers/{server_id}/detachvolume/{attachment_id}

Detaches a disk from a specified ECS.

  • ecs:cloudServers:detachVolume

POST /v1/{tenant_id}/cloudservers/{server_id}/attachvolume

Attaches a disk to a specified ECS.

  • ecs:cloudServers:attach