360 Secure SkillHub
360 安全技能中心

Alicloud Compute Fc Agentrun

核心功能为通过ROA风格OpenAPI管理阿里云函数计算AgentRun的运行时、沙箱、模型服务等资源,支持创建运行时/端点、发布版本、配置凭证及故障排查。典型场景包括搭建AgentRun工作流、运维排查资源问题。可通过提供的Python脚本快速操作,需配置AccessKey、区域端点等环境变量,操作结果保存到指定输出目录,含关键参数便于复现。

cinience
cinience
热度 82.81
最近更新 2026-05-11 16:23:40
分类:开发依赖:代码执行 / 第三方 API / 读写文件应用场景:API 集成 / DevOps / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add alicloud-compute-fc-agentrun
Metadata
name
alicloud-compute-fc-agentrun
description
Manage Function Compute AgentRun resources via OpenAPI (runtime, sandbox, model, memory, credentials). Use for creating runtimes/endpoints, querying status, and troubleshooting AgentRun workflows.
version
1.0.0

Category: service

Function Compute AgentRun (OpenAPI)

Use AgentRun OpenAPI (ROA) to manage runtimes, sandboxes, model services, memory, and credentials.

Prerequisites

  • AccessKey via RAM user (least privilege).
  • Select the correct regional endpoint (see references/endpoints.md). If unsure, choose the most reasonable region for the task or ask the user.
  • Use OpenAPI Explorer or official SDK to avoid manual signing (ROA requires SignatureV1).

Workflow

  1. Choose region endpoint (agentrun.cn-<region>.aliyuncs.com).
  2. Create runtime → publish version → create runtime endpoint.
  3. Create sandbox/template if needed.
  4. Configure credentials and model services as required.
  5. Query resources for troubleshooting.

API Groups

See references/api_overview.md for the full API list and grouping.

Script quickstart

python skills/compute/fc/alicloud-compute-fc-agentrun/scripts/quickstart.py

Environment variables:

  • AGENTRUN_ENDPOINT
  • ALICLOUD_ACCESS_KEY_ID
  • ALICLOUD_ACCESS_KEY_SECRET
  • OUTPUT_DIR (optional)

Runtime flow script

AGENTRUN_RUNTIME_NAME="my-runtime" \\
AGENTRUN_RUNTIME_ENDPOINT_NAME="my-runtime-endpoint" \\
python skills/compute/fc/alicloud-compute-fc-agentrun/scripts/runtime_flow.py

Environment variables:

  • AGENTRUN_ENDPOINT
  • ALICLOUD_ACCESS_KEY_ID
  • ALICLOUD_ACCESS_KEY_SECRET
  • AGENTRUN_RUNTIME_NAME
  • AGENTRUN_RUNTIME_ENDPOINT_NAME
  • AGENTRUN_RUNTIME_DESC (optional)
  • OUTPUT_DIR (optional)

Cleanup script

AGENTRUN_RUNTIME_ID="runtime-id" \\
AGENTRUN_RUNTIME_ENDPOINT_ID="endpoint-id" \\
python skills/compute/fc/alicloud-compute-fc-agentrun/scripts/cleanup_runtime.py

Environment variables:

  • AGENTRUN_ENDPOINT
  • ALICLOUD_ACCESS_KEY_ID
  • ALICLOUD_ACCESS_KEY_SECRET
  • AGENTRUN_RUNTIME_ID
  • AGENTRUN_RUNTIME_ENDPOINT_ID
  • OUTPUT_DIR (optional)

SDK Notes

See references/sdk.md for SDK acquisition guidance.

Output Policy

If you store any generated files or responses, write them under: output/compute-fc-agentrun/.

Validation

mkdir -p output/alicloud-compute-fc-agentrun
for f in skills/compute/fc/alicloud-compute-fc-agentrun/scripts/*.py; do
  python3 -m py_compile "$f"
done
echo "py_compile_ok" > output/alicloud-compute-fc-agentrun/validate.txt

Pass criteria: command exits 0 and output/alicloud-compute-fc-agentrun/validate.txt is generated.

Output And Evidence

  • Save artifacts, command outputs, and API response summaries under output/alicloud-compute-fc-agentrun/.
  • Include key parameters (region/resource id/time range) in evidence files for reproducibility.

References

  • API overview and operation list: references/api_overview.md

  • Regional endpoints: references/endpoints.md

  • SDK guidance: references/sdk.md

  • Source list: references/sources.md