AWS Glue AWS Glue #X Amz Target=AWSGlue.GetTableVersions API
The AWS Glue #X Amz Target=AWSGlue.GetTableVersions API API from AWS Glue — 1 operation(s) for aws glue #x amz target=awsglue.gettableversions api.
The AWS Glue #X Amz Target=AWSGlue.GetTableVersions API API from AWS Glue — 1 operation(s) for aws glue #x amz target=awsglue.gettableversions api.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/aws-glue:aws-glue-aws-glue-x-amz-target-awsglue-gettableversions-api-api"
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.
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: 3.1.0
info:
title: AWS Glue Aws Glue X Amz Target Awsglue Gettableversions 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:
/#GetTableVersions:
post:
operationId: GetTableVersions
summary: Get Table Versions
description: Retrieves a list of strings that identify available versions of a specified table.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/GetTableVersionsResponse'
'400':
description: EntityNotFoundException; GlueEncryptionException; InvalidInputException; OperationTimeoutException
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.GetTableVersions
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/GetTableVersionsRequest'
tags:
- Aws Glue X Amz Target Awsglue Gettableversions 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.
ErrorDetail:
type: object
properties:
ErrorCode:
type: string
description: The code associated with this error.
ErrorMessage:
type: string
description: A message describing the error.
FederatedTable:
type: object
properties:
Identifier:
type: string
description: A unique identifier for the federated table.
DatabaseIdentifier:
type: string
description: A unique identifier for the federated database.
ConnectionName:
type: string
description: The name of the connection to the external metastore.
ConnectionType:
type: string
description: The type of connection used to access the federated table, specifying the protocol or method for connecting
to the external data source.
GetTableVersionsRequest:
type: object
properties:
CatalogId:
type: string
description: The ID of the Data Catalog where the tables reside. If none is provided, the Amazon Web Services account
ID is used by default.
DatabaseName:
type: string
description: The database in the catalog in which the table resides. For Hive compatibility, this name is entirely
lowercase.
TableName:
type: string
description: The name of the table. For Hive compatibility, this name is entirely lowercase.
NextToken:
type: string
description: A continuation token, if this is not the first call.
MaxResults:
type: integer
description: The maximum number of table versions to return in one response.
AuditContext:
$ref: '#/components/schemas/AuditContext'
required:
- DatabaseName
- TableName
GetTableVersionsResponse:
type: object
properties:
TableVersions:
type: array
items:
$ref: '#/components/schemas/TableVersion'
description: A list of strings identifying available versions of the specified table.
NextToken:
type: string
description: A continuation token, if the list of available versions does not include the last one.
IcebergPartitionField:
type: object
properties:
SourceId:
type: integer
description: The identifier of the source field from the table schema that this partition field is based on.
Transform:
type: string
description: The transformation function applied to the source field to create the partition, such as identity,
bucket, truncate, year, month, day, or hour.
Name:
type: string
description: The name of the partition field as it will appear in the partitioned table structure.
FieldId:
type: integer
description: The unique identifier assigned to this partition field within the Iceberg table's partition specification.
required:
- SourceId
- Transform
- Name
IcebergPartitionSpec:
type: object
properties:
Fields:
type: array
items:
$ref: '#/components/schemas/IcebergPartitionField'
description: The list of partition fields that define how the table data should be partitioned, including source
fields and their transformations.
SpecId:
type: integer
description: The unique identifier for this partition specification within the Iceberg table's metadata history.
required:
- Fields
IcebergSchema:
type: object
properties:
SchemaId:
type: integer
description: The unique identifier for this schema version within the Iceberg table's schema evolution history.
IdentifierFieldIds:
type: array
items:
type: integer
description: The list of field identifiers that uniquely identify records in the table, used for row-level operations
and deduplication.
Type:
type: string
enum:
- struct
description: The root type of the schema structure, typically "struct" for Iceberg table schemas.
Fields:
type: array
items:
$ref: '#/components/schemas/IcebergStructField'
description: The list of field definitions that make up the table schema, including field names, types, and metadata.
required:
- Fields
IcebergSortField:
type: object
properties:
SourceId:
type: integer
description: The identifier of the source field from the table schema that this sort field is based on.
Transform:
type: string
description: The transformation function applied to the source field before sorting, such as identity, bucket, or
truncate.
Direction:
type: string
enum:
- asc
- desc
description: The sort direction for this field, either ascending or descending.
NullOrder:
type: string
enum:
- nulls-first
- nulls-last
description: The ordering behavior for null values in this field, specifying whether nulls should appear first or
last in the sort order.
required:
- SourceId
- Transform
- Direction
- NullOrder
IcebergSortOrder:
type: object
properties:
OrderId:
type: integer
description: The unique identifier for this sort order specification within the Iceberg table's metadata.
Fields:
type: array
items:
$ref: '#/components/schemas/IcebergSortField'
description: The list of fields and their sort directions that define the ordering criteria for the Iceberg table
data.
required:
- OrderId
- Fields
IcebergStructField:
type: object
properties:
Id:
type: integer
description: The unique identifier assigned to this field within the Iceberg table schema, used for schema evolution
and field tracking.
Name:
type: string
description: The name of the field as it appears in the table schema and query operations.
Type:
type: object
description: The data type definition for this field, specifying the structure and format of the data it contains.
Required:
type: boolean
description: Indicates whether this field is required (non-nullable) or optional (nullable) in the table schema.
Doc:
type: string
description: Optional documentation or description text that provides additional context about the purpose and usage
of this field.
InitialDefault:
type: object
description: Default value used to populate the field's value for all records that were written before the field
was added to the schema. This enables backward compatibility when adding new fields to existing Iceberg tables.
WriteDefault:
type: object
description: Default value used to populate the field's value for any records written after the field was added
to the schema, if the writer does not supply the field's value. This can be changed through schema evolution.
required:
- Id
- Name
- Type
- Required
IcebergTableMetadata:
type: object
properties:
FormatVersion:
type: string
description: The Apache Iceberg table format version, such as 1 or 2. Determines the set of features and on-disk
layout supported by the table.
TableUuid:
type: string
description: The unique identifier (UUID) for the Iceberg table, assigned when the table is created and used to
track the table across metadata updates.
Location:
type: string
description: The base S3 location where the Iceberg table's data and metadata files are stored.
Properties:
type: object
additionalProperties:
type: string
description: A map of key-value pairs that define table-level properties and configuration settings for the Iceberg
table.
Schemas:
type: array
items:
$ref: '#/components/schemas/IcebergSchema'
description: The list of schemas that have been associated with the Iceberg table over its history, supporting schema
evolution.
CurrentSchemaId:
type: integer
description: The identifier of the schema that is currently active for the Iceberg table. Matches an entry in Schemas.
LastColumnId:
type: integer
description: The highest column identifier that has been assigned in the Iceberg table's schema, used to ensure
unique IDs as new columns are added.
PartitionSpecs:
type: array
items:
$ref: '#/components/schemas/IcebergPartitionSpec'
description: The list of partition specifications that have been associated with the Iceberg table over its history,
supporting partition evolution.
DefaultSpecId:
type: integer
description: The identifier of the partition specification that is currently used by default when writing new data
to the Iceberg table.
LastPartitionId:
type: integer
description: The highest partition field identifier that has been assigned across the table's partition specifications.
SortOrders:
type: array
items:
$ref: '#/components/schemas/IcebergSortOrder'
description: The list of sort order specifications that have been associated with the Iceberg table over its history.
DefaultSortOrderId:
type: integer
description: The identifier of the sort order that is currently used by default when writing new data to the Iceberg
table.
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
RLSProperties:
type: object
properties:
DefaultRLSPolicy:
type: string
description: The name of the default row-level security policy applied to the table.
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.
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.
StatusDetails:
type: object
properties:
RequestedChange:
$ref: '#/components/schemas/Table'
ViewValidations:
type: array
items:
$ref: '#/components/schemas/ViewValidation'
description: A list of ViewValidation objects that contain information for an analytical engine to validate a view.
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'
SubObjectStatistics:
type: object
properties:
SourceType:
type: string
enum:
- HIVE_PARQUET
- HIVE_ORC
- HIVE_CSV
- HIVE_JSON
- PLAIN_PARQUET
- ICEBERG
description: The source type of the sub-object (for example, its table format), which identifies the sub-object.
GlueVersionId:
type: string
description: The Glue version ID of the sub-object that the statistics were captured for.
PartitionCount:
type: integer
description: The number of sub-object partitions selected for that refresh. Not present for unpartitioned sub-objects.
FileCount:
type: integer
description: The number of sub-object data files selected for that refresh.
TotalFileBytes:
type: integer
description: The total size, in bytes, of the data files counted by FileCount.
Table:
type: object
properties:
Name:
type: string
description: The table name. For Hive compatibility, this must be entirely lowercase.
DatabaseName:
type: string
description: The name of the database where the table metadata resides. For Hive compatibility, this must be all
lowercase.
Description:
type: string
description: A description of the table.
Owner:
type: string
description: The owner of the table.
CreateTime:
type: string
format: date-time
description: The time when the table definition was created in the Data Catalog.
UpdateTime:
type: string
format: date-time
description: The last time that the table was updated.
LastAccessTime:
type: string
format: date-time
description: The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable.
LastAnalyzedTime:
type: string
format: date-time
description: The last time that column statistics were computed for this table.
Retention:
type: integer
description: The retention time for this table.
StorageDescriptor:
$ref: '#/components/schemas/StorageDescriptor'
PartitionKeys:
type: array
items:
$ref: '#/components/schemas/Column'
description: 'A list of columns by which the table is partitioned. Only primitive types are supported as partition
keys. When you create a table used by Amazon Athena, and you do not specify any partitionKeys, you must at least
set the value of partitionKeys to an empty list. For example: "PartitionKeys": []'
ViewOriginalText:
type: string
description: Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table
is a VIRTUAL_VIEW, certain Athena configuration encoded in base64.
ViewExpandedText:
type: string
description: Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
TableType:
type: string
description: 'The type of this table. Glue will create tables with the EXTERNAL_TABLE type. Other services, such
as Athena, may create tables with additional table types. Glue related table types: EXTERNAL_TABLE Hive compatible
attribute - indicates a non-Hive managed table. GOVERNED Used by Lake Formation. The Glue Data Catalog understands
GOVERNED.'
Parameters:
type: object
additionalProperties:
type: string
description: These key-value pairs define properties associated with the table.
CreatedBy:
type: string
description: The person or entity who created the table.
IsRegisteredWithLakeFormation:
type: boolean
description: Indicates whether the table has been registered with Lake Formation.
TargetTable:
$ref: '#/components/schemas/TableIdentifier'
CatalogId:
type: string
description: The ID of the Data Catalog in which the table resides.
VersionId:
type: string
description: The ID of the table version.
FederatedTable:
$ref: '#/components/schemas/FederatedTable'
ViewDefinition:
$ref: '#/components/schemas/ViewDefinition'
IsMultiDialectView:
type: boolean
description: Specifies whether the view supports the SQL dialects of one or more different query engines and can
therefore be read by those engines.
IsMaterializedView:
type: boolean
description: Indicates a table is a MaterializedView.
IcebergTableMetadata:
$ref: '#/components/schemas/IcebergTableMetadata'
Status:
$ref: '#/components/schemas/TableStatus'
RLSProperties:
$ref: '#/components/schemas/RLSProperties'
required:
- Name
TableIdentifier:
type: object
properties:
CatalogId:
type: string
description: The ID of the Data Catalog in which the table resides.
DatabaseName:
type: string
description: The name of the catalog database that contains the target table.
Name:
type: string
description: The name of the target table.
Region:
type: string
description: Region of the target table.
TableStatus:
type: object
properties:
RequestedBy:
type: string
description: The ARN of the user who requested the asynchronous change.
UpdatedBy:
type: string
description: The ARN of the user to last manually alter the asynchronous change (requesting cancellation, etc).
RequestTime:
type: string
format: date-time
description: An ISO 8601 formatted date string indicating the time that the change was initiated.
UpdateTime:
type: string
format: date-time
description: An ISO 8601 formatted date string indicating the time that the state was last updated.
Action:
type: string
enum:
- UPDATE
- CREATE
description: Indicates which action was called on the table, currently only CREATE or UPDATE.
State:
type: string
enum:
- QUEUED
- IN_PROGRESS
- SUCCESS
- STOPPED
- FAILED
description: A generic status for the change in progress, such as QUEUED, IN_PROGRESS, SUCCESS, or FAILED.
Error:
$ref: '#/components/schemas/ErrorDetail'
Details:
$ref: '#/components/schemas/StatusDetails'
TableVersion:
type: object
properties:
Table:
$ref: '#/components/schemas/Table'
VersionId:
type: string
description: The ID value that identifies this table version. A VersionId is a string representation of an integer.
Each version is incremented by 1.
ViewDefinition:
type: object
properties:
IsProtected:
type: boolean
description: You can set this flag as true to instruct the engine not to push user-provided operations into the
logical plan of the view during query planning. However, setting this flag does not guarantee that the engine
will comply. Refer to the engine's documentation to understand the guarantees provided, if any.
IsManaged:
type: boolean
description: Specifies whether the materialized view is managed by Glue.
Definer:
type: string
description: The definer of a view in SQL.
ViewVersionId:
type: integer
description: The ID value that identifies this view's version. For materialized views, the version ID is the Apache
Iceberg table's snapshot ID.
ViewVersionToken:
type: string
description: The version ID of the Apache Iceberg table.
RefreshSeconds:
type: integer
description: Auto refresh interval in seconds for the materialized view. If not specified, the view will not automatically
refresh.
LastRefreshType:
type: string
enum:
- FULL
- INCREMENTAL
description: Sets the method used for the most recent refresh.
SubObjects:
type: array
items:
type: string
description: A list of table Amazon Resource Names (ARNs).
SubObjectVersionIds:
type: array
items:
type: integer
description: List of the Apache Iceberg table versions referenced by the materialized view.
SubObjectsStatistics:
type: array
items:
$ref: '#/components/schemas/SubObjectStatistics'
description: Statistics captured for each sub-object referenced by the materialized view as of its most recent refresh,
such as the source type, Glue version ID, and the partition, file, and byte counts. Each entry describes one sub-object,
identified by its source type.
Representations:
type: array
items:
$ref: '#/components/schemas/ViewRepresentation'
description: A list of representations.
SparkPipelineInfo:
type: object
additionalProperties:
type: string
description: A map of key-value pairs containing Spark Declarative Pipelines (SDP) information for the materialized
view.
ViewRepresentation:
type: object
properties:
Dialect:
type: string
enum:
- REDSHIFT
- ATHENA
- SPARK
description: The dialect of the query engine.
DialectVersion:
type: string
description: The version of the dialect of the query engine. For example, 3.0.0.
ViewOriginalText:
type: string
description: The SELECT query provided by the customer during CREATE VIEW DDL. This SQL is not used during a query
on a view (ViewExpandedText is used instead). ViewOriginalText is used for cases like SHOW CREATE VIEW where users
want to see the original DDL command that created the view.
ViewExpandedText:
type: string
description: 'The expanded SQL for the view. This SQL is used by engines while processing a query on a view. Engines
may perform operations during view creation to transform ViewOriginalText to ViewExpandedText. For example: Fully
qualified identifiers: SELECT * from table1 -> SELECT * from db1.table1'
ValidationConnection:
type: string
description: The name of the connection to be used to validate the specific representation of the view.
IsStale:
type: boolean
description: Dialects marked as stale are no longer valid and must be updated before they can be queried in their
respective query engines.
ViewValidation:
type: object
properties:
Dialect:
type: string
enum:
- REDSHIFT
- ATHENA
- SPARK
description: The dialect of the query engine.
DialectVersion:
type: string
description: The version of the dialect of the query engine. For example, 3.0.0.
ViewValidationText:
type: string
description: The SELECT query that defines the view, as provided by the customer.
UpdateTime:
type: string
format: date-time
description: The time of the last update.
State:
type: string
enum:
- QUEUED
- IN_PROGRESS
- SUCCESS
- STOPPED
- FAILED
description: The state of the validation.
Error:
$ref: '#/components/schemas/ErrorDetail'
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)