AWS Glue AWS Glue #X Amz Target=AWSGlue.ListSessions API

The AWS Glue #X Amz Target=AWSGlue.ListSessions API API from AWS Glue — 1 operation(s) for aws glue #x amz target=awsglue.listsessions api.

GitHub OpenAPI

Operations 1

POST /#ListSessions List Sessions #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/aws-glue:aws-glue-aws-glue-x-amz-target-awsglue-listsessions-api-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

aws-glue-aws-glue-x-amz-target-awsglue-listsessions-api-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Glue Aws Glue X Amz Target Awsglue Listsessions Api API
  version: '2017-03-31'
  description: Generated from AWS's published Smithy model for AWS Glue. 1 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://glue.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#ListSessions:
    post:
      operationId: ListSessions
      summary: List Sessions
      description: Retrieve a list of sessions.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ListSessionsResponse'
        '400':
          description: AccessDeniedException; InvalidInputException; OperationTimeoutException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServiceException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServiceException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSGlue.ListSessions
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/ListSessionsRequest'
      tags:
      - Aws Glue X Amz Target Awsglue Listsessions Api
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: glue
  schemas:
    AccessDeniedException:
      type: object
      properties:
        Message:
          type: string
          description: A message describing the problem.
    ConnectionsList:
      type: object
      properties:
        Connections:
          type: array
          items:
            type: string
          description: A list of connections used by the job.
    InternalServiceException:
      type: object
      properties:
        Message:
          type: string
          description: A message describing the problem.
    ListSessionsRequest:
      type: object
      properties:
        NextToken:
          type: string
          description: The token for the next set of results, or null if there are no more result.
        MaxResults:
          type: integer
          description: The maximum number of results.
        Tags:
          type: object
          additionalProperties:
            type: string
          description: Tags belonging to the session.
        RequestOrigin:
          type: string
          description: The origin of the request.
    ListSessionsResponse:
      type: object
      properties:
        Ids:
          type: array
          items:
            type: string
          description: Returns the ID of the session.
        Sessions:
          type: array
          items:
            $ref: '#/components/schemas/Session'
          description: Returns the session object.
        NextToken:
          type: string
          description: The token for the next set of results, or null if there are no more result.
    Session:
      type: object
      properties:
        Id:
          type: string
          description: The ID of the session.
        CreatedOn:
          type: string
          format: date-time
          description: The time and date when the session was created.
        Status:
          type: string
          enum:
          - PROVISIONING
          - READY
          - FAILED
          - TIMEOUT
          - STOPPING
          - STOPPED
          description: The session status.
        ErrorMessage:
          type: string
          description: The error message displayed during the session.
        Description:
          type: string
          description: The description of the session.
        Role:
          type: string
          description: The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
        Command:
          $ref: '#/components/schemas/SessionCommand'
        DefaultArguments:
          type: object
          additionalProperties:
            type: string
          description: A map array of key-value pairs. Max is 75 pairs.
        Connections:
          $ref: '#/components/schemas/ConnectionsList'
        Progress:
          type: number
          description: The code execution progress of the session.
        MaxCapacity:
          type: number
          description: The number of Glue data processing units (DPUs) that can be allocated when the job runs. A DPU is a
            relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB memory.
        SecurityConfiguration:
          type: string
          description: The name of the SecurityConfiguration structure to be used with the session.
        GlueVersion:
          type: string
          description: The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion
            must be greater than 2.0.
        NumberOfWorkers:
          type: integer
          description: The number of workers of a defined WorkerType to use for the session.
        WorkerType:
          type: string
          enum:
          - Standard
          - G.1X
          - G.2X
          - G.4X
          - G.8X
          - G.025X
          - Z.2X
          - G.12X
          - G.16X
          - R.1X
          - R.2X
          - R.4X
          - R.8X
          description: The type of predefined worker that is allocated when a session runs. Accepts a value of G.1X, G.2X,
            G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark sessions. Accepts the value Z.2X for Ray sessions.
            The G.12X, G.16X, and R.1X through R.8X worker types are available only for Glue version 4.0 or later Spark ETL
            jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark
            jobs in the developer guide.
        CompletedOn:
          type: string
          format: date-time
          description: The date and time that this session is completed.
        ExecutionTime:
          type: number
          description: The total time the session ran for.
        DPUSeconds:
          type: number
          description: 'The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).'
        IdleTimeout:
          type: integer
          description: The number of minutes when idle before the session times out.
        ProfileName:
          type: string
          description: The name of an Glue usage profile associated with the session.
        SessionType:
          type: string
          enum:
          - LIVY
          - SPARK_CONNECT
          description: The type of the session.
    SessionCommand:
      type: object
      properties:
        Name:
          type: string
          description: Specifies the name of the SessionCommand. Can be 'glueetl' or 'gluestreaming'.
        PythonVersion:
          type: string
          description: Specifies the Python version. The Python version indicates the version supported for jobs of type Spark.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/glue/service/2017-03-31/glue-2017-03-31.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)