Amazon Redshift · Schema

DescribeStatementResponse

AnalyticsBig DataCloudData LakeData WarehouseETLMachine LearningServerlessSQL

Properties

Name Type Description
Id string The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
SecretArn string The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
DbUser string The database user name.
Database string The name of the database.
ClusterIdentifier string The cluster identifier.
Duration integer The amount of time in nanoseconds that the statement ran.
Error string The error message from the cluster if the SQL statement encountered an error while running.
Status string The status of the SQL statement being described. Status values are defined as follows: ABORTED - The query run was stopped by the user. ALL - A status value that includes all query statuses. This valu
CreatedAt string The date and time (UTC) when the SQL statement was submitted to run.
UpdatedAt string The date and time (UTC) that the metadata for the SQL statement was last updated. An example is the time the status last changed.
RedshiftPid integer The process identifier from Amazon Redshift.
HasResultSet boolean A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set. The value is true if any substatement returns a result set.
QueryString string The SQL statement text.
ResultRows integer Either the number of rows returned from the SQL statement or the number of rows affected. If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such
ResultSize integer The size in bytes of the returned results. A -1 indicates the value is null.
RedshiftQueryId integer The identifier of the query generated by Amazon Redshift. These identifiers are also available in the query_id column of the SYS_QUERY_HISTORY system view.
RedshiftQueryUuid string The global unique identifier of the query generated by Amazon Redshift. These identifiers are also available in the query_uuid column of the SYS_QUERY_HISTORY system view.
QueryParameters array The parameters for the SQL statement.
SubStatements array The SQL statements from a multiple statement run.
WorkgroupName string The serverless workgroup name or Amazon Resource Name (ARN).
ResultFormat string The data format of the result of the SQL statement.
SessionId string The session identifier of the query.
ExecutionMode string The execution mode of the batch request. TRANSACTION indicates all SQL statements are run as a single transaction. AUTO_COMMIT indicates each SQL statement is committed individually.
View JSON Schema on GitHub

JSON Schema

amazon-redshift-describe-statement-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-redshift/json-schema/amazon-redshift-describe-statement-response-schema.json",
  "title": "DescribeStatementResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-redshift-statement-management-api-openapi.yml#/components/schemas/DescribeStatementResponse",
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API."
    },
    "SecretArn": {
      "type": "string",
      "description": "The name or Amazon Resource Name (ARN) of the secret that enables access to the database."
    },
    "DbUser": {
      "type": "string",
      "description": "The database user name."
    },
    "Database": {
      "type": "string",
      "description": "The name of the database."
    },
    "ClusterIdentifier": {
      "type": "string",
      "description": "The cluster identifier."
    },
    "Duration": {
      "type": "integer",
      "description": "The amount of time in nanoseconds that the statement ran."
    },
    "Error": {
      "type": "string",
      "description": "The error message from the cluster if the SQL statement encountered an error while running."
    },
    "Status": {
      "type": "string",
      "description": "The status of the SQL statement being described. Status values are defined as follows: ABORTED - The query run was stopped by the user. ALL - A status value that includes all query statuses. This value can be used to filter results. FAILED - The query run failed. FINISHED - The query has finished running. PICKED - The query has been chosen to be run. STARTED - The query run has started. SUBMITTED - The query was submitted, but not yet processed."
    },
    "CreatedAt": {
      "type": "string",
      "description": "The date and time (UTC) when the SQL statement was submitted to run."
    },
    "UpdatedAt": {
      "type": "string",
      "description": "The date and time (UTC) that the metadata for the SQL statement was last updated. An example is the time the status last changed."
    },
    "RedshiftPid": {
      "type": "integer",
      "description": "The process identifier from Amazon Redshift."
    },
    "HasResultSet": {
      "type": "boolean",
      "description": "A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set. The value is true if any substatement returns a result set."
    },
    "QueryString": {
      "type": "string",
      "description": "The SQL statement text."
    },
    "ResultRows": {
      "type": "integer",
      "description": "Either the number of rows returned from the SQL statement or the number of rows affected. If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others. A -1 indicates the value is null."
    },
    "ResultSize": {
      "type": "integer",
      "description": "The size in bytes of the returned results. A -1 indicates the value is null."
    },
    "RedshiftQueryId": {
      "type": "integer",
      "description": "The identifier of the query generated by Amazon Redshift. These identifiers are also available in the query_id column of the SYS_QUERY_HISTORY system view."
    },
    "RedshiftQueryUuid": {
      "type": "string",
      "description": "The global unique identifier of the query generated by Amazon Redshift. These identifiers are also available in the query_uuid column of the SYS_QUERY_HISTORY system view."
    },
    "QueryParameters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SqlParameter"
      },
      "description": "The parameters for the SQL statement."
    },
    "SubStatements": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SubStatementData"
      },
      "description": "The SQL statements from a multiple statement run."
    },
    "WorkgroupName": {
      "type": "string",
      "description": "The serverless workgroup name or Amazon Resource Name (ARN)."
    },
    "ResultFormat": {
      "type": "string",
      "description": "The data format of the result of the SQL statement."
    },
    "SessionId": {
      "type": "string",
      "description": "The session identifier of the query."
    },
    "ExecutionMode": {
      "type": "string",
      "description": "The execution mode of the batch request. TRANSACTION indicates all SQL statements are run as a single transaction. AUTO_COMMIT indicates each SQL statement is committed individually."
    }
  },
  "required": [
    "Id"
  ],
  "$defs": {
    "SqlParameter": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the parameter."
        },
        "value": {
          "type": "string",
          "description": "The value of the parameter. Amazon Redshift implicitly converts to the proper data type. For more information, see Data types in the Amazon Redshift Database Developer Guide."
        }
      },
      "required": [
        "name",
        "value"
      ]
    },
    "SubStatementData": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string",
          "description": "The identifier of the SQL statement. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the number of the SQL statement. For example, d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the second SQL statement of a batch query."
        },
        "Duration": {
          "type": "integer",
          "description": "The amount of time in nanoseconds that the statement ran."
        },
        "Error": {
          "type": "string",
          "description": "The error message from the cluster if the SQL statement encountered an error while running."
        },
        "Status": {
          "type": "string",
          "description": "The status of the SQL statement. An example is the that the SQL statement finished."
        },
        "CreatedAt": {
          "type": "string",
          "description": "The date and time (UTC) the statement was created."
        },
        "UpdatedAt": {
          "type": "string",
          "description": "The date and time (UTC) that the statement metadata was last updated."
        },
        "QueryString": {
          "type": "string",
          "description": "The SQL statement text."
        },
        "ResultRows": {
          "type": "integer",
          "description": "Either the number of rows returned from the SQL statement or the number of rows affected. If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others. A -1 indicates the value is null."
        },
        "ResultSize": {
          "type": "integer",
          "description": "The size in bytes of the returned results. A -1 indicates the value is null."
        },
        "RedshiftQueryId": {
          "type": "integer",
          "description": "The identifier of the query generated by Amazon Redshift. These identifiers are also available in the query_id column of the SYS_QUERY_HISTORY system view."
        },
        "RedshiftQueryUuid": {
          "type": "string",
          "description": "The global unique identifier of the query generated by Amazon Redshift. These identifiers are also available in the query_uuid column of the SYS_QUERY_HISTORY system view."
        },
        "HasResultSet": {
          "type": "boolean",
          "description": "A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set."
        }
      },
      "required": [
        "Id"
      ]
    }
  }
}

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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/amazon-redshift-describe-statement-response"
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.