<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Enterprise manager REST API PUT call not working in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2435816#M10354</link>
    <description>&lt;P&gt;another question, what does -T parameter do.&amp;nbsp; How can I update a setting without using .json file, just by putting it in curl command line&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2024 07:49:43 GMT</pubDate>
    <dc:creator>RajneeshSharma</dc:creator>
    <dc:date>2024-03-29T07:49:43Z</dc:date>
    <item>
      <title>Enterprise manager REST API PUT call not working</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2435815#M10353</link>
      <description>&lt;P&gt;HI&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to call below API&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;curl -i -k -v -X PUT --header "EnterpriseManager.APISessionID: wCo0_KvjEUFROvfHF5KGrw" --header "Content-Length: 242" &lt;A href="https://computer.network.net/attunityenterprisemanager/api/v1/servers/myrepsrv1/def" target="_blank"&gt;https://computer.network.net/attunityenterprisemanager/api/v1/servers/myrepsrv1/def&lt;/A&gt; -T "C:\myrepsrv1.json"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have put my&amp;nbsp;APISessionID&amp;nbsp; and url&amp;nbsp; and its connecting fine. At the end of log message, it says&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;gt; Content-Type: application/json&lt;BR /&gt;&amp;gt; Content-Length: 242&lt;BR /&gt;&amp;gt; Expect: 100-continue&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;lt; HTTP/1.1 100 Continue&lt;BR /&gt;HTTP/1.1 100 Continue&lt;/P&gt;
&lt;P&gt;* We are completely uploaded and fine&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then gets stuck.&lt;/P&gt;
&lt;P&gt;Any idea, whats going on. I am able to run REST API GET commands. I see below line in enterprise manager log when GET command is successful&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;25 2024-03-29 02:21:48 [Manager ] [INFO ] Executing public api AemGetServer.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 07:47:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2435815#M10353</guid>
      <dc:creator>RajneeshSharma</dc:creator>
      <dc:date>2024-03-29T07:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise manager REST API PUT call not working</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2435816#M10354</link>
      <description>&lt;P&gt;another question, what does -T parameter do.&amp;nbsp; How can I update a setting without using .json file, just by putting it in curl command line&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 07:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2435816#M10354</guid>
      <dc:creator>RajneeshSharma</dc:creator>
      <dc:date>2024-03-29T07:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise manager REST API PUT call not working</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2435830#M10355</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/239265"&gt;@RajneeshSharma&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The HTTP&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;CODE&gt;100 Continue&lt;/CODE&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;code indicates that everything is OK and that &lt;A title="the client should continue with the request or ignore it" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100#:~:text=See%20also-,100%20Continue,with%20the%20request%20or%20ignore%20it%20if%20it%20is%20already%20finished.,-To%20have%20a" target="_blank" rel="noopener"&gt;the client should continue with the request or ignore it&lt;/A&gt;. And I noticed some solution is &lt;A title="Try adding an empty line (CRLF) after the 100 Continue line" href="https://stackoverflow.com/questions/2964687/how-to-handle-100-continue-http-message#:~:text=Try%20adding%20an%20empty%20line%20(CRLF)%20after%20the%20100%20Continue%20line" target="_blank" rel="noopener"&gt;Try adding an empty line (CRLF) after the 100 Continue line&lt;/A&gt;. Together,I do not see an issue in QEM.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A title="-T parameter" href="https://everything.curl.dev/bookindex.html?highlight=-T#t:~:text=emails%2C%20STARTTLS-,T,%2C%20Upload%2C%20Method%2C%20HTTP%20PUT%2C%20Uploading%20with%20FTP,-TCP%3A%20Establish" target="_blank" rel="noopener"&gt;-T parameter&lt;/A&gt; is used to upload the json file. You may import the json file directly by call:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;curl -i -k -X POST --header "EnterpriseManager.APISessionID: wCo0_KvjEUFROvfHF5KGrw" --header "Content-Length: 242" --header "Content-Type: application/json" "&lt;A href="https://computer.network.net/attunityenterprisemanager/api/v1/servers/myrepsrv1?action=import" target="_blank"&gt;https://computer.network.net/attunityenterprisemanager/api/v1/servers/myrepsrv1?action=import&lt;/A&gt;" -T " C:\myrepsrv1.json"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A title="Detailed information in UG" href="https://help.qlik.com/en-US/enterprise-manager/November2022/Content/EnterpriseManager/EnterpriseManager_APIGuide/CurlAPI/api_importTask.htm#:~:text=JSON%C2%A0File-,cURL%20example,HTTP/1.1%20200%20OK,-Cache%2DControl%3A%20no" target="_blank" rel="noopener"&gt;Detailed information in UG&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 08:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2435830#M10355</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-03-29T08:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise manager REST API PUT call not working</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2435970#M10361</link>
      <description>&lt;P&gt;I see that "Content-Length" is set to 242, which matches the example in AEM API Guide, but does it happen to match the contents of your provided JSON file as well??&amp;nbsp; It should, shouldn't it?&lt;/P&gt;
