<?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: When using the EPM API, the docs say the version string is optional. If I want to omit it, what do I put in that part of the URL? in Endpoint Privilege Manager (EPM) Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/when-using-the-epm-api-the-docs-say-the-version-string-is/m-p/1310505#M821</link>
    <description>&lt;P&gt;So to be clear,  just:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://na999.epm.cyberark.com/EPM/API//Auth/EPM/Logon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use that and get a 500 (when posting the username, password, and application ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where/how can I troubleshoot that further?&lt;/P&gt;&lt;CODE&gt;$body  = [pscustomobject] @{
    Username = $Username
    Password = $Password
    ApplicationID =  $($MyInvocation.MyCommand).ToString()
}
&amp;nbsp;
$url = "{0}/EPM/API/Auth/EPM/Logon"  -f $EpmBaseUrl
$url
&amp;nbsp;
try
{
    $token = Invoke-RestMethod -Uri $url -Method Post -Body $body -ContentType application/json
}
catch
{
    $_.Exception | fl * -force 
}
&amp;nbsp;
$token&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jul 2020 18:46:59 GMT</pubDate>
    <dc:creator>hkelley</dc:creator>
    <dc:date>2020-07-23T18:46:59Z</dc:date>
    <item>
      <title>When using the EPM API, the docs say the version string is optional. If I want to omit it, what do I put in that part of the URL?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/when-using-the-epm-api-the-docs-say-the-version-string-is/m-p/1310503#M819</link>
      <description>&lt;P&gt;See &lt;A alt="https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/Latest/en/Content/WebServices/ServerAuthentication.htm" href="https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/Latest/en/Content/WebServices/ServerAuthentication.htm" target="_blank"&gt;https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/Latest/en/Content/WebServices/ServerAuthentication.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Version&lt;/P&gt;&lt;P&gt;API&amp;nbsp;version&lt;/P&gt;&lt;P&gt;Type: String&lt;/P&gt;&lt;P&gt;Valid&amp;nbsp;value: Version number. Format is x.x.x.x (for example, 11.5.0.1)&lt;/P&gt;&lt;P&gt;Default value: Latest version&lt;/P&gt;&lt;P&gt;Mandatory: No&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you do a "default value" in a URL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 18:12:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/when-using-the-epm-api-the-docs-say-the-version-string-is/m-p/1310503#M819</guid>
      <dc:creator>hkelley</dc:creator>
      <dc:date>2020-07-23T18:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: When using the EPM API, the docs say the version string is optional. If I want to omit it, what do I put in that part of the URL?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/when-using-the-epm-api-the-docs-say-the-version-string-is/m-p/1310504#M820</link>
      <description>&lt;P&gt;See the note here: https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/Latest/en/Content/WebServices/WebServicesIntro.htm#APIversioning&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;I&gt;We recommend not specifying the version number in the REST&amp;nbsp;API&amp;nbsp;URL, which will run the latest version of the API. Review the EPM Release Notes to determine which APIs changed in each release.&lt;/I&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So just omit that portion of the url.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 18:31:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/when-using-the-epm-api-the-docs-say-the-version-string-is/m-p/1310504#M820</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-07-23T18:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: When using the EPM API, the docs say the version string is optional. If I want to omit it, what do I put in that part of the URL?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/when-using-the-epm-api-the-docs-say-the-version-string-is/m-p/1310505#M821</link>
      <description>&lt;P&gt;So to be clear,  just:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://na999.epm.cyberark.com/EPM/API//Auth/EPM/Logon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use that and get a 500 (when posting the username, password, and application ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where/how can I troubleshoot that further?&lt;/P&gt;&lt;CODE&gt;$body  = [pscustomobject] @{
    Username = $Username
    Password = $Password
    ApplicationID =  $($MyInvocation.MyCommand).ToString()
}
&amp;nbsp;
$url = "{0}/EPM/API/Auth/EPM/Logon"  -f $EpmBaseUrl
$url
&amp;nbsp;
try
{
    $token = Invoke-RestMethod -Uri $url -Method Post -Body $body -ContentType application/json
}
catch
{
    $_.Exception | fl * -force 
}
&amp;nbsp;
$token&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 18:46:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/when-using-the-epm-api-the-docs-say-the-version-string-is/m-p/1310505#M821</guid>
      <dc:creator>hkelley</dc:creator>
      <dc:date>2020-07-23T18:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: When using the EPM API, the docs say the version string is optional. If I want to omit it, what do I put in that part of the URL?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/when-using-the-epm-api-the-docs-say-the-version-string-is/m-p/1310506#M822</link>
      <description>&lt;P&gt;2 things to try - remove the extra backslash in the URL:&lt;/P&gt;&lt;CODE&gt;https://na999.epm.cyberark.com/EPM/API/Auth/EPM/Logon&lt;/CODE&gt;&lt;P&gt;The Body should be formatted as JSON&lt;/P&gt;&lt;CODE&gt;$body  = [pscustomobject] @{
    Username = $Username
    Password = $Password
    ApplicationID =  $($MyInvocation.MyCommand).ToString()
} | ConvertTo-Json&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 19:41:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/when-using-the-epm-api-the-docs-say-the-version-string-is/m-p/1310506#M822</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-07-23T19:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: When using the EPM API, the docs say the version string is optional. If I want to omit it, what do I put in that part of the URL?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/when-using-the-epm-api-the-docs-say-the-version-string-is/m-p/1310507#M823</link>
      <description>&lt;P&gt;Thanks.  I thought .NET automatically converted the body content to the correct content format, but apparently not.   When I explicitly convert to JSON I get a 401, which is an improvement over a 500.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll figure out what I've done wrong with the user setup.  I had to create a new user ID for this test because we normally access EPM via SAML federation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 19:46:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/when-using-the-epm-api-the-docs-say-the-version-string-is/m-p/1310507#M823</guid>
      <dc:creator>hkelley</dc:creator>
      <dc:date>2020-07-23T19:46:57Z</dc:date>
    </item>
  </channel>
</rss>

