1
0
forked from docs/doc-exports
doc-exports/docs/evs/api-ref/evs_04_0028.html
zhangyue f3b09e5d2f Elastic Volume Service API V1
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2023-02-02 16:28:20 +00:00

19 KiB
Raw Permalink Blame History

Tag

This topic describes only the authorization information of EVS v2 APIs. For the v3 APIs that provide the same functions as their v2 APIs, their authorization information is the same as that of the v2 APIs.

For example, the v2 API for creating disks is POST /v2/{project_id}/cloudvolumes, and the v3 API for creating disks is POST /v3/{project_id}/cloudvolumes. The authorization information of both APIs is the same.

In the following tables, √ indicates that the item is supported, and × indicates that the item is not supported.

Permission

API

Action

IAM Project

(Project)

Obtain all EVS tags of a tenant.

GET /v2/{project_id}/os-vendor-tags/{resource_type}

  • EVS disk: evs:volumeTags:list
  • Backup: evs:backupTags:list
  • Snapshot: evs:snapshotTags:list

Query EVS resources by tag.

GET /v2/{project_id}/os-vendor-tags/{resource_type}/resource_instances

  • EVS disk: evs:volumeTags:get
  • Backup: evs:backupTags:get
  • Snapshot: evs:snapshotTags:get

Add or update tags for an EVS resource.

POST /v2/{project_id}/os-vendor-tags/{resource_type}/{resource_id}

  • EVS disk: evs:volumeTags:create
  • Backup: evs:backupTags:create
  • Snapshot: evs:snapshotTags:create

Obtain tags of an EVS resource.

GET /v2/{project_id}/os-vendor-tags/{resource_type}/{resource_id}

  • EVS disk: evs:volumeTags:getById
  • Backup: evs:backupTags:getById
  • Snapshot: evs:snapshotTags:getById

Reset the tags of an EVS resource.

PUT /v2/{project_id}/os-vendor-tags/{resource_type}/{resource_id}

  • EVS disk: evs:volumeTags:update
  • Backup: evs:backupTags:update
  • Snapshot: evs:snapshotTags:update

Batch delete the tags for an EVS resource.

POST /v2/{project_id}/os-vendor-tags/{resource_type}/{resource_id}/action

  • EVS disk: evs:volumeTags:delete

    evs:volumeTags:getById

  • Backup: evs:backupTags:delete

    evs:backupTags:getById

  • Snapshot: evs:snapshotTags:delete

    evs:snapshotTags:getById

Delete the tags of an EVS resource by key.

DELETE /v2/{project_id}/os-vendor-tags/{resource_type}/{resource_id}/{key}

  • EVS disk: evs:volumeTags:getById

    evs:volumeTags:delete

  • Backup: evs:backupTags:getById

    evs:backupTags:delete

  • Snapshot: evs:snapshotTags:getById

    evs:snapshotTags:delete

Update the tags of an EVS resource by key.

PUT /v2/{project_id}/os-vendor-tags/{resource_type}/{resource_id}/{key}

  • EVS disk: evs:volumeTags:update
  • Backup: evs:backupTags:update
  • Snapshot: evs:snapshotTags:update

Batch delete tags for a specified EVS disk.

POST /v2/{project_id}/os-vendor-volumes/{volume_id}/tags/action

evs:volumeTags:delete

Query the tags of an EVS disk.

GET /v2/{project_id}/os-vendor-volumes/{volume_id}/tags

evs:volumeTags:getById

Batch add tags for a specified EVS disk.

POST /v2/{project_id}/os-vendor-volumes/{volume_id}/tags/action

evs:volumeTags:create

Query details of EVS disks by tag.

POST /v2/{project_id}/os-vendor-volumes/resource_instances/action

evs:volumeTags:get

Query tags of an EVS resource by key.

GET /v2/{project_id}/os-vendor-tags/{resource_type}/{resource_id}/{key}

evs:volumeTags:getById

Query the number of EVS disks by tag.

POST /v2/{project_id}/os-vendor-volumes/resource_instances/action

evs:volumeTags:get

Permission

API

Action

IAM Project

(Project)

Obtain all EVS tags of a tenant.

GET /v2/{project_id}/cloudvolumes/tags

  • EVS disk: evs:volumeTags:list
  • Backup: evs:backupTags:list

Batch add tags for a specified EVS disk.

POST /v2/{project_id}/cloudvolumes/{volume_id}/tags/action

evs:volumeTags:create

Batch delete tags for a specified EVS disk.

POST /v2/{project_id}/cloudvolumes/{volume_id}/tags/action

evs:volumeTags:delete

Query the tags of an EVS disk.

GET /v2/{project_id}/cloudvolumes/{volume_id}/tags

evs:volumeTags:getById

Query details of EVS disks by tag.

POST /v2/{project_id}/cloudvolumes/resource_instances/action

evs:volumeTags:get