Install
openclaw skills install @erickeyhu-hug/huawei-cloud-vpcep-name-listQuery Huawei Cloud VPCEP (VPC Endpoint) names by keyword, and list all VPC Endpoints across a region. Provides read-only name lookup, fuzzy name filtering, and paginated listing for daily inspection and resource management. Triggers include: VPCEP list, list VPCEP endpoints, query VPCEP names, VPCEP endpoint name, find VPCEP endpoint, VPCEP name lookup, VPCEP endpoint list, VPC endpoint names, endpoint name query, 查询VPCEP名称, VPCEP端点名称, VPC端点名称, VPCEP列表, VPCEP端点列表, 查询端点名称.
openclaw skills install @erickeyhu-hug/huawei-cloud-vpcep-name-listThis skill provides read-only name-query capabilities for Huawei Cloud VPCEP (VPC Endpoint
Service). It lists all VPC Endpoints in a region, supports fuzzy name matching via the
endpoint_service_name parameter, and paginated queries with limit/offset. It is
designed for quick name lookups, inventory reporting, and daily endpoint inspection.
Architecture:
Agent → hcloud CLI (primary) → Huawei Cloud VPCEP API
↘ Python SDK (fallback) ↗
Applicable Scenarios:
references/cli-installation-guide.mdhuaweicloudsdkvpcep package (SDK fallback)hcloud configure setVPCEP ReadOnlyAccess or finer-grained policy — See references/iam-policies.mdNote on fuzzy matching: The VPCEP
ListEndpointsAPI supports fuzzy name matching via theendpoint_service_nameparameter. This parameter matches endpoint names that contain the given keyword string, not an exact or prefix match.
| Purpose | Command |
|---|---|
| List all VPCEP endpoints | hcloud VPCEP ListEndpoints --cli-region={region} --limit={limit} |
| List endpoints filtered by name (fuzzy) | hcloud VPCEP ListEndpoints --cli-region={region} --endpoint_service_name={name} [--limit={limit}] |
| List endpoints with pagination | hcloud VPCEP ListEndpoints --cli-region={region} --limit={limit} --offset={offset} |
| List endpoints filtered by name with pagination | hcloud VPCEP ListEndpoints --cli-region={region} --endpoint_service_name={name} --limit={limit} --offset={offset} |
To extract just the endpoint names:
hcloud VPCEP ListEndpoints --cli-region={region} --limit={limit} | jq -r '.endpoints[].name'
To list endpoint names with status, VPC and IP:
hcloud VPCEP ListEndpoints --cli-region={region} --limit={limit} | jq -r '.endpoints[] | "\(.name)\t\(.status)\t\(.vpc_id)\t\(.endpoint_ip)"'
To show total count and paginated summary:
hcloud VPCEP ListEndpoints --cli-region={region} --limit={limit} | jq '{total_count, endpoints: [.endpoints[] | {name, id, status, vpc_id, endpoint_ip, created_at}]}'
When the CLI is unavailable, use the Python SDK:
import os
from huaweicloudsdkcore.auth.credentials import BasicCredentials
from huaweicloudsdkvpcep.v1.region.vpcep_region import VpcepRegion
from huaweicloudsdkvpcep.v1 import vpcep_client
from huaweicloudsdkvpcep.v1.model import ListEndpointsRequest
credentials = BasicCredentials() \
.with_ak(os.getenv("HUAWEI_ACCESS_KEY")) \
.with_sk(os.getenv("HUAWEI_SECRET_KEY")) \
.with_project_id("{project_id}")
client = vpcep_client.VpcepClient.new_builder() \
.with_credentials(credentials) \
.with_region(VpcepRegion.value_of("{region}")) \
.build()
request = ListEndpointsRequest()
request.limit = 100
response = client.list_endpoints(request)
print(f"Total: {response.total_count}")
for ep in response.endpoints:
print(ep.name, ep.status, ep.vpc_id, ep.endpoint_ip, ep.created_at)
| Parameter | Required | Description | Example |
|---|---|---|---|
{region} | Yes | Huawei Cloud region | cn-north-4 |
{name} | No | Endpoint name keyword (fuzzy match via endpoint_service_name) | my-endpoint |
{limit} | No | Maximum records to return (1-500, default 10) | 100 |
{offset} | No | Offset for pagination (default 0) | 0 |
{project_id} | Conditional | Project ID (required for SDK/API) | 0a1234b56c78d9ef |
hcloud VPCEP <Operation> --cli-region=<region> [--key=value ...]
| Feature | Description | Example |
|---|---|---|
| Service name | VPCEP | hcloud VPCEP ListEndpoints |
| Operation name | PascalCase | ListEndpoints |
| Region parameter | --cli-region=<value> | --cli-region=cn-north-4 |
| Simple parameter | --key=value | --endpoint_service_name=my-endpoint |