huaweicloud/huaweicloud-skills

huawei-cloud-cc-central-network-query

Queries Huawei Cloud Cloud Connect (CC) Central Network resources via hcloud CLI.

ソースを見る
リポジトリの原文

見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。

Huawei Cloud CC Central Network Query

Overview

This skill queries Huawei Cloud Cloud Connect (CC) Central Network resources using the hcloud CLI. Central Network is a core concept in Cloud Connect that enables global, centralized network architecture across regions and clouds.

Scope: Query only — no create, update, or delete operations.

Resources covered:

ResourceListShow
Central Network InstanceListCentralNetworksShowCentralNetwork
Central Network AttachmentListCentralNetworkAttachmentsShowCentralNetworkErRouteTableAttachment / ShowCentralNetworkGdgwAttachment
Central Network ConnectionListCentralNetworkConnections✅ Via ListCentralNetworkConnections --id.1 filter
Note on attachments: Central network attachments come in two types — ER Route Table and GDGW. There is no generic "show attachment" command; you must use the type-specific command based on the attachment type.
Note on connection show: There is no dedicated ShowCentralNetworkConnection API. To query a single connection, use ListCentralNetworkConnections with the --id.1 filter, or read the connections array embedded in the ShowCentralNetwork response.

Out of Scope (不覆盖的能力):

The following Central Network capabilities are not covered by this skill. If the user requests any of these, inform them clearly that the skill does not support it.

CapabilityReasonSuggested Action
Policy management (策略管理) — create / apply / delete / list policies, query change setWrite operations + not in scopeUse hcloud CLI directly or a management skill
Quota query (配额查询) — ListCentralNetworkQuotasNot in scopeUse hcloud CC ListCentralNetworkQuotas directly
Capability list query (能力查询) — ListCentralNetworkCapabilitiesNot in scopeUse hcloud CC ListCentralNetworkCapabilities directly
Create / Update / Delete central network or attachmentsWrite operationsUse hcloud CLI directly or a management skill
Update central network connectionsWrite operationUse hcloud CLI directly or a management skill
Tag management (标签管理)Not in scopeUse hcloud CLI directly
If a user asks for 策略查询 / 策略管理 / 配额查询 / 能力查询 / 标签管理, tell them this skill does not cover these capabilities and suggest using the hcloud CLI directly.

Prerequisites

  1. hcloud CLI installed and authenticated. See references/cli-installation-guide.md.
  2. IAM permissions: cc:centralNetworks:list and cc:centralNetworks:get. See references/iam-policies.md.
  3. Region: Central Network is a global service — use any region where CC is available (e.g., cn-north-4).
  4. Domain ID: Most commands require --domain_id (account ID). Obtain from IAM → My Credentials.

Workflow

1. Identify the target central network (List → pick by name/id)
2. Query details as needed:
   ├── Instance details → ShowCentralNetwork
   ├── Attachments → ListCentralNetworkAttachments → Show by type
   └── Connections → ListCentralNetworkConnections → filter by id for single

Core Commands

1. List Central Network Instances

text
hcloud CC ListCentralNetworks --cli-region={region} --domain_id={domain_id} [optional filters]

格式说明模板,不可直接执行 — 将 {region}{domain_id} 等占位符替换为实际值后执行。

Key parameters:

ParameterRequiredDescription
--cli-regionYesRegion, e.g., cn-north-4
--domain_idYesAccount ID
--id.1NoFilter by instance ID (supports multiple: --id.1=xxx --id.2=yyy)
--name.1NoFilter by name
--limitNoPage size (1–2000)
--markerNoPagination marker
--sort_keyNoSort field
--sort_dirNoSort direction (asc / desc)
--enterprise_project_id.1NoFilter by enterprise project ID

Example:

bash
hcloud CC ListCentralNetworks --cli-region=cn-north-4 --domain_id=xxx --limit=10

2. Show Central Network Instance

text
hcloud CC ShowCentralNetwork --cli-region={region} --domain_id={domain_id} --central_network_id={central_network_id}

格式说明模板,不可直接执行 — 将 {region}{domain_id}{central_network_id} 等占位符替换为实际值后执行。

