<?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: Check Point mgmt api SDK - cme api, wrong method setting new &amp;quot;management&amp;quot;? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Check-Point-mgmt-api-SDK-cme-api-wrong-method-setting-new-quot/m-p/181252#M7707</link>
    <description>&lt;P&gt;Hi Amir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am getting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;DEBUG:root:{'name': 'azu-vm-rapoc-cp'}&lt;BR /&gt;API Response: APIResponse({&lt;BR /&gt;"data": {&lt;BR /&gt;"code": "err_cme_api_send_command_failed",&lt;BR /&gt;"message": "Invalid response message from CME API. Body: &amp;lt;!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\"&amp;gt; &amp;lt;title&amp;gt;405 Method Not Allowed&amp;lt;/title&amp;gt; &amp;lt;h1&amp;gt;Method Not Allowed&amp;lt;/h1&amp;gt; &amp;lt;p&amp;gt;The method is not allowed for the requested URL.&amp;lt;/p&amp;gt; "&lt;BR /&gt;},&lt;BR /&gt;"error_message": "code: err_cme_api_send_command_failed\nmessage: Invalid response message from CME API. Body: &amp;lt;!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\"&amp;gt; &amp;lt;title&amp;gt;405 Method Not Allowed&amp;lt;/title&amp;gt; &amp;lt;h1&amp;gt;Method Not Allowed&amp;lt;/h1&amp;gt; &amp;lt;p&amp;gt;The method is not allowed for the requested URL.&amp;lt;/p&amp;gt; \n",&lt;BR /&gt;"res_obj": {&lt;BR /&gt;"data": {&lt;BR /&gt;"code": "err_cme_api_send_command_failed",&lt;BR /&gt;"message": "Invalid response message from CME API. Body: &amp;lt;!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\"&amp;gt; &amp;lt;title&amp;gt;405 Method Not Allowed&amp;lt;/title&amp;gt; &amp;lt;h1&amp;gt;Method Not Allowed&amp;lt;/h1&amp;gt; &amp;lt;p&amp;gt;The method is not allowed for the requested URL.&amp;lt;/p&amp;gt; "&lt;BR /&gt;},&lt;BR /&gt;"status_code": 500&lt;BR /&gt;},&lt;BR /&gt;"status_code": 500,&lt;BR /&gt;"success": false&lt;BR /&gt;}&lt;/LI-SPOILER&gt;&lt;P&gt;Regarding the Documentation you sent (and i already checked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ) the management config of cme is to be sent via PUT method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My script does:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;....
cme_init= {
    'management':
        {'name' : cme_mgmtname}
}
....
client.api_call("cme-api/v1/management", cme_init['management'])
.....&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that i am sending other commands to cme-api for configuring account and gateway, those are working... (regarding documentation, POST is used there)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2023 16:50:57 GMT</pubDate>
    <dc:creator>Nüüül</dc:creator>
    <dc:date>2023-05-17T16:50:57Z</dc:date>
    <item>
      <title>Check Point mgmt api SDK - cme api, wrong method setting new "management"?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Check-Point-mgmt-api-SDK-cme-api-wrong-method-setting-new-quot/m-p/180809#M7697</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;possibly a dump question - when trying to set ("&lt;SPAN&gt;cme-api/v1/management"), i get an error that "wrong method has been used".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;according to the documentation a PUT method has to be used, afaik cpapi uses POST. Is there a possibility to let the sdk use the PUT method? I was not able to find some informations regarding this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(as a workaround, i am sending a task with cli commands but that´s ... )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2023 18:14:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Check-Point-mgmt-api-SDK-cme-api-wrong-method-setting-new-quot/m-p/180809#M7697</guid>
      <dc:creator>Nüüül</dc:creator>
      <dc:date>2023-05-13T18:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Check Point mgmt api SDK - cme api, wrong method setting new "management"?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Check-Point-mgmt-api-SDK-cme-api-wrong-method-setting-new-quot/m-p/180986#M7700</link>
      <description>&lt;P&gt;Curious why it is not acceptable to use a POST method here, assuming it works?&lt;BR /&gt;This might be a documentation bug.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, what version/JHF is running on the management?&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 21:23:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Check-Point-mgmt-api-SDK-cme-api-wrong-method-setting-new-quot/m-p/180986#M7700</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-05-15T21:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Check Point mgmt api SDK - cme api, wrong method setting new "management"?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Check-Point-mgmt-api-SDK-cme-api-wrong-method-setting-new-quot/m-p/181235#M7705</link>
      <description>&lt;P&gt;Have you tried to use CME API documentation?&amp;nbsp;&lt;A href="https://app.swaggerhub.com/apis-docs/Check-Point/cme-api/v1" target="_blank"&gt;https://app.swaggerhub.com/apis-docs/Check-Point/cme-api/v1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Can you share full command and output?&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 13:04:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Check-Point-mgmt-api-SDK-cme-api-wrong-method-setting-new-quot/m-p/181235#M7705</guid>
      <dc:creator>Amir_Senn</dc:creator>
      <dc:date>2023-05-17T13:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Check Point mgmt api SDK - cme api, wrong method setting new "management"?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Check-Point-mgmt-api-SDK-cme-api-wrong-method-setting-new-quot/m-p/181252#M7707</link>
      <description>&lt;P&gt;Hi Amir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am getting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;DEBUG:root:{'name': 'azu-vm-rapoc-cp'}&lt;BR /&gt;API Response: APIResponse({&lt;BR /&gt;"data": {&lt;BR /&gt;"code": "err_cme_api_send_command_failed",&lt;BR /&gt;"message": "Invalid response message from CME API. Body: &amp;lt;!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\"&amp;gt; &amp;lt;title&amp;gt;405 Method Not Allowed&amp;lt;/title&amp;gt; &amp;lt;h1&amp;gt;Method Not Allowed&amp;lt;/h1&amp;gt; &amp;lt;p&amp;gt;The method is not allowed for the requested URL.&amp;lt;/p&amp;gt; "&lt;BR /&gt;},&lt;BR /&gt;"error_message": "code: err_cme_api_send_command_failed\nmessage: Invalid response message from CME API. Body: &amp;lt;!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\"&amp;gt; &amp;lt;title&amp;gt;405 Method Not Allowed&amp;lt;/title&amp;gt; &amp;lt;h1&amp;gt;Method Not Allowed&amp;lt;/h1&amp;gt; &amp;lt;p&amp;gt;The method is not allowed for the requested URL.&amp;lt;/p&amp;gt; \n",&lt;BR /&gt;"res_obj": {&lt;BR /&gt;"data": {&lt;BR /&gt;"code": "err_cme_api_send_command_failed",&lt;BR /&gt;"message": "Invalid response message from CME API. Body: &amp;lt;!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\"&amp;gt; &amp;lt;title&amp;gt;405 Method Not Allowed&amp;lt;/title&amp;gt; &amp;lt;h1&amp;gt;Method Not Allowed&amp;lt;/h1&amp;gt; &amp;lt;p&amp;gt;The method is not allowed for the requested URL.&amp;lt;/p&amp;gt; "&lt;BR /&gt;},&lt;BR /&gt;"status_code": 500&lt;BR /&gt;},&lt;BR /&gt;"status_code": 500,&lt;BR /&gt;"success": false&lt;BR /&gt;}&lt;/LI-SPOILER&gt;&lt;P&gt;Regarding the Documentation you sent (and i already checked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ) the management config of cme is to be sent via PUT method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My script does:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;....
cme_init= {
    'management':
        {'name' : cme_mgmtname}
}
....
client.api_call("cme-api/v1/management", cme_init['management'])
.....&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that i am sending other commands to cme-api for configuring account and gateway, those are working... (regarding documentation, POST is used there)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 16:50:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Check-Point-mgmt-api-SDK-cme-api-wrong-method-setting-new-quot/m-p/181252#M7707</guid>
      <dc:creator>Nüüül</dc:creator>
      <dc:date>2023-05-17T16:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Check Point mgmt api SDK - cme api, wrong method setting new "management"?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Check-Point-mgmt-api-SDK-cme-api-wrong-method-setting-new-quot/m-p/181259#M7708</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/1663"&gt;@Nüüül&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;RnD are testing the issue, I will keep this thread updated with our findings.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Natanel&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 16:20:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Check-Point-mgmt-api-SDK-cme-api-wrong-method-setting-new-quot/m-p/181259#M7708</guid>
      <dc:creator>natanelm</dc:creator>
      <dc:date>2023-05-17T16:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Check Point mgmt api SDK - cme api, wrong method setting new "management"?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Check-Point-mgmt-api-SDK-cme-api-wrong-method-setting-new-quot/m-p/181597#M7716</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/1663"&gt;@Nüüül&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Currently, the SDK only supports the POST method.&lt;BR /&gt;We are working on adding support for the PUT method to the SDK. We will keep you updated on our progress.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Olga&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 05:28:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Check-Point-mgmt-api-SDK-cme-api-wrong-method-setting-new-quot/m-p/181597#M7716</guid>
      <dc:creator>Olga-Miro</dc:creator>
      <dc:date>2023-05-22T05:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Check Point mgmt api SDK - cme api, wrong method setting new "management"?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Check-Point-mgmt-api-SDK-cme-api-wrong-method-setting-new-quot/m-p/181900#M7730</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/1663"&gt;@Nüüül&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We updated the SDK to use all HTTP methods. Please pull the new code from &lt;A href="https://github.com/CheckPointSW/cp_mgmt_api_python_sdk/blob/master/cpapi/mgmt_api.py#L277" target="_self"&gt;GitHub&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Olga&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 11:04:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Check-Point-mgmt-api-SDK-cme-api-wrong-method-setting-new-quot/m-p/181900#M7730</guid>
      <dc:creator>Olga-Miro</dc:creator>
      <dc:date>2023-05-24T11:04:38Z</dc:date>
    </item>
  </channel>
</rss>

