Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
lguevara
Partner - Creator II
Partner - Creator II

Qlik Enterprise Manager - Import Task dont work curl

HI,

 

I review this documentation

https://help.qlik.com/en-US/enterprise-manager/November2024/Content/EnterpriseManager/EnterpriseMana...

I want  to use import api rest method. But this dont work.

I use the sintax 

 

curl -i -k -X POST --header "EnterpriseManager.APISessionID: wCo0_KvjEUFROvfHF5KGrw " --header "Content-Length: 3986" --header "Content-Type: application/json" " https://computer.network.net/attunityenterprisemanager/api/v1/servers/myrepsrv1/tasks/SalesDBBackup?..." -T "C:\exports\ SalesDBBackup.json"

or 

 

curl -i -k -X POST --header "EnterpriseManager.APISessionID: sMF7h0s6mLG6jBJvsRIvMg" --header "Content-Length:3986" --header "Content-Type:application/json" https://computer.network.net/attunityenterprisemanager/api/v1/servers/myrepsrv1/tasks/SalesDBBackup?... -T "C:\exports\ SalesDBBackup.json"

It takes a long time to execute and produces the following error:

curl: (56) Recv failure: Connection was reset

 

 

thanks

 

Labels (4)
1 Solution

Accepted Solutions
john_wang
Support
Support

Hello @lguevara ,

The command works in my lab environment. However, I'm not sure if the command you provided is just a sample or your actual command. Please take note of the following:

1. --header "EnterpriseManager.APISessionID: wCo0_KvjEUFROvfHF5KGrw "

    There is an extra space at the end of the token. Please remove it.

2. --header "Content-Length: 3986"

     The value 3986 represents the number of characters in the JSON file. This number must exactly match the size of your input file. Please refer to the user guide (UG) for instructions on how to calculate the correct length.

3. https://computer.network.net/attunityenterprisemanager/api/v1/servers/myrepsrv1/tasks/SalesDBBackup?action=import

    Replace the placeholders (computer.network.net, myrepsrv1, and SalesDBBackup) with the actual values from your environment.

4. -T "C:\exports\ SalesDBBackup.json"

    There is an extra space before the .json file name. Please remove it to avoid potential issues.

Hope this helps.

John.

 

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!

View solution in original post

1 Reply
john_wang
Support
Support

Hello @lguevara ,

The command works in my lab environment. However, I'm not sure if the command you provided is just a sample or your actual command. Please take note of the following:

1. --header "EnterpriseManager.APISessionID: wCo0_KvjEUFROvfHF5KGrw "

    There is an extra space at the end of the token. Please remove it.

2. --header "Content-Length: 3986"

     The value 3986 represents the number of characters in the JSON file. This number must exactly match the size of your input file. Please refer to the user guide (UG) for instructions on how to calculate the correct length.

3. https://computer.network.net/attunityenterprisemanager/api/v1/servers/myrepsrv1/tasks/SalesDBBackup?action=import

    Replace the placeholders (computer.network.net, myrepsrv1, and SalesDBBackup) with the actual values from your environment.

4. -T "C:\exports\ SalesDBBackup.json"

    There is an extra space before the .json file name. Please remove it to avoid potential issues.

Hope this helps.

John.

 

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!