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:
| Operation |
Description |
| Show GCB |
Query a single GCB by ID — response includes bound instance information |
| List GCBs |
Paginated list with rich filters (status, charge mode, binding service, instance, type, name, enterprise project) |
| GCB Tenant Configs |
Query tenant-level configuration: size ranges, quotas, supported charge modes, supported services, bind limit, SLA levels |
| Support Binding GCBs |
List 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
- hcloud CLI installed and authenticated. See
references/cli-installation-guide.md for details.
- 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"
- IAM permissions — The caller needs
CC ReadOnlyAccess or equivalent. See references/iam-policies.md for least-privilege policy.
- 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 <Operation> --cli-region=<region> --domain_id=<account_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=<account_id> --id=<gcb_id>
| Parameter |
Required |
Description |
--domain_id |
Yes |
Account ID |
--id |
Yes |
GCB instance ID (32–36 characters) |
Key response fields:
| Field |
Meaning |
id |
GCB instance ID |
name |
GCB name |
size |
Bandwidth size (Mbit/s) |
type |
Bandwidth type: TrsArea (跨区), Area (大区), SubArea (区域), Region (城域) |
charge_mode |
Charge mode: bwd (按带宽), 95 (传统95), 95avr (日95) |
admin_state |
Status: NORMAL or FREEZED |
binding_service |
Bound service type: CC, GEIP, GCN, GSN |
instances |
List of bound instances (cloud connections, central networks, etc.) |
local_area |
Local access point |
remote_area |
Remote access point |
enterprise_project_id |
Enterprise project ID |
2. List Global Connection Bandwidths
Paginated list with rich filtering options.
hcloud CC ListGlobalConnectionBandwidths --cli-region=cn-north-4 --domain_id=<account_id> \
[--limit=10] [--marker=<marker>] \
[--admin_state.1=NORMAL] \
[--binding_service.1=CC] \
[--charge_mode.1=bwd] \
[--id.1=<gcb_id>] \
[--instance_id.1=<instance_id>] \
[--instance_type.1=CC] \
[--name.1=<name>] \
[--type.1=TrsArea] \
[--enterprise_project_id.1=<ep_id>]
| Parameter |
Required |
Description |
--domain_id |
Yes |
Account ID |
--limit |
No |
Records per page (1–2000) |
--marker |
No |
Pagination marker (use with limit) |
--admin_state.[N] |
No |
Filter by status: NORMAL or FREEZED |
--binding_service.[N] |
No |
Filter by bound service type: CC, GEIP, GCN, GSN |
--charge_mode.[N] |
No |
Filter by charge mode: bwd, 95, 95avr |
--id.[N] |
No |
Filter by GCB ID (supports multiple) |
--instance_id.[N] |
No |
Filter by bound instance ID |
--instance_type.[N] |
No |
Filter by bound instance type: CC, GEIP, GCN, GSN |
--name.[N] |
No |
Filter by name (supports multiple) |
--type.[N] |
No |
Filter by bandwidth type: TrsArea, Area, SubArea, Region |
--enterprise_project_id.[N] |
No |
Filter 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=<account_id>
| Parameter |
Required |
Description |
--domain_id |
Yes |
Account ID |
Key response fields:
| Field |
Meaning |
gcbSizeRange / size_range |
Bandwidth size ranges per charge mode (trf, bwd, 95p, 95, 95avr) |
quotas |
Quotas: gcb.size (total bandwidth quota) and gcb.count (GCB count quota) |
charge_mode / chargeMode |
Supported charge modes |
services / serviceList |
Supported binding service types |
gcb_type / gcbType |
Supported GCB types: Area, TrsArea, Region, SubArea |
bind_limit |
Maximum number of instances that can be bound to a single GCB |
sla_level |
SLA levels: Pt, Au, Ag |
relation |
Which service types are supported per GCB type |
crossborder |
Whether cross-border bandwidth is enabled |
ces_enabled |
Whether 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=<account_id> \
--binding_service=<CC|GEIP|GCN|GSN> \
[--limit=10] [--marker=<marker>] \
[--local_area=<local_area>] \
[--remote_area=<remote_area>] \
[--enterprise_project_id.1=<ep_id>]
| Parameter |
Required |
Description |
--domain_id |
Yes |
Account ID |
--binding_service |
Yes |
Target service type: CC (cloud connection), GEIP (global EIP), GCN (central network), GSN (branch network) |
--limit |
No |
Records per page (1–2000) |
--marker |
No |
Pagination marker |
--local_area |
No |
Local access point (use with remote_area; both must be present or both absent) |
--remote_area |
No |
Remote access point (use with local_area) |
--enterprise_project_id.[N] |
No |
Filter by enterprise project ID |
Parameter Confirmation
| Parameter |
Required |
Description |
Example |
--cli-region |
Yes |
Huawei Cloud region |
cn-north-4 |
--domain_id |
Yes |
Account ID (from IAM → My Credentials) |
0a12345678... |
--id |
Yes (Show) |
GCB instance ID (32–36 char UUID) |
a1b2c3d4-e5f6-7890-abcd-ef1234567890 |
--binding_service |
Yes (Support Binding) |
Target service type |
CC |
--limit |
No |
Page size (1–2000) |
10 |
--marker |
No |
Pagination token |
<marker from previous page> |
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 <Service> <Operation> --cli-region=<region> [--key=value ...]
| Feature |
Description |
Example |
| Service name |
CC (Cloud Connect) |
CC |
| Operation name |
PascalCase |
ShowGlobalConnectionBandwidth, ListGlobalConnectionBandwidths |
| Region parameter |
--cli-region=<value> |
--cli-region=cn-north-4 |
| Simple parameter |
--key=value |
--id=xxx |
| Indexed array parameter |
--key.1=value1 |
--admin_state.1=NORMAL |
1---2name: huawei-cloud-cc-gcb-query3description: 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.4---5
6## Overview
7
8Huawei 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.
9
10This skill provides **read-only query capabilities** for four GCB-related operations:
11
12| Operation | Description |
13|-----------|-------------|
14| Show GCB | Query a single GCB by ID — response includes bound instance information |
15| List GCBs | Paginated list with rich filters (status, charge mode, binding service, instance, type, name, enterprise project) |
16| GCB Tenant Configs | Query tenant-level configuration: size ranges, quotas, supported charge modes, supported services, bind limit, SLA levels |
17| Support Binding GCBs | List GCBs eligible for binding to a specific service type (CC / GEIP / GCN / GSN), filtered by local/remote area |
18
19All operations are query-only (GET). No create, update, or delete operations are performed.
20
21## Out of Scope
22
23本 skill 不覆盖以下 GCB 查询能力:
24
25| 未覆盖能力 | 对应 API / CLI 命令 | 说明 |
26|-----------|-------------------|------|
27| 标签管理 | `ListGcbResourceTags`, `ListGcbTenantTags`, `BatchCreateGcbResourceTags` 等 | 请使用 `hcloud CC ListGcbResourceTags` 等 |
28| 线路级别 | `ListGlobalConnectionBandwidthLineLevels` | 请使用 `hcloud CC ListGlobalConnectionBandwidthLineLevels` |
29| 站点 | `ListGlobalConnectionBandwidthSites` | 请使用 `hcloud CC ListGlobalConnectionBandwidthSites` |
30| 规格代码 | `ListGlobalConnectionBandwidthSpecCodes` | 请使用 `hcloud CC ListGlobalConnectionBandwidthSpecCodes` |
31| 所有写操作 | `Create`/`Delete`/`Update`/`Associate`/`Disassociate` 等 | 本 skill 仅提供查询(GET)能力 |
32
33## Prerequisites
34
351. **hcloud CLI** installed and authenticated. See `references/cli-installation-guide.md` for details.
362. **Huawei Cloud AK/SK** configured via environment variables or CLI profile:
37 ```bash
38 # Set AK/SK via secure prompt — never hardcode secrets in scripts
39 read -rsp "Access Key ID: " HUAWEI_ACCESS_KEY; echo
40 read -rsp "Secret Access Key: " HUAWEI_SECRET_KEY; echo
41 export HUAWEI_ACCESS_KEY HUAWEI_SECRET_KEY
42 export HUAWEI_REGION="cn-north-4"
43 ```
443. **IAM permissions** — The caller needs `CC ReadOnlyAccess` or equivalent. See `references/iam-policies.md` for least-privilege policy.
454. **Domain ID** — All CC GCB APIs require `--domain_id` (account ID). Obtain it from the console: IAM → My Credentials → Account ID.
46
47## Workflow
48
49```
501. Identify the query type (single GCB / list / tenant configs / support binding)
512. Obtain the domain_id (account ID from IAM → My Credentials)
523. For single query: provide --domain_id and --id (GCB instance ID)
534. For list query: provide --domain_id, optionally add filters
545. For tenant configs: provide --domain_id only
556. For support binding: provide --domain_id and --binding_service (required)
567. Execute the hcloud command and review the output
57```
58
59## Core Commands
60
61All commands use the format:
62```bash
63hcloud CC <Operation> --cli-region=<region> --domain_id=<account_id> [additional params]
64```
65
66### 1. Query a Single Global Connection Bandwidth
67
68Query 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).
69
70```bash
71hcloud CC ShowGlobalConnectionBandwidth --cli-region=cn-north-4 --domain_id=<account_id> --id=<gcb_id>
72```
73
74| Parameter | Required | Description |
75|-----------|----------|-------------|
76| `--domain_id` | Yes | Account ID |
77| `--id` | Yes | GCB instance ID (32–36 characters) |
78
79**Key response fields:**
80
81| Field | Meaning |
82|-------|---------|
83| `id` | GCB instance ID |
84| `name` | GCB name |
85| `size` | Bandwidth size (Mbit/s) |
86| `type` | Bandwidth type: `TrsArea` (跨区), `Area` (大区), `SubArea` (区域), `Region` (城域) |
87| `charge_mode` | Charge mode: `bwd` (按带宽), `95` (传统95), `95avr` (日95) |
88| `admin_state` | Status: `NORMAL` or `FREEZED` |
89| `binding_service` | Bound service type: `CC`, `GEIP`, `GCN`, `GSN` |
90| `instances` | List of bound instances (cloud connections, central networks, etc.) |
91| `local_area` | Local access point |
92| `remote_area` | Remote access point |
93| `enterprise_project_id` | Enterprise project ID |
94
95### 2. List Global Connection Bandwidths
96
97Paginated list with rich filtering options.
98
99```bash
100hcloud CC ListGlobalConnectionBandwidths --cli-region=cn-north-4 --domain_id=<account_id> \
101 [--limit=10] [--marker=<marker>] \
102 [--admin_state.1=NORMAL] \
103 [--binding_service.1=CC] \
104 [--charge_mode.1=bwd] \
105 [--id.1=<gcb_id>] \
106 [--instance_id.1=<instance_id>] \
107 [--instance_type.1=CC] \
108 [--name.1=<name>] \
109 [--type.1=TrsArea] \
110 [--enterprise_project_id.1=<ep_id>]
111```
112
113| Parameter | Required | Description |
114|-----------|----------|-------------|
115| `--domain_id` | Yes | Account ID |
116| `--limit` | No | Records per page (1–2000) |
117| `--marker` | No | Pagination marker (use with limit) |
118| `--admin_state.[N]` | No | Filter by status: `NORMAL` or `FREEZED` |
119| `--binding_service.[N]` | No | Filter by bound service type: `CC`, `GEIP`, `GCN`, `GSN` |
120| `--charge_mode.[N]` | No | Filter by charge mode: `bwd`, `95`, `95avr` |
121| `--id.[N]` | No | Filter by GCB ID (supports multiple) |
122| `--instance_id.[N]` | No | Filter by bound instance ID |
123| `--instance_type.[N]` | No | Filter by bound instance type: `CC`, `GEIP`, `GCN`, `GSN` |
124| `--name.[N]` | No | Filter by name (supports multiple) |
125| `--type.[N]` | No | Filter by bandwidth type: `TrsArea`, `Area`, `SubArea`, `Region` |
126| `--enterprise_project_id.[N]` | No | Filter by enterprise project ID |
127
128### 3. Query GCB Tenant Configuration
129
130Query tenant-level configuration for GCB — includes size ranges per charge mode, quotas, supported services, supported bandwidth types, bind limit, SLA levels, and more.
131
132```bash
133hcloud CC ListGlobalConnectionBandwidthConfigs --cli-region=cn-north-4 --domain_id=<account_id>
134```
135
136| Parameter | Required | Description |
137|-----------|----------|-------------|
138| `--domain_id` | Yes | Account ID |
139
140**Key response fields:**
141
142| Field | Meaning |
143|-------|---------|
144| `gcbSizeRange` / `size_range` | Bandwidth size ranges per charge mode (`trf`, `bwd`, `95p`, `95`, `95avr`) |
145| `quotas` | Quotas: `gcb.size` (total bandwidth quota) and `gcb.count` (GCB count quota) |
146| `charge_mode` / `chargeMode` | Supported charge modes |
147| `services` / `serviceList` | Supported binding service types |
148| `gcb_type` / `gcbType` | Supported GCB types: `Area`, `TrsArea`, `Region`, `SubArea` |
149| `bind_limit` | Maximum number of instances that can be bound to a single GCB |
150| `sla_level` | SLA levels: `Pt`, `Au`, `Ag` |
151| `relation` | Which service types are supported per GCB type |
152| `crossborder` | Whether cross-border bandwidth is enabled |
153| `ces_enabled` | Whether CES monitoring is enabled |
154
155### 4. List GCBs Eligible for Binding
156
157List 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.
158
159```bash
160hcloud CC ListSupportBindingConnectionBandwidths --cli-region=cn-north-4 --domain_id=<account_id> \
161 --binding_service=<CC|GEIP|GCN|GSN> \
162 [--limit=10] [--marker=<marker>] \
163 [--local_area=<local_area>] \
164 [--remote_area=<remote_area>] \
165 [--enterprise_project_id.1=<ep_id>]
166```
167
168| Parameter | Required | Description |
169|-----------|----------|-------------|
170| `--domain_id` | Yes | Account ID |
171| `--binding_service` | Yes | Target service type: `CC` (cloud connection), `GEIP` (global EIP), `GCN` (central network), `GSN` (branch network) |
172| `--limit` | No | Records per page (1–2000) |
173| `--marker` | No | Pagination marker |
174| `--local_area` | No | Local access point (use with `remote_area`; both must be present or both absent) |
175| `--remote_area` | No | Remote access point (use with `local_area`) |
176| `--enterprise_project_id.[N]` | No | Filter by enterprise project ID |
177
178## Parameter Confirmation
179
180| Parameter | Required | Description | Example |
181|-----------|----------|-------------|---------|
182| `--cli-region` | Yes | Huawei Cloud region | `cn-north-4` |
183| `--domain_id` | Yes | Account ID (from IAM → My Credentials) | `0a12345678...` |
184| `--id` | Yes (Show) | GCB instance ID (32–36 char UUID) | `a1b2c3d4-e5f6-7890-abcd-ef1234567890` |
185| `--binding_service` | Yes (Support Binding) | Target service type | `CC` |
186| `--limit` | No | Page size (1–2000) | `10` |
187| `--marker` | No | Pagination token | `<marker from previous page>` |
188
189## Reference Documents
190
191- [CLI Installation Guide](references/cli-installation-guide.md) — hcloud CLI setup and authentication
192- [IAM Policies](references/iam-policies.md) — Least-privilege policy for CC GCB query operations
193- [Verification Method](references/verification-method.md) — How to verify query results
194- [Data Flow Diagram](references/dataflow-diagram.md) — Mermaid diagram of skill data flow
195- [Acceptance Criteria](references/acceptance-criteria.md) — Success criteria for each query type
196- [API Reference](references/api-reference.md) — Verified REST API endpoints
197
198## KooCLI Command Format Standard
199
200```bash
201hcloud <Service> <Operation> --cli-region=<region> [--key=value ...]
202```
203
204| Feature | Description | Example |
205|---------|-------------|---------|
206| Service name | `CC` (Cloud Connect) | `CC` |
207| Operation name | PascalCase | `ShowGlobalConnectionBandwidth`, `ListGlobalConnectionBandwidths` |
208| Region parameter | `--cli-region=<value>` | `--cli-region=cn-north-4` |
209| Simple parameter | `--key=value` | `--id=xxx` |
210| Indexed array parameter | `--key.1=value1` | `--admin_state.1=NORMAL` |