huaweicloud/huaweicloud-skills

huawei-cloud-cc-instance-query

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

Vedi sorgente
Documento Skill originale

Contenuto dal repository con titoli, esempi, codice, tabelle, link e immagini preservati.

Overview

Huawei Cloud Cloud Connect (CC) is a service that enables cross-region and cross-cloud network connectivity. This skill provides read-only query capabilities for seven core CC resource types:

Resource TypeDescription
Cloud ConnectionThe top-level container that links VPCs across regions or clouds
Bandwidth PackagePurchased bandwidth resource bound to a cloud connection
Inter-Region BandwidthBandwidth allocated between two specific regions within a bandwidth package
Network InstanceA VPC or VPC subnet attached to a cloud connection
Cloud Connection RouteRouting entries that direct traffic through the cloud connection
Authorisation (granted)Cross-account authorisations this account has granted to others — "which of my network instances did I authorise other accounts to load?"
Permission (received)Cross-account authorisations other accounts have granted to this account — "which foreign network instances can I load into my cloud connections?"

All operations are query-only (GET). No create, update, or delete operations are performed.

Out of Scope

This skill does not cover the following CC resource types and operations. If the user asks about these, inform them clearly and suggest the corresponding hcloud CLI command.

Out-of-Scope Resource / OperationSuggested Command
Central Network(中心网络)hcloud CC ListCentralNetworks / hcloud CC ShowCentralNetwork
Global Connection Bandwidth(全局互联带宽/GCB)hcloud CC ListGlobalConnectionBandwidths / hcloud CC ShowGlobalConnectionBandwidth
Site Network(站点网络)hcloud CC ListSiteNetworks / hcloud CC ShowSiteNetwork
Tag management(标签管理: Tag/Untag/ListTags)hcloud CC ListTags / hcloud CC ListCloudConnectionTags
All write operations(Create/Update/Delete/Apply/Associate/Disassociate)Not supported — this skill is read-only

Prerequisites

  1. hcloud CLI installed and authenticated. See references/cli-installation-guide.md for details.
  2. Huawei Cloud AK/SK configured via hcloud configure (interactive, recommended) or environment variables:
bash
   # Recommended: interactive configuration
   hcloud configure
   # Or set env vars: HUAWEI_ACCESS_KEY, HUAWEI_SECRET_KEY, HUAWEI_REGION
  1. IAM permissions — The caller needs CC ReadOnlyAccess or equivalent. See references/iam-policies.md for least-privilege policy.
  2. Domain ID — All CC APIs require --domain_id (account ID). Obtain it from the console: IAM → My Credentials → Account ID.

Workflow

1. Identify the resource type to query (cloud connection / bandwidth package / inter-region bandwidth / network instance / route / authorisation / permission)
2. Determine whether a single instance or a list is needed
3. For single queries: provide --domain_id and --id
4. For list queries: provide --domain_id, optionally add filters (--limit, --marker, --status, --name, etc.)
5. Execute the hcloud command and review the output
6. **domain_id validation**: If `--domain_id` is not explicitly provided, the CLI will silently use the default domain_id from the auth config (not an error). Always recommend the user specify `--domain_id` explicitly to avoid querying the wrong account.

Core Commands

All commands use the format:

bash
hcloud CC <Operation> --cli-region=<region> --domain_id=<account_id> [additional params]

1. Cloud Connection Instances

Query a single cloud connection:

bash
hcloud CC ShowCloudConnection --cli-region=cn-north-4 --domain_id=<account_id> --id=<cloud_connection_id>

List cloud connections:

bash
hcloud CC ListCloudConnections --cli-region=cn-north-4 --domain_id=<account_id> [--limit=10] [--marker=<marker>] [--status.1=ACTIVE] [--name.1=<name>]
ParameterRequiredDescription
--domain_idYesAccount ID
--idYes (Show)Cloud connection instance ID
--limitNoRecords per page (1–2000)
--markerNoPagination marker (use with limit)
--status.[N]NoFilter by status (e.g., ACTIVE)
--name.[N]NoFilter by resource name
--id.[N]NoFilter by resource ID (list only)
--enterprise_project_id.[N]NoFilter by enterprise project ID