Key parameters:

ParameterRequiredDescription
--cli-regionYesRegion
--domain_idYesAccount ID
--central_network_idYesCentral network ID

Example:

bash
hcloud CC ShowCentralNetwork --cli-region=cn-north-4 --domain_id=xxx --central_network_id=cn-xxx
The response includes an embedded connections array with CentralNetworkConnectionInfo objects — useful for viewing all connections without a separate call.

3. List Central Network Attachments

text
hcloud CC ListCentralNetworkAttachments --cli-region={region} --domain_id={domain_id} --central_network_id={central_network_id} [optional filters]

格式说明模板,不可直接执行 — 将 {region}{domain_id}{central_network_id} 等占位符替换为实际值后执行。

Key parameters:

ParameterRequiredDescription
--cli-regionYesRegion
--domain_idYesAccount ID
--central_network_idYesCentral network ID
--attachment_instance_type.1NoFilter by type: GDGW or ER_ROUTE_TABLE
--id.1NoFilter by attachment ID
--name.1NoFilter by name
--state.1NoFilter by state (AVAILABLE, CREATING, FAILED, etc.)
--limitNoPage size (1–2000)
--markerNoPagination marker

Example:

bash
hcloud CC ListCentralNetworkAttachments --cli-region=cn-north-4 --domain_id=xxx --central_network_id=cn-xxx --limit=10

4. Show Central Network Attachment (by type)

There is no generic show-attachment command. Use the type-specific command based on the attachment type.

4a. Show ER Route Table Attachment

text
hcloud CC ShowCentralNetworkErRouteTableAttachment --cli-region={region} --domain_id={domain_id} --central_network_id={central_network_id} --er_route_table_attachment_id={attachment_id}

4b. Show GDGW Attachment

text
hcloud CC ShowCentralNetworkGdgwAttachment --cli-region={region} --domain_id={domain_id} --central_network_id={central_network_id} --gdgw_attachment_id={attachment_id}
格式说明模板,不可直接执行 — 将 {region}{domain_id}{central_network_id}{attachment_id} 等占位符替换为实际值后执行。

How to determine attachment type: Run ListCentralNetworkAttachments first — the response includes attachment_instance_type (GDGW or ER_ROUTE_TABLE) and the corresponding attachment ID for each entry.

5. List Central Network Connections

text
hcloud CC ListCentralNetworkConnections --cli-region={region} --domain_id={domain_id} --central_network_id={central_network_id} [optional filters]

格式说明模板,不可直接执行 — 将 {region}{domain_id}{central_network_id} 等占位符替换为实际值后执行。

Key parameters:

ParameterRequiredDescription
--cli-regionYesRegion
--domain_idYesAccount ID
--central_network_idYesCentral network ID
--id.1NoFilter by connection ID (use this for "show single")
--name.1NoFilter by name
--state.1NoFilter by state
--is_cross_regionNoFilter cross-region connections (boolean)
--bandwidth_typeNoFilter by bandwidth type: BandwidthPackage or TestBandwidth
--connection_typeNoFilter by connection type
--limitNoPage size (1–2000)
--markerNoPagination marker

Example:

bash
hcloud CC ListCentralNetworkConnections --cli-region=cn-north-4 --domain_id=xxx --central_network_id=cn-xxx --limit=10

6. Show Single Central Network Connection

No dedicated ShowCentralNetworkConnection API exists. Use the list command with an ID filter:

text
hcloud CC ListCentralNetworkConnections --cli-region={region} --domain_id={domain_id} --central_network_id={central_network_id} --id.1={connection_id}

格式说明模板,不可直接执行 — 将 {region}{domain_id}{central_network_id}{connection_id} 等占位符替换为实际值后执行。

Alternative: The ShowCentralNetwork response embeds a connections array containing CentralNetworkConnectionInfo objects — you can find the target connection there without a separate call.

Parameter Confirmation

ParameterRequiredDescriptionExample
{region}YesHuawei Cloud regioncn-north-4
{domain_id}YesAccount ID (IAM → My Credentials)xxx
{central_network_id}Yes (for show/list attachments/connections)Central network instance IDcn-xxx
{attachment_id}Yes (for show attachment)Attachment ID (type-specific)xxx
{connection_id}Yes (for show single connection)Connection IDxxx

