
# CLI命令参考
#### 终端节点服务功能
| API名称             | 命令                                                 | 描述                                                                                                     | 操作                                                                                                               |
|:---|:---|:---|:---|
| 创建终端节点服务          | hcloud VPCEP CreateEndpointService                 | 创建终端节点服务，允许其他用户创建终端节点连接您创建的终端节点服务，                                                                     | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=CreateEndpointService)                 |
| 查询终端节点服务列表        | hcloud VPCEP ListEndpointService                   | 查询当前用户下的终端节点服务的列表。                                                                                     | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=ListEndpointService)                   |
| 查询终端节点服务详情        | hcloud VPCEP ListServiceDetails                    | 查询终端节点服务的详细信息。                                                                                         | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=ListServiceDetails)                    |
| 修改终端节点服务          | hcloud VPCEP UpdateEndpointService                 | 修改终端节点服务。                                                                                              | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=UpdateEndpointService)                 |
| 删除终端节点服务          | hcloud VPCEP DeleteEndpointService                 | 删除终端节点服务。                                                                                              | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=DeleteEndpointService)                 |
| 查询连接终端节点服务的连接列表   | hcloud VPCEP ListServiceConnections                | 查询连接当前用户下的某一个终端节点服务的连接列表。marker_id是连接的唯一标识。                                                            | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=ListServiceConnections)                |
| 接受或拒绝终端节点的连接      | hcloud VPCEP AcceptOrRejectEndpoint                | 接受或者拒绝终端节点连接到当前的终端节点服务。                                                                                | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=AcceptOrRejectEndpoint)                |
| 查询终端节点服务的白名单列表    | hcloud VPCEP ListServicePermissionsDetails         | 查询当前用户下终端节点服务的白名单列表。                                                                                   | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=ListServicePermissionsDetails)         |
| 批量添加或移除终端节点服务的白名单 | hcloud VPCEP AddOrRemoveServicePermissions         | 批量添加或移除当前用户下终端节点服务的白名单。                                                                                | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=AddOrRemoveServicePermissions)         |
| 查询公共终端节点服务列表      | hcloud VPCEP ListServicePublicDetails              | 查询公共终端节点服务的列表，公共终端节点服务是所有用户可见且可连接的终端节点服务，                                                              | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=ListServicePublicDetails)              |
| 查询终端节点服务概要        | hcloud VPCEP ListServiceDescribeDetails            | 查询终端节点服务的概要信息， 此接口是供创建终端节点的用户来查询需要连接的终端节点服务信息。 此接口既可以方便其他用户查询到您的终端节点服务概要信息, 又可以避免您的终端节点服务的细节信息暴露给其他用户。 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=ListServiceDescribeDetails)            |
| 升级终端节点服务          | hcloud VPCEP UpgradeEndpointService                | 升级终端节点服务，使终端节点服务支持创建专业型终端节点实例                                                                          | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=UpgradeEndpointService)                |
| 修改终端节点服务名称        | hcloud VPCEP UpdateEndpointServiceName             | 修改终端节点服务名称                                                                                             | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=UpdateEndpointServiceName)             |
| 更新终端节点连接描述        | hcloud VPCEP UpdateEndpointConnectionsDesc         | 更新终端节点服务连接的终端节点的描述。                                                                                    | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=UpdateEndpointConnectionsDesc)         |
| 批量添加终端节点服务的白名单    | hcloud VPCEP BatchAddEndpointServicePermissions    | 批量添加当前用户下终端节点服务的白名单，支持添加描述信息。                                                                          | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=BatchAddEndpointServicePermissions)    |
| 批量删除终端节点服务的白名单    | hcloud VPCEP BatchRemoveEndpointServicePermissions | 批量删除当前用户下终端节点服务的白名单                                                                                    | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=BatchRemoveEndpointServicePermissions) |
| 更新终端节点服务白名单描述     | hcloud VPCEP UpdateEndpointServicePermissionDesc   | 更新当前用户下终端节点服务白名单的描述信息                                                                                  | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=UpdateEndpointServicePermissionDesc)   |
| 添加终端节点服务后端服务资源    | hcloud VPCEP AddEndpointServiceServerResource      | 添加终端节点服务后端服务资源。                                                                                        | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=AddEndpointServiceServerResource)      |
   
#### 终端节点功能
| API名称            | 命令                                    | 描述                        | 操作                                                                                                  |
|:---|:---|:---|:---|
| 创建终端节点           | hcloud VPCEP CreateEndpoint           | 创建终端节点，以便访问终端节点服务。        | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=CreateEndpoint)           |
| 查询终端节点列表         | hcloud VPCEP ListEndpoints            | 查询当前用户下的终端节点的列表。          | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=ListEndpoints)            |
| 查询终端节点详情         | hcloud VPCEP ListEndpointInfoDetails  | 查询终端节点的详细信息。              | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=ListEndpointInfoDetails)  |
| 删除终端节点           | hcloud VPCEP DeleteEndpoint           | 删除终端节点。                   | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=DeleteEndpoint)           |
| 更新终端节点           | hcloud VPCEP UpdateEndpointWhite      | 更新或删除允许访问终端节点的白名单。        | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=UpdateEndpointWhite)      |
| 修改终端节点的路由表       | hcloud VPCEP UpdateEndpointRoutetable | 修改终端节点的路由表。               | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=UpdateEndpointRoutetable) |
| 修改终端节点策略         | hcloud VPCEP UpdateEndpointPolicy     | 修改终端节点策略。                 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=UpdateEndpointPolicy)     |
| 删除网关型终端节点策略（待下线） | hcloud VPCEP DeleteEndpointPolicy     | 删除网关型终端节点策略，该接口待下线，不建议使用。 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=DeleteEndpointPolicy)     |
   
#### 资源配额功能
| API名称 | 命令                            | 描述                       | 操作                                                                                          |
|:---|:---|:---|:---|
| 查询配额  | hcloud VPCEP ListQuotaDetails | 查询用户的资源配额，包括终端节点服务和终端节点。 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=ListQuotaDetails) |
   
#### 版本管理
| API名称             | 命令                                       | 描述                 | 操作                                                                                                     |
|:---|:---|:---|:---|
| 查询VPC终端节点接口版本列表   | hcloud VPCEP ListVersionDetails          | 查询VPC终端节点接口版本列表。   | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=ListVersionDetails)          |
| 查询指定VPC终端节点接口版本信息 | hcloud VPCEP ListSpecifiedVersionDetails | 查询指定VPC终端节点接口版本信息。 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=ListSpecifiedVersionDetails) |
   
#### TAG功能
| API名称         | 命令                                            | 描述                                     | 操作                                                                                                          |
|:---|:---|:---|:---|
| 查询资源实例接口      | hcloud VPCEP ListResourceInstances            | 使用标签过滤查询租户下资源的实例。                      | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=ListResourceInstances)            |
| 批量添加或删除资源标签接口 | hcloud VPCEP BatchAddOrRemoveResourceInstance | 为指定Endpoint Service或Endpoint批量添加或删除标签。 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=BatchAddOrRemoveResourceInstance) |
| 查询租户资源标签接口    | hcloud VPCEP ListQueryProjectResourceTags     | 根据租户ID和资源类型，获取租户下资源的标签。                | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=ListQueryProjectResourceTags)     |
   
#### Endpoint
| API名称  | 命令                           | 描述                 | 操作                                                                                         |
|:---|:---|:---|:---|
| 升级终端节点 | hcloud VPCEP UpgradeEndpoint | 升级终端节点，由基础型升级为专业型。 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/VPCEP/cli?api=UpgradeEndpoint) |
   
