You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-apps/session-pool.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -273,14 +273,14 @@ The following endpoints are available for managing sessions in a pool:
273
273
274
274
| Endpoint path | Method | Description |
275
275
|----------|--------|-------------|
276
-
|`code/execute`|`POST`| Execute code in a session. |
276
+
|`executions`|`POST`| Execute code in a session. |
277
277
|`files/upload`|`POST`| Upload a file to a session. |
278
278
|`files/content/{filename}`|`GET`| Download a file from a session. |
279
279
|`files`|`GET`| List the files in a session. |
280
280
281
-
You build the full URL for each endpoint by concatenating the pool's management API endpoint with the endpoint path. The query string must include an `identifier` parameter containing the session identifier, and an `api-version` parameter with the value `2024-02-02-preview`.
281
+
You build the full URL for each endpoint by concatenating the pool's management API endpoint with the endpoint path. The query string must include an `identifier` parameter containing the session identifier, and an `api-version` parameter with the value `2025-10-02-preview`.
282
282
283
-
For example: `https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/code/execute?api-version=2024-02-02-preview&identifier=<IDENTIFIER>`
283
+
For example: `https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/executions?api-version=2025-10-02-preview&identifier=<IDENTIFIER>`
284
284
285
285
To retrieve the session pool's management endpoint, use the `az containerapp sessionpool show` command:
Copy file name to clipboardExpand all lines: articles/container-apps/sessions-code-interpreter.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ The following example shows how to upload a file to a session.
95
95
Before you send the request, replace the placeholders between the `<>` brackets with values that are specific to your request.
96
96
97
97
```http
98
-
POST https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/files/upload?api-version=2024-02-02-preview&identifier=<SESSION_ID>
98
+
POST https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/files/upload?api-version=2025-10-02-preview&identifier=<SESSION_ID>
@@ -116,7 +116,7 @@ The following example demonstrates how to format a `GET` request to download a f
116
116
Before you send the request, replace the placeholders between the `<>` brackets with values that are specific to your request.
117
117
118
118
```http
119
-
GET https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/files/content/<FILE_NAME_AND_EXTENSION>?api-version=2024-02-02-preview&identifier=<SESSION_ID>
119
+
GET https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/files/content/<FILE_NAME_AND_EXTENSION>?api-version=2025-10-02-preview&identifier=<SESSION_ID>
120
120
Authorization: Bearer <TOKEN>
121
121
```
122
122
@@ -129,7 +129,7 @@ The following example shows how to list the files in a session's directory.
129
129
Before you send the request, replace the placeholders between the `<>` brackets with values that are specific to your request.
130
130
131
131
```http
132
-
GET https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/files?api-version=2024-02-02-preview&identifier=<SESSION_ID>
132
+
GET https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/files?api-version=2025-10-02-preview&identifier=<SESSION_ID>
133
133
Authorization: Bearer <TOKEN>
134
134
```
135
135
@@ -183,14 +183,14 @@ If you're not using an LLM framework integration, you can interact with the sess
183
183
184
184
## Run code in a session
185
185
186
-
To run code in a session, send a `POST` request to the `code/execute` endpoint with the code to run in the request body. Each code execution is limited to a maximum runtime of 220 seconds.
186
+
To run code in a session, send a `POST` request to the `executions` endpoint with the code to run in the request body. Each code execution is limited to a maximum runtime of 220 seconds.
187
187
188
188
The following example prints `Hello, world!` in Python.
189
189
190
190
Before you send the request, replace the placeholders between the `<>` brackets with the appropriate values for your session pool and session identifier.
191
191
192
192
```http
193
-
POST https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/code/execute?api-version=2024-02-02-preview&identifier=<SESSION_ID>
193
+
POST https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/executions?api-version=2025-10-02-preview&identifier=<SESSION_ID>
194
194
Content-Type: application/json
195
195
Authorization: Bearer <TOKEN>
196
196
@@ -214,7 +214,7 @@ Uploaded files are stored in the session's file system in the `/mnt/data` direct
214
214
Before you send the request, replace the placeholders between the `<>` brackets with values that are specific to your request.
215
215
216
216
```http
217
-
POST https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/files/upload?api-version=2024-02-02-preview&identifier=<SESSION_ID>
217
+
POST https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/files/upload?api-version=2025-10-02-preview&identifier=<SESSION_ID>
@@ -236,7 +236,7 @@ To download a file from a session's `/mnt/data` directory, send a `GET` request
236
236
Before you send the request, replace the placeholders between the `<>` brackets with values that are specific to your request.
237
237
238
238
```http
239
-
GET https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/files/content/<FILE_NAME_AND_EXTENSION>?api-version=2024-02-02-preview&identifier=<SESSION_ID>
239
+
GET https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/files/content/<FILE_NAME_AND_EXTENSION>?api-version=2025-10-02-preview&identifier=<SESSION_ID>
240
240
Authorization: Bearer <TOKEN>
241
241
```
242
242
@@ -247,7 +247,7 @@ To list the files in a session's `/mnt/data` directory, send a `GET` request to
247
247
Before you send the request, replace the placeholders between the `<>` brackets with values that are specific to your request.
248
248
249
249
```http
250
-
GET https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/files?api-version=2024-02-02-preview&identifier=<SESSION_ID>
250
+
GET https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/files?api-version=2025-10-02-preview&identifier=<SESSION_ID>
251
251
Authorization: Bearer <TOKEN>
252
252
```
253
253
@@ -285,12 +285,12 @@ Following is an example of the type of response you can expect when you request
285
285
286
286
Python code interpreter sessions include popular Python packages such as NumPy, pandas, and scikit-learn.
287
287
288
-
To output the list of preinstalled packages, call the `code/execute` endpoint with the following code.
288
+
To output the list of preinstalled packages, call the `executions` endpoint with the following code.
289
289
290
290
Before you send the request, replace the placeholders between the `<>` brackets with values that are specific to your request.
291
291
292
292
```http
293
-
POST https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/identifier/<SESSION_ID>/code/execute?api-version=2024-02-02-preview&identifier=<SESSION_ID>
293
+
POST https://<REGION>.dynamicsessions.io/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/sessionPools/<SESSION_POOL_NAME>/executions?api-version=2025-10-02-preview&identifier=<SESSION_ID>
294
294
Content-Type: application/json
295
295
Authorization: Bearer <TOKEN>
296
296
@@ -314,14 +314,14 @@ If you need request or response tracing, capture it in the application that call
314
314
315
315
## Metrics
316
316
317
-
Code interpreter usage and execution metrics are returned as HTTP response headers for the Execute Code API. These metrics aren't written to Log Analytics.
317
+
Code interpreter usage and execution metrics are returned as HTTP response headers for the code execution API. These metrics aren't written to Log Analytics.
318
318
319
319
### View metrics
320
320
321
-
1. Call the Execute Code API (`code/execute`).
321
+
1. Call the code execution API (`/executions`).
322
322
2. Inspect the HTTP response headers for usage and execution metrics.
323
323
324
-
For details about the Execute Code API and endpoints, see [Run code in a session](#run-code-in-a-session) and [Management API endpoints](#management-api-endpoints).
324
+
For details about the code execution API and endpoints, see [Run code in a session](#run-code-in-a-session) and [Management API endpoints](#management-api-endpoints).
0 commit comments