About alicloud-network-alb
A skill for operating Alibaba Cloud ALB through local Python scripts and OpenAPI workflows. It supports inventory, health checks, and lifecycle changes to load balancers, listeners, server groups, and rules, with evidence captured around changes.
Key features
- 01Inventory ALB and listener resources
- 02Check traffic paths and health status
- 03Manage load balancer lifecycle
- 04Manage listeners, server groups, and rules
- 05Save before-and-after state evidence
Use cases
- 01Inspect ALB resources and listener configuration
- 02Verify listener and server-group health
- 03Update listeners or rules within a change window
- 04Create or delete ALB-related resources
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ cinience/ alicloud-skills --skill alicloud-network-albAfter installing, type/alicloud-network-albin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
agents/openai.yamlreferences/api_quick_map.mdlog-analysis.mdresource-dependencies.mdscripts_catalog.mdsources.mdtroubleshooting.mdscripts/add_servers.pycheck_health_status.pycreate_listener.pycreate_load_balancer.pycreate_rule.pycreate_server_group.pydelete_listener.pydelete_load_balancer.pydelete_rule.pydelete_server_group.pydeletion_protection.pyget_instance_status.pyget_listener_attribute.pylist_acl_entries.pylist_acls.pylist_instances.pylist_listener_certificates.pylist_listeners.pylist_rules.pylist_security_policies.pylist_server_group_servers.pylist_server_groups.pyremove_servers.pyDetails
From the project READMECategory: service
Application Load Balancer (ALB)
Use this skill for end-to-end ALB operations via local Python scripts and OpenAPI-compatible workflows.
Validation
mkdir -p output/alicloud-network-alb
for f in skills/network/slb/alicloud-network-alb/scripts/*.py; do
python3 -m py_compile "$f"
done
echo "py_compile_ok" > output/alicloud-network-alb/validate.txt
Pass criteria: command exits 0 and output/alicloud-network-alb/validate.txt is generated.
Output And Evidence
- Save all command outputs, request parameters, and API responses under
output/alicloud-network-alb/. - For change operations, keep before/after snapshots plus health-check results.
Prerequisites
pip install alibabacloud_alb20200616 alibabacloud_tea_openapi alibabacloud_credentials
Credential priority:
ALICLOUD_ACCESS_KEY_ID/ALICLOUD_ACCESS_KEY_SECRET- Optional STS token:
ALICLOUD_SECURITY_TOKEN - Shared config:
~/.alibabacloud/credentials
Workflow
- Confirm region, VPC context, target ALB resource IDs, and expected change window.
- Run inventory scripts first (
list_*,get_*) and save baseline outputs. - Apply one change at a time (listener/server-group/rule/lb lifecycle).
- Wait for async completion when needed (
scripts/wait_for_job.py). - Validate final state with health checks and state re-query.
Top task playbooks
1) Read-only inventory and quick diagnosis
python3 scripts/list_instances.py --region cn-hangzhou --json --output output/alicloud-network-alb/instances.json
python3 scripts/list_server_groups.py --region cn-hangzhou --json --output output/alicloud-network-alb/server-groups.json
python3 scripts/list_acls.py --region cn-hangzhou --json --output output/alicloud-network-alb/acls.json
2) Inspect one ALB and listener details
python3 scripts/get_instance_status.py --region cn-hangzhou --lb-id alb-xxx --view detail --output output/alicloud-network-alb/lb-detail.json
python3 scripts/list_listeners.py --region cn-hangzhou --lb-id alb-xxx --json --output output/alicloud-network-alb/listeners.json
python3 scripts/get_listener_attribute.py --region cn-hangzhou --listener-id lsn-xxx --output output/alicloud-network-alb/listener-attr.json
3) Validate traffic path health
python3 scripts/check_health_status.py --region cn-hangzhou --listener-id lsn-xxx --output output/alicloud-network-alb/health.json
python3 scripts/list_server_group_servers.py --region cn-hangzhou --server-group-id sgp-xxx --output output/alicloud-network-alb/server-group-members.json
4) Controlled change flow (example: update listener)
python3 scripts/update_listener.py --region cn-hangzhou --listener-id lsn-xxx --request-timeout 120 --output output/alicloud-network-alb/update-listener.json
python3 scripts/check_health_status.py --region cn-hangzhou --listener-id lsn-xxx --output output/alicloud-network-alb/health-after-update.json
5) Resource lifecycle operations
- ALB lifecycle:
create_load_balancer.py,delete_load_balancer.py,deletion_protection.py - Listener lifecycle:
create_listener.py,start_listener.py,stop_listener.py,delete_listener.py - Server-group lifecycle:
create_server_group.py,add_servers.py,remove_servers.py,delete_server_group.py - Rule lifecycle:
create_rule.py,update_rule.py,delete_rule.py
References
- API quick map:
references/api_quick_map.md - Script catalog:
references/scripts_catalog.md - Troubleshooting:
references/troubleshooting.md - Logs and analysis:
references/log-analysis.md - Dependencies/order:
references/resource-dependencies.md - Sources:
references/sources.md
Comments
Markdown supported