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.
- You can return all integration tables by omitting all properties from the
Request examples
List all integration tables
{
"api": "hub",
"apiVersion": "1.0",
"requestId": "1",
"action": "listIntegrationTables",
"params": {},
"authToken": "replaceWithAuthTokenFromCreateSession"
}List integration tables with a specific database and owner
{
"api": "hub",
"apiVersion": "1.0", "requestId": "2",
"action": "listIntegrationTables",
"params": {
"databaseNameFilter": "faircom",
"ownerName": "admin"
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}List integration tables using partial name
{
"api": "hub",
"apiVersion": "1.0",
"requestId": "3",
"action": "listIntegrationTables",
"params": {
"databaseNameFilter": "faircom",
"ownerName": "admin",
"partialName": "mqtt_msg_faircomadmin_t",
"transformNameFilter": "myIntegrationTableTransform"
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Response examples
Success
{
"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"
}
Properties
Request properties ("params")
| Property | Description | Default | Type | Limits (inclusive) |
|---|---|---|---|---|
databaseNameFilter |
The
|
Optional with default of ""
|
string |
1 to 64 bytes |
ownerName |
The You specify this property when you want to use a different account instead of the default. Your session's account must have the appropriate privileges to access the code package. This property is useful because objects, such as tables and code packages, can have the same name in the same database as long as different accounts own each object. This feature allows you to create duplicate objects for different users on the same server and reuse the same JSON actions on those objects. For example, an administrator can copy objects from a production environment to her account so she can troubleshoot an issue using the same JSON actions, JavaScript, and SQL code. It is an error to set If no default owner is specified during |
Optional with default of the session's "defaultOwnerName" property |
string | 1 to 64 bytes |
partialName |
The |
Optional with default of ""
|
string | 1 to 64 bytes |
transformNameFilter |
The |
Optional with default of ""
|
string | 1 to 64 bytes |
Response properties ("result")
| Property | Description | Type | Limits (inclusive) |
|---|---|---|---|
data |
The |
array of objects | The action determines its contents. |
|
data .databaseName |
The
|
string | 1 to 64 bytes |
|
data .ownerName |
The "ownerName" property identifies the user who owns an object (see Object owner). |
string | 0 to 64 bytes |
|
data .tableName |
The See table name in System limits for the table naming requirements and limitations. |
string | 1 to 64 bytes |