Environment
归档 Environment
归档指定的运行环境
cURL
复制
curl --request POST \
--url 'https://dashscope.aliyuncs.com/api/v1/agentstudio/environments/{environment_id}/archive' \
--header 'Authorization: Bearer <YOUR_API_KEY>'复制
{
"id": "env_xxx",
"type": "environment",
"name": "data-sandbox",
"description": "数据分析沙箱",
"config": {
"type": "cloud",
"packages": {
"apt": [
"ffmpeg"
],
"pip": [
"pandas",
"numpy",
"matplotlib"
]
},
"networking": {
"type": "unrestricted"
}
},
"metadata": {
"team": "infra"
},
"scope": "organization",
"archived_at": "2026-06-16T13:47:18+08:00",
"created_at": "2026-06-16T12:45:34+08:00",
"updated_at": "2026-06-16T13:47:18+08:00",
"requestId": "xxx"
}