Coding

huawei-cloud-cc-gcb-query

Try it

Queries Huawei Cloud Cloud Connect (CC) Global Connection Bandwidth (GCB) resources via hcloud CLI. Covers single GCB detail query (including bound instance info), GCB list query with filters, GCB tenant configuration query (size ranges, quotas, charge modes, supported services), and list of GCBs eligible for binding to a specific service type. No write operations. Use this skill when the user needs to inspect global connection bandwidth details, check GCB-bound instances, review GCB tenant configs and quotas, or find GCBs available for binding. Triggers include: 全域互联带宽, GCB, Global Connection Bandwidth, global-connection-bandwidth, 云连接带宽, CC带宽, bandwidth config, 绑定带宽, support binding bandwidth, gcb-query.

What it does

Queries Huawei Cloud Cloud Connect (CC) Global Connection Bandwidth (GCB) resources via hcloud CLI. Covers single GCB detail query (including bound instance info), GCB list query with filters, GCB tenant configuration query (size ranges, quotas, charge modes, supported services), and list of GCBs eligible for binding to a specific service type. No write operations. Use this skill when the user needs to inspect global connection bandwidth details, check GCB-bound instances, review GCB tenant configs and quotas, or find GCBs available for binding. Triggers include: 全域互联带宽, GCB, Global Connection Bandwidth, global-connection-bandwidth, 云连接带宽, CC带宽, bandwidth config, 绑定带宽, support binding bandwidth, gcb-query.

The skill document

Overview

Huawei Cloud Cloud Connect (CC) provides Global Connection Bandwidth (GCB) — a bandwidth resource that can be bound to various service instances (cloud connections, central networks, branch networks, global EIPs) to enable cross-region or cross-cloud connectivity.

This skill provides read-only query capabilities for four GCB-related operations:

OperationDescription
Show GCBQuery a single GCB by ID — response includes bound instance information
List GCBsPaginated list with rich filters (status, charge mode, binding service, instance, type, name, enterprise project)
GCB Tenant ConfigsQuery tenant-level configuration: size ranges, quotas, supported charge modes, supported services, bind limit, SLA levels
Support Binding GCBsList GCBs eligible for binding to a specific service type (CC / GEIP / GCN / GSN), filtered by local/remote area

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

Out of Scope

本 skill 不覆盖以下 GCB 查询能力:

未覆盖能力对应 API / CLI 命令说明
标签管理ListGcbResourceTags, ListGcbTenantTags, BatchCreateGcbResourceTags请使用 hcloud CC ListGcbResourceTags
线路级别ListGlobalConnectionBandwidthLineLevels请使用 hcloud CC ListGlobalConnectionBandwidthLineLevels
站点ListGlobalConnectionBandwidthSites请使用 hcloud CC ListGlobalConnectionBandwidthSites
规格代码ListGlobalConnectionBandwidthSpecCodes请使用 hcloud CC ListGlobalConnectionBandwidthSpecCodes
所有写操作Create/Delete/Update/Associate/Disassociate本 skill 仅提供查询(GET)能力

Prerequisites

  1. hcloud CLI installed and authenticated. See references/cli-installation-guide.md for details.
  2. Huawei Cloud AK/SK configured via environment variables or CLI profile:
    # Set AK/SK via secure prompt — never hardcode secrets in scripts
    read -rsp "Access Key ID: "     HUAWEI_ACCESS_KEY; echo
    read -rsp "Secret Access Key: " HUAWEI_SECRET_KEY; echo
    export HUAWEI_ACCESS_KEY HUAWEI_SECRET_KEY
    export HUAWEI_REGION="cn-north-4"
    
  3. IAM permissions — The caller needs CC ReadOnlyAccess or equivalent. See references/iam-policies.md for least-privilege policy.
  4. Domain ID — All CC GCB APIs require --domain_id (account ID). Obtain it from the console: IAM → My Credentials → Account ID.

Workflow

1. Identify the query type (single GCB / list / tenant configs / support binding)
2. Obtain the domain_id (account ID from IAM → My Credentials)
3. For single query: provide --domain_id and --id (GCB instance ID)
4. For list query: provide --domain_id, optionally add filters
5. For tenant configs: provide --domain_id only
6. For support binding: provide --domain_id and --binding_service (required)
7. Execute the hcloud command and review the output

