Logo: Huawei Cloud Ecs Lifecycle

Huawei Cloud Ecs Lifecycle

Organisatioun
huaweicloud
huawei-cloud-ecs-lifecycle

Manage the full lifecycle of Huawei Cloud ECS (Elastic Cloud Server) instances — create, list, show details, start, stop, reboot, rename, and delete cloud servers — plus basic ECS knowledge Q&A. Covers CRUD plus power-state orchestration (start/stop/reboot) with batch support, pagination, and filters. All mutating operations require explicit user confirmation before execution. Triggers include: "创建云服务器", "删除云服务器", "启动云服务器", "停止云服务器", "重启云服务器", "修改云服务器名称", "查询云服务器列表", "查询云服务器详情", "ECS生命周期管理", "ECS运维", "create ecs", "delete ecs", "start ecs", "stop ecs", "reboot ecs", "ecs lifecycle", "弹性云服务器管理", "云服务器增删改查".

Iwwersiicht

Editeurhuaweicloud
Repositoryhuaweicloud-skills
Skill-Nummhuawei-cloud-ecs-lifecycle
Stären
59
Forks
24
Matgeliwwert Dateien
7
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 7 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    huaweicloud huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Huawei Cloud Ecs Lifecycle an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/computing/ecs/huawei-cloud-ecs-lifecycle
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-skills.git /tmp/huaweicloud-skills
mkdir -p .claude/skills
cp -r /tmp/huaweicloud-skills/skills/computing/ecs/huawei-cloud-ecs-lifecycle .claude/skills/huawei-cloud-ecs-lifecycle
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Huawei Cloud Ecs Lifecycle an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Huawei Cloud Ecs Lifecycle automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Huawei Cloud Ecs Lifecycle net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Huawei Cloud ECS Lifecycle Management

Full lifecycle management for Huawei Cloud Elastic Cloud Server (ECS) — from provisioning to decommissioning, including power-state orchestration and instance queries.

Overview

This Skill manages the complete lifecycle of ECS (Elastic Cloud Server) instances on Huawei Cloud using the KooCLI ECS service (with the huaweicloudsdkecs Python SDK as fallback):

CapabilityOperationsActions
QueryListServersDetails, ShowServerList instances with filters/pagination; show instance detail
CreateCreateServersCreate one or more pay-per-use cloud servers
Power stateBatchStartServers, BatchStopServers, BatchRebootServersStart / stop / reboot (batch)
UpdateBatchUpdateServersNameRename one or more servers
DeleteDeleteServersDelete one or more servers (optional EIP/data volume release)
Knowledge—Basic ECS FAQ (flavors, billing, auth, network, disk) answered inline

Scope note: All mutating operations (create / delete / start / stop / reboot / rename) are executed only after explicit user confirmation. Query operations are safe to run anytime.

