Skip to content

Commit 94f1b8c

Browse files
committed
Remove stop session section
1 parent 52cc119 commit 94f1b8c

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

articles/container-apps/sessions-usage.md

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -76,40 +76,6 @@ The identifier must be a string that is 4 to 128 characters long and can contain
7676

7777
As you continue to make calls to the same session, the session remains [allocated](sessions.md#key-concepts) in the pool. Once there are no requests to the session after the cooldown period has elapsed, the session is automatically destroyed.
7878

79-
### Stop a session
80-
81-
Session pools can manage session lifecycle automatically, but you can also terminate a session manually when you need to free resources immediately (for example, after work completes or when the pool is at its max concurrent sessions). The API you use depends on the session pool type.
82-
83-
#### Code interpreter session pools (Delete Session API)
84-
85-
To terminate a code interpreter session, use the Delete Session API (`DELETE`). See the data-plane REST reference for the latest endpoint shape and API version: [Container Apps data-plane operations overview](/rest/api/data-plane/containerapps/operation-groups).
86-
87-
#### Custom container session pools (Stop Session API)
88-
89-
##### Request
90-
91-
```http
92-
POST {PoolManagementEndpoint}/.management/stopSession?api-version=2025-02-02-preview&identifier={SessionIdentifier}
93-
```
94-
95-
| Parameter | Type | Required | Description |
96-
| --- | --- | --- | --- |
97-
| `api-version` | string | Yes | The API version to use (for example, `2025-02-02-preview`). |
98-
| `identifier` | string | Yes | The unique identifier of the session to stop. |
99-
100-
##### Example
101-
102-
```http
103-
POST https://{PoolManagementEndpoint}/.management/stopSession?api-version=2025-02-02-preview&identifier=testSessionIdentifier
104-
```
105-
106-
```text
107-
HTTP/1.1 200 OK
108-
Content-Type: text/plain
109-
110-
Session testSessionIdentifier in session pool testSessionPool stopped.
111-
```
112-
11379
## Security
11480

11581
### Security model

0 commit comments

Comments
 (0)