Core Commands

All commands use the format:

hcloud CC  --cli-region= --domain_id= [additional params]

1. Query a Single Global Connection Bandwidth

Query GCB details by ID. The response includes the GCB's configuration and bound instance information (which cloud connections, central networks, or other service instances are bound to this GCB).

hcloud CC ShowGlobalConnectionBandwidth --cli-region=cn-north-4 --domain_id= --id=
ParameterRequiredDescription
--domain_idYesAccount ID
--idYesGCB instance ID (32–36 characters)

Key response fields:

FieldMeaning
idGCB instance ID
nameGCB name
sizeBandwidth size (Mbit/s)
typeBandwidth type: TrsArea (跨区), Area (大区), SubArea (区域), Region (城域)
charge_modeCharge mode: bwd (按带宽), 95 (传统95), 95avr (日95)
admin_stateStatus: NORMAL or FREEZED
binding_serviceBound service type: CC, GEIP, GCN, GSN
instancesList of bound instances (cloud connections, central networks, etc.)
local_areaLocal access point
remote_areaRemote access point
enterprise_project_idEnterprise project ID

2. List Global Connection Bandwidths

Paginated list with rich filtering options.

hcloud CC ListGlobalConnectionBandwidths --cli-region=cn-north-4 --domain_id= \
  [--limit=10] [--marker=] \
  [--admin_state.1=NORMAL] \
  [--binding_service.1=CC] \
  [--charge_mode.1=bwd] \
  [--id.1=] \
  [--instance_id.1=] \
  [--instance_type.1=CC] \
  [--name.1=] \
  [--type.1=TrsArea] \
  [--enterprise_project_id.1=]
ParameterRequiredDescription
--domain_idYesAccount ID
--limitNoRecords per page (1–2000)
--markerNoPagination marker (use with limit)
--admin_state.[N]NoFilter by status: NORMAL or FREEZED
--binding_service.[N]NoFilter by bound service type: CC, GEIP, GCN, GSN
--charge_mode.[N]NoFilter by charge mode: bwd, 95, 95avr
--id.[N]NoFilter by GCB ID (supports multiple)
--instance_id.[N]NoFilter by bound instance ID
--instance_type.[N]NoFilter by bound instance type: CC, GEIP, GCN, GSN
--name.[N]NoFilter by name (supports multiple)
--type.[N]NoFilter by bandwidth type: TrsArea, Area, SubArea, Region
--enterprise_project_id.[N]NoFilter by enterprise project ID

3. Query GCB Tenant Configuration

Query tenant-level configuration for GCB — includes size ranges per charge mode, quotas, supported services, supported bandwidth types, bind limit, SLA levels, and more.

hcloud CC ListGlobalConnectionBandwidthConfigs --cli-region=cn-north-4 --domain_id=
ParameterRequiredDescription
--domain_idYesAccount ID

Key response fields:

FieldMeaning
gcbSizeRange / size_rangeBandwidth size ranges per charge mode (trf, bwd, 95p, 95, 95avr)
quotasQuotas: gcb.size (total bandwidth quota) and gcb.count (GCB count quota)
charge_mode / chargeModeSupported charge modes
services / serviceListSupported binding service types
gcb_type / gcbTypeSupported GCB types: Area, TrsArea, Region, SubArea
bind_limitMaximum number of instances that can be bound to a single GCB
sla_levelSLA levels: Pt, Au, Ag
relationWhich service types are supported per GCB type
crossborderWhether cross-border bandwidth is enabled
ces_enabledWhether CES monitoring is enabled

4. List GCBs Eligible for Binding

List GCBs that meet binding conditions for a specific service type. Useful when you need to find an available GCB to bind to a new cloud connection, central network, or other service instance.

hcloud CC ListSupportBindingConnectionBandwidths --cli-region=cn-north-4 --domain_id= \
  --binding_service= \
  [--limit=10] [--marker=] \
  [--local_area=] \
  [--remote_area=] \
  [--enterprise_project_id.1=]