2. Bandwidth Package Instances

Query a single bandwidth package:

bash
hcloud CC ShowBandwidthPackage --cli-region=cn-north-4 --domain_id=<account_id> --id=<bandwidth_package_id>

List bandwidth packages:

bash
hcloud CC ListBandwidthPackages --cli-region=cn-north-4 --domain_id=<account_id> [--limit=10] [--status.1=ACTIVE] [--cloud_connection_id.1=<cc_id>]
ParameterRequiredDescription
--domain_idYesAccount ID
--idYes (Show)Bandwidth package instance ID
--limitNoRecords per page (1–2000)
--markerNoPagination marker
--status.[N]NoFilter by status (e.g., ACTIVE)
--cloud_connection_id.[N]NoFilter by cloud connection ID
--billing_mode.[N]NoFilter by billing mode

3. Inter-Region Bandwidth Instances

Query a single inter-region bandwidth:

bash
hcloud CC ShowInterRegionBandwidth --cli-region=cn-north-4 --domain_id=<account_id> --id=<inter_region_bandwidth_id>

List inter-region bandwidths:

bash
hcloud CC ListInterRegionBandwidths --cli-region=cn-north-4 --domain_id=<account_id> [--limit=10] [--cloud_connection_id.1=<cc_id>] [--bandwidth_package_id.1=<bp_id>]
ParameterRequiredDescription
--domain_idYesAccount ID
--idYes (Show)Inter-region bandwidth instance ID
--limitNoRecords per page (1–2000)
--markerNoPagination marker
--cloud_connection_id.[N]NoFilter by cloud connection ID
--bandwidth_package_id.[N]NoFilter by bandwidth package ID

4. Network Instances

Query a single network instance:

bash
hcloud CC ShowNetworkInstance --cli-region=cn-north-4 --domain_id=<account_id> --id=<network_instance_id>

List network instances:

bash
hcloud CC ListNetworkInstances --cli-region=cn-north-4 --domain_id=<account_id> [--limit=10] [--cloud_connection_id.1=<cc_id>] [--region_id.1=<region>] [--status.1=ACTIVE]
ParameterRequiredDescription
--domain_idYesAccount ID
--idYes (Show)Network instance ID
--limitNoRecords per page (1–2000)
--markerNoPagination marker
--cloud_connection_id.[N]NoFilter by cloud connection ID
--region_id.[N]NoFilter by deployment region
--status.[N]NoFilter by status (e.g., ACTIVE)
--type.[N]NoFilter by network instance type

5. Cloud Connection Routes

Query a single route:

bash
hcloud CC ShowCloudConnectionRoutes --cli-region=cn-north-4 --domain_id=<account_id> --id=<route_id>

List routes:

bash
hcloud CC ListCloudConnectionRoutes --cli-region=cn-north-4 --domain_id=<account_id> [--limit=10] [--cloud_connection_id.1=<cc_id>] [--instance_id.1=<ni_id>] [--region_id=<region>]
ParameterRequiredDescription
--domain_idYesAccount ID
--idYes (Show) / No (List)Route instance ID
--limitNoRecords per page (1–2000)
--markerNoPagination marker
--cloud_connection_id.[N]NoFilter by cloud connection ID
--instance_id.[N]NoFilter by network instance ID
--region_idNo (List only)Filter by region ID

6. Cross-Account Authorisations (Granted)

Use this to answer: "Which of my network instances have I authorised other accounts to load into their cloud connections?"

This is the grantor's view — the calling account owns the network instances and has authorised other accounts (identified by cloud_connection_domain_id) to load them.

List authorisations:

