<?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 REST API - Unsupported property with name: action. in VMware {code} Members</title>
    <link>https://communities.vmware.com/t5/VMware-code-Members/REST-API-Unsupported-property-with-name-action/m-p/2960109#M85</link>
    <description>&lt;P&gt;I'm new to the vSphere API and I'm attempting to look up library items using the following call.&amp;nbsp; I'm also setting the&amp;nbsp;&lt;SPAN&gt;vmware-api-session-id in the header for this GET request.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;curl&amp;nbsp;--location&amp;nbsp;--request&amp;nbsp;GET&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'https://{host}/api/content/library/item?action=find&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Here's the error being returned:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;"error_type":"INVALID_ARGUMENT", "messages":[{"args":["action""],"default_message":"Unsupported property with name: action.","id":"com.vmware.vapi.rest.unsupportedProperty"}]}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any thoughts on what I might be doing wrong?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Noel&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 20 Mar 2023 18:37:24 GMT</pubDate>
    <dc:creator>naustin2</dc:creator>
    <dc:date>2023-03-20T18:37:24Z</dc:date>
    <item>
      <title>REST API - Unsupported property with name: action.</title>
      <link>https://communities.vmware.com/t5/VMware-code-Members/REST-API-Unsupported-property-with-name-action/m-p/2960109#M85</link>
      <description>&lt;P&gt;I'm new to the vSphere API and I'm attempting to look up library items using the following call.&amp;nbsp; I'm also setting the&amp;nbsp;&lt;SPAN&gt;vmware-api-session-id in the header for this GET request.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;curl&amp;nbsp;--location&amp;nbsp;--request&amp;nbsp;GET&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'https://{host}/api/content/library/item?action=find&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Here's the error being returned:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;"error_type":"INVALID_ARGUMENT", "messages":[{"args":["action""],"default_message":"Unsupported property with name: action.","id":"com.vmware.vapi.rest.unsupportedProperty"}]}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any thoughts on what I might be doing wrong?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Noel&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Mar 2023 18:37:24 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-code-Members/REST-API-Unsupported-property-with-name-action/m-p/2960109#M85</guid>
      <dc:creator>naustin2</dc:creator>
      <dc:date>2023-03-20T18:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - Unsupported property with name: action.</title>
      <link>https://communities.vmware.com/t5/VMware-code-Members/REST-API-Unsupported-property-with-name-action/m-p/2960111#M86</link>
      <description>&lt;P&gt;Not sure where you got that curl command, but have a look at the cURL command under Code Samples in&amp;nbsp;&lt;A href="https://developer.vmware.com/apis/vsphere-automation/latest/content/api/content/library/itemactionfind/post/" target="_blank" rel="noopener"&gt;Find Item&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 18:52:54 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-code-Members/REST-API-Unsupported-property-with-name-action/m-p/2960111#M86</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-03-20T18:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - Unsupported property with name: action.</title>
      <link>https://communities.vmware.com/t5/VMware-code-Members/REST-API-Unsupported-property-with-name-action/m-p/2960119#M87</link>
      <description>&lt;P&gt;Thanks, After closer look at the doc I discovered I was using a GET when should have been a POST&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 19:50:17 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-code-Members/REST-API-Unsupported-property-with-name-action/m-p/2960119#M87</guid>
      <dc:creator>naustin2</dc:creator>
      <dc:date>2023-03-20T19:50:17Z</dc:date>
    </item>
  </channel>
</rss>

