Skip to main content
Environment

归档 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"
      ]
    },
    "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"
}

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

创建时间

string

更新时间

string

请求唯一标识

RAG API
Connector API
Memory API
框架集成
  • 框架