PutTaskTableSelection
General
URL
https://{host}/attunityenterprisemanager/api/v1/servers/{server}/tasks/{task}/tables?action=selection
Description
Overrides the list of tables selected for inclusion in a specific Replicate task.
Method
PUT
Required user role
See Required Enterprise Manager permissions.
Request URL parameters
Location | Name | Required | Description |
---|---|---|---|
URL |
host [string] |
Yes |
The host name of the Qlik Enterprise Manager server. Example: computer.network.net |
URL |
Server [string] |
Yes |
The Replicate Server name as defined on Qlik Enterprise Manager. Example: myrepsrv1 |
URL |
Task [string] |
Yes |
The Replicate task for which the tables were selected. |
Header |
EnterpriseManager.APISessionID [string] |
Yes |
wCo0_KvjEUFROvfHF5KGrw |
Request body parameters
The request body should be in a JSON file in valid JSON format.
Location | Name | Required | Description |
---|---|---|---|
JSON | included_pattern | No |
The new include table pattern for the Replicate task.
|
JSON | excluded_pattern | No |
The new exclude table pattern for the Replicate task.
|
JSON | explicit_included_tables | Only if no patterns have been defined. |
The specific list of tables and views selected for the Replicate task and the order in which they are loaded to the target.
|
Example JSON for overriding patterns and explicitly selected tables
{"included_pattern":[{"owner":"dbo","name":"tbl%","load_order":0,"table_type":"TABLE"}],
"excluded_pattern":[{"owner":"dbo","name":"tbl_xyz%","load_order":0,"table_type":"VIEW"}],
"explicit_included_tables": [
{
"owner": "dbo",
"name": "employees",
"load_order": 0,
"table_type": "TABLE"
},
{
"owner": "dbo",
"name": "customers",
"load_order": 0,
"table_type": "TABLE"
}
]
cURL example
Request
curl -X PUT -i -k --header "EnterpriseManager.APISessionID: eEAt8oWp4TtS3KzV7YlDUw" https://myemhost/attunityenterprisemanager/api/v1/servers/localhost/tasks/sql2sql_fl_test/tables?action=selection -T "c:\putselection.json"
Errors
All of the general errors as well as the errors listed in the table below.
HTTP Code | Enterprise Manager Code | Text | Description |
---|---|---|---|
500 |
AEM_TABLE_LIST_INNER_ERR |
Failed to retrieve table list for replication task "{task}" on server "{server}". Error: "{message}" |
Returned when the table list cannot be retrieved. |
500 |
AEM_TASK_NOT_FOUND |
Replicate task {task} on server {server} could not be found. |
The task name is unknown to Enterprise Manager. |