Category: service
Use Alibaba Cloud CDN OpenAPI (RPC) for common operations and integrations including:
1) Define target resources: accelerated domains, business type, change window, and rollback criteria.
2) Run API discovery and confirm target API names, required parameters, and version.
3) Query current config/state with read-only APIs (Describe*) first.
4) Execute mutating APIs (Add/Set/BatchSet/Delete) and record request context.
5) Validate changes with monitoring/log APIs and save evidence in output/aliyun-cdn-manage/.
1) Environment variables:ALICLOUD_ACCESS_KEY_ID / ALICLOUD_ACCESS_KEY_SECRET / ALICLOUD_REGION_ID
2) Shared credentials file:~/.alibabacloud/credentials
If region/environment is unclear, confirm with user before mutating operations.
cdn2018-05-10https://api.aliyun.com/meta/v1/products/cdn/versions/2018-05-10/api-docs.jsonpython skills/network/cdn/aliyun-cdn-manage/scripts/list_openapi_meta_apis.py
Optional arguments:
python skills/network/cdn/aliyun-cdn-manage/scripts/list_openapi_meta_apis.py \
--product-code cdn \
--version 2018-05-10 \
--output-dir output/aliyun-cdn-manage
AddCdnDomain、DescribeUserDomains、DescribeCdnDomainDetail、DeleteCdnDomainRefreshObjectCaches(refresh)、PushObjectCache(preload)SetDomainServerCertificate, DescribeDomainCertificateInfoDescribeCdnDomainLogs、DescribeDomainRealTimeRequestStatData、DescribeDomainRealTimeBpsDataWrite generated files and execution evidence to:
output/aliyun-cdn-manage/
mkdir -p output/aliyun-cdn-manage
for f in skills/network/cdn/aliyun-cdn-manage/scripts/*.py; do
python3 -m py_compile "$f"
done
echo "py_compile_ok" > output/aliyun-cdn-manage/validate.txt
Pass criteria: command exits 0 and output/aliyun-cdn-manage/validate.txt is generated.
output/aliyun-cdn-manage/.ALICLOUD_ACCESS_KEY_ID, ALICLOUD_ACCESS_KEY_SECRET, optional ALICLOUD_REGION_ID.references/sources.md共 1 个版本