
# 标签管理
| 权限                                                                                                                                            | 对应的API接口                                                     | 授权项（Action）                         | 依赖的授权项          | IAM项目 (Project) | 企业项目 (Enterprise Project) | 实例授权 | 标签授权 |
|:---|:---|:---|:---|:---|:---|:---|:---|
| [批量添加云服务器标签](https://support.huaweicloud.com/api-ecs/ecs_02_1002.html)/[批量删除云服务器标签](https://support.huaweicloud.com/api-ecs/ecs_02_1003.html) | POST /v1/{project_id}/cloudservers/{server_id}/tags/action   | ecs:cloudServers:batchSetServerTags | -               | √                                           | √                                                       | ×    | ×    |
| [按标签查询云服务器列表](https://support.huaweicloud.com/api-ecs/ecs_02_1005.html)                                                                       | POST /v1/{project_id}/cloudservers/resource_instances/action | ecs:cloudServers:list               | -               | √                                           | √                                                       | ×    | ×    |
| [查询项目标签](https://support.huaweicloud.com/api-ecs/ecs_02_1007.html)                                                                            | GET /v1/{project_id}/cloudservers/tags                       | ecs:cloudServers:list               | -               | √                                           | √                                                       | ×    | ×    |
| [查询云服务器标签](https://support.huaweicloud.com/api-ecs/ecs_02_1008.html)                                                                          | GET /v1/{project_id}/cloudservers/{server_id}/tags           | ecs:cloudServers:showServerTags     | -               | √                                           | √                                                       | ×    | ×    |
| [查询云服务器标签](https://support.huaweicloud.com/api-ecs/ecs_02_1411_01.html)                                                                       | GET /v1/{project_id}/servers/{server_id}/tags                | ecs:servers:getTags                 | ecs:servers:get | √                                           | ×                                                       | ×    | ×    |
| [查询云服务器标签（OpenStack原生）（废弃）](https://support.huaweicloud.com/api-ecs/ecs_03_1902.html)                                                         | GET /v2.1/{project_id}/servers/{server_id}/tags              | ecs:servers:getTags                 | ecs:servers:get | √                                           | ×                                                       | ×    | ×    |
| [给指定弹性云服务器添加标签（OpenStack原生）（废弃）](https://support.huaweicloud.com/api-ecs/ecs_03_1905.html)                                                    | PUT /v2.1/{project_id}/servers/{server_id}/tags/{tag}        | ecs:servers:setTags                 | ecs:servers:get | √                                           | ×                                                       | ×    | ×    |
| [创建云服务器标签（OpenStack原生）（废弃）](https://support.huaweicloud.com/api-ecs/ecs_03_1903.html)                                                         | PUT /v2.1/{project_id}/servers/{server_id}/tags              | ecs:servers:setTags                 | ecs:servers:get | √                                           | ×                                                       | ×    | ×    |
| [删除指定云服务器的标签（OpenStack原生）（废弃）](https://support.huaweicloud.com/api-ecs/ecs_03_1907.html)                                                      | DELETE /v2.1/{project_id}/servers/{server_id}/tags/{tag}     | ecs:servers:setTags                 | ecs:servers:get | √                                           | ×                                                       | ×    | ×    |
| [查询云服务器是否存在指定标签（OpenStack原生）（废弃）](https://support.huaweicloud.com/api-ecs/ecs_03_1906.html)                                                   | GET /v2.1/{project_id}/servers/{server_id}/tags/{tag}        | ecs:servers:getTags                 | ecs:servers:get | √                                           | ×                                                       | ×    | ×    |
| [删除云服务器标签（OpenStack原生）（废弃）](https://support.huaweicloud.com/api-ecs/ecs_03_1904.html)                                                         | DELETE /v2.1/{project_id}/servers/{server_id}/tags           | ecs:servers:setTags                 | ecs:servers:get | √                                           | ×                                                       | ×    | ×    |
   
