Skip to main content

"listIntegrationTables" (JSON Action)

JSON hub "listIntegrationTable action lists all existing tables for a given database

The "listIntegrationTables" action lists the tables for a given database.

  • This action lists only integration tables. To list other tables, use the "listTables" action in the JSON DB API.

  • You can do the following:

    • You can return all integration tables by omitting all properties from the "params" object.

    • You can return tables that match a specific database and owner by specifying the optional "databaseNameFilter" and "ownerName" properties. These two properties must be used together.

    • You can return tables that match the partial table name specified in the optional "partialName" property. Using "partialName" also requires specifying the database and owner in the "databaseNameFilter" and "ownerName" properties. These three properties must be used together.

Request examples

List all integration tables

{
  "api":        "hub",
  "apiVersion": "1.0",
  "requestId":  "1",
  "action":     "listIntegrationTables",
  "params":     {},
  "authToken": "replaceWithAuthTokenFromCreateSession"
}
{
  "api":        "hub",
  "apiVersion": "1.0",  "requestId":  "2",
  "action":     "listIntegrationTables",
  "params":     {
    "databaseNameFilter": "faircom",
    "ownerName": "admin"
  },
  "authToken": "replaceWithAuthTokenFromCreateSession"
}
{
  "api":        "hub",
  "apiVersion": "1.0",
  "requestId":  "3",
  "action":     "listIntegrationTables",
  "params":     {
    "databaseNameFilter": "faircom",
    "ownerName": "admin",
    "partialName": "mqtt_msg_faircomadmin_t",
    "transformNameFilter": "myIntegrationTableTransform"
  },
  "authToken": "replaceWithAuthTokenFromCreateSession"
}
{
    "result": {
        "data": [
            {
                "databaseName": "faircom",
                "ownerName": "admin",
                "tableName": "mqtt_msg_faircomadmin_connections"
            },
            {
                "databaseName": "faircom",
                "ownerName": "admin",
                "tableName": "mqtt_msg_faircomadmin_subscribers"
            },
            {
                "databaseName": "faircom",
                "ownerName": "admin",
                "tableName": "mqtt_msg_faircomadmin_topics"
            }
        ]
    },
    "requestId": "1",
    "errorCode": 0,
    "errorMessage": "",
    "authToken": "replaceWithAuthTokenFromCreateSession"
}

Use the listIntegrationTables JSON API action to list all existing tables for a given database

JSON hub APIAPI actionsJSON Actionintegration tables actionslist integration tablelistIntegrationTables

The "params" property is an object that contains an action's request parameters as defined by a set of properties. Each action defines its own required and optional properties. See System limits for a comprehensive overview of property requirements and limitations.

Table 1. listIntegrationTables "params" property summaries

Property

Description

Default

Type

Limits (inclusive)

containsTransformSteps

(optional) filters the returned topics based on the presence of transform steps.

null

Boolean

false
true

databaseNameFilter

(optional) causes the server to include tables that match the value of the specified database name or, when an empty string, returns all tables.

""

string

1 to 64 bytes

ownerName

(optional) specifies the unique name of a schema in a database.

""

string

1 to 64 bytes

partialName

(optional) filters the returned topics by applying partial matches to their names.

""

string

0 to 64 bytes

transformNameFilter

(optional) filters the list to return integration tables assigned to the transform.

""

string

1 to 64 bytes



The "containsTransformSteps" property is an optional Boolean that filters the response based on the presence of transform steps. When set to true, the response will include any tables with at least one transform step. When set to null, the response includes tables regardless of the presence of transform steps.

The "databaseNameFilter" property is an optional string that, when set to a non-empty string, causes the server to include tables that match the entire value of the specified database name, such as "faircom". It defaults to an empty string.

  • When "databaseNameFilter" is set to an empty string, an action will return tables from all databases.

  • When the value of "databaseNameFilter" is a non-empty string, it must be set to a valid database name.

  • "databaseNameFilter" is case-insensitive.

  • When the "partialName" property is present, the "databaseNameFilter" and "partialName" properties must be set to valid database and owner names.

The "ownerName" property is an optional string from 1 to 64 bytes that identifies the user who owns an object (see Object owner). If it is omitted or set to "" or null, the server uses the default owner name supplied during the "createSession" action or uses the account's "username" as the owner name.

"params": {
  "ownerName": "SuperUser"
}

The "partialName" property is an optional string that causes the server to include items in the result when the beginning of their names match the "partialName" value. It defaults to an empty string.

  • A zero-length string matches all names.

  • The "partialName" property is used to filter results in several actions used to return lists.

The "transformNameFilter" property is an optional string that specifies which assigned transform the response will be filtered by. If no integration tables are assigned to the transform, the action returns no tables. If omitted or set to null, the "listIntegrationTables" action will not filter by transform name.

Table 2. "result" property summaries

Property

Description

Type

Limits (inclusive)

data

is an array of objects or arrays. Each item in the array describes a record. The array is empty if no results are available.

array

The action determines its contents.