Query the list of Huawei Cloud VPCEP (VPC Endpoint / VPC Endpoint Service) resources under the current tenant / project, focused on the VPCEP NAME list. Returns each VPC endpoint's name (endpoint_service_name), id, status and service type, and each endpoint service's name (service_name), id and status. Supports filtering by endpoint service name and pagination (limit/offset). Uses the KooCLI commands `hcloud VPCEP ListEndpoints` and `hcloud VPCEP ListEndpointService --cli-region={region}` (primary) against the v1 API, or the huaweicloudsdkvpcep Python SDK (fallback). Read-only — never creates, modifies or deletes any endpoint or service. Use this skill whenever the user wants to list/inspect the VPCEP endpoints or endpoint services of the tenant or query the VPCEP name list, e.g. for endpoint inventory, daily inspection, or connectivity review. Triggers include: "list VPCEP", "VPCEP list", "query VPCEP names", "VPCEP name list", "终端节点列表", "查询终端节点", "VPCEP名称", "终端节点名称", "list endpoints"
Documents
huawei-cloud-vpcep-name-list
Try itQuery 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端点列表, 查询端点名称.
What it does
Query 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端点列表, 查询端点名称.
The skill document
Huawei Cloud VPCEP Name List Skill
Overview
This 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:
- List all VPCEP endpoint names in a region for inventory
- Find VPCEP endpoints by name keyword (fuzzy match via endpoint_service_name)
- Paginated browsing of VPCEP endpoint list
- Check endpoint status, VPC, IP and creation time
Prerequisites
- hcloud CLI installed and authenticated — See
references/cli-installation-guide.md - Python 3.8+ with
huaweicloudsdkvpceppackage (SDK fallback) - Huawei Cloud AK/SK configured via environment variables or
hcloud configure set - IAM permissions —
VPCEP ReadOnlyAccessor finer-grained policy — Seereferences/iam-policies.md
Workflow
- Identify query scope — Decide whether to list all VPCEP endpoints, filter by name keyword, or paginate
- Select execution mode — Use the hcloud CLI by default; fall back to the Python SDK if the CLI is unavailable
- Execute the query — Run the appropriate command and capture the response
- Present results — Summarize endpoint names, IDs, statuses, VPC, IP and creation time in a readable form
Note 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.
Core Commands
Endpoint Name Queries
| 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} |
Name-Only Lookup (jq)
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}]}'
SDK Fallback Examples
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 Confirmation
| 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 |
Reference Documents
- CLI Installation Guide
- IAM Policies
- Verification Method
- Data Flow Diagram
- Acceptance Criteria
KooCLI Command Format Standard
hcloud VPCEP --cli-region= [--key=value ...]
| Feature | Description | Example |
|---|---|---|
| Service name | VPCEP | hcloud VPCEP ListEndpoints |
| Operation name | PascalCase | ListEndpoints |
| Region parameter | --cli-region= | --cli-region=cn-north-4 |
| Simple parameter | --key=value | --endpoint_service_name=my-endpoint |
Related skills
查询华为云账号下指定 Region 的 VPC 列表,输出精简的 VPC 名称 + ID 清单。 | 适合用于网络资源盘点、运维巡检、自动化脚本前置查询。
Read-only queries against Huawei Cloud resources for inventory, verification, and parameter discovery.
Lists Huawei Cloud EIP (Elastic IP, 弹性公网IP) resources — enumerates all EIPs in a region with public IP address, EIP ID, status, bandwidth, associated instance and creation time, using the KooCLI `hcloud EIP ListPublicips` command (primary) or the huaweicloudsdkeip Python SDK (fallback). Provides read-only EIP inventory for network resource auditing, cost review and resource discovery. Use this skill whenever the user mentions EIP list query. Triggers include: list EIPs, EIP list, query EIP, enumerate EIPs, show EIPs, elastic IP list, public IP inventory, 查询弹性公网IP, EIP列表, 弹性公网IP列表, 查看EIP, 列出EIP, 获取EIP列表, 查询EIP, 查询公网IP.
查询华为云指定 Region 下某 VPC 的子网(Subnet)列表,输出精简的子网名称 + ID 清单。 适合用于网络资源盘点、运维巡检、自动化脚本前置查询(下钻到 VPC 内子网级视图)。
Query the list of Huawei Cloud EVS (Elastic Volume Service) disks under the current tenant / project, focused on the EVS disk NAME list. Returns each disk's name, id, status and size; can also output a pure EVS name-only list. Supports filtering by status, name and pagination (limit/offset). Uses the KooCLI command `hcloud EVS ListVolumes --cli-region={region}` (primary) against the v2 API, or the huaweicloudsdkevs Python SDK (fallback). Read-only — never creates, modifies or deletes any disk. Use this skill whenever the user wants to list/inspect the EVS disks of the tenant or query the EVS disk name list, e.g. for disk inventory, daily inspection, or cost review. Triggers include: "list EVS", "EVS list", "query EVS names", "EVS name list", "云硬盘列表", "查询云硬盘", "EVS磁盘名称", "云硬盘名称", "list volumes", "list elastic volumes", "how many EVS disks".