Category: service
ApsaraVideo for Media Processing (MPS)
Validation
CODEBLOCK0
Pass criteria: command exits 0 and output/aliyun-mps-manage/validate.txt is generated.
Output And Evidence
- - Save API inventory and operation evidence under
output/aliyun-mps-manage/. - Keep region, pipeline/template/workflow IDs, media IDs, and request parameters in evidence files.
Use Alibaba Cloud OpenAPI (RPC) with official SDKs or OpenAPI Explorer to manage MPS resources.
Prefer metadata-first API discovery before mutate operations.
Prerequisites
- - Prepare least-privilege RAM AccessKey/STS credentials.
- Confirm target region and OSS input/output buckets before changes.
- Use read-only query APIs first.
Workflow
1) Confirm target media scope, bucket binding, and desired operation.
2) Discover API names and required parameters via OpenAPI metadata and API Explorer.
3) Execute read-only validation calls.
4) Execute pipeline/template/workflow/job operations.
5) Save outputs and evidence under output/aliyun-mps-manage/.
AccessKey Priority
1) Environment variables: ALICLOUD_ACCESS_KEY_ID / ALICLOUD_ACCESS_KEY_SECRET / ALICLOUD_REGION_ID.
2) Shared config file: ~/.alibabacloud/credentials.
If region is ambiguous, ask before write operations.
API Discovery
- - Product code: INLINECODE7
- Default API version: INLINECODE8
- Metadata source: INLINECODE9
Minimal Executable Quickstart
CODEBLOCK1
Optional overrides:
CODEBLOCK2
Common Operation Mapping
- - Pipeline operations:
AddPipeline, UpdatePipeline, QueryPipelineList, INLINECODE13 - Template operations:
AddTemplate, UpdateTemplate, QueryTemplateList, INLINECODE17 - Workflow operations:
AddMediaWorkflow, UpdateMediaWorkflow, QueryMediaWorkflowList, INLINECODE21 - Job operations:
SubmitJobs, QueryJobList, ListJob, INLINECODE25 - Snapshot and analysis:
SubmitSnapshotJob, QuerySnapshotJobList, INLINECODE28 - Media and bucket management:
AddMedia, UpdateMedia, DeleteMedia, BindInputBucket, INLINECODE33
Output Policy
Write all generated files and execution evidence under:
INLINECODE34
References
- - Source list: INLINECODE35
- Task templates: INLINECODE36
技能名称: aliyun-mps-manage
详细描述:
类别: 服务
视频云媒体处理(MPS)
验证
bash
mkdir -p output/aliyun-mps-manage
python -m pycompile skills/media/mps/aliyun-mps-manage/scripts/listopenapimetaapis.py
echo pycompileok > output/aliyun-mps-manage/validate.txt
通过条件:命令退出码为0,且生成 output/aliyun-mps-manage/validate.txt 文件。
输出与证据
- - 将API清单和操作证据保存至 output/aliyun-mps-manage/ 目录下。
- 在证据文件中保留地域、管道/模板/工作流ID、媒体ID及请求参数。
使用阿里云OpenAPI(RPC)配合官方SDK或OpenAPI Explorer管理MPS资源。
优先通过元数据发现API,再执行变更操作。
前置条件
- - 准备最小权限的RAM AccessKey/STS凭证。
- 变更前确认目标地域及OSS输入/输出存储桶。
- 优先使用只读查询API。
工作流程
1) 确认目标媒体范围、存储桶绑定及所需操作。
2) 通过OpenAPI元数据和API Explorer发现API名称及所需参数。
3) 执行只读验证调用。
4) 执行管道/模板/工作流/作业操作。
5) 将输出和证据保存至 output/aliyun-mps-manage/ 目录下。
AccessKey优先级
1) 环境变量:ALICLOUDACCESSKEYID / ALICLOUDACCESSKEYSECRET / ALICLOUDREGIONID。
2) 共享配置文件:~/.alibabacloud/credentials。
若地域不明确,在写操作前需询问确认。
API发现
- - 产品代码:Mts
- 默认API版本:2014-06-18
- 元数据来源:https://api.aliyun.com/meta/v1/products/Mts/versions/2014-06-18/api-docs.json
最小可执行快速启动
bash
python skills/media/mps/aliyun-mps-manage/scripts/listopenapimeta_apis.py
可选覆盖参数:
bash
python skills/media/mps/aliyun-mps-manage/scripts/listopenapimeta_apis.py \
--product-code Mts \
--version 2014-06-18 \
--output-dir output/aliyun-mps-manage
常见操作映射
- - 管道操作:AddPipeline、UpdatePipeline、QueryPipelineList、SearchPipeline
- 模板操作:AddTemplate、UpdateTemplate、QueryTemplateList、SearchTemplate
- 工作流操作:AddMediaWorkflow、UpdateMediaWorkflow、QueryMediaWorkflowList、ListMediaWorkflowExecutions
- 作业操作:SubmitJobs、QueryJobList、ListJob、CancelJob
- 截图与分析:SubmitSnapshotJob、QuerySnapshotJobList、SubmitAnalysisJob
- 媒体与存储桶管理:AddMedia、UpdateMedia、DeleteMedia、BindInputBucket、BindOutputBucket
输出策略
所有生成的文件和执行证据均写入以下目录:
output/aliyun-mps-manage/
参考资料
- - 来源列表:references/sources.md
- 任务模板:references/templates.md