huaweicloud-devkit 0.1.21-dev.0 → 0.1.21
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.
- package/.agents/plugins/marketplace.json +20 -20
- package/LICENSE +201 -201
- package/README.md +169 -148
- package/bin/setup.cjs +7 -7
- package/integrations/opencode/commands/huaweicloud-doctor.md +14 -14
- package/integrations/opencode/opencode.json +14 -14
- package/integrations/opencode/skills/huaweicloud-core/SKILL.md +30 -30
- package/package.json +43 -43
- package/plugins/huaweicloud-core/.claude-plugin/plugin.json +1 -1
- package/plugins/huaweicloud-core/.codex-plugin/plugin.json +1 -1
- package/plugins/huaweicloud-core/.cursor-plugin/plugin.json +1 -1
- package/plugins/huaweicloud-core/.mcp.json +13 -13
- package/plugins/huaweicloud-core/hooks/hooks.json +26 -26
- package/plugins/huaweicloud-core/hooks/huaweicloud-safety.py +88 -88
- package/plugins/huaweicloud-core/safety/policy.json +85 -85
- package/plugins/huaweicloud-core/skills/huawei-apig/SKILL.md +144 -144
- package/plugins/huaweicloud-core/skills/huawei-billing/SKILL.md +48 -48
- package/plugins/huaweicloud-core/skills/huawei-cbr/SKILL.md +50 -50
- package/plugins/huaweicloud-core/skills/huawei-cce/SKILL.md +101 -101
- package/plugins/huaweicloud-core/skills/huawei-cloud-eye/SKILL.md +73 -73
- package/plugins/huaweicloud-core/skills/huawei-cts/SKILL.md +55 -55
- package/plugins/huaweicloud-core/skills/huawei-dds-dcs/SKILL.md +70 -70
- package/plugins/huaweicloud-core/skills/huawei-dew/SKILL.md +97 -97
- package/plugins/huaweicloud-core/skills/huawei-dew/references/csms-usage.md +29 -29
- package/plugins/huaweicloud-core/skills/huawei-dew/references/kms-usage.md +23 -23
- package/plugins/huaweicloud-core/skills/huawei-ecs/SKILL.md +131 -131
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/create-instance.md +96 -96
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/evs.md +31 -31
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/flavors.md +28 -28
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/troubleshooting.md +52 -52
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/SKILL.md +132 -132
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/apig-event-format.md +58 -58
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/create-function.md +71 -71
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/deploy-workflow.md +119 -119
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/triggers.md +142 -142
- package/plugins/huaweicloud-core/skills/huawei-gaussdb/SKILL.md +56 -56
- package/plugins/huaweicloud-core/skills/huawei-getting-started/SKILL.md +65 -65
- package/plugins/huaweicloud-core/skills/huawei-iam/SKILL.md +111 -111
- package/plugins/huaweicloud-core/skills/huawei-modelarts/SKILL.md +65 -65
- package/plugins/huaweicloud-core/skills/huawei-obs/SKILL.md +118 -118
- package/plugins/huaweicloud-core/skills/huawei-obs/references/bucket-lifecycle.md +26 -26
- package/plugins/huaweicloud-core/skills/huawei-obs/references/static-website.md +56 -56
- package/plugins/huaweicloud-core/skills/huawei-rds/SKILL.md +181 -181
- package/plugins/huaweicloud-core/skills/huawei-smn-dms/SKILL.md +69 -69
- package/plugins/huaweicloud-core/skills/huawei-vpc/SKILL.md +78 -78
- package/plugins/huaweicloud-core/skills/huawei-vpc/references/network.md +76 -76
- package/plugins/huaweicloud-core/skills/huawei-vpc/references/security-group.md +59 -59
- package/plugins/huaweicloud-core/skills/huawei-waf-aad/SKILL.md +63 -63
- package/plugins/huaweicloud-core/skills/huaweicloud-api-and-sdk/agents/openai.yaml +4 -4
- package/plugins/huaweicloud-core/skills/huaweicloud-capability-discovery/SKILL.md +47 -47
- package/plugins/huaweicloud-core/skills/huaweicloud-capability-discovery/agents/openai.yaml +4 -4
- package/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/SKILL.md +127 -127
- package/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/agents/openai.yaml +4 -4
- package/plugins/huaweicloud-core/skills/huaweicloud-core/SKILL.md +93 -93
- package/plugins/huaweicloud-core/skills/huaweicloud-core/agents/openai.yaml +4 -4
- package/plugins/huaweicloud-core/skills/huaweicloud-core/references/report-issue.md +19 -19
- package/plugins/huaweicloud-core/skills/huaweicloud-core/references/select.md +27 -27
- package/plugins/huaweicloud-core/skills/huaweicloud-safety/SKILL.md +46 -46
- package/plugins/huaweicloud-core/skills/huaweicloud-safety/agents/openai.yaml +4 -4
- package/plugins/huaweicloud-core/skills/huaweicloud-troubleshooting/SKILL.md +83 -83
- package/plugins/huaweicloud-core/skills/huaweicloud-troubleshooting/agents/openai.yaml +4 -4
- package/plugins/huaweicloud-core/src/hcloud-cli.mjs +265 -265
- package/plugins/huaweicloud-core/src/mcp-server.mjs +93 -93
- package/plugins/huaweicloud-core/src/safety-policy.mjs +289 -289
- package/plugins/huaweicloud-core/src/setup-cli.mjs +869 -672
- package/plugins/huaweicloud-core/src/tools.mjs +677 -672
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: huawei-cce
|
|
3
|
-
description: "Use when creating or managing CCE Kubernetes clusters. Covers cluster creation, node pools, SWR registry, autoscaling. Triggers: CCE, Kubernetes, K8s, cluster, node pool, container, SWR. NOT for: serverless functions (use huawei-functiongraph), serverless containers (use huawei-cce for CCI redirect)."
|
|
4
|
-
version: 1
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Huawei Cloud CCE
|
|
8
|
-
|
|
9
|
-
**STOP - Do not answer from general knowledge.** Follow the procedure below.
|
|
10
|
-
|
|
11
|
-
Always run `hcloud <Service> <Operation> --help` before constructing commands to discover exact parameter names and requirements.
|
|
12
|
-
|
|
13
|
-
## Overview
|
|
14
|
-
|
|
15
|
-
Domain expertise for CCE (Cloud Container Engine) and SWR (Software Repository for Container). CCE uses two hcloud services: `CCE` for clusters and `SWR` for container images.
|
|
16
|
-
|
|
17
|
-
## Critical Warnings
|
|
18
|
-
|
|
19
|
-
| Trap | Why |
|
|
20
|
-
|------|-----|
|
|
21
|
-
| **KooCLI 7.x: CreateCluster/CreateNodePool broken** | OPENAPI_ERROR in KooCLI 7.2.12. Use `CreateAutopilotCluster` for serverless, or Python SDK for VM clusters |
|
|
22
|
-
| Cluster type immutable | Cannot change hybrid/traditional after creation |
|
|
23
|
-
| Master managed by Huawei | No SSH to master. Use kubectl or kubectl-cce |
|
|
24
|
-
| Network model affects pod IP | VPC network gives pods VPC IPs |
|
|
25
|
-
| Addon ops use UID not name | `ShowAddonInstance` returns `metadata.uid` for install/uninstall/update |
|
|
26
|
-
| SWR enterprise instance costs | `postPaid` billing. One-time activation at console required |
|
|
27
|
-
|
|
28
|
-
## Common Workflows
|
|
29
|
-
|
|
30
|
-
| Task | Operation | Service |
|
|
31
|
-
|------|-----------|---------|
|
|
32
|
-
| List clusters | `ListClusters` | CCE |
|
|
33
|
-
| Create cluster | `CreateCluster` | CCE |
|
|
34
|
-
| Delete cluster | `DeleteCluster` | CCE |
|
|
35
|
-
| Hibernate cluster | `HibernateCluster` | CCE |
|
|
36
|
-
| List node pools | `ListNodePools` | CCE |
|
|
37
|
-
| Create node pool | `CreateNodePool` | CCE |
|
|
38
|
-
| List nodes | `ListNodes` | CCE |
|
|
39
|
-
| Get kubeconfig | `CreateKubernetesClusterCert` | CCE |
|
|
40
|
-
| List addons | `ListAddonInstances` | CCE |
|
|
41
|
-
| Docker login (SWR) | `CreateAuthorizationToken` | SWR |
|
|
42
|
-
| Create SWR org | `CreateNamespace` | SWR |
|
|
43
|
-
| Create SWR repo | `CreateRepo` | SWR |
|
|
44
|
-
| List repos | `ListReposDetails` | SWR |
|
|
45
|
-
|
|
46
|
-
## SWR Image Push Workflow
|
|
47
|
-
|
|
48
|
-
**Prerequisite**: User/agency must have `sts::createServiceBearerToken` IAM permission. Without it, `CreateAuthorizationToken` returns `SVCSTG.SWR.4030170 Insufficient permissions`. Grant via IAM console or attach SWR Admin role.
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
# 1. Docker login to SWR
|
|
52
|
-
hcloud SWR CreateAuthorizationToken --help
|
|
53
|
-
docker login -u <region>@<AK> -p <token> swr.<region>.myhuaweicloud.com
|
|
54
|
-
|
|
55
|
-
# 2. Tag and push
|
|
56
|
-
docker tag my-app:latest swr.<region>.myhuaweicloud.com/<org>/my-app:latest
|
|
57
|
-
docker push swr.<region>.myhuaweicloud.com/<org>/my-app:latest
|
|
58
|
-
|
|
59
|
-
# 3. Verify
|
|
60
|
-
hcloud SWR ListReposDetails --cli-region=<r>
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
> SWR Auth token valid 12h. For CCE node pull access, create long-term credential with `CreateSecret` (valid 1 year).
|
|
64
|
-
|
|
65
|
-
## Serverless Containers (CCI)
|
|
66
|
-
|
|
67
|
-
For serverless containers without managing clusters, use CCI (Cloud Container Instance):
|
|
68
|
-
|
|
69
|
-
- No cluster needed — just namespace + network + workload
|
|
70
|
-
- Key ops: `CCI createCoreV1Namespace`, `CCI createNetworkingCciIoV1beta1NamespacedNetwork`, `CCI createAppsV1NamespacedDeployment`
|
|
71
|
-
- Namespace MUST include `namespace-kubernetes-io/flavor` annotation
|
|
72
|
-
- `limits == requests` strictly enforced (no overcommit)
|
|
73
|
-
|
|
74
|
-
See `hcloud CCI --help` for full operation list.
|
|
75
|
-
|
|
76
|
-
## Troubleshooting
|
|
77
|
-
|
|
78
|
-
| Error | Fix |
|
|
79
|
-
|-------|-----|
|
|
80
|
-
| kubectl connection refused | Verify cluster Running; use `kubectl cce` (no EIP needed) |
|
|
81
|
-
| Node pool creation failed | Check VPC/subnet availability and flavor capacity |
|
|
82
|
-
| Docker push 401 | Re-run `CreateAuthorizationToken` (token expired) |
|
|
83
|
-
| SVCSTG.SWR.4030170 | Missing `sts::createServiceBearerToken` IAM permission. Grant SWR Admin role or add policy |
|
|
84
|
-
| Addon install fails | Use `metadata.uid` from `ShowAddonInstance`, not name |
|
|
85
|
-
| `kubectl cce` not found | Install plugin: `kubectl cce` uses AK/SK, no kubeconfig required |
|
|
86
|
-
|
|
87
|
-
## Security Considerations
|
|
88
|
-
|
|
89
|
-
- MUST restrict kubeconfig file permissions (0600)
|
|
90
|
-
- MUST use IAM RBAC for cluster access, not cluster-admin
|
|
91
|
-
- MUST store container images in private SWR repositories
|
|
92
|
-
|
|
93
|
-
## Cross-Skill References
|
|
94
|
-
|
|
95
|
-
- **VPC/Subnet**: See `huawei-vpc` for network prerequisites
|
|
96
|
-
- **EIP**: See `huawei-vpc` for cluster public access
|
|
97
|
-
|
|
98
|
-
## References
|
|
99
|
-
|
|
100
|
-
- CCE Docs: https://support.huaweicloud.com/cce/
|
|
101
|
-
- SWR Docs: https://support.huaweicloud.com/swr/
|
|
1
|
+
---
|
|
2
|
+
name: huawei-cce
|
|
3
|
+
description: "Use when creating or managing CCE Kubernetes clusters. Covers cluster creation, node pools, SWR registry, autoscaling. Triggers: CCE, Kubernetes, K8s, cluster, node pool, container, SWR. NOT for: serverless functions (use huawei-functiongraph), serverless containers (use huawei-cce for CCI redirect)."
|
|
4
|
+
version: 1
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Huawei Cloud CCE
|
|
8
|
+
|
|
9
|
+
**STOP - Do not answer from general knowledge.** Follow the procedure below.
|
|
10
|
+
|
|
11
|
+
Always run `hcloud <Service> <Operation> --help` before constructing commands to discover exact parameter names and requirements.
|
|
12
|
+
|
|
13
|
+
## Overview
|
|
14
|
+
|
|
15
|
+
Domain expertise for CCE (Cloud Container Engine) and SWR (Software Repository for Container). CCE uses two hcloud services: `CCE` for clusters and `SWR` for container images.
|
|
16
|
+
|
|
17
|
+
## Critical Warnings
|
|
18
|
+
|
|
19
|
+
| Trap | Why |
|
|
20
|
+
|------|-----|
|
|
21
|
+
| **KooCLI 7.x: CreateCluster/CreateNodePool broken** | OPENAPI_ERROR in KooCLI 7.2.12. Use `CreateAutopilotCluster` for serverless, or Python SDK for VM clusters |
|
|
22
|
+
| Cluster type immutable | Cannot change hybrid/traditional after creation |
|
|
23
|
+
| Master managed by Huawei | No SSH to master. Use kubectl or kubectl-cce |
|
|
24
|
+
| Network model affects pod IP | VPC network gives pods VPC IPs |
|
|
25
|
+
| Addon ops use UID not name | `ShowAddonInstance` returns `metadata.uid` for install/uninstall/update |
|
|
26
|
+
| SWR enterprise instance costs | `postPaid` billing. One-time activation at console required |
|
|
27
|
+
|
|
28
|
+
## Common Workflows
|
|
29
|
+
|
|
30
|
+
| Task | Operation | Service |
|
|
31
|
+
|------|-----------|---------|
|
|
32
|
+
| List clusters | `ListClusters` | CCE |
|
|
33
|
+
| Create cluster | `CreateCluster` | CCE |
|
|
34
|
+
| Delete cluster | `DeleteCluster` | CCE |
|
|
35
|
+
| Hibernate cluster | `HibernateCluster` | CCE |
|
|
36
|
+
| List node pools | `ListNodePools` | CCE |
|
|
37
|
+
| Create node pool | `CreateNodePool` | CCE |
|
|
38
|
+
| List nodes | `ListNodes` | CCE |
|
|
39
|
+
| Get kubeconfig | `CreateKubernetesClusterCert` | CCE |
|
|
40
|
+
| List addons | `ListAddonInstances` | CCE |
|
|
41
|
+
| Docker login (SWR) | `CreateAuthorizationToken` | SWR |
|
|
42
|
+
| Create SWR org | `CreateNamespace` | SWR |
|
|
43
|
+
| Create SWR repo | `CreateRepo` | SWR |
|
|
44
|
+
| List repos | `ListReposDetails` | SWR |
|
|
45
|
+
|
|
46
|
+
## SWR Image Push Workflow
|
|
47
|
+
|
|
48
|
+
**Prerequisite**: User/agency must have `sts::createServiceBearerToken` IAM permission. Without it, `CreateAuthorizationToken` returns `SVCSTG.SWR.4030170 Insufficient permissions`. Grant via IAM console or attach SWR Admin role.
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# 1. Docker login to SWR
|
|
52
|
+
hcloud SWR CreateAuthorizationToken --help
|
|
53
|
+
docker login -u <region>@<AK> -p <token> swr.<region>.myhuaweicloud.com
|
|
54
|
+
|
|
55
|
+
# 2. Tag and push
|
|
56
|
+
docker tag my-app:latest swr.<region>.myhuaweicloud.com/<org>/my-app:latest
|
|
57
|
+
docker push swr.<region>.myhuaweicloud.com/<org>/my-app:latest
|
|
58
|
+
|
|
59
|
+
# 3. Verify
|
|
60
|
+
hcloud SWR ListReposDetails --cli-region=<r>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
> SWR Auth token valid 12h. For CCE node pull access, create long-term credential with `CreateSecret` (valid 1 year).
|
|
64
|
+
|
|
65
|
+
## Serverless Containers (CCI)
|
|
66
|
+
|
|
67
|
+
For serverless containers without managing clusters, use CCI (Cloud Container Instance):
|
|
68
|
+
|
|
69
|
+
- No cluster needed — just namespace + network + workload
|
|
70
|
+
- Key ops: `CCI createCoreV1Namespace`, `CCI createNetworkingCciIoV1beta1NamespacedNetwork`, `CCI createAppsV1NamespacedDeployment`
|
|
71
|
+
- Namespace MUST include `namespace-kubernetes-io/flavor` annotation
|
|
72
|
+
- `limits == requests` strictly enforced (no overcommit)
|
|
73
|
+
|
|
74
|
+
See `hcloud CCI --help` for full operation list.
|
|
75
|
+
|
|
76
|
+
## Troubleshooting
|
|
77
|
+
|
|
78
|
+
| Error | Fix |
|
|
79
|
+
|-------|-----|
|
|
80
|
+
| kubectl connection refused | Verify cluster Running; use `kubectl cce` (no EIP needed) |
|
|
81
|
+
| Node pool creation failed | Check VPC/subnet availability and flavor capacity |
|
|
82
|
+
| Docker push 401 | Re-run `CreateAuthorizationToken` (token expired) |
|
|
83
|
+
| SVCSTG.SWR.4030170 | Missing `sts::createServiceBearerToken` IAM permission. Grant SWR Admin role or add policy |
|
|
84
|
+
| Addon install fails | Use `metadata.uid` from `ShowAddonInstance`, not name |
|
|
85
|
+
| `kubectl cce` not found | Install plugin: `kubectl cce` uses AK/SK, no kubeconfig required |
|
|
86
|
+
|
|
87
|
+
## Security Considerations
|
|
88
|
+
|
|
89
|
+
- MUST restrict kubeconfig file permissions (0600)
|
|
90
|
+
- MUST use IAM RBAC for cluster access, not cluster-admin
|
|
91
|
+
- MUST store container images in private SWR repositories
|
|
92
|
+
|
|
93
|
+
## Cross-Skill References
|
|
94
|
+
|
|
95
|
+
- **VPC/Subnet**: See `huawei-vpc` for network prerequisites
|
|
96
|
+
- **EIP**: See `huawei-vpc` for cluster public access
|
|
97
|
+
|
|
98
|
+
## References
|
|
99
|
+
|
|
100
|
+
- CCE Docs: https://support.huaweicloud.com/cce/
|
|
101
|
+
- SWR Docs: https://support.huaweicloud.com/swr/
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: huawei-cloud-eye
|
|
3
|
-
description: "Use when setting up monitoring, alarms, dashboards, or event rules on Huawei Cloud Eye (CES). Triggers: Cloud Eye, CES, monitoring, alarm, metrics, dashboard, event monitoring. NOT for: CTS audit logs (use huawei-cts), AAD anti-DDoS (use huawei-waf-aad)."
|
|
4
|
-
version: 1
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Huawei Cloud Cloud Eye (CES)
|
|
8
|
-
|
|
9
|
-
**STOP - Do not answer from general knowledge.** Follow the procedure below.
|
|
10
|
-
|
|
11
|
-
Always run `hcloud CES <Operation> --help` before constructing commands to discover exact parameter names and requirements.
|
|
12
|
-
|
|
13
|
-
## Overview
|
|
14
|
-
|
|
15
|
-
Domain expertise for Cloud Eye (CES). Covers metric queries, alarm rules, dashboards, and monitoring agent management.
|
|
16
|
-
|
|
17
|
-
## Critical Warnings
|
|
18
|
-
|
|
19
|
-
| Trap | Why |
|
|
20
|
-
|------|-----|
|
|
21
|
-
| Telescope agent required for detailed metrics | Without agent: only basic CPU/network metrics. Memory, disk require agent installation on ECS |
|
|
22
|
-
| Alarm needs SMN topic first | Alarm notifications fail silently without a configured SMN topic |
|
|
23
|
-
| Cost metrics incur charges | Custom metrics and high-frequency alarms have billing implications |
|
|
24
|
-
| CES endpoint may vary by region | Some older regions use different endpoint URLs. Check `https://developer.huaweicloud.com/endpoint?CES` |
|
|
25
|
-
| Metric granularity minimum 300s | Free tier has 5-minute minimum. Higher resolution requires paid tier |
|
|
26
|
-
|
|
27
|
-
## Prerequisites
|
|
28
|
-
|
|
29
|
-
- ECS instances need the **Telescope agent** installed for detailed metrics (memory, disk, network)
|
|
30
|
-
- Without agent: only SYS.ECS namespace metrics available (CPU, network bytes, disk read/write)
|
|
31
|
-
- Alarm notifications require an SMN topic (see `huawei-smn-dms`)
|
|
32
|
-
|
|
33
|
-
## Common Workflows
|
|
34
|
-
|
|
35
|
-
| Task | Operation |
|
|
36
|
-
|------|-----------|
|
|
37
|
-
| List metrics | `ListMetrics --cli-region=<r> --project_id=<p>` |
|
|
38
|
-
| Get metric data | `BatchListMetricData --cli-region=<r> --project_id=<p>` |
|
|
39
|
-
| List alarms | `ListAlarms --cli-region=<r> --project_id=<p>` |
|
|
40
|
-
| Create alarm | `CreateAlarm` (see below) |
|
|
41
|
-
| Delete alarm | `BatchDeleteAlarmRules --cli-region=<r> --project_id=<p>` |
|
|
42
|
-
| List dashboards | `ListDashboardWidgets --cli-region=<r> --project_id=<p>` |
|
|
43
|
-
| Create dashboard | `CreateDashboard --cli-region=<r> --project_id=<p>` |
|
|
44
|
-
|
|
45
|
-
## Create Alarm Rule — Param Structure
|
|
46
|
-
|
|
47
|
-
CES uses **nested object prefixes** for alarm creation. Always verify with `--help`:
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
hcloud CES CreateAlarm --help
|
|
51
|
-
# Key params: --alarm_name, --metric.metric_name, --metric.namespace,
|
|
52
|
-
# --condition.period, --condition.filter, --condition.value,
|
|
53
|
-
# --condition.comparison_operator, --condition.count
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## Troubleshooting
|
|
57
|
-
|
|
58
|
-
| Error | Fix |
|
|
59
|
-
|-------|-----|
|
|
60
|
-
| No metric data | Telescope agent not installed or ECS stopped. Install agent for detailed metrics |
|
|
61
|
-
| Alarm not triggering | Check metric period (minimum 300s), verify condition threshold |
|
|
62
|
-
| CES network timeout in region | Some regions may have CES endpoint issues. Try a different region |
|
|
63
|
-
|
|
64
|
-
## Security
|
|
65
|
-
|
|
66
|
-
- MUST use role-based alarm notifications
|
|
67
|
-
- MUST not expose alarm action endpoints publicly
|
|
68
|
-
- SHOULD enable CES alarm history for audit
|
|
69
|
-
|
|
70
|
-
## Cross-Skill References
|
|
71
|
-
|
|
72
|
-
- **SMN topics**: See `huawei-smn-dms` for alarm notification setup
|
|
73
|
-
- **ECS monitoring**: See `huawei-ecs` for instance creation
|
|
1
|
+
---
|
|
2
|
+
name: huawei-cloud-eye
|
|
3
|
+
description: "Use when setting up monitoring, alarms, dashboards, or event rules on Huawei Cloud Eye (CES). Triggers: Cloud Eye, CES, monitoring, alarm, metrics, dashboard, event monitoring. NOT for: CTS audit logs (use huawei-cts), AAD anti-DDoS (use huawei-waf-aad)."
|
|
4
|
+
version: 1
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Huawei Cloud Cloud Eye (CES)
|
|
8
|
+
|
|
9
|
+
**STOP - Do not answer from general knowledge.** Follow the procedure below.
|
|
10
|
+
|
|
11
|
+
Always run `hcloud CES <Operation> --help` before constructing commands to discover exact parameter names and requirements.
|
|
12
|
+
|
|
13
|
+
## Overview
|
|
14
|
+
|
|
15
|
+
Domain expertise for Cloud Eye (CES). Covers metric queries, alarm rules, dashboards, and monitoring agent management.
|
|
16
|
+
|
|
17
|
+
## Critical Warnings
|
|
18
|
+
|
|
19
|
+
| Trap | Why |
|
|
20
|
+
|------|-----|
|
|
21
|
+
| Telescope agent required for detailed metrics | Without agent: only basic CPU/network metrics. Memory, disk require agent installation on ECS |
|
|
22
|
+
| Alarm needs SMN topic first | Alarm notifications fail silently without a configured SMN topic |
|
|
23
|
+
| Cost metrics incur charges | Custom metrics and high-frequency alarms have billing implications |
|
|
24
|
+
| CES endpoint may vary by region | Some older regions use different endpoint URLs. Check `https://developer.huaweicloud.com/endpoint?CES` |
|
|
25
|
+
| Metric granularity minimum 300s | Free tier has 5-minute minimum. Higher resolution requires paid tier |
|
|
26
|
+
|
|
27
|
+
## Prerequisites
|
|
28
|
+
|
|
29
|
+
- ECS instances need the **Telescope agent** installed for detailed metrics (memory, disk, network)
|
|
30
|
+
- Without agent: only SYS.ECS namespace metrics available (CPU, network bytes, disk read/write)
|
|
31
|
+
- Alarm notifications require an SMN topic (see `huawei-smn-dms`)
|
|
32
|
+
|
|
33
|
+
## Common Workflows
|
|
34
|
+
|
|
35
|
+
| Task | Operation |
|
|
36
|
+
|------|-----------|
|
|
37
|
+
| List metrics | `ListMetrics --cli-region=<r> --project_id=<p>` |
|
|
38
|
+
| Get metric data | `BatchListMetricData --cli-region=<r> --project_id=<p>` |
|
|
39
|
+
| List alarms | `ListAlarms --cli-region=<r> --project_id=<p>` |
|
|
40
|
+
| Create alarm | `CreateAlarm` (see below) |
|
|
41
|
+
| Delete alarm | `BatchDeleteAlarmRules --cli-region=<r> --project_id=<p>` |
|
|
42
|
+
| List dashboards | `ListDashboardWidgets --cli-region=<r> --project_id=<p>` |
|
|
43
|
+
| Create dashboard | `CreateDashboard --cli-region=<r> --project_id=<p>` |
|
|
44
|
+
|
|
45
|
+
## Create Alarm Rule — Param Structure
|
|
46
|
+
|
|
47
|
+
CES uses **nested object prefixes** for alarm creation. Always verify with `--help`:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
hcloud CES CreateAlarm --help
|
|
51
|
+
# Key params: --alarm_name, --metric.metric_name, --metric.namespace,
|
|
52
|
+
# --condition.period, --condition.filter, --condition.value,
|
|
53
|
+
# --condition.comparison_operator, --condition.count
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Troubleshooting
|
|
57
|
+
|
|
58
|
+
| Error | Fix |
|
|
59
|
+
|-------|-----|
|
|
60
|
+
| No metric data | Telescope agent not installed or ECS stopped. Install agent for detailed metrics |
|
|
61
|
+
| Alarm not triggering | Check metric period (minimum 300s), verify condition threshold |
|
|
62
|
+
| CES network timeout in region | Some regions may have CES endpoint issues. Try a different region |
|
|
63
|
+
|
|
64
|
+
## Security
|
|
65
|
+
|
|
66
|
+
- MUST use role-based alarm notifications
|
|
67
|
+
- MUST not expose alarm action endpoints publicly
|
|
68
|
+
- SHOULD enable CES alarm history for audit
|
|
69
|
+
|
|
70
|
+
## Cross-Skill References
|
|
71
|
+
|
|
72
|
+
- **SMN topics**: See `huawei-smn-dms` for alarm notification setup
|
|
73
|
+
- **ECS monitoring**: See `huawei-ecs` for instance creation
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: huawei-cts
|
|
3
|
-
description: "Use when managing Cloud Trace Service (CTS) audit logs, trackers, and traces on Huawei Cloud. Triggers: CTS, Cloud Trace, audit log, tracker, trace, operation record. NOT for: CES monitoring alarms (use huawei-cloud-eye), log analysis (use LTS)."
|
|
4
|
-
version: 1
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Huawei Cloud CTS
|
|
8
|
-
|
|
9
|
-
**STOP - Do not answer from general knowledge.** Follow the procedure below.
|
|
10
|
-
|
|
11
|
-
Always run `hcloud CTS <Operation> --help` before constructing commands to discover exact parameter names and requirements.
|
|
12
|
-
|
|
13
|
-
## Overview
|
|
14
|
-
|
|
15
|
-
Domain expertise for Cloud Trace Service. Covers trackers, traces, notifications, and resource tags.
|
|
16
|
-
|
|
17
|
-
## Critical Warnings
|
|
18
|
-
|
|
19
|
-
| Trap | Why |
|
|
20
|
-
|------|-----|
|
|
21
|
-
| Tracker required for traces | Must create a tracker before traces are recorded |
|
|
22
|
-
| OBS bucket prerequisite | Tracker needs an OBS bucket for log delivery |
|
|
23
|
-
| 7-day retention default | Trace data retained 7 days by default. Create LTS tracker for longer retention |
|
|
24
|
-
| Organization tracker | Cross-account auditing requires organization tracker |
|
|
25
|
-
|
|
26
|
-
## Common Workflows
|
|
27
|
-
|
|
28
|
-
| Task | Operation |
|
|
29
|
-
|------|-----------|
|
|
30
|
-
| List operations | `ListOperations --cli-region=<r> --project_id=<p>` |
|
|
31
|
-
| List traces | `ListTraces --cli-region=<r> --project_id=<p>` |
|
|
32
|
-
| Create tracker | `CreateTracker --cli-region=<r> --project_id=<p>` |
|
|
33
|
-
| List trackers | `ListTrackers --cli-region=<r> --project_id=<p>` |
|
|
34
|
-
| Delete tracker | `DeleteTracker --cli-region=<r> --project_id=<p>` |
|
|
35
|
-
| Create notification | `CreateNotification --cli-region=<r> --project_id=<p>` |
|
|
36
|
-
| List notifications | `ListNotifications --cli-region=<r> --project_id=<p>` |
|
|
37
|
-
| List trace resources | `ListTraceResources --cli-region=<r> --project_id=<p>` |
|
|
38
|
-
|
|
39
|
-
Discover exact parameters with `--help` before executing any command.
|
|
40
|
-
|
|
41
|
-
## Troubleshooting
|
|
42
|
-
|
|
43
|
-
| Error | Fix |
|
|
44
|
-
|-------|-----|
|
|
45
|
-
| No traces found | Check tracker is created and enabled. Filter by time range |
|
|
46
|
-
| Tracker creation fails | Ensure OBS bucket exists and has correct permissions |
|
|
47
|
-
|
|
48
|
-
## Security
|
|
49
|
-
|
|
50
|
-
- SHOULD enable CTS for all production accounts
|
|
51
|
-
- MUST use OBS server-side encryption for trace logs
|
|
52
|
-
|
|
53
|
-
## Cross-Skill References
|
|
54
|
-
|
|
55
|
-
- **OBS**: See `huawei-obs` for tracker log delivery bucket
|
|
1
|
+
---
|
|
2
|
+
name: huawei-cts
|
|
3
|
+
description: "Use when managing Cloud Trace Service (CTS) audit logs, trackers, and traces on Huawei Cloud. Triggers: CTS, Cloud Trace, audit log, tracker, trace, operation record. NOT for: CES monitoring alarms (use huawei-cloud-eye), log analysis (use LTS)."
|
|
4
|
+
version: 1
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Huawei Cloud CTS
|
|
8
|
+
|
|
9
|
+
**STOP - Do not answer from general knowledge.** Follow the procedure below.
|
|
10
|
+
|
|
11
|
+
Always run `hcloud CTS <Operation> --help` before constructing commands to discover exact parameter names and requirements.
|
|
12
|
+
|
|
13
|
+
## Overview
|
|
14
|
+
|
|
15
|
+
Domain expertise for Cloud Trace Service. Covers trackers, traces, notifications, and resource tags.
|
|
16
|
+
|
|
17
|
+
## Critical Warnings
|
|
18
|
+
|
|
19
|
+
| Trap | Why |
|
|
20
|
+
|------|-----|
|
|
21
|
+
| Tracker required for traces | Must create a tracker before traces are recorded |
|
|
22
|
+
| OBS bucket prerequisite | Tracker needs an OBS bucket for log delivery |
|
|
23
|
+
| 7-day retention default | Trace data retained 7 days by default. Create LTS tracker for longer retention |
|
|
24
|
+
| Organization tracker | Cross-account auditing requires organization tracker |
|
|
25
|
+
|
|
26
|
+
## Common Workflows
|
|
27
|
+
|
|
28
|
+
| Task | Operation |
|
|
29
|
+
|------|-----------|
|
|
30
|
+
| List operations | `ListOperations --cli-region=<r> --project_id=<p>` |
|
|
31
|
+
| List traces | `ListTraces --cli-region=<r> --project_id=<p>` |
|
|
32
|
+
| Create tracker | `CreateTracker --cli-region=<r> --project_id=<p>` |
|
|
33
|
+
| List trackers | `ListTrackers --cli-region=<r> --project_id=<p>` |
|
|
34
|
+
| Delete tracker | `DeleteTracker --cli-region=<r> --project_id=<p>` |
|
|
35
|
+
| Create notification | `CreateNotification --cli-region=<r> --project_id=<p>` |
|
|
36
|
+
| List notifications | `ListNotifications --cli-region=<r> --project_id=<p>` |
|
|
37
|
+
| List trace resources | `ListTraceResources --cli-region=<r> --project_id=<p>` |
|
|
38
|
+
|
|
39
|
+
Discover exact parameters with `--help` before executing any command.
|
|
40
|
+
|
|
41
|
+
## Troubleshooting
|
|
42
|
+
|
|
43
|
+
| Error | Fix |
|
|
44
|
+
|-------|-----|
|
|
45
|
+
| No traces found | Check tracker is created and enabled. Filter by time range |
|
|
46
|
+
| Tracker creation fails | Ensure OBS bucket exists and has correct permissions |
|
|
47
|
+
|
|
48
|
+
## Security
|
|
49
|
+
|
|
50
|
+
- SHOULD enable CTS for all production accounts
|
|
51
|
+
- MUST use OBS server-side encryption for trace logs
|
|
52
|
+
|
|
53
|
+
## Cross-Skill References
|
|
54
|
+
|
|
55
|
+
- **OBS**: See `huawei-obs` for tracker log delivery bucket
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: huawei-dds-dcs
|
|
3
|
-
description: "Use when creating or managing Document Database Service (DDS/MongoDB-compatible) or Distributed Cache Service (DCS/Redis/Memcached) on Huawei Cloud. Triggers: DDS, DCS, MongoDB, Redis, Memcached, document DB, cache, replica set, sharding. NOT for: RDS (use huawei-rds), GaussDB (use huawei-gaussdb)."
|
|
4
|
-
version: 1
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Huawei Cloud DDS / DCS
|
|
8
|
-
|
|
9
|
-
**STOP - Do not answer from general knowledge.** Follow the procedure below.
|
|
10
|
-
|
|
11
|
-
Always run `hcloud DDS <Operation> --help` or `hcloud DCS <Operation> --help` before constructing commands.
|
|
12
|
-
|
|
13
|
-
## DDS (Document Database Service — MongoDB Compatible)
|
|
14
|
-
|
|
15
|
-
## Critical Warnings
|
|
16
|
-
|
|
17
|
-
| Trap | Why |
|
|
18
|
-
|------|-----|
|
|
19
|
-
| Requires 3-node replica | Minimum production deployment needs 3 nodes |
|
|
20
|
-
| Shard key permanent | Once selected, shard key cannot be changed |
|
|
21
|
-
| Storage auto-scaling off | Enable before storage fills |
|
|
22
|
-
|
|
23
|
-
### Common Workflows
|
|
24
|
-
|
|
25
|
-
| Task | Operation |
|
|
26
|
-
|------|-----------|
|
|
27
|
-
| List instances | `ListInstances --cli-region=<r> --project_id=<p>` |
|
|
28
|
-
| Create instance | `CreateInstance --cli-region=<r> --project_id=<p>` |
|
|
29
|
-
| Delete instance | `DeleteInstance --cli-region=<r> --project_id=<p>` |
|
|
30
|
-
| Add readonly node | `AddReadonlyNode --cli-region=<r> --project_id=<p>` |
|
|
31
|
-
| Add shard | `AddShardingNode --cli-region=<r> --project_id=<p>` |
|
|
32
|
-
| Create backup | `CreateBackup --cli-region=<r> --project_id=<p>` |
|
|
33
|
-
|
|
34
|
-
Discover exact parameters with `--help` before executing any command.
|
|
35
|
-
|
|
36
|
-
## DCS (Distributed Cache Service — Redis/Memcached)
|
|
37
|
-
|
|
38
|
-
## Critical Warnings
|
|
39
|
-
|
|
40
|
-
| Trap | Why |
|
|
41
|
-
|------|-----|
|
|
42
|
-
| Redis password required | Cannot create Redis instance without password |
|
|
43
|
-
| Memcached no password | Memcached has no auth — only accessible within VPC |
|
|
44
|
-
| Cache persistence costs | AOF/RDB persistence uses additional storage |
|
|
45
|
-
|
|
46
|
-
### Common Workflows
|
|
47
|
-
|
|
48
|
-
| Task | Operation |
|
|
49
|
-
|------|-----------|
|
|
50
|
-
| List instances | `ListInstances --cli-region=<r> --project_id=<p>` |
|
|
51
|
-
| Create Redis instance | `CreateInstance --cli-region=<r> --project_id=<p>` |
|
|
52
|
-
| Delete instance | `DeleteInstances --cli-region=<r> --project_id=<p>` |
|
|
53
|
-
| Restart instance | `RestartInstance --cli-region=<r> --project_id=<p>` |
|
|
54
|
-
| Show node information | `BatchShowNodesInformation --cli-region=<r> --project_id=<p>` |
|
|
55
|
-
| Create custom template | `CreateCustomTemplate --cli-region=<r> --project_id=<p>` |
|
|
56
|
-
|
|
57
|
-
Discover exact parameters with `--help` before executing any command.
|
|
58
|
-
|
|
59
|
-
## Troubleshooting
|
|
60
|
-
|
|
61
|
-
| Error | Fix |
|
|
62
|
-
|-------|-----|
|
|
63
|
-
| DDS instance creation fails | Check 3-node minimum, VPC/subnet availability |
|
|
64
|
-
| DCS connection refused | Redis instances need password. Memcached only accessible within VPC |
|
|
65
|
-
| DCS auto-expire not working | Enable auto-expire scan task for Redis |
|
|
66
|
-
|
|
67
|
-
## Cross-Skill References
|
|
68
|
-
|
|
69
|
-
- **VPC/Subnet**: See `huawei-vpc` for instance networking
|
|
70
|
-
- **Backup/CBR**: See `huawei-cbr` for backup management
|
|
1
|
+
---
|
|
2
|
+
name: huawei-dds-dcs
|
|
3
|
+
description: "Use when creating or managing Document Database Service (DDS/MongoDB-compatible) or Distributed Cache Service (DCS/Redis/Memcached) on Huawei Cloud. Triggers: DDS, DCS, MongoDB, Redis, Memcached, document DB, cache, replica set, sharding. NOT for: RDS (use huawei-rds), GaussDB (use huawei-gaussdb)."
|
|
4
|
+
version: 1
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Huawei Cloud DDS / DCS
|
|
8
|
+
|
|
9
|
+
**STOP - Do not answer from general knowledge.** Follow the procedure below.
|
|
10
|
+
|
|
11
|
+
Always run `hcloud DDS <Operation> --help` or `hcloud DCS <Operation> --help` before constructing commands.
|
|
12
|
+
|
|
13
|
+
## DDS (Document Database Service — MongoDB Compatible)
|
|
14
|
+
|
|
15
|
+
## Critical Warnings
|
|
16
|
+
|
|
17
|
+
| Trap | Why |
|
|
18
|
+
|------|-----|
|
|
19
|
+
| Requires 3-node replica | Minimum production deployment needs 3 nodes |
|
|
20
|
+
| Shard key permanent | Once selected, shard key cannot be changed |
|
|
21
|
+
| Storage auto-scaling off | Enable before storage fills |
|
|
22
|
+
|
|
23
|
+
### Common Workflows
|
|
24
|
+
|
|
25
|
+
| Task | Operation |
|
|
26
|
+
|------|-----------|
|
|
27
|
+
| List instances | `ListInstances --cli-region=<r> --project_id=<p>` |
|
|
28
|
+
| Create instance | `CreateInstance --cli-region=<r> --project_id=<p>` |
|
|
29
|
+
| Delete instance | `DeleteInstance --cli-region=<r> --project_id=<p>` |
|
|
30
|
+
| Add readonly node | `AddReadonlyNode --cli-region=<r> --project_id=<p>` |
|
|
31
|
+
| Add shard | `AddShardingNode --cli-region=<r> --project_id=<p>` |
|
|
32
|
+
| Create backup | `CreateBackup --cli-region=<r> --project_id=<p>` |
|
|
33
|
+
|
|
34
|
+
Discover exact parameters with `--help` before executing any command.
|
|
35
|
+
|
|
36
|
+
## DCS (Distributed Cache Service — Redis/Memcached)
|
|
37
|
+
|
|
38
|
+
## Critical Warnings
|
|
39
|
+
|
|
40
|
+
| Trap | Why |
|
|
41
|
+
|------|-----|
|
|
42
|
+
| Redis password required | Cannot create Redis instance without password |
|
|
43
|
+
| Memcached no password | Memcached has no auth — only accessible within VPC |
|
|
44
|
+
| Cache persistence costs | AOF/RDB persistence uses additional storage |
|
|
45
|
+
|
|
46
|
+
### Common Workflows
|
|
47
|
+
|
|
48
|
+
| Task | Operation |
|
|
49
|
+
|------|-----------|
|
|
50
|
+
| List instances | `ListInstances --cli-region=<r> --project_id=<p>` |
|
|
51
|
+
| Create Redis instance | `CreateInstance --cli-region=<r> --project_id=<p>` |
|
|
52
|
+
| Delete instance | `DeleteInstances --cli-region=<r> --project_id=<p>` |
|
|
53
|
+
| Restart instance | `RestartInstance --cli-region=<r> --project_id=<p>` |
|
|
54
|
+
| Show node information | `BatchShowNodesInformation --cli-region=<r> --project_id=<p>` |
|
|
55
|
+
| Create custom template | `CreateCustomTemplate --cli-region=<r> --project_id=<p>` |
|
|
56
|
+
|
|
57
|
+
Discover exact parameters with `--help` before executing any command.
|
|
58
|
+
|
|
59
|
+
## Troubleshooting
|
|
60
|
+
|
|
61
|
+
| Error | Fix |
|
|
62
|
+
|-------|-----|
|
|
63
|
+
| DDS instance creation fails | Check 3-node minimum, VPC/subnet availability |
|
|
64
|
+
| DCS connection refused | Redis instances need password. Memcached only accessible within VPC |
|
|
65
|
+
| DCS auto-expire not working | Enable auto-expire scan task for Redis |
|
|
66
|
+
|
|
67
|
+
## Cross-Skill References
|
|
68
|
+
|
|
69
|
+
- **VPC/Subnet**: See `huawei-vpc` for instance networking
|
|
70
|
+
- **Backup/CBR**: See `huawei-cbr` for backup management
|