aliyun-hbr-backup
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCategory: service
分类:服务
Cloud Backup
云备份
Use Alibaba Cloud OpenAPI (RPC) with official SDKs or OpenAPI Explorer to manage resources for Cloud Backup.
通过官方SDK或OpenAPI Explorer调用阿里云OpenAPI(RPC协议)来管理云备份的资源。
Workflow
工作流
- Confirm region, resource identifiers, and desired action.
- Discover API list and required parameters (see references).
- Call API with SDK or OpenAPI Explorer.
- Verify results with describe/list APIs.
- 确认地域、资源标识符和所需执行的操作。
- 查找API列表和所需参数(参见参考文档)。
- 通过SDK或OpenAPI Explorer调用API。
- 使用describe/list类API验证执行结果。
AccessKey priority (must follow)
AccessKey优先级(必须遵守)
- Environment variables: /
ALICLOUD_ACCESS_KEY_ID/ALICLOUD_ACCESS_KEY_SECRETRegion policy:ALICLOUD_REGION_IDis an optional default. If unset, decide the most reasonable region for the task; if unclear, ask the user.ALICLOUD_REGION_ID - Shared config file:
~/.alibabacloud/credentials
- 环境变量:/
ALICLOUD_ACCESS_KEY_ID/ALICLOUD_ACCESS_KEY_SECRET地域策略:ALICLOUD_REGION_ID为可选默认配置。如果未设置,需为当前任务选择最合理的地域;如果无法确定,请询问用户。ALICLOUD_REGION_ID - 共享配置文件:
~/.alibabacloud/credentials
API discovery
API查找
- Product code:
hbr - Default API version:
2017-09-08 - Use OpenAPI metadata endpoints to list APIs and get schemas (see references).
- 产品代码:
hbr - 默认API版本:
2017-09-08 - 使用OpenAPI元数据端点列出API并获取Schema(参见参考文档)。
High-frequency operation patterns
高频操作模式
- Inventory/list: prefer /
List*APIs to get current resources.Describe* - Change/configure: prefer /
Create*/Update*/Modify*APIs for mutations.Set* - Status/troubleshoot: prefer /
Get*/Query*APIs for diagnosis.Describe*Status
- 盘点/罗列:优先使用/
List*类API获取当前资源信息。Describe* - 变更/配置:优先使用/
Create*/Update*/Modify*类API执行变更操作。Set* - 状态查询/故障排查:优先使用/
Get*/Query*类API进行诊断。Describe*Status
Minimal executable quickstart
最小可执行快速开始
Use metadata-first discovery before calling business APIs:
bash
python scripts/list_openapi_meta_apis.pyOptional overrides:
bash
python scripts/list_openapi_meta_apis.py --product-code <ProductCode> --version <Version>The script writes API inventory artifacts under the skill output directory.
调用业务API前优先使用元数据查找:
bash
python scripts/list_openapi_meta_apis.py可选覆盖参数:
bash
python scripts/list_openapi_meta_apis.py --product-code <ProductCode> --version <Version>脚本会将API清单产物写入到skill的输出目录下。
Output policy
输出策略
If you need to save responses or generated artifacts, write them under:
output/aliyun-hbr-backup/如果你需要保存响应或生成的产物,请写入到以下路径:
output/aliyun-hbr-backup/Validation
验证
bash
mkdir -p output/aliyun-hbr-backup
for f in skills/backup/aliyun-hbr-backup/scripts/*.py; do
python3 -m py_compile "$f"
done
echo "py_compile_ok" > output/aliyun-hbr-backup/validate.txtPass criteria: command exits 0 and is generated.
output/aliyun-hbr-backup/validate.txtbash
mkdir -p output/aliyun-hbr-backup
for f in skills/backup/aliyun-hbr-backup/scripts/*.py; do
python3 -m py_compile "$f"
done
echo "py_compile_ok" > output/aliyun-hbr-backup/validate.txt通过标准:命令退出码为0,且成功生成文件。
output/aliyun-hbr-backup/validate.txtOutput And Evidence
输出与凭证
- Save artifacts, command outputs, and API response summaries under .
output/aliyun-hbr-backup/ - Include key parameters (region/resource id/time range) in evidence files for reproducibility.
- 将产物、命令输出和API响应摘要保存到目录下。
output/aliyun-hbr-backup/ - 在凭证文件中包含关键参数(地域/资源ID/时间范围),便于复现操作。
Prerequisites
前置要求
- Configure least-privilege Alibaba Cloud credentials before execution.
- Prefer environment variables: ,
ALICLOUD_ACCESS_KEY_ID, optionalALICLOUD_ACCESS_KEY_SECRET.ALICLOUD_REGION_ID - If region is unclear, ask the user before running mutating operations.
- 执行前配置权限最小化的阿里云凭证。
- 优先使用环境变量:、
ALICLOUD_ACCESS_KEY_ID,可选配置ALICLOUD_ACCESS_KEY_SECRET。ALICLOUD_REGION_ID - 如果地域不明确,执行变更操作前请先询问用户。
References
参考文档
- Sources:
references/sources.md
- 来源:
references/sources.md