Environment
归档 Environment
归档指定的运行环境
cURL
Copy
curl --request POST \
--url 'https://{workspace_id}.{region}.maas.aliyuncs.com/api/v1/agentstudio/environments/{environment_id}/archive' \
--header 'Authorization: Bearer <YOUR_API_KEY>'Copy
{
"id": "env_xxx",
"type": "environment",
"name": "data-sandbox",
"description": "数据分析沙箱",
"config": {
"type": "cloud",
"packages": {
"apt": [
"ffmpeg"
],
"pip": [
"pandas",
"numpy"
]
},
"networking": {
"type": "unrestricted"
}
},
"scope": "organization",
"metadata": {
"team": "infra"
},
"archived_at": "2026-07-25T13:47:18Z",
"created_at": "2026-07-20T12:45:34Z",
"updated_at": "2026-07-25T13:47:18Z",
"request_id": "req_xxx"
}