bash
hcloud CC ListAuthorisations --cli-region=cn-north-4 --domain_id=<account_id> [--limit=10] [--cloud_connection_id.1=<cc_id>] [--instance_id.1=<ni_id>] [--id.1=<auth_id>] [--name.1=<name>] [--description.1=<desc>]
ParameterRequiredDescription
--domain_idYesAccount ID (the grantor — your account)
--limitNoRecords per page (1–2000)
--markerNoPagination marker
--cloud_connection_id.[N]NoFilter by cloud connection ID
--instance_id.[N]NoFilter by network instance ID
--id.[N]NoFilter by authorisation ID
--name.[N]NoFilter by authorisation name
--description.[N]NoFilter by description

Key response fields:

FieldMeaning
idAuthorisation record ID
domain_idThe grantor's domain ID (your account)
instance_idThe network instance being authorised
instance_typeNetwork instance type (e.g., vpc)
cloud_connection_idThe cloud connection that will load the instance
cloud_connection_domain_idThe grantee's domain ID (the other account)
is_loaded_by_cloud_connectionWhether the grantee has actually loaded the instance into the cloud connection
statusAuthorisation status (e.g., authorized)

7. Cross-Account Permissions (Received)

Use this to answer: "Which foreign network instances have other accounts authorised me to load into my cloud connections?"

This is the grantee's view — the calling account owns the cloud connections and can load network instances owned by other accounts (identified by instance_domain_id).

List permissions:

bash
hcloud CC ListPermissions --cli-region=cn-north-4 --domain_id=<account_id> [--limit=10] [--cloud_connection_id.1=<cc_id>] [--instance_id.1=<ni_id>] [--id.1=<perm_id>] [--name.1=<name>] [--description.1=<desc>]
ParameterRequiredDescription
--domain_idYesAccount ID (the grantee — your account)
--limitNoRecords per page (1–2000)
--markerNoPagination marker
--cloud_connection_id.[N]NoFilter by cloud connection ID
--instance_id.[N]NoFilter by network instance ID
--id.[N]NoFilter by permission ID
--name.[N]NoFilter by permission name
--description.[N]NoFilter by description

Key response fields:

FieldMeaning
idPermission record ID
domain_idThe grantee's domain ID (your account)
instance_idThe foreign network instance authorised to you
instance_typeNetwork instance type (e.g., vpc)
instance_domain_idThe grantor's domain ID (the other account that owns the instance)
cloud_connection_idYour cloud connection that can load the instance
statusPermission status (e.g., authorized)

Parameter Confirmation

ParameterRequiredDescriptionExample
--cli-regionYesHuawei Cloud regioncn-north-4
--domain_idYesAccount ID (from IAM → My Credentials)0a12345678...
--idYes (Show ops)Resource instance ID (32–36 char UUID)a1b2c3d4-e5f6-7890-abcd-ef1234567890
--limitNoPage size (1–2000)10
--markerNoPagination token<marker from previous page>

Reference Documents

KooCLI Command Format Standard

bash
hcloud <Service> <Operation> --cli-region=<region> [--key=value ...]
FeatureDescriptionExample
Service nameCC (Cloud Connect)CC
Operation namePascalCaseShowCloudConnection, ListCloudConnections
Region parameter--cli-region=<value>--cli-region=cn-north-4
Simple parameter--key=value--id=xxx
Indexed array parameter--key.1=value1--status.1=ACTIVE
dallo stesso repository

Altri Skills

Tutti gli Skills
huaweicloud
Community

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.

installazioni
5
GitHub Stars
50
Aggiornato
23 set
huaweicloud
Community

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 告警", "成本分析", "闲置监控", "操作审计"

installazioni
1
GitHub Stars
50
Aggiornato
22 set
huaweicloud
Community

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平台.

installazioni
1
GitHub Stars
50
Aggiornato
22 set
huaweicloud
Community

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工作流

installazioni
1
GitHub Stars
50
Aggiornato
22 set