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

2025/08/14 • 1 updated methods

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

⚶ Changes

{
  "#id": "CodeExecution_Execute",
  "$parameters": {
    "codeExecutionRequest": {
      "$properties": [
        {
          "#name": "timeoutInSeconds",
          "Format": {
            "new": "int32",
            "old": "int64"
          }
        }
      ]
    }
  }
}

⚼ Request

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

⚐ Response (200)

{
$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 ,
}
,
}
,
}
,
}