Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
HI,
I review this documentation
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
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.
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.