Reference Documents

KooCLI Command Format Standard

格式说明模板,不可直接执行:以下为命令格式说明,<...>[...] 为占位符,需替换为实际值后才能在终端执行。
text
hcloud <Service> <Operation> --cli-region=<region> [--key=value ...]
FeatureDescriptionExample
Service nameCC (Cloud Connect)CC
Operation namePascalCaseListCentralNetworks, ShowCentralNetwork
Region parameter--cli-region=<value>--cli-region=cn-north-4
Simple parameter--key=value--central_network_id=cn-xxx
Indexed parameter--key.1=value1--id.1=cn-xxx
同じリポジトリから

関連する Skills

すべての Skills
huaweicloud
コミュニティ

huawei-cloud-publish-work-to-gallery

Publish user's work to the Huawei Cloud University Operations Platform (华为云高校运营平台/作品陈列馆). Use this skill whenever the user wants to publish, submit, or upload a project/work to the gallery or a training camp (训练营) on the platform — including casual phrasings like "把作品发布上去", "投稿到陈列馆", "传作品到平台", "提交作品/项目", "报名发布作品", as well as formal ones like "publish to work gallery", "submit to training camp", "upload work to the platform". Do NOT use for general dev questions, git push to GitCode alone, or platform browsing without publishing intent.

導入数
5
GitHub Stars
50
更新日
9月23日
huaweicloud
コミュニティ

huawei-cloud-eip-cost-optimizer

Huawei Cloud EIP (Elastic IP) cost optimization skill using hcloud CLI (KooCLI). 1. List and query EIPs across regions with detailed status 2. Identify idle/unbound EIPs and generate cost optimization reports 3. Set up idle EIP monitoring with webhook/email alerts 4. Generate HTML/JSON cost analysis reports 5. Maintain operation audit logs for compliance Read-only analysis only - NO bandwidth adjustment, tag management, or EIP release/deletion. Triggers include: "EIP cost optimization", "idle EIP analysis", "EIP audit", "cost report", "EIP status query", "EIP list", "EIP monitoring", "EIP alert", "cost analysis", "idle monitoring", "operation audit", "EIP 成本优化", "闲置 EIP 分析", "EIP 审计", "成本报告", "EIP 状态查询", "EIP 查询", "EIP 列表", "EIP 监控", "EIP 告警", "成本分析", "闲置监控", "操作审计"

導入数
1
GitHub Stars
50
更新日
9月22日
huaweicloud
コミュニティ

huawei-cloud-flexus-l-deploy-jiuwenswarm

One-click deployment of JiuwenSwarm multi-Agent collaboration platform on Huawei Cloud Flexus L instances. Usage scenarios: When users need to quickly deploy JiuwenSwarm/JiuwenClaw on Huawei Cloud Flexus L instances, when they need to automatically create cloud instances and deploy AI Agent platforms, when they need to configure model APIs and message channels (Xiaoyi/Feishu/DingTalk). Automatically create instances, deploy applications via COC, configure models and message channels. Trigger keywords: JiuwenSwarm deployment, JiuwenClaw deployment, 九问Swarm部署, 九问Claw部署, 一键部署JiuwenSwarm, AI智能体平台部署, 部署九问Swarm, 部署九问Claw,云服务器部署AI平台.

導入数
1
GitHub Stars
50
更新日
9月22日
huaweicloud
コミュニティ

huawei-cloud-flexus-l-server-flexusagent-deployment

Deploy AI Agent development platform (Dify) on Huawei Cloud Flexus L instance, providing deployment operations, password management, MaaS model configuration, and workflow import capabilities. Trigger keywords: deploy flexusagent/一键部署Flexus AI Agent开发平台、change password/修改开发平台管理员密码、change dify password/修改dify平台密码、add maas provider/添加MaaS模型供应商、configure maas model/配置MaaS模型、view workflow/查看AI Agent工作流、import workflow/导入AI Agent工作流

導入数
1
GitHub Stars
50
更新日
9月22日