技能版本 1.0.0
Tencent Cloud Lighthouse
触发条件:用户提及 Lighthouse、轻量应用服务器或轻量服务器,或请求检查/创建/管理/部署 Lighthouse 实例、部署应用到 Lighthouse、管理相关资源。
价格
免费
- 安装:免费
在组织开通时一次性收取;再次读取清单或下载不重复收费。
以上为公开标价。你的组织可能有协议价,以控制台显示的价格为准。
如何使用
为组织安装
开通即安装:组织固定使用开通时的版本(当前为 1.0.0)。升级到新版本需要取消后重新开通。
创建凭证
客户端使用组织凭证读取;绑定到数字人后,数字人使用绑定凭证按需加载。请求中携带:
Authorization: Bearer $ZGI_MARKET_KEY读取清单与安装包
清单列出版本、文件和校验值;安装包是一个 zip 文件。
读取清单 curl "https://market-api.zgi.im/v1/market/skills/tencentcloud-lighthouse-skill/manifest" \ -H "Authorization: Bearer $ZGI_MARKET_KEY"下载安装包 curl "https://market-api.zgi.im/v1/market/skills/tencentcloud-lighthouse-skill/package" \ -H "Authorization: Bearer $ZGI_MARKET_KEY" \ -o tencentcloud-lighthouse-skill.zip读取清单和下载安装包不计入用量。下载后请用响应头中的 SHA-256 校验文件。
技能说明
- 名称
- tencentcloud-lighthouse-skill
- 说明
- Load when: user mentions Lighthouse, 轻量应用服务器, 轻量服务器, or asks to check/create/manage/deploy Lighthouse instances, deploy applications to Lighthouse, manage Lighthouse firewall rules, reset Lighthouse password, view Lighthouse snapshots/images/traffic, monitor Lighthouse metrics, run commands on Lighthouse via TAT, or asks to get/identify the current instance ID. Trigger phrases: "查看轻量服务器", "Lighthouse实例", "轻量应用服务器", "部署应用", "部署程序", "部署到Lighthouse", "管理防火墙规则", "重置密码", "查看快照", "查看流量包", "获取实例ID", "查看实例ID", "当前实例", "实例IP", "check Lighthouse", "create Lighthouse", "deploy app", "deploy application", "Lighthouse firewall", "Lighthouse snapshot", "instance ID", "whoami". NOT for CVM, CBS, VPC, or other non-Lighthouse products.
会运行代码Shell
技能包内含脚本文件,加载技能的运行时可能会执行它们,安装前请先阅读。
SKILL.md 节选
# Lighthouse Cloud Server Operations Manage Tencent Cloud Lighthouse instances via tccli CLI. Your knowledge of tccli parameters and API limits may be outdated. **Always use `tccli <service> <action> --help` to verify parameters before execution.** ## Prerequisites ```bash tccli --version ``` If not installed: `pip install tccli` ## Credential Setup | Method | Security | Expiry | Recommendation | |--------|----------|--------|----------------| | OAuth browser login | High | Temporary, expires in 2 hours | Recommended | | AK/SK key pair | Low | Permanent unless revoked | Special cases only | When the user has not chosen a method, default to OAuth. ### OAuth Login (Recommended) Use `script/tccli-oauth-helper.sh` for non-interactive OAuth login: ```bash # Step 1: Check credential status bash script/tccli-oauth-helper.sh --status # Step 2: Generate authorization URL (if credentials are missing or expired) bash script/tccli-oauth-helper.sh --get-url # Step 3: User opens the URL in browser, completes login, and gets a base64 code # Step 4: Complete login with the code bash script/tccli-oauth-helper.sh --code "base64_code_from_browser" # Step 5: Verify tccli lighthouse DescribeRegions ``` **Workflow:** 1. Run `--status` to check existing credentials 2. If expired/missing, run `--get-url` — show the URL to user 3. User opens URL → logs in → copies the base64 code from browser 4. Run `--code` with the base64 code to complete login 5. Verify with `tccli lighthouse DescribeRegions` **Notes:** - Credentials are temporary (expires in ~2 hours) - State is valid for 10 minutes after `--get-url` - Do NOT use `tccli sts GetCallerIdentity` to verify — it does not support OAuth credentials ### AK/SK Setup Only if the user explicitly provides SecretId and SecretKey: ```bash tccli configure set secretId <SecretId> tccli configure set secretKey <SecretKey> tccli configure set region ap-guangzhou ``` ### Logout ```bash tccli auth logout ``` ## Quick Reference | Task | Command | |------|---------| | List instances | `tccli lighthouse DescribeInstances --region <region>` | | Instance details | `tccli lighthouse DescribeInstances --region <region> --InstanceIds '["lhins-xxx"]'` | | Firewall rules | `tccli lighthouse DescribeFirewallRules --region <region> --InstanceId lhins-xxx` | | Monitoring data | `tccli monitor GetMonitorData --Namespace QCE/LIGHT_HOUSE ...` | | Run remote command | `tccli tat RunCommand --region <region> --InstanceIds '["lhins-xxx"]' --Content "..."` | | Snapshots | `tccli lighthouse DescribeSnapshots --region <region>` | | Traffic packages | `tccli lighthouse DescribeInstancesTrafficPackages --region <region> --InstanceIds '["lhins-xxx"]'` | | Available regions | `tccli lighthouse DescribeRegions` | | Help for any action | `tccli lighthouse <Action> --help` | | Get current instance ID | `bash script/whoami.sh` or `bash script/whoami.sh --id` | ## Scenario Routing Read the corresponding reference file before executing: ``` User wants to... ├─ Query / start / stop / reboot instances -> references/instance-management.md ├─ Reset password / view blueprints -> references/instance-management.md ├─ Deploy applications / verify deployment -> references/application-deployment.md ├─ View CPU / memory / bandwidth metrics -> references/monitoring-alerting.md ├─ Set up alarm policies -> references/monitoring-alerting.md ├─ Manage firewall rules -> references/firewall-management.md ├─ Execute commands on instance -> references/remote-command-tat.md ├─ Create / restore snapshots -> references/snapshot-blueprint.md ├─ Create custom images -> references/snapshot-blueprint.md ├─ Check traffic usage -> references/traffic-package.md ├─ Identify current instance (ID / IP) -> bash script/whoami.sh [--id | --ip] └─ Other operations -> tccli lighthouse --help ``` ## Operation Safety
SKILL.md 不止这些内容,安装后可阅读全文。
技能包内容
共 12 个文件,合计 42.7 KiB
- README.md974 B
- SKILL.md8.6 KiB
- _meta.json148 B
- references/application-deployment.md5.5 KiB
- references/firewall-management.md1.7 KiB
- references/instance-management.md2.5 KiB
- references/monitoring-alerting.md1.9 KiB
- references/remote-command-tat.md1.7 KiB
- references/snapshot-blueprint.md1.8 KiB
- references/traffic-package.md931 B
- script/tccli-oauth-helper.sh16.4 KiB
- script/whoami.sh590 B
来源与审核
- 审核状态
- 尚未审核,内容来自上游来源
- 许可证
- 未说明
审核状态是平台对上架信息的记录,不构成对上游服务质量或可用性的担保。