Microsoft.App.DynamicSessions (preview:2025-02-02)

2025/06/19 • 11 new methods

CodeExecution_Execute (new)
Description Execute code in a session.
Reference Link ¶

⚼ Request

POST:  /executions
{
api-version: string ,
identifier: string ,
operation-id: string ,
codeExecutionRequest:
{
codeInputType: enum ,
executionType: enum ,
code: string ,
timeoutInSeconds: integer ,
}
,
}

⚐ Response (202)

{
$headers:
{
operation-location: string ,
operation-id: string ,
x-ms-error-code: string ,
}
,
$schema:
{
id: string ,
identifier: string ,
executionType: enum ,
status: enum ,
error:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
result:
{
stdout: string ,
stderr: string ,
executionResult: string ,
executionTimeInMilliseconds: integer ,
}
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
CodeExecution_Get (new)
Description Get the code execution result.
Reference Link ¶

⚼ Request

GET:  /executions/{executionId}
{
api-version: string ,
executionId: string ,
identifier: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
id: string ,
identifier: string ,
executionType: enum ,
status: enum ,
error:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
result:
{
stdout: string ,
stderr: string ,
executionResult: string ,
executionTimeInMilliseconds: integer ,
}
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
SessionResourceFiles_List (new)
Description List the file resources.
Reference Link ¶

⚼ Request

GET:  /files
{
api-version: string ,
identifier: string ,
path: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
type: string ,
contentType: string ,
sizeInBytes: integer ,
lastModifiedAt: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
SessionResourceFiles_Upload (new)
Description Upload a file to a session.
Reference Link ¶

⚼ Request

POST:  /files
{
api-version: string ,
identifier: string ,
path: string ,
file: file ,
}

⚐ Response (200)

{
name: string ,
type: string ,
contentType: string ,
sizeInBytes: integer ,
lastModifiedAt: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
SessionResourceFiles_Get (new)
Description Get the file resource.
Reference Link ¶

⚼ Request

GET:  /files/{name}
{
api-version: string ,
name: string ,
identifier: string ,
path: string ,
}

⚐ Response (200)

{
name: string ,
type: string ,
contentType: string ,
sizeInBytes: integer ,
lastModifiedAt: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
SessionResourceFiles_Delete (new)
Description Delete the file.
Reference Link ¶

⚼ Request

DELETE:  /files/{name}
{
api-version: string ,
name: string ,
identifier: string ,
path: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
SessionResourceFiles_GetContent (new)
Description Get the content of the file.
Reference Link ¶

⚼ Request

GET:  /files/{name}/content
{
api-version: string ,
name: string ,
identifier: string ,
path: string ,
}

⚐ Response (200)

{
$schema: file ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
ListSessions_Get (new)
Description List the sessions.
Reference Link ¶

⚼ Request

GET:  /listSessions
{
api-version: string ,
skip: integer ,
}

⚐ Response (200)

{
sessions:
[
{
identifier: string ,
createdAt: string ,
lastAccessedAt: string ,
expireAt: string ,
etag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
SessionPoolMetadata_Get (new)
Description Get the metadata information.
Reference Link ¶

⚼ Request

GET:  /metadata
{
api-version: string ,
}

⚐ Response (200)

{
runtimes:
[
{
name: string ,
version: string ,
}
,
]
,
preInstalledPackages:
[
{
name: string ,
version: string ,
}
,
]
,
createdAt: string ,
lastUpdatedAt: string ,
jupyterKernel:
{
name: string ,
version: string ,
projectUrl: string ,
description: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
SessionManagement_Get (new)
Description Get the session.
Reference Link ¶

⚼ Request

GET:  /session
{
api-version: string ,
identifier: string ,
}

⚐ Response (200)

{
identifier: string ,
createdAt: string ,
lastAccessedAt: string ,
expireAt: string ,
etag: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
SessionManagement_Delete (new)
Description Delete the session.
Reference Link ¶

⚼ Request

DELETE:  /session
{
api-version: string ,
identifier: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}