
# 服务端
| 权限              | 对应API接口                                                                                                                | 授权项（Action）                                  | 依赖的授权项                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | IAM项目（Project） | 企业项目（Enterprise Project） |
|:---|:---|:---|:---|:---|:---|
| 创建终端入云VPN服务端    | POST /v5/{project_id}/p2c-vpn-gateways/{p2c_vgw_id}/vpn-servers                                                        | vpn:p2cVpnGateway:createServer               | - scm:cert:get  - scm:cert:list  - scm:cert:download  - vpc:publicIps:get  - vpc:routeTables:update  - vpc:subnets:get  - vpc:quotas:list  - iam:identityProviders:getIdentityProvider  - iam:identityProviders:listProtocols  - iam:identityProviders:listIdentityProviders   | √              | √                        |
| 查询一个网关下的服务端信息   | GET /v5/{project_id}/p2c-vpn-gateways/{p2c_vgw_id}/vpn-servers                                                         | vpn:p2cVpnGateway:listServers                | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | √              | √                        |
| 更新指定网关的服务端      | PUT /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}                                                      | vpn:p2cVpnGateway:updateServer               | - scm:cert:get  - scm:cert:list  - scm:cert:download  - vpc:publicIps:get  - vpc:routeTables:update  - vpc:subnets:get  - iam:identityProviders:getIdentityProvider  - iam:identityProviders:listProtocols  - iam:identityProviders:listIdentityProviders                                                                                               | √              | √                        |
| 导出服务端对应的客户端配置信息 | POST /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/client-config/export                                | vpn:p2cVpnGateway:exportClientConfig         | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | √              | √                        |
| 校验CA证书的合法性      | POST /v5/{project_id}/p2c-vpn-gateways/vpn-servers/client-ca-certificates/check                                        | vpn:system:checkClientCaCertificate          | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | √              | √                        |
| 导入客户端CA证书       | POST /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/client-ca-certificates                              | vpn:p2cVpnGateway:importClientCa             | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | √              | √                        |
| 修改客户端CA证书       | PUT /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/client-ca-certificates/{client_ca_certificate_id}    | vpn:p2cVpnGateway:updateClientCa             | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | √              | √                        |
| 查询客户端CA证书       | GET /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/client-ca-certificates/{client_ca_certificate_id}    | vpn:p2cVpnGateway:getClientCa                | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | √              | √                        |
| 删除客户端CA证书       | DELETE /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/client-ca-certificates/{client_ca_certificate_id} | vpn:p2cVpnGateway:deleteClientCa             | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | √              | √                        |
| 查询租户下的所有服务端信息   | GET /v5/{project_id}/vpn-servers                                                                                       | vpn:p2cVpnGateway:listAllServers             | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | √              | √                        |
| 断开终端入云VPN网关连接   | POST /v5/{project_id}/p2c-vpn-gateways/{p2c_vgw_id}/connections/{connection_id}/disconnect                             | vpn:p2cVpnGateway:disconnectConnection       | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | √              | √                        |
| 更新终端入云VPN连接日志配置 | PUT /v5/{project_id}/p2c-vpn-gateways/{p2c_vgw_id}/log-config                                                          | vpn:p2cVpnGateway:updateConnectionsLogConfig | - lts:logGroup:listLogGroup  - lts:logStream:listLogStream                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | √              | √                        |
| 查询终端入云VPN连接日志配置 | GET /v5/{project_id}/p2c-vpn-gateways/{p2c_vgw_id}/log-config                                                          | vpn:p2cVpnGateway:getConnectionsLogConfig    | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | √              | √                        |
| 删除终端入云VPN连接日志配置 | DELETE /v5/{project_id}/p2c-vpn-gateways/{p2c_vgw_id}/log-config                                                       | vpn:p2cVpnGateway:deleteConnectionsLogConfig | -                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | √              | √                        |
   