&lt;P&gt;Maybe you told it that 242 bytes were coming, it saw fewer and not says - 100 -&amp;nbsp; please provide more bytes.&lt;/P&gt;
&lt;P&gt;Dunno really only used the .NET API&amp;nbsp; from Powershell.&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 18:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2435970#M10361</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2024-03-29T18:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise manager REST API PUT call not working</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2436372#M10387</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/239265"&gt;@RajneeshSharma&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other then what was already mentioned here, which i think are good suggestions to start with here are a few more:&lt;/P&gt;
&lt;P&gt;1. Match the same curl example exactally one to one that means the same flags as well, without adding any&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Try the same request in postman, see if that works.&lt;/P&gt;
&lt;P&gt;From there if it works you can export a curl command from there and that will most likely add what you are missing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Run it via curl again but turn on verbose logging for the QEM server and search in the log for the endpoint URL that should give you more details on what is going on behind the scenes.&lt;BR /&gt;&lt;BR /&gt;4. Make sure you are giving the correct server name for the URL parameter&lt;BR /&gt;&lt;BR /&gt;Finally, here is the API documentation for this endpoint:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/enterprise-manager/November2022/Content/EnterpriseManager/EnterpriseManager_APIGuide/CurlAPI/api_aem_putserver.htm#anchor-5" target="_blank"&gt;PutServer | Qlik Enterprise Manager Help&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 13:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2436372#M10387</guid>
      <dc:creator>Shai_E</dc:creator>
      <dc:date>2024-04-01T13:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise manager REST API PUT call not working</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2436383#M10389</link>
      <description>&lt;P&gt;Issue resolved.&amp;nbsp;&lt;SPAN&gt;Content-Length header should have the exact value as the json file length. Even if you give more, it doesn't work. Better to not use&amp;nbsp;Content-Length at all and let the API figure it out itself.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 14:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2436383#M10389</guid>
      <dc:creator>RajneeshSharma</dc:creator>
      <dc:date>2024-04-01T14:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise manager REST API PUT call not working</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2437264#M10422</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried below&lt;/P&gt;
&lt;P&gt;curl -i -k -v -X POST --header "EnterpriseManager.APISessionID: PXGgboAmc9pjTUPyANj2gw" --header "Content-Type: application/json" &lt;A href="https://xxxxxxxx/attunityenterprisemanager/api/v1/servers/xxxx?action=import" target="_blank"&gt;https://xxxxxxxx/attunityenterprisemanager/api/v1/servers/xxxx?action=import&lt;/A&gt; -T c:\myrepsrv1.json&lt;/P&gt;
&lt;P&gt;myrepsrv1.json&lt;/P&gt;
&lt;P&gt;{"$type": "AemReplicateServer", "name": xxxx", "description": "test", "host": "test", "port": "3552", "username": "admin", "password": "{{}}", "verify_server_certificate": false, "monitored": true}&lt;/P&gt;
&lt;P&gt;but it gives me below error&lt;/P&gt;
&lt;P&gt;{"error_code":"DESERIALIZE_TO_TYPE","error_message":"Failed to deserialize json to type ReplicationDefinitionExport: Type specified in JSON 'Attunity.AemDataModel.AemReplicateServer, AemDataModel, Version=2022.11.0.860, Culture=neutral, PublicKeyToken=null' is not compatible with 'Attunity.Replicate.Globals.ReplicationDefinitionExport, RepuiGlobals, Version=2022.11.0.860, Culture=neutral, PublicKeyToken=null'. Path '$type', line 1, position 30.."}*&lt;/P&gt;
&lt;P&gt;Looks like it didnt like&amp;nbsp; "AemReplicateServer"&lt;/P&gt;
&lt;P&gt;Any idea?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 09:30:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2437264#M10422</guid>
      <dc:creator>RajneeshSharma</dc:creator>
      <dc:date>2024-04-03T09:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise manager REST API PUT call not working</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2437636#M10430</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp; - Only after the second dedicated port, and the final reply where, I noticed that you accidently provided the wrong API for server definition. The one&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/239265"&gt;@RajneeshSharma&lt;/a&gt;&amp;nbsp;provided in the initial post was correct, except for the length provided.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you can update you reply with warning or correction as you see fit?&lt;/P&gt;
&lt;P&gt;Hein&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 22:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2437636#M10430</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2024-04-03T22:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise manager REST API PUT call not working</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2437649#M10431</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110970"&gt;@Heinvandenheuvel&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Really appreciate you point it out.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/239265"&gt;@RajneeshSharma&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;In my previous reply the answer is inaccurate - I suggested you try:&lt;/P&gt;
&lt;P&gt;...attunityenterprisemanager/api/v1/servers/myrepsrv1?action=import" -T " C:\myrepsrv1.json"&lt;/P&gt;
&lt;P&gt;But that's the equivalent of ImportAll (tasks, databases, serversettings), NOT a server name definition as the you wanted. As your final comment pointed out, the reason is "&lt;SPAN&gt;Content-Length header should have the exact value". I apologize for the inaccurate.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 02:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Enterprise-manager-REST-API-PUT-call-not-working/m-p/2437649#M10431</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-04-05T02:29:27Z</dc:date>
    </item>
  </channel>
</rss>