ParameterRequiredDescription
--domain_idYesAccount ID
--binding_serviceYesTarget service type: CC (cloud connection), GEIP (global EIP), GCN (central network), GSN (branch network)
--limitNoRecords per page (1–2000)
--markerNoPagination marker
--local_areaNoLocal access point (use with remote_area; both must be present or both absent)
--remote_areaNoRemote access point (use with local_area)
--enterprise_project_id.[N]NoFilter by enterprise project ID

Parameter Confirmation

ParameterRequiredDescriptionExample
--cli-regionYesHuawei Cloud regioncn-north-4
--domain_idYesAccount ID (from IAM → My Credentials)0a12345678...
--idYes (Show)GCB instance ID (32–36 char UUID)a1b2c3d4-e5f6-7890-abcd-ef1234567890
--binding_serviceYes (Support Binding)Target service typeCC
--limitNoPage size (1–2000)10
--markerNoPagination token``

Reference Documents

  • CLI Installation Guide — hcloud CLI setup and authentication
  • IAM Policies — Least-privilege policy for CC GCB query operations
  • Verification Method — How to verify query results
  • Data Flow Diagram — Mermaid diagram of skill data flow
  • Acceptance Criteria — Success criteria for each query type
  • API Reference — Verified REST API endpoints

KooCLI Command Format Standard

hcloud   --cli-region= [--key=value ...]
FeatureDescriptionExample
Service nameCC (Cloud Connect)CC
Operation namePascalCaseShowGlobalConnectionBandwidth, ListGlobalConnectionBandwidths
Region parameter--cli-region=--cli-region=cn-north-4
Simple parameter--key=value--id=xxx
Indexed array parameter--key.1=value1--admin_state.1=NORMAL

Related skills

Queries Huawei Cloud Cloud Connect (CC) resources via hcloud CLI. Covers cloud connection instances (single + list), bandwidth packages (single + list), inter-region bandwidths (single + list), network instances (single + list), cloud connection routes (single + list), and cross-account authorisations (granted + received). No write operations. Use this skill when the user needs to inspect cross-cloud connectivity topology, check bandwidth package status, review inter-region bandwidth allocation, query network instances attached to a cloud connection, troubleshoot routing in Cloud Connect, or audit cross-account authorisation relationships (who authorised whom). Triggers: 云连接, CC, Cloud Connect, 带宽包, bandwidth package, 域间带宽, inter-region bandwidth, 网络实例, network instance, 路由查询, cloud connection route, 跨云网络, cross-cloud connectivity, 授权, authorisation, 被授权, permission, 跨账号, cross-account.

Read-only queries against Huawei Cloud resources for inventory, verification, and parameter discovery.

by huaweicloud-skills-team6 installs

Queries Huawei Cloud storage resources (EVS/OBS/SFS/CBR). Covers cloud disks (volumes/snapshots/types/quotas/recycle bin), OBS buckets (ACL/metadata/notifica...

by huaweicloud-skills-team1 installs

Provides guidance for Huawei Cloud KooCLI command-line tool operations. Covers KooCLI installation, IAM authentication configuration, access credential confi...

by huaweicloud-skills-team1 installs

Queries Huawei Cloud ECS (Elastic Cloud Server) resources in read-only mode. Covers ECS instances, flavors, keypairs, quotas, server groups, block devices, NICs, VNC console, launch templates, recycle bin, scheduled events, and tags. No write operations. Use this skill when the user needs to query ECS instance details, list flavors, check server status, view block devices, or inspect ECS resource attributes. Triggers include: 查询ECS, ECS实例查询, 云服务器查询, 弹性云服务器, ECS规格, ECS配额, 云服务器列表, ECS详情, query ECS, list ECS servers, show server details, ECS flavors, ECS quotas, ECS keypairs, server groups, block devices, ECS inventory, cloud server list, ecs list, ecs query, ecs show.

Query the total number of Huawei Cloud services available through KooCLI offline metadata. Returns the count of all supported cloud services from the cached service catalog. Triggers include: "how many Huawei Cloud services", "count Huawei Cloud services", "华为云服务总数", "华为云有多少个服务", "查询华为云服务数量".

1 installs