CreateCodeInterpreter
Updated at:
Copy as MD
Creates a code interpreter.
Operation description
Creates a code interpreter instance to execute code interpretation and run tasks. The code interpreter provides features such as Python code execution, data processing, and machine learning.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentrun:CreateCodeInterpreter |
create |
*All Resource
|
None | None |
Request syntax
POST /2025-09-10/agents/code-interpreters HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body | CreateCodeInterpreterInput |
Yes |
The request parameters for creating a code interpreter. |
Response elements
|
Element |
Type |
Description |
Example |
| CodeInterpreterResult |
The result of the creation struct. |
Examples
Success response
JSON format
{
"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"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.
Is this page helpful?