Skip to main content
Environment

Archive Environment

Archive a specified environment

POST
/api/v1/agentstudio/environments/{environment_id}/archive
cURL
curl --request POST \
  --url 'https://{workspace_id}.{region}.maas.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"
}

Authorizations

string
header
required

DashScope API Key

Path Parameters

string
required

环境 ID

Response

200-application/json
string

环境 ID

string

固定为 environment

string

环境名称

string

环境用途说明

object

完整运行时配置(沙箱类型、预装依赖、网络策略)

string

作用域

object

业务自定义键值

string

归档时间,ISO 8601;归档接口返回的对象中该字段一定非空

string

创建时间,ISO 8601

string

最近更新时间,ISO 8601

string

本次请求的唯一标识

Overview
Sandbox API
Memory API
Flow Agent API
RAG API
Connector API
Framework Integration
Assistant API (Deprecating)
  • Overview