删除代码解释器
接口说明
删除指定的代码解释器实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
DELETE /2025-09-10/agents/code-interpreters/{codeInterpreterId} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| codeInterpreterId |
string |
是 |
代码解释器 ID |
12345678-1234-1234-1234-123456789abc |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
| DeleteCodeInterpreterResult |
返回删除结构体的结果 |
示例
正常返回示例
JSON格式
{
"code": "SUCCESS",
"requestId": "F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E",
"data": {
"codeInterpreterId": "ci-1234567890abcdef",
"codeInterpreterName": "my-code-interpreter",
"description": "Python code interpreter for data analysis",
"executionRoleArn": "acs:ram::1760720386195983:role/CodeInterpreterExecutionRole",
"createdAt": "2025-01-10T10:30:00Z",
"lastUpdatedAt": "2025-01-10T11:45:00Z",
"status": "READY",
"statusReason": "Code interpreter is ready for use",
"networkConfiguration": {
"networkMode": "PRIVATE",
"vpcId": "vpc-1234567890abcdef0",
"securityGroupId": "sg-1234567890abcdef0",
"vswitchIds": [
"vsw-sg-1234567890abcdef0"
]
},
"memory": 2048,
"cpu": 2,
"tenantId": "tenant-1234567890abcdef"
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?