huaweicloud-devkit 0.1.21 → 0.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/.agents/plugins/marketplace.json +20 -20
  2. package/LICENSE +201 -201
  3. package/README.md +169 -169
  4. package/bin/setup.cjs +7 -7
  5. package/integrations/opencode/commands/huaweicloud-doctor.md +14 -14
  6. package/integrations/opencode/opencode.json +14 -14
  7. package/integrations/opencode/skills/huaweicloud-core/SKILL.md +30 -30
  8. package/package.json +43 -43
  9. package/plugins/huaweicloud-core/.claude-plugin/plugin.json +1 -1
  10. package/plugins/huaweicloud-core/.codex-plugin/plugin.json +1 -1
  11. package/plugins/huaweicloud-core/.cursor-plugin/plugin.json +1 -1
  12. package/plugins/huaweicloud-core/.mcp.json +13 -13
  13. package/plugins/huaweicloud-core/hooks/hooks.json +26 -26
  14. package/plugins/huaweicloud-core/hooks/huaweicloud-safety.py +88 -88
  15. package/plugins/huaweicloud-core/safety/policy.json +85 -85
  16. package/plugins/huaweicloud-core/skills/huawei-apig/SKILL.md +144 -144
  17. package/plugins/huaweicloud-core/skills/huawei-billing/SKILL.md +48 -48
  18. package/plugins/huaweicloud-core/skills/huawei-cbr/SKILL.md +50 -50
  19. package/plugins/huaweicloud-core/skills/huawei-cce/SKILL.md +101 -101
  20. package/plugins/huaweicloud-core/skills/huawei-cloud-eye/SKILL.md +73 -73
  21. package/plugins/huaweicloud-core/skills/huawei-cloud-find-skills/SKILL.md +1 -1
  22. package/plugins/huaweicloud-core/skills/huawei-cts/SKILL.md +55 -55
  23. package/plugins/huaweicloud-core/skills/huawei-dds-dcs/SKILL.md +70 -70
  24. package/plugins/huaweicloud-core/skills/huawei-dew/SKILL.md +97 -97
  25. package/plugins/huaweicloud-core/skills/huawei-dew/references/csms-usage.md +29 -29
  26. package/plugins/huaweicloud-core/skills/huawei-dew/references/kms-usage.md +23 -23
  27. package/plugins/huaweicloud-core/skills/huawei-ecs/SKILL.md +131 -131
  28. package/plugins/huaweicloud-core/skills/huawei-ecs/references/create-instance.md +98 -96
  29. package/plugins/huaweicloud-core/skills/huawei-ecs/references/evs.md +31 -31
  30. package/plugins/huaweicloud-core/skills/huawei-ecs/references/flavors.md +28 -28
  31. package/plugins/huaweicloud-core/skills/huawei-ecs/references/troubleshooting.md +52 -52
  32. package/plugins/huaweicloud-core/skills/huawei-functiongraph/SKILL.md +132 -132
  33. package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/apig-event-format.md +58 -58
  34. package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/create-function.md +71 -71
  35. package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/deploy-workflow.md +119 -119
  36. package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/triggers.md +142 -142
  37. package/plugins/huaweicloud-core/skills/huawei-gaussdb/SKILL.md +56 -56
  38. package/plugins/huaweicloud-core/skills/huawei-getting-started/SKILL.md +65 -65
  39. package/plugins/huaweicloud-core/skills/huawei-iam/SKILL.md +111 -111
  40. package/plugins/huaweicloud-core/skills/huawei-modelarts/SKILL.md +65 -65
  41. package/plugins/huaweicloud-core/skills/huawei-obs/SKILL.md +118 -118
  42. package/plugins/huaweicloud-core/skills/huawei-obs/references/bucket-lifecycle.md +26 -26
  43. package/plugins/huaweicloud-core/skills/huawei-obs/references/static-website.md +56 -56
  44. package/plugins/huaweicloud-core/skills/huawei-rds/SKILL.md +181 -181
  45. package/plugins/huaweicloud-core/skills/huawei-smn-dms/SKILL.md +69 -69
  46. package/plugins/huaweicloud-core/skills/huawei-vpc/SKILL.md +78 -78
  47. package/plugins/huaweicloud-core/skills/huawei-vpc/references/network.md +76 -76
  48. package/plugins/huaweicloud-core/skills/huawei-vpc/references/security-group.md +59 -59
  49. package/plugins/huaweicloud-core/skills/huawei-waf-aad/SKILL.md +63 -63
  50. package/plugins/huaweicloud-core/skills/huaweicloud-api-and-sdk/agents/openai.yaml +4 -4
  51. package/plugins/huaweicloud-core/skills/huaweicloud-capability-discovery/SKILL.md +47 -47
  52. package/plugins/huaweicloud-core/skills/huaweicloud-capability-discovery/agents/openai.yaml +4 -4
  53. package/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/SKILL.md +127 -127
  54. package/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/agents/openai.yaml +4 -4
  55. package/plugins/huaweicloud-core/skills/huaweicloud-core/SKILL.md +93 -93
  56. package/plugins/huaweicloud-core/skills/huaweicloud-core/agents/openai.yaml +4 -4
  57. package/plugins/huaweicloud-core/skills/huaweicloud-core/references/report-issue.md +19 -19
  58. package/plugins/huaweicloud-core/skills/huaweicloud-core/references/select.md +27 -27
  59. package/plugins/huaweicloud-core/skills/huaweicloud-safety/SKILL.md +46 -46
  60. package/plugins/huaweicloud-core/skills/huaweicloud-safety/agents/openai.yaml +4 -4
  61. package/plugins/huaweicloud-core/skills/huaweicloud-troubleshooting/SKILL.md +83 -83
  62. package/plugins/huaweicloud-core/skills/huaweicloud-troubleshooting/agents/openai.yaml +4 -4
  63. package/plugins/huaweicloud-core/src/hcloud-cli.mjs +265 -265
  64. package/plugins/huaweicloud-core/src/mcp-server.mjs +93 -93
  65. package/plugins/huaweicloud-core/src/safety-policy.mjs +289 -289
  66. package/plugins/huaweicloud-core/src/setup-cli.mjs +874 -869
  67. package/plugins/huaweicloud-core/src/tools.mjs +677 -677
