List Compute Sessions
list_compute_sessionsList SAS compute sessions to verify which job owns a session before requesting deletion, including sessions used for code execution and batch jobs.
Instructions
List your SAS compute sessions.
Includes the session execute_sas_code reuses and the sessions Job
Execution started for your batch jobs. Verify which job owns a session
before requesting deletion.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_compute_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum sessions to return (default 50). | |
| start | No | Offset of the first session, for paging. | |
| all_users | No | List every session SAS Viya lets you see, not only your own. Only an administrator sees other users' sessions. Pass it only when the person explicitly asks for all sessions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||