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

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

GitHub OpenAPI

Operations 1

POST /#GetPartitions Get Partitions #

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-getpartitions-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-getpartitions-api-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Glue Aws Glue X Amz Target Awsglue Getpartitions 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:
  /#GetPartitions:
    post:
      operationId: GetPartitions
      summary: Get Partitions
      description: Retrieves information about the partitions in a table.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/GetPartitionsResponse'
        '400':
          description: EntityNotFoundException; FederationSourceException; FederationSourceRetryableException; GlueEncryptionException;
            InvalidInputException; InvalidStateException; OperationTimeoutException; ResourceNotReadyException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/EntityNotFoundException'
        '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.GetPartitions
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/GetPartitionsRequest'
      tags:
      - Aws Glue X Amz Target Awsglue Getpartitions 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:
    AuditContext:
      type: object
      properties:
        AdditionalAuditContext:
          type: string
          description: A string containing the additional audit context information.
        RequestedColumns:
          type: array
          items:
            type: string
          description: The requested columns for audit.
        AllColumnsRequested:
          type: boolean
          description: All columns request for audit.
    Column:
      type: object
      properties:
        Name:
          type: string
          description: The name of the Column.
        Type:
          type: string
          description: The data type of the Column.
        Comment:
          type: string
          description: A free-form text comment.
        Parameters:
          type: object
          additionalProperties:
            type: string
          description: These key-value pairs define properties associated with the column.
      required:
      - Name
    EntityNotFoundException:
      type: object
      properties:
        Message:
          type: string
          description: A message describing the problem.
        FromFederationSource:
          type: boolean
          description: Indicates whether or not the exception relates to a federated source.
    GetPartitionsRequest:
      type: object
      properties:
        CatalogId:
          type: string
          description: The ID of the Data Catalog where the partitions in question reside. If none is provided, the Amazon
            Web Services account ID is used by default.
        DatabaseName:
          type: string
          description: The name of the catalog database where the partitions reside.
        TableName:
          type: string
          description: The name of the partitions' table.
        Expression:
          type: string
          description: 'An expression that filters the partitions to be returned. The expression uses SQL syntax similar to
            the SQL WHERE filter clause. The SQL statement parser JSQLParser parses the expression. Operators: The following
            are the operators that you can use in the Expression API call: = Checks whether the values of the two operands
            are equal; if yes, then the condition becomes true. Example: Assume ''variable a'' holds 10 and ''variable b''
            holds 20. (a = b) is not true. Checks whether the values of two operands are equal; if the values are not equal,
            then the condition becomes true. Example: (a b) is true.'
        NextToken:
          type: string
          description: A continuation token, if this is not the first call to retrieve these partitions.
        Segment:
          $ref: '#/components/schemas/Segment'
        MaxResults:
          type: integer
          description: The maximum number of partitions to return in a single response.
        ExcludeColumnSchema:
          type: boolean
          description: When true, specifies not returning the partition column schema. Useful when you are interested only
            in other partition attributes such as partition values or location. This approach avoids the problem of a large
            response by not returning duplicate data.
        TransactionId:
          type: string
          description: The transaction ID at which to read the partition contents.
        QueryAsOfTime:
          type: string
          format: date-time
          description: The time as of when to read the partition contents. If not set, the most recent transaction commit
            time will be used. Cannot be specified along with TransactionId.
        AuditContext:
          $ref: '#/components/schemas/AuditContext'
      required:
      - DatabaseName
      - TableName
    GetPartitionsResponse:
      type: object
      properties:
        Partitions:
          type: array
          items:
            $ref: '#/components/schemas/Partition'
          description: A list of requested partitions.
        NextToken:
          type: string
          description: A continuation token, if the returned list of partitions does not include the last one.
    InternalServiceException:
      type: object
      properties:
        Message:
          type: string
          description: A message describing the problem.
    Order:
      type: object
      properties:
        Column:
          type: string
          description: The name of the column.
        SortOrder:
          type: integer
          description: Indicates that the column is sorted in ascending order (== 1), or in descending order (==0).
      required:
      - Column
      - SortOrder
    Partition:
      type: object
      properties:
        Values:
          type: array
          items:
            type: string
          description: The values of the partition.
        DatabaseName:
          type: string
          description: The name of the catalog database in which to create the partition.
        TableName:
          type: string
          description: The name of the database table in which to create the partition.
        CreationTime:
          type: string
          format: date-time
          description: The time at which the partition was created.
        LastAccessTime:
          type: string
          format: date-time
          description: The last time at which the partition was accessed.
        StorageDescriptor:
          $ref: '#/components/schemas/StorageDescriptor'
        Parameters:
          type: object
          additionalProperties:
            type: string
          description: These key-value pairs define partition parameters.
        LastAnalyzedTime:
          type: string
          format: date-time
          description: The last time at which column statistics were computed for this partition.
        CatalogId:
          type: string
          description: The ID of the Data Catalog in which the partition resides.
    SchemaId:
      type: object
      properties:
        SchemaArn:
          type: string
          description: The Amazon Resource Name (ARN) of the schema. One of SchemaArn or SchemaName has to be provided.
        SchemaName:
          type: string
          description: The name of the schema. One of SchemaArn or SchemaName has to be provided.
        RegistryName:
          type: string
          description: The name of the schema registry that contains the schema.
    SchemaReference:
      type: object
      properties:
        SchemaId:
          $ref: '#/components/schemas/SchemaId'
        SchemaVersionId:
          type: string
          description: The unique ID assigned to a version of the schema. Either this or the SchemaId has to be provided.
        SchemaVersionNumber:
          type: integer
          description: The version number of the schema.
    Segment:
      type: object
      properties:
        SegmentNumber:
          type: integer
          description: The zero-based index number of the segment. For example, if the total number of segments is 4, SegmentNumber
            values range from 0 through 3.
        TotalSegments:
          type: integer
          description: The total number of segments.
      required:
      - SegmentNumber
      - TotalSegments
    SerDeInfo:
      type: object
      properties:
        Name:
          type: string
          description: Name of the SerDe.
        SerializationLibrary:
          type: string
          description: Usually the class that implements the SerDe. An example is org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.
        Parameters:
          type: object
          additionalProperties:
            type: string
          description: These key-value pairs define initialization parameters for the SerDe.
    SkewedInfo:
      type: object
      properties:
        SkewedColumnNames:
          type: array
          items:
            type: string
          description: A list of names of columns that contain skewed values.
        SkewedColumnValues:
          type: array
          items:
            type: string
          description: A list of values that appear so frequently as to be considered skewed.
        SkewedColumnValueLocationMaps:
          type: object
          additionalProperties:
            type: string
          description: A mapping of skewed values to the columns that contain them.
    StorageDescriptor:
      type: object
      properties:
        Columns:
          type: array
          items:
            $ref: '#/components/schemas/Column'
          description: A list of the Columns in the table.
        Location:
          type: string
          description: The physical location of the table. By default, this takes the form of the warehouse location, followed
            by the database location in the warehouse, followed by the table name.
        AdditionalLocations:
          type: array
          items:
            type: string
          description: A list of locations that point to the path where a Delta table is located.
        InputFormat:
          type: string
          description: 'The input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format.'
        OutputFormat:
          type: string
          description: 'The output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format.'
        Compressed:
          type: boolean
          description: True if the data in the table is compressed, or False if not.
        NumberOfBuckets:
          type: integer
          description: Must be specified if the table contains any dimension columns.
        SerdeInfo:
          $ref: '#/components/schemas/SerDeInfo'
        BucketColumns:
          type: array
          items:
            type: string
          description: A list of reducer grouping columns, clustering columns, and bucketing columns in the table.
        SortColumns:
          type: array
          items:
            $ref: '#/components/schemas/Order'
          description: A list specifying the sort order of each bucket in the table.
        Parameters:
          type: object
          additionalProperties:
            type: string
          description: The user-supplied properties in key-value form.
        SkewedInfo:
          $ref: '#/components/schemas/SkewedInfo'
        StoredAsSubDirectories:
          type: boolean
          description: True if the table data is stored in subdirectories, or False if not.
        SchemaReference:
          $ref: '#/components/schemas/SchemaReference'
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)