@@ -1,144 +1,144 @@
1
- ---
2
- name: huawei-apig
3
- description: "Use when creating or managing API Gateway (APIG). Covers API creation, throttling, auth (IAM/APP/basic), CORS, publishing, instance management. Triggers: APIG, API gateway, throttling, publish API. NOT for: FunctionGraph triggers (use huawei-functiongraph)."
4
- version: 1
5
- ---
6
-
7
- # Huawei Cloud APIG
8
-
9
- **STOP - Do not answer from general knowledge.** Follow the procedure below.
10
-
11
- ## Overview
12
-
13
- Domain expertise for Huawei Cloud API Gateway (APIG). Covers instance lifecycle, API group/API creation, publishing, and FunctionGraph trigger integration.
14
-
15
- Always discover parameters with `hcloud APIG <Operation> --help` before executing.
16
-
17
- ## Critical Warnings
18
-
19
- | Trap | Why |
20
- |------|-----|
21
- | API group region-locked | Cannot move across regions |
22
- | Throttling per-API default | Use app-level quotas for per-user limits |
23
- | CORS must be explicit | OPTIONS preflight fails until configured |
24
- | `BASIC` spec has no public IP | Use `PROFESSIONAL` + `elb` provider for public access |
25
- | Instance creation takes 5-15min | Long-running async operation. State is **Running** (NOT "SUCCESS"). Poll with `ListInstancesV2`, wait for `status == "Running"` |
26
- | `sl_domain` is from API **Group** | NOT from Instance. Get it from `CreateApiGroupV2` or `ListApiGroupsV2` response |
27
- | API name must NOT have hyphens | `[a-zA-Z0-9_]+` only. Hyphens cause regex validation failure |
28
- | VPC params need prefix | `--vpc.name=<n>` / `--subnet.vpc_id=<id>` / `--security_group.name=<n>` with KooCLI 7.x |
29
-
30
- ## Instance Management
31
-
32
- ### Check Existing Instances
33
-
34
- ```bash
35
- hcloud APIG ListInstancesV2 --cli-region=<r>
36
- ```
37
-
38
- ### Create Instance
39
-
40
- ```bash
41
- hcloud APIG CreateInstanceV2 --help
42
- ```
43
-
44
- Key gotchas when creating:
45
-
46
- | Param | Note |
47
- |-------|------|
48
- | `--spec_id` | `BASIC` (no public access), `PROFESSIONAL` (requires `--loadbalancer_provider`) |
49
- | `--loadbalancer_provider` | `elb` for public access (supports `AddIngressEipV2`), `lvs` for internal only (supports `AddEipV2`) |
50
- | `--enterprise_project_id` | **Required** for enterprise accounts. Use `"0"` for default project |
51
- | `--available_zone_ids` | Use AZ code like `ap-southeast-3a`, NOT UUID from `ListAvailableZonesV2` |
52
- | `--vpc_id`, `--subnet_id` | Must exist in the target region |
53
- | `--security_group_id` | **Required**. Create a security group first via `VPC CreateSecurityGroup` (VPC v3 API — no `vpc_id` param needed) |
54
-
55
- ### Add Public Access (ELB Provider Only)
56
-
57
- ```bash
58
- hcloud APIG AddIngressEipV2 \
59
- --instance_id=<id> \
60
- --bandwidth_charging_mode=bandwidth \
61
- --bandwidth_size=5
62
- ```
63
-
64
- > `AddIngressEipV2` only works with `elb` provider. `AddEipV2` requires `lvs` provider. Bandwidth minimum is 5 Mbps.
65
-
66
- ## API Group
67
-
68
- ```bash
69
- hcloud APIG CreateApiGroupV2 --instance_id=<id> --name=<n>
70
- ```
71
-
72
- | Param | Note |
73
- |-------|------|
74
- | `--name` | Group name (required) |
75
- | `--remark` | Description (optional) |
76
-
77
- ## API Management
78
-
79
- ```bash
80
- hcloud APIG CreateApiV2 --help
81
- ```
82
-
83
- ## Publishing
84
-
85
- ```bash
86
- hcloud APIG BatchPublishOrOfflineApiV2 \
87
- --instance_id=<id> \
88
- --action=online \
89
- --env_id=<env-id> \
90
- --apis.1=<api-id>
91
- ```
92
-
93
- > The operation is `BatchPublishOrOfflineApiV2`, NOT `PublishApiV2`. The parameter is `apis.1` (1-based array), NOT `api_ids`. For multiple APIs, use `--apis.1`, `--apis.2`, etc.
94
-
95
- ## Throttling
96
-
97
- ```bash
98
- hcloud APIG CreateThrottlingPolicyV2 --name=<n> --api_call_limits=1000
99
- ```
100
-
101
- ## Common Workflows
102
-
103
- | Task | Operation |
104
- |------|-----------|
105
- | List instances | `ListInstancesV2` |
106
- | Create instance | `CreateInstanceV2` |
107
- | Delete instance | `DeleteInstancesV2` |
108
- | Add public EIP | `AddIngressEipV2` |
109
- | Create API group | `CreateApiGroupV2` |
110
- | Create API | `CreateApiV2` |
111
- | Update API | `UpdateApiV2` — change auth mode, path, etc. |
112
- | List APIs | `ListApisV2` |
113
- | Publish | `BatchPublishOrOfflineApiV2` |
114
- | List APIs | `ListApisV2` |
115
-
116
- ## FunctionGraph Integration
117
-
118
- To expose a FunctionGraph function via HTTP, you need the complete chain:
119
-
120
- ```
121
- APIG Instance → API Group → DEDICATEDGATEWAY Trigger → Publish
122
- ```
123
-
124
- After the trigger is created on FunctionGraph side, publish the API in APIG:
125
-
126
- ```bash
127
- hcloud APIG BatchPublishOrOfflineApiV2 \
128
- --instance_id=<apig-instance-id> \
129
- --action=online \
130
- --env_id=<env-id> \
131
- --apis.1=<api-id-from-trigger>
132
- ```
133
-
134
- See `huawei-functiongraph` skill → `references/deploy-workflow.md` for the full end-to-end workflow.
135
-
136
- ## Cross-Skill References
137
-
138
- - **VPC setup**: See `huawei-vpc` for VPC, subnet, security group creation
139
- - **EIP setup**: See `huawei-vpc` for EIP creation and binding
140
- - **FunctionGraph**: See `huawei-functiongraph` for DEDICATEDGATEWAY trigger creation
141
-
142
- ## References
143
-
144
- - APIG Docs: https://support.huaweicloud.com/apig/
1
+ ---
2
+ name: huawei-apig
3
+ description: "Use when creating or managing API Gateway (APIG). Covers API creation, throttling, auth (IAM/APP/basic), CORS, publishing, instance management. Triggers: APIG, API gateway, throttling, publish API. NOT for: FunctionGraph triggers (use huawei-functiongraph)."
4
+ version: 1
5
+ ---
6
+
7
+ # Huawei Cloud APIG
8
+
9
+ **STOP - Do not answer from general knowledge.** Follow the procedure below.
10
+
11
+ ## Overview
12
+
13
+ Domain expertise for Huawei Cloud API Gateway (APIG). Covers instance lifecycle, API group/API creation, publishing, and FunctionGraph trigger integration.
14
+
15
+ Always discover parameters with `hcloud APIG <Operation> --help` before executing.
16
+
17
+ ## Critical Warnings
18
+
19
+ | Trap | Why |
20
+ |------|-----|
21
+ | API group region-locked | Cannot move across regions |
22
+ | Throttling per-API default | Use app-level quotas for per-user limits |
23
+ | CORS must be explicit | OPTIONS preflight fails until configured |
24
+ | `BASIC` spec has no public IP | Use `PROFESSIONAL` + `elb` provider for public access |
25
+ | Instance creation takes 5-15min | Long-running async operation. State is **Running** (NOT "SUCCESS"). Poll with `ListInstancesV2`, wait for `status == "Running"` |
26
+ | `sl_domain` is from API **Group** | NOT from Instance. Get it from `CreateApiGroupV2` or `ListApiGroupsV2` response |
27
+ | API name must NOT have hyphens | `[a-zA-Z0-9_]+` only. Hyphens cause regex validation failure |
28
+ | VPC params need prefix | `--vpc.name=<n>` / `--subnet.vpc_id=<id>` / `--security_group.name=<n>` with KooCLI 7.x |
29
+
30
+ ## Instance Management
31
+
32
+ ### Check Existing Instances
33
+
34
+ ```bash
35
+ hcloud APIG ListInstancesV2 --cli-region=<r>
36
+ ```
37
+
38
+ ### Create Instance
39
+
40
+ ```bash
41
+ hcloud APIG CreateInstanceV2 --help
42
+ ```
43
+
44
+ Key gotchas when creating:
45
+
46
+ | Param | Note |
47
+ |-------|------|
48
+ | `--spec_id` | `BASIC` (no public access), `PROFESSIONAL` (requires `--loadbalancer_provider`) |
49
+ | `--loadbalancer_provider` | `elb` for public access (supports `AddIngressEipV2`), `lvs` for internal only (supports `AddEipV2`) |
50
+ | `--enterprise_project_id` | **Required** for enterprise accounts. Use `"0"` for default project |
51
+ | `--available_zone_ids` | Use AZ code like `ap-southeast-3a`, NOT UUID from `ListAvailableZonesV2` |
52
+ | `--vpc_id`, `--subnet_id` | Must exist in the target region |
53
+ | `--security_group_id` | **Required**. Create a security group first via `VPC CreateSecurityGroup` (VPC v3 API — no `vpc_id` param needed) |
54
+
55
+ ### Add Public Access (ELB Provider Only)
56
+
57
+ ```bash
58
+ hcloud APIG AddIngressEipV2 \
59
+ --instance_id=<id> \
60
+ --bandwidth_charging_mode=bandwidth \
61
+ --bandwidth_size=5
62
+ ```
63
+
64
+ > `AddIngressEipV2` only works with `elb` provider. `AddEipV2` requires `lvs` provider. Bandwidth minimum is 5 Mbps.
65
+
66
+ ## API Group
67
+
68
+ ```bash
69
+ hcloud APIG CreateApiGroupV2 --instance_id=<id> --name=<n>
70
+ ```
71
+
72
+ | Param | Note |
73
+ |-------|------|
74
+ | `--name` | Group name (required) |
75
+ | `--remark` | Description (optional) |
76
+
77
+ ## API Management
78
+
79
+ ```bash
80
+ hcloud APIG CreateApiV2 --help
81
+ ```
82
+
83
+ ## Publishing
84
+
85
+ ```bash
86
+ hcloud APIG BatchPublishOrOfflineApiV2 \
87
+ --instance_id=<id> \
88
+ --action=online \
89
+ --env_id=<env-id> \
90
+ --apis.1=<api-id>
91
+ ```
92
+
93
+ > The operation is `BatchPublishOrOfflineApiV2`, NOT `PublishApiV2`. The parameter is `apis.1` (1-based array), NOT `api_ids`. For multiple APIs, use `--apis.1`, `--apis.2`, etc.
94
+
95
+ ## Throttling
96
+
97
+ ```bash
98
+ hcloud APIG CreateThrottlingPolicyV2 --name=<n> --api_call_limits=1000
99
+ ```
100
+
101
+ ## Common Workflows
102
+
103
+ | Task | Operation |
104
+ |------|-----------|
105
+ | List instances | `ListInstancesV2` |
106
+ | Create instance | `CreateInstanceV2` |
107
+ | Delete instance | `DeleteInstancesV2` |
108
+ | Add public EIP | `AddIngressEipV2` |
109
+ | Create API group | `CreateApiGroupV2` |
110
+ | Create API | `CreateApiV2` |
111
+ | Update API | `UpdateApiV2` — change auth mode, path, etc. |
112
+ | List APIs | `ListApisV2` |
113
+ | Publish | `BatchPublishOrOfflineApiV2` |
114
+ | List APIs | `ListApisV2` |
115
+
116
+ ## FunctionGraph Integration
117
+
118
+ To expose a FunctionGraph function via HTTP, you need the complete chain:
119
+
120
+ ```
121
+ APIG Instance → API Group → DEDICATEDGATEWAY Trigger → Publish
122
+ ```
123
+
124
+ After the trigger is created on FunctionGraph side, publish the API in APIG:
125
+
126
+ ```bash
127
+ hcloud APIG BatchPublishOrOfflineApiV2 \
128
+ --instance_id=<apig-instance-id> \
129
+ --action=online \
130
+ --env_id=<env-id> \
131
+ --apis.1=<api-id-from-trigger>
132
+ ```
133
+
134
+ See `huawei-functiongraph` skill → `references/deploy-workflow.md` for the full end-to-end workflow.
135
+
136
+ ## Cross-Skill References
137
+
138
+ - **VPC setup**: See `huawei-vpc` for VPC, subnet, security group creation
139
+ - **EIP setup**: See `huawei-vpc` for EIP creation and binding
140
+ - **FunctionGraph**: See `huawei-functiongraph` for DEDICATEDGATEWAY trigger creation
141
+
142
+ ## References
143
+
144
+ - APIG Docs: https://support.huaweicloud.com/apig/
@@ -1,48 +1,48 @@
1
- ---
2
- name: huawei-billing
3
- description: "Use when querying bills, costs, resource usage, or billing details on Huawei Cloud (BSS). Triggers: billing, BSS, cost, bill, expense, usage report, resource usage, budget. NOT for: resource management (use huawei-ecs etc.), creating resources."
4
- version: 1
5
- ---
6
-
7
- # Huawei Cloud Billing (BSS)
8
-
9
- **STOP - Do not answer from general knowledge.** Follow the procedure below.
10
-
11
- Always run `hcloud BSS <Operation> --help` before constructing commands to discover exact parameter names and requirements.
12
-
13
- ## Overview
14
-
15
- Domain expertise for billing queries (BSS). Covers cost tracking, bill details, and budget management. Read-only — no resource modifications.
16
-
17
- ## Critical Warnings
18
-
19
- | Trap | Why |
20
- |------|-----|
21
- | Bills delayed ~24h | Yesterday's costs may not appear until the next day |
22
- | BSS Admin role needed | IAM user must have BSS Administrator or Finance role |
23
- | Currency conversion varies | Cross-region costs use daily exchange rates |
24
-
25
- ## Common Workflows
26
-
27
- | Task | Operation |
28
- |------|-----------|
29
- | List costs | `ListCosts --cli-region=<r> --project_id=<p>` |
30
- | List customer bills | `ListCustomerBills --cli-region=<r> --project_id=<p>` |
31
- | List resource usage | `ListResourceUsage --cli-region=<r> --project_id=<p>` |
32
- | List sub-customers | `ListConsumeSubCustomers --cli-region=<r> --project_id=<p>` |
33
- | Show account balance | `ShowCustomerAccountBalances --cli-region=<r> --project_id=<p>` |
34
- | List conversions | `ListConversions --cli-region=<r> --project_id=<p>` |
35
-
36
- Discover exact parameters with `--help` before executing any command. All BSS operations are read-only.
37
-
38
- ## Troubleshooting
39
-
40
- | Error | Fix |
41
- |-------|-----|
42
- | Access denied | User needs BSS Administrator or Finance role |
43
- | No data returned | Check time range (bills have ~24h delay). Verify project_id |
44
- | Enterprise account restrictions | Some APIs require enterprise real-name authentication |
45
-
46
- ## Cross-Skill References
47
-
48
- - **Resource lifecycle**: See `huawei-ecs`, `huawei-obs` for creating billable resources
1
+ ---
2
+ name: huawei-billing
3
+ description: "Use when querying bills, costs, resource usage, or billing details on Huawei Cloud (BSS). Triggers: billing, BSS, cost, bill, expense, usage report, resource usage, budget. NOT for: resource management (use huawei-ecs etc.), creating resources."
4
+ version: 1
5
+ ---
6
+
7
+ # Huawei Cloud Billing (BSS)
8
+
9
+ **STOP - Do not answer from general knowledge.** Follow the procedure below.
10
+
11
+ Always run `hcloud BSS <Operation> --help` before constructing commands to discover exact parameter names and requirements.
12
+
13
+ ## Overview
14
+
15
+ Domain expertise for billing queries (BSS). Covers cost tracking, bill details, and budget management. Read-only — no resource modifications.
16
+
17
+ ## Critical Warnings
18
+
19
+ | Trap | Why |
20
+ |------|-----|
21
+ | Bills delayed ~24h | Yesterday's costs may not appear until the next day |
22
+ | BSS Admin role needed | IAM user must have BSS Administrator or Finance role |
23
+ | Currency conversion varies | Cross-region costs use daily exchange rates |
24
+
25
+ ## Common Workflows
26
+
27
+ | Task | Operation |
28
+ |------|-----------|
29
+ | List costs | `ListCosts --cli-region=<r> --project_id=<p>` |
30
+ | List customer bills | `ListCustomerBills --cli-region=<r> --project_id=<p>` |
31
+ | List resource usage | `ListResourceUsage --cli-region=<r> --project_id=<p>` |
32
+ | List sub-customers | `ListConsumeSubCustomers --cli-region=<r> --project_id=<p>` |
33
+ | Show account balance | `ShowCustomerAccountBalances --cli-region=<r> --project_id=<p>` |
34
+ | List conversions | `ListConversions --cli-region=<r> --project_id=<p>` |
35
+
36
+ Discover exact parameters with `--help` before executing any command. All BSS operations are read-only.
37
+
38
+ ## Troubleshooting
39
+
40
+ | Error | Fix |
41
+ |-------|-----|
42
+ | Access denied | User needs BSS Administrator or Finance role |
43
+ | No data returned | Check time range (bills have ~24h delay). Verify project_id |
44
+ | Enterprise account restrictions | Some APIs require enterprise real-name authentication |
45
+
46
+ ## Cross-Skill References
47
+
48
+ - **Resource lifecycle**: See `huawei-ecs`, `huawei-obs` for creating billable resources
@@ -1,50 +1,50 @@
1
- ---
2
- name: huawei-cbr
3
- description: "Use when creating or managing Cloud Backup and Recovery (CBR) vaults, backups, and restore operations on Huawei Cloud. Triggers: CBR, backup, restore, vault, snapshot, disaster recovery. NOT for: OBS object versioning (use huawei-obs), RDS automated backups (use huawei-rds)."
4
- version: 1
5
- ---
6
-
7
- # Huawei Cloud CBR
8
-
9
- **STOP - Do not answer from general knowledge.** Follow the procedure below.
10
-
11
- Always run `hcloud CBR <Operation> --help` before constructing commands to discover exact parameter names and requirements.
12
-
13
- ## Overview
14
-
15
- Domain expertise for Cloud Backup and Recovery. Covers vaults, backups, restore operations, policies, and cross-region replication.
16
-
17
- ## Critical Warnings
18
-
19
- | Trap | Why |
20
- |------|-----|
21
- | Vault binds single resource type | Server vault != disk vault != file system vault |
22
- | Restore needs instance stop | Most VM restore requires the target instance to be stopped first |
23
- | Backup storage incurs charges | Retention policies affect storage costs |
24
-
25
- ## Common Workflows
26
-
27
- | Task | Operation |
28
- |------|-----------|
29
- | List vaults | `ListVaults --cli-region=<r> --project_id=<p>` |
30
- | Create vault | `CreateVault --cli-region=<r> --project_id=<p>` |
31
- | Create backup policy | `CreatePolicy --cli-region=<r> --project_id=<p>` |
32
- | Create checkpoint | `CreateCheckpoint --cli-region=<r> --project_id=<p>` |
33
- | Add resource to vault | `AddVaultResource --cli-region=<r> --project_id=<p>` |
34
- | Batch update vault | `BatchUpdateVault --cli-region=<r> --project_id=<p>` |
35
- | Create organization policy | `CreateOrganizationPolicy --cli-region=<r> --project_id=<p>` |
36
-
37
- Discover exact parameters with `--help` before executing any command.
38
-
39
- ## Troubleshooting
40
-
41
- | Error | Fix |
42
- |-------|-----|
43
- | Backup creation fails | Check instance is running and agent is online |
44
- | Restore fails | Ensure target instance is stopped before restore |
45
- | Vault full | Increase vault capacity or adjust retention policy |
46
-
47
- ## Cross-Skill References
48
-
49
- - **ECS**: See `huawei-ecs` for backing up instances
50
- - **EVS**: See `huawei-ecs` references/evs.md for disk backup
1
+ ---
2
+ name: huawei-cbr
3
+ description: "Use when creating or managing Cloud Backup and Recovery (CBR) vaults, backups, and restore operations on Huawei Cloud. Triggers: CBR, backup, restore, vault, snapshot, disaster recovery. NOT for: OBS object versioning (use huawei-obs), RDS automated backups (use huawei-rds)."
4
+ version: 1
5
+ ---
6
+
7
+ # Huawei Cloud CBR
8
+
9
+ **STOP - Do not answer from general knowledge.** Follow the procedure below.
10
+
11
+ Always run `hcloud CBR <Operation> --help` before constructing commands to discover exact parameter names and requirements.
12
+
13
+ ## Overview
14
+
15
+ Domain expertise for Cloud Backup and Recovery. Covers vaults, backups, restore operations, policies, and cross-region replication.
16
+
17
+ ## Critical Warnings
18
+
19
+ | Trap | Why |
20
+ |------|-----|
21
+ | Vault binds single resource type | Server vault != disk vault != file system vault |
22
+ | Restore needs instance stop | Most VM restore requires the target instance to be stopped first |
23
+ | Backup storage incurs charges | Retention policies affect storage costs |
24
+
25
+ ## Common Workflows
26
+
27
+ | Task | Operation |
28
+ |------|-----------|
29
+ | List vaults | `ListVaults --cli-region=<r> --project_id=<p>` |
30
+ | Create vault | `CreateVault --cli-region=<r> --project_id=<p>` |
31
+ | Create backup policy | `CreatePolicy --cli-region=<r> --project_id=<p>` |
32
+ | Create checkpoint | `CreateCheckpoint --cli-region=<r> --project_id=<p>` |
33
+ | Add resource to vault | `AddVaultResource --cli-region=<r> --project_id=<p>` |
34
+ | Batch update vault | `BatchUpdateVault --cli-region=<r> --project_id=<p>` |
35
+ | Create organization policy | `CreateOrganizationPolicy --cli-region=<r> --project_id=<p>` |
36
+
37
+ Discover exact parameters with `--help` before executing any command.
38
+
39
+ ## Troubleshooting
40
+
41
+ | Error | Fix |
42
+ |-------|-----|
43
+ | Backup creation fails | Check instance is running and agent is online |
44
+ | Restore fails | Ensure target instance is stopped before restore |
45
+ | Vault full | Increase vault capacity or adjust retention policy |
46
+
47
+ ## Cross-Skill References
48
+
49
+ - **ECS**: See `huawei-ecs` for backing up instances
50
+ - **EVS**: See `huawei-ecs` references/evs.md for disk backup