Prerequisites

  1. KooCLI (hcloud) installed and authenticated — see references/cli-installation-guide.md
  2. Region — pass --cli-region=cn-north-4 (use the account's region; e.g. cn-north-4), or the active CLI profile default is used
  3. IAM permissions — the authenticated account needs the ECS permissions listed in references/iam-policies.md (least privilege)
  4. Python 3.8+ with huaweicloudsdkecs (only needed for the SDK fallback path)

Quality Reporting Environment Variables

Environment VariableRequiredDescription
SKILL_QUALITY_ENDPOINTNo上报地址,默认 https://skillsapi.developer.myhuaweicloud.com/api/quality/report
SKILL_QUALITY_GUEST_ENDPOINTNoGuest (unauthenticated) report endpoint
SKILL_QUALITY_NAMENoSkill name (auto-detected)
SKILL_QUALITY_DISABLENoSet 1 to disable reporting (local debugging)
SKILL_QUALITY_TIMEOUTNoReport timeout in seconds (default 3)

Workflow

  1. Classify the request — knowledge question (answer inline from the Overview/FAQ below and official docs) or an ECS operation.
  2. Resolve the target server(s) — for instance-specific operations, get server_id from the user, or list instances first (ListServersDetails) if the ID is unknown.
  3. Query operations — build the command with the requested filters and execute directly.
  4. Mutating operations — present the exact command and parameters to the user, wait for explicit confirmation, then execute. If the CLI fails (e.g. SDK/permission error), fall back to the huaweicloudsdkecs SDK equivalent.
  5. Report — return the operation result (job ID, affected instance IDs, or detailed instance info) and, for state-change operations, suggest verifying with ListServersDetails.

Core Commands

All commands below use --cli-region=cn-north-4 as the example region; use the authenticated account's region instead (or rely on the CLI profile default). Required parameters are always shown; the most common optional parameters are included. Parameter names were verified against the KooCLI --help output of each ECS operation. Example names/IDs are placeholders to be replaced with real values from the user's environment.

List ECS instances

bash
hcloud ECS ListServersDetails --cli-region=cn-north-4 --limit=25 --name=my-ecs --status=ACTIVE
ParameterRequiredTypeDescription
--cli-regionYes (auto)stringRegion, agent fills automatically
--project_idYes (auto)stringProject ID, auto-resolved from credentials
--limitNointegerPage size, default 25, max 1000
--offsetNointegerPage number, >= 0 (0 == page 1), default 1
--nameNostringInstance name, fuzzy match (e.g. --name=my-ecs)
--statusNostringACTIVE / BUILD / SHUTOFF / REBOOT / ERROR / ...
--flavorNostringFlavor ID filter
--ip / --ip_eqNostringIPv4 fuzzy / exact match
--server_idNostringExact IDs, comma-separated (<=100), exclusive with other filters
--enterprise_project_idNostringEP filter; all_granted_eps = all enterprise projects
--tags / --not-tagsNostringTag filter
--markerNostringPagination marker (last server id of previous page)

Show ECS instance detail

bash
hcloud ECS ShowServer --cli-region=cn-north-4 --server_id=6a2f0b1c-8d4e-4f3a-9b7c-1d2e3f4a5b6c
ParameterRequiredTypeDescription
--cli-regionYes (auto)stringRegion
--project_idYes (auto)stringProject ID
--server_idYesstring云服务器ID (UUID)

Create ECS instance(s)

Confirmation required before execution. Creating instances incurs billing.

bash
hcloud ECS CreateServers --cli-region=cn-north-4 --server.name=my-ecs --server.flavorRef=s6.large.2 \
  --server.imageRef=9c2f377e-7f3a-4f4e-9c1a-2b3c4d5e6f7a --server.vpcid=81a7f347-8f0e-4b2a-9c4d-5e6f7a8b9c0d \
  --server.nics.1.subnet_id=04e00f59-1a2b-3c4d-5e6f-7a8b9c0d1e2f --server.root_volume.volumetype=SSD \
  --server.security_groups.1.id=41a937e1-9b8c-7d6e-5f4a-3b2c1d0e9f8a --server.availability_zone=cn-north-4a \
  --server.count=1 --server.adminPass=Huawei@123
ParameterRequiredTypeDescription
--cli-regionYes (auto)stringRegion
--project_idYes (auto)stringProject ID
--server.nameYesstringInstance name (1-64 chars)
--server.flavorRefYesstringFlavor ID (e.g. s6.large.2), query via ListFlavors
--server.imageRefYesstringImage ID (UUID), query via IMS ListImages
--server.vpcidYesstringVPC ID (UUID)
--server.root_volume.volumetypeYesstringRoot disk type: SATA/SAS/SSD/GPSSD/ESSD/...
--server.nics.1.subnet_idYes (in practice)stringSubnet ID under the VPC; required unless the VPC default subnet is used
--server.security_groups.1.idYes (in practice)stringSecurity group ID; commonly required by the API's VPC configuration
--server.availability_zoneNostringAZ (e.g. cn-north-4a)
--server.countNointegerNumber to create (default 1)
--server.adminPassNostringInitial admin password (or --server.key_name for keypair)
--dry_runNobooleanPre-check without actually creating

Note: Both parameters above are marked Yes (in practice). They are optional at the API schema level, but in practice omitting them fails ECS creation in most VPC configurations: --server.nics.[N].subnet_id is required unless the VPC default subnet is used, and --server.security_groups.[N].id is commonly required by the API's VPC configuration. For pay-per-use only: CreateServers with --server.extendparam.chargingMode=0; use CreatePostPaidServers for a simpler pay-per-use flow if preferred.

Delete ECS instance(s)

Confirmation required before execution. Data on disks may be lost when --delete_volume=true.

bash
hcloud ECS DeleteServers --cli-region=cn-north-4 --servers.1.id=6a2f0b1c-8d4e-4f3a-9b7c-1d2e3f4a5b6c --delete_publicip=false --delete_volume=false
ParameterRequiredTypeDescription
--cli-regionYes (auto)stringRegion
--project_idYes (auto)stringProject ID
--servers.[N].idYesstringServer IDs, indexed form (--servers.1.id=...), max 1000
--delete_publicipNobooleanAlso delete bound EIP (default false)
--delete_volumeNobooleanAlso delete attached data volumes (default false)

Start ECS instance(s)

Confirmation required before execution.

bash
hcloud ECS BatchStartServers --cli-region=cn-north-4 --os-start.servers.1.id=6a2f0b1c-8d4e-4f3a-9b7c-1d2e3f4a5b6c
ParameterRequiredTypeDescription
--cli-regionYes (auto)stringRegion
--project_idYes (auto)stringProject ID
--os-start.servers.[N].idYesstringServer IDs, indexed form, max 1000

Stop ECS instance(s)

Confirmation required before execution. HARD stop may lose unsaved data.

bash
hcloud ECS BatchStopServers --cli-region=cn-north-4 --os-stop.servers.1.id=6a2f0b1c-8d4e-4f3a-9b7c-1d2e3f4a5b6c --os-stop.type=SOFT
ParameterRequiredTypeDescription
--cli-regionYes (auto)stringRegion
--project_idYes (auto)stringProject ID
--os-stop.servers.[N].idYesstringServer IDs, indexed form, max 1000
--os-stop.typeNostringSOFT (default, graceful) or HARD (forced)

Reboot ECS instance(s)

Confirmation required before execution. HARD reboot may lose unsaved data.

bash
hcloud ECS BatchRebootServers --cli-region=cn-north-4 --reboot.servers.1.id=6a2f0b1c-8d4e-4f3a-9b7c-1d2e3f4a5b6c --reboot.type=SOFT
ParameterRequiredTypeDescription
--cli-regionYes (auto)stringRegion
--project_idYes (auto)stringProject ID
--reboot.servers.[N].idYesstringServer IDs, indexed form, max 1000
--reboot.typeYesstringSOFT (graceful) or HARD (forced)

Rename ECS instance(s)

Confirmation required before execution.

bash
hcloud ECS BatchUpdateServersName --cli-region=cn-north-4 --name=my-ecs-renamed --servers.1.id=6a2f0b1c-8d4e-4f3a-9b7c-1d2e3f4a5b6c
ParameterRequiredTypeDescription
--cli-regionYes (auto)stringRegion
--project_idYes (auto)stringProject ID
--nameYesstringNew name (<=64 chars); batch rename applies same name to all
--servers.[N].idYesstringServer IDs, indexed form, max 1000
--dry_runNobooleanPre-check without applying the change

Parameter Confirmation

CommandRequired Parameters (besides --cli-region)
ListServersDetailsnone (filters optional)
ShowServer--server_id
CreateServers--server.name, --server.flavorRef, --server.imageRef, --server.vpcid, --server.root_volume.volumetype
DeleteServers--servers.[N].id
BatchStartServers--os-start.servers.[N].id
BatchStopServers--os-stop.servers.[N].id
BatchRebootServers--reboot.servers.[N].id, --reboot.type
BatchUpdateServersName--name, --servers.[N].id

--project_id is auto-resolved by KooCLI from the authenticated credentials; --cli-region is the only parameter the agent must always supply explicitly.

Basic ECS FAQ (Knowledge Q&A)

  • What is ECS? Elastic Cloud Server — Huawei Cloud's IaaS compute service. Instances can be provisioned in minutes with flexible flavors, images, disks, and networks.
  • Flavors — defined by vCPUs/memory (e.g. s6.large.2 = 2 vCPU / 4 GB). Query available flavors via hcloud ECS ListFlavors --cli-region=cn-north-4.
  • Billing — pay-per-use (按需) or yearly/monthly (包年/包月); spot instances (竞价) available.
  • Login — keypair (recommended) or password. For password login the initial password is set at creation (adminPass / user_data).
  • Status values — ACTIVE (running), SHUTOFF (stopped), BUILD (creating), REBOOT, ERROR, MIGRATING, RESIZE, SHELVED, DELETED.

Reference Documents

  • references/iam-policies.md — Least-privilege IAM policies for ECS lifecycle operations
  • references/cli-installation-guide.md — KooCLI installation and authentication
  • references/verification-method.md — How to verify each operation
  • references/dataflow-diagram.md — Mermaid data flow diagram
  • references/acceptance-criteria.md — Acceptance criteria for this skill

KooCLI Command Format Standard

Every KooCLI command is built as: hcloud + service name (ECS) + operation name (PascalCase) + region parameter --cli-region=<region> + parameter key-value pairs (--key=value). Only the executable examples in Core Commands are meant to be run directly.

FeatureDescriptionExample
Service nameKooCLI service name (detected from metadata: ecs → invoked as ECS)ECS
Operation namePascalCaseListServersDetails
Region parameter--cli-region=<value>--cli-region=cn-north-4
Simple parameter--key=value--server_id=xxx
Indexed parameter--key.N=value--servers.1.id=xxx

Edge Cases

ScenarioHandling
Unknown server_id / empty query resultReturn "no ECS instance matches" and suggest listing first
--server_id combined with other filtersserver_id wins; other filters ignored (CLI behavior)
Create without subnet/security groupExplain that VPC networking config is needed; confirm before executing
User asks to delete an ACTIVE serverWarn about data loss, require explicit confirmation
--limit > 1000CLI rejects; keep <= 1000 (default 25)
Stop/reboot with unsaved workPrefer SOFT; explain HARD data-loss risk and confirm
CLI failure (auth/permission)Fall back to huaweicloudsdkecs SDK; report the underlying error
No region specifiedUse active CLI profile default region

Quality Reporting

This Skill integrates scripts/skill_quality_sdk.py for execution quality reporting. Every run reports trace_id, status (success/biz_fail/sys_fail/cancel), error code, cost, and masked input/output.

Integration

  • Python entry point: wrap execution with quality_context:

    python
    from skill_quality_sdk import quality_context
    with quality_context(skill_name="huawei-cloud-ecs-lifecycle") as q:
        q.input = {"operation": "ListServersDetails", "region": "cn-north-4"}
        result = run_ecs_operation()
        q.output = result
  • CLI self-check: python3 scripts/skill_quality_sdk.py (sends one test report).

Error Code Convention

PrefixCategoryExamples
UUser inputU01 missing param, U03 no data
CConfigC01 missing AK/SK
NNetworkN01 timeout
BCode bugB01 null pointer
PPlatformP01 scheduler error

Non-blocking, fail-silent. Disable with SKILL_QUALITY_DISABLE=1 for local testing.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Huawei Cloud Ecs Lifecycle?

Manage the full lifecycle of Huawei Cloud ECS (Elastic Cloud Server) instances — create, list, show details, start, stop, reboot, rename, and delete cloud servers — plus basic ECS knowledge Q&A. Covers CRUD plus power-state orchestration (start/stop/reboot) with batch support, pagination, and filters. All mutating operations require explicit user confirmation before execution. Triggers include: "创建云服务器", "删除云服务器", "启动云服务器", "停止云服务器", "重启云服务器", "修改云服务器名称", "查询云服务器列表", "查询云服务器详情", "ECS生命周期管理", "ECS运维", "create ecs", "delete ecs", "start ecs", "stop ecs", "reboot ecs", "ecs lifecycle", "弹性云服务器...

Firwat Huawei Cloud Ecs Lifecycle op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Huawei Cloud Ecs Lifecycle besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Huawei Cloud Ecs Lifecycle an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/computing/ecs/huawei-cloud-ecs-lifecycle an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Huawei Cloud Ecs Lifecycle benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Huawei Cloud Ecs Lifecycle benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Huawei Cloud Ecs Lifecycle domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Huawei Cloud Ecs Lifecycle gratis?

Jo. huaweicloud huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