<?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: get tasks using Rest API in VMware vSphere™ Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/get-tasks-using-Rest-API/m-p/2221771#M25061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!!! Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Sep 2019 11:57:12 GMT</pubDate>
    <dc:creator>Humphry</dc:creator>
    <dc:date>2019-09-04T11:57:12Z</dc:date>
    <item>
      <title>get tasks using Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/get-tasks-using-Rest-API/m-p/2221770#M25060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a problem listing the tasks using the Rest API (&lt;A href="http://vmware.github.io/vsphere-automation-sdk-rest/6.7.1/operations/com/vmware/cis/tasks.list-operation.html"&gt;http://vmware.github.io/vsphere-automation-sdk-rest/6.7.1/operations/com/vmware/cis/tasks.list-operation.html&lt;/A&gt;). I want to retrieve the list of tasks for a specific user, so I make the following request: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new, courier;"&gt;GET /rest/cis/tasks?filter_spec.users.1=myuser&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new, courier;"&gt;At least one of the parameters 'services' or 'tasks' must not be empty in the filter specification.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't know what value to set in the &lt;SPAN class="url-query-parameters"&gt;&lt;SPAN class="key"&gt;&lt;STRONG&gt;filter_spec.services.1&lt;/STRONG&gt; parameter. What should I set in the services parameter? Can anyone write an example, please.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="url-query-parameters"&gt;&lt;SPAN class="key"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="url-query-parameters"&gt;&lt;SPAN class="key"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2019 15:33:41 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/get-tasks-using-Rest-API/m-p/2221770#M25060</guid>
      <dc:creator>Humphry</dc:creator>
      <dc:date>2019-08-28T15:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: get tasks using Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/get-tasks-using-Rest-API/m-p/2221771#M25061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!!! Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 11:57:12 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/get-tasks-using-Rest-API/m-p/2221771#M25061</guid>
      <dc:creator>Humphry</dc:creator>
      <dc:date>2019-09-04T11:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: get tasks using Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/get-tasks-using-Rest-API/m-p/2221772#M25062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A "service" is grouping of operations (usually CRUD, but sometimes custom actions as well) on the same REST resource. It is what would be the interface in the SDK (say Java, C# or Python) which contains the methods corresponding to the API operations on the resource.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The service ID is a fully qualified name of interface from the SDK, but in lower case with underscores separating the words. In the latest versions of the vSphere Automation SDK for Java (or Python) there are constants in the interface which represent the service ID, you can see the value of these constants in the javadoc. The constants are named _VAPI_SERVICE_ID and are located in the xxxTypes base interface. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(198, 198, 198); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: left; background-color: #f2f2f2; color: #505050; padding: 6px;" valign="middle"&gt;REST URl path&lt;/TH&gt;&lt;TH style="text-align: left; background-color: #f2f2f2; color: #505050; padding: 6px;" valign="middle"&gt;Service ID&lt;/TH&gt;&lt;TH style="text-align: left; background-color: #f2f2f2; color: #505050; padding: 6px;" valign="middle"&gt;Constant from Java SDK&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 6px;"&gt;/vcenter/vm&lt;/TD&gt;&lt;TD style="padding: 6px;"&gt;&lt;CODE&gt;com.vmware.vcenter.VM&lt;/CODE&gt;&lt;/TD&gt;&lt;TD style="padding: 6px;"&gt;&lt;P&gt;&lt;A href="https://vmware.github.io/vsphere-automation-sdk-java/vsphere/cloud/vsphereautomation-client-sdk/com/vmware/vcenter/VM.html" title="https://vmware.github.io/vsphere-automation-sdk-java/vsphere/cloud/vsphereautomation-client-sdk/com/vmware/vcenter/VM.html"&gt;VM (vSphere Automation SDK for Java 6.9.1)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://vmware.github.io/vsphere-automation-sdk-java/vsphere/cloud/vsphereautomation-client-sdk/constant-values.html#com.vmware.vcenter.VMTypes._VAPI_SERVICE_ID" title="https://vmware.github.io/vsphere-automation-sdk-java/vsphere/cloud/vsphereautomation-client-sdk/constant-values.html#com.vmware.vcenter.VMTypes._VAPI_SERVICE_ID"&gt;Constant Field Values (vSphere Automation SDK for Java 6.9.1)&lt;/A&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 6px;"&gt;/vcenter/resource-pool&lt;/TD&gt;&lt;TD style="padding: 6px;"&gt;&lt;CODE&gt;com.vmware.vcenter.resource_pool&lt;/CODE&gt;&lt;/TD&gt;&lt;TD style="padding: 6px;"&gt;&lt;P&gt;&lt;A href="https://vmware.github.io/vsphere-automation-sdk-java/vsphere/cloud/vsphereautomation-client-sdk/com/vmware/vcenter/ResourcePool.html" title="https://vmware.github.io/vsphere-automation-sdk-java/vsphere/cloud/vsphereautomation-client-sdk/com/vmware/vcenter/ResourcePool.html"&gt;ResourcePool (vSphere Automation SDK for Java 6.9.1)&lt;/A&gt; &lt;BR /&gt;&lt;A href="https://vmware.github.io/vsphere-automation-sdk-java/vsphere/cloud/vsphereautomation-client-sdk/constant-values.html#com.vmware.vcenter.ResourcePoolTypes._VAPI_SERVICE_ID" title="https://vmware.github.io/vsphere-automation-sdk-java/vsphere/cloud/vsphereautomation-client-sdk/constant-values.html#com.vmware.vcenter.ResourcePoolTypes._VAPI_SERVICE_ID"&gt;Constant Field Values (vSphere Automation SDK for Java 6.9.1)&lt;/A&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2019 08:01:24 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/get-tasks-using-Rest-API/m-p/2221772#M25062</guid>
      <dc:creator>mcvetanov</dc:creator>
      <dc:date>2019-10-17T08:01:24Z</dc:date>
    </item>
  </channel>
</rss>

