
# 网卡管理
| 权限                                                                                        | 对应的API接口                                                                                       | 授权项（Action）                             | 依赖的授权项                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | IAM项目 (Project) | 企业项目 (Enterprise Project) | 实例授权 | 标签授权 |
|:---|:---|:---|:---|:---|:---|:---|:---|
| [云服务器网卡配置私有IP](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0000001222004168.html) | PUT /v1/{project_id}/cloudservers/nics/{nic_id}                                                | ecs:cloudServerNics:update              | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | √                                           | ×                                                       | ×    | ×    |
| [批量删除云服务器网卡](https://support.huaweicloud.com/api-ecs/ecs_02_0502.html)                    | POST /v1/{project_id}/cloudservers/{server_id}/nics/delete                                     | ecs:cloudServerNics:delete              | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | √                                           | √                                                       | √    | √    |
| [批量添加云服务器网卡](https://support.huaweicloud.com/api-ecs/ecs_02_0501.html)                    | POST /v1/{project_id}/cloudservers/{server_id}/nics                                            | ecs:cloudServers:addNics                | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | √                                           | √                                                       | √    | √    |
| [查询云服务器网卡信息](https://support.huaweicloud.com/api-ecs/ecs_02_0505.html)                    | GET /v1/{project_id}/cloudservers/{server_id}/os-interface                                     | ecs:cloudServers:listServerInterfaces   | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | √                                           | √                                                       | √    | √    |
| [云服务器切换虚拟私有网络](https://support.huaweicloud.com/api-ecs/ecs_02_0506.html)                  | POST /v1/{project_id}/cloudservers/{server_id}/changevpc                                       | ecs:cloudServers:changeVpc              | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | √                                           | √                                                       | √    | √    |
| [更新云服务器指定网卡属性](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0000001239079777.html) | POST /v1/{project_id}/cloudservers/{server_id}/os-interface/{port_id}/change-network-interface | ecs:cloudServers:changeNetworkInterface | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | √                                           | √                                                       | √    | √    |
| [添加云服务器网卡（OpenStack原生）（废弃）](https://support.huaweicloud.com/api-ecs/ecs_03_0803.html)     | POST /v2.1/{project_id}/servers/{server_id}/os-interface                                       | ecs:serverInterfaces:use                | ecs:servers:get ecs:serverInterfaces:get vpc:networks:get vpc:networks:create vpc:networks:update vpc:subnets:get vpc:subnets:create vpc:subnets:update vpc:ports:create vpc:ports:delete vpc:ports:update vpc:ports:get vpc:routers:get vpc:routers:update | √                                           | ×                                                       | ×    | ×    |
| [删除云服务器网卡（OpenStack原生）（废弃）](https://support.huaweicloud.com/api-ecs/ecs_03_0804.html)     | DELETE /v2.1/{project_id}/servers/{server_id}/os-interface/{id}                                | ecs:serverInterfaces:use                | ecs:servers:get ecs:serverInterfaces:get vpc:networks:get vpc:networks:create vpc:networks:update vpc:subnets:get vpc:subnets:create vpc:subnets:update vpc:ports:create vpc:ports:delete vpc:ports:update vpc:ports:get vpc:routers:get vpc:routers:update      | √                                           | ×                                                       | ×    | ×    |
| [查询云服务器网卡信息（OpenStack原生）（废弃）](https://support.huaweicloud.com/api-ecs/ecs_03_0801.html)   | GET /v2.1/{project_id}/servers/{server_id}/os-interface                                        | ecs:serverInterfaces:get                | vpc:ports:get                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | √                                           | ×                                                       | ×    | ×    |
| [查询指定云服务器网卡信息（OpenStack原生）（废弃）](https://support.huaweicloud.com/api-ecs/ecs_03_0802.html) | GET /v2.1/{project_id}/servers/{server_id}/os-interface/{id}                                   | ecs:serverInterfaces:get                | vpc:ports:get                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | √                                           | ×                                                       | ×    | ×    |
   
