Amazon Redshift · Schema
ListSessionsRequest
AnalyticsBig DataCloudData LakeData WarehouseETLMachine LearningServerlessSQL
Properties
| Name | Type | Description |
|---|---|---|
| NextToken | string | A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this |
| MaxResults | integer | The maximum number of sessions to return in the response. If more sessions exist than fit in one response, the operation returns NextToken to paginate the results. |
| SessionId | string | The identifier of a specific session to return metadata for. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. When you provide SessionId, you can't specify S |
| Status | string | The status of the sessions to list. If no status is specified, sessions with a status of AVAILABLE or BUSY are returned. Status values are defined as follows: AVAILABLE – The session is open and ready |
| RoleLevel | boolean | Specifies whether to return all sessions created by the caller's IAM role, including sessions from previous IAM sessions. If false, only sessions created in the current IAM session are returned. The d |
| ClusterIdentifier | string | The cluster identifier. Only sessions on this cluster are returned. When providing ClusterIdentifier, then WorkgroupName can't be specified. |
| WorkgroupName | string | The serverless workgroup name or Amazon Resource Name (ARN). Only sessions on this workgroup are returned. When providing WorkgroupName, then ClusterIdentifier can't be specified. |
| Database | string | The name of the database. Only sessions connected to this database are returned. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/amazon-redshift/json-schema/amazon-redshift-list-sessions-request-schema.json",
"title": "ListSessionsRequest",
"x-generated": "2026-11-11",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/amazon-redshift-operations-api-openapi.yml#/components/schemas/ListSessionsRequest",
"type": "object",
"properties": {
"NextToken": {
"type": "string",
"description": "A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request."
},
"MaxResults": {
"type": "integer",
"description": "The maximum number of sessions to return in the response. If more sessions exist than fit in one response, the operation returns NextToken to paginate the results."
},
"SessionId": {
"type": "string",
"description": "The identifier of a specific session to return metadata for. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. When you provide SessionId, you can't specify Status, ClusterIdentifier, WorkgroupName, or Database."
},
"Status": {
"type": "string",
"description": "The status of the sessions to list. If no status is specified, sessions with a status of AVAILABLE or BUSY are returned. Status values are defined as follows: AVAILABLE – The session is open and ready to run a SQL statement. BUSY – The session is currently running a SQL statement. CLOSED – The session is closed and can no longer run SQL statements."
},
"RoleLevel": {
"type": "boolean",
"description": "Specifies whether to return all sessions created by the caller's IAM role, including sessions from previous IAM sessions. If false, only sessions created in the current IAM session are returned. The default is true."
},
"ClusterIdentifier": {
"type": "string",
"description": "The cluster identifier. Only sessions on this cluster are returned. When providing ClusterIdentifier, then WorkgroupName can't be specified."
},
"WorkgroupName": {
"type": "string",
"description": "The serverless workgroup name or Amazon Resource Name (ARN). Only sessions on this workgroup are returned. When providing WorkgroupName, then ClusterIdentifier can't be specified."
},
"Database": {
"type": "string",
"description": "The name of the database. Only sessions connected to this database are returned."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/amazon-redshift-list-sessions-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.