The "listDataChangeStreams" action takes specified filter criteria and returns a filtered list of data change streams. Each stream includes its ID and description. Omit all filters to return a list of all streams.
This action ANDs together all the filter properties to create the filter. Omit a filter property or set it to null to prevent it from filtering the results. Omit all filters to return all data change streams.
When a filter property value is a string, the server treats it as a partial match of each character in the property's value to the corresponding character in the definitions. The server does not process characters as wildcards.
The "dataChangeStreamStatusFilter" property contains a list of status values that the server ORs together.
Request examples
Minimal
This example returns all data change streams.
{
"action": "listDataChangeStreams",
"params": {},
"authToken": "replaceWithAuthTokenFromCreateSession"
}Maximal
This example returns all data change streams that match the filter criteria.
{
"api": "admin",
"action": "listDataChangeStreams",
"params": {
"descriptionFilter": "existing & new",
"streamingConnectionNameFilter": "fmq",
"topicFilter": "cust",
"localDatabaseNameFilter": "ctr",
"localOwnerNameFilter": "admin",
"localTableNameFilter": "cust",
"localDataFilePathFilter": null,
"sourceDatabaseNameFilter": "ctr",
"sourceOwnerNameFilter": "admin",
"sourceTableNameFilter": "cust",
"sourceDataFilePathFilter": null,
"dataChangeStreamStatusFilter": [
"scheduled",
"jumpstarting",
"running",
"failed",
"initializing",
"pausing",
"paused",
],
"includeExistingRecordsFilter": true
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Response examples
Maximal
{
"authToken": "authToken",
"result": {
"dataChangeStreams": [
{
"id": 2,
"description": "existing & new CA records from db1 ctreesql_admin_custmast",
"dataChangeStreamStatus": "paused"
}
]
},
"errorCode": 0,
"errorMessage": ""
}
Properties
Request properties ("params")
| Property | Description | Default | Type | Limits (inclusive) |
|---|---|---|---|---|
dataChangeStreamStatusFilter |
The "dataChangeStreamStatusFilter" filters the results based on the change stream status. The response to this action will include streams that match one of the included status values or all streams if no values are included. |
Optional with default of null
|
array |
|
descriptionFilter |
The
|
Optional with default of null
|
string | 1 to 65,500 bytes |
includeExistingRecordsFilter |
The |
Optional with default of null
|
Boolean |
|
localDatabaseNameFilter |
The |
Optional with default of null
|
string | 1 to 64 bytes |
localDataFilePathFilter |
The |
Optional with default of null
|
string | 1 to 64 bytes |
localOwnerNameFilter |
The |
Optional with default of null
|
string | 1 to 64 bytes |
localTableNameFilter |
The |
Optional with default of null
|
string | 1 to 64 bytes |
sourceDatabaseNameFilter |
The |
Optional with default of null
|
string | 1 to 64 bytes |
sourceDataFilePathFilter |
The |
Required - if "sourceTableName" is not specified |
string | No limits |
sourceOwnerNameFilter |
The |
Optional with default of null
|
string | 1 to 64 bytes |
sourceTableNameFilter |
The |
Optional with default of null
|
string | 1 to 64 bytes |
streamingConnectionNameFilter |
The |
Optional with default of null
|
string | 1 to 64 bytes |
topicFilter |
The |
Optional with default of ""
|
UTF-8 string | topic names |
Response properties ("result")
| Property | Description | Type | Limits (inclusive) |
|---|---|---|---|
dataChangeStreams |
The "dataChangeStreams" property lists the data change streams that match the request filters as separate objects. |
array of objects |
0 or more objects including 1 or more of the following properties:
|
|
dataChangeStreams .dataChangeStreamStatus |
The "dataChangeStreamStatus" property specifies the status of the data change stream. It may specify any of the following states: |
string enum |
|
|
dataChangeStreams .description |
The Markdown is a good language for formatting description text. You must ensure the text is compatible with a JSON string. For example, you must escape a double quote character using the backslash character:
In the Thing API, It defaults to
|
string | 1 to 65,500 bytes |
|
dataChangeStreams .id |
The |
integer |
|