<?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: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines in Horizon Desktops and Apps</title>
    <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875930#M95259</link>
    <description>&lt;P&gt;How about add-machines-by-name:&lt;/P&gt;&lt;P&gt;/inventory/v1/desktop-pools/{id}/action/add-machines-by-name&lt;/P&gt;&lt;P&gt;That's actually what I was trying first.&amp;nbsp; I don't see any other calls that can do the user assignment.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Nov 2021 21:07:16 GMT</pubDate>
    <dc:creator>ntrippcig</dc:creator>
    <dc:date>2021-11-02T21:07:16Z</dc:date>
    <item>
      <title>Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875653#M95244</link>
      <description>&lt;P&gt;Making a call and I have the pool ID correct and post the body in JSON:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"name"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"XXXXXXXXX"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"user_id"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"S-XXXXXXXXXXXX"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;get this response:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"status"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"BAD_REQUEST"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"timestamp"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;1635764411101&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"error_message"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Desktop&amp;nbsp;pool&amp;nbsp;should&amp;nbsp;be&amp;nbsp;specified&amp;nbsp;naming&amp;nbsp;type"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Documentation says to send exactly what I am sending. What gives? what is this "Desktop pool should be specified naming type"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Nov 2021 16:09:13 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875653#M95244</guid>
      <dc:creator>ntrippcig</dc:creator>
      <dc:date>2021-11-01T16:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875922#M95258</link>
      <description>&lt;P&gt;You should be only passing an array of machine ids to add to the pool. &amp;nbsp;You appear to be posting user details?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://developer.vmware.com/apis/1169#/Inventory/addMachines" target="_blank" rel="noopener"&gt;https://developer.vmware.com/apis/1169#/Inventory/addMachines&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 20:26:01 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875922#M95258</guid>
      <dc:creator>chrisdhalstead</dc:creator>
      <dc:date>2021-11-02T20:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875930#M95259</link>
      <description>&lt;P&gt;How about add-machines-by-name:&lt;/P&gt;&lt;P&gt;/inventory/v1/desktop-pools/{id}/action/add-machines-by-name&lt;/P&gt;&lt;P&gt;That's actually what I was trying first.&amp;nbsp; I don't see any other calls that can do the user assignment.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 21:07:16 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875930#M95259</guid>
      <dc:creator>ntrippcig</dc:creator>
      <dc:date>2021-11-02T21:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875932#M95261</link>
      <description>&lt;P&gt;Are you looking to entitle manual pools or automated pools?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 21:15:54 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875932#M95261</guid>
      <dc:creator>chrisdhalstead</dc:creator>
      <dc:date>2021-11-02T21:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875933#M95262</link>
      <description>&lt;P&gt;it's a manual persistent pool.&amp;nbsp; Users have been connecting to these desktops remotely over vpn/rdp and want to keep the desktop but start using Horizon.&amp;nbsp; They are entitled to the pool by group but I want to add the machine and assign a user to a specific machine because that's where their profiles and apps are.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 21:17:55 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875933#M95262</guid>
      <dc:creator>ntrippcig</dc:creator>
      <dc:date>2021-11-02T21:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875935#M95263</link>
      <description>&lt;P&gt;Got it - let me see if there is a REST API for that. &amp;nbsp;It may only be available with PowerCLI&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 21:21:07 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875935#M95263</guid>
      <dc:creator>chrisdhalstead</dc:creator>
      <dc:date>2021-11-02T21:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875936#M95264</link>
      <description>&lt;P&gt;This endpoint should do it:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.vmware.com/apis/1169#/Inventory/assignUsers" target="_blank"&gt;​/inventory​/v1​/machines​/{id}​/action​/assign-users&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 21:23:43 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875936#M95264</guid>
      <dc:creator>chrisdhalstead</dc:creator>
      <dc:date>2021-11-02T21:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875937#M95265</link>
      <description>&lt;P&gt;I just tried the add-machines call and that is complaining that the machine is not found in the VC:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"id"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"XXX"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"status_code"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;404&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"error_messages"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;[&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Could&amp;nbsp;not&amp;nbsp;find&amp;nbsp;machine&amp;nbsp;on&amp;nbsp;VC"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"timestamp"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;1635870204537&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I've tried by VM name and by the VM ID in vcenter. Is there some other designation I should be using? When I click add in vcenter they are there.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Nov 2021 21:25:37 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875937#M95265</guid>
      <dc:creator>ntrippcig</dc:creator>
      <dc:date>2021-11-02T21:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875938#M95266</link>
      <description>&lt;P&gt;It should be this endpoint: &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developer.vmware.com/apis/1169#/Inventory/assignUsers" target="_blank"&gt;​/inventory​/v1​/machines​/{id}​/action​/assign-users&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You need to get the machine ID from: &amp;nbsp;&lt;A href="https://developer.vmware.com/apis/1169#/Inventory/listMachines" target="_blank"&gt;​/inventory​/v1​/machines&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 21:32:20 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2875938#M95266</guid>
      <dc:creator>chrisdhalstead</dc:creator>
      <dc:date>2021-11-02T21:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2876063#M95272</link>
      <description>&lt;P&gt;That does return list of machines, but only ones that are already registered in pools.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 13:53:06 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2876063#M95272</guid>
      <dc:creator>ntrippcig</dc:creator>
      <dc:date>2021-11-03T13:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2876298#M95282</link>
      <description>&lt;P&gt;Are you trying to add physical machines with the Horizon Agent to a manual pool and then assign users to it? &amp;nbsp; &amp;nbsp;What type of machine are you trying to add to the manual pool?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 13:27:51 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2876298#M95282</guid>
      <dc:creator>chrisdhalstead</dc:creator>
      <dc:date>2021-11-04T13:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2876336#M95288</link>
      <description>&lt;P&gt;VMWare VMs in vcenter the connection servers are connected to&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 16:28:50 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2876336#M95288</guid>
      <dc:creator>ntrippcig</dc:creator>
      <dc:date>2021-11-04T16:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2876340#M95289</link>
      <description>&lt;P&gt;ok make sure the VMs have a Horizon Agent installed.&lt;/P&gt;&lt;P&gt;Where do you see these machines in the Horizon console today?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are they under Inventory | Machines&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;Settings | Registered Machines&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 16:38:35 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2876340#M95289</guid>
      <dc:creator>chrisdhalstead</dc:creator>
      <dc:date>2021-11-04T16:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2876394#M95290</link>
      <description>&lt;P&gt;Agent is installed. The machines don't show in Inventory or Registered machines. I can Add from GUI so I am looking for the REST call to replicate that GUI function.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 20:42:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2876394#M95290</guid>
      <dc:creator>ntrippcig</dc:creator>
      <dc:date>2021-11-04T20:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2876401#M95291</link>
      <description>&lt;P&gt;what GUI are you talking about? &amp;nbsp;The Horizon console?&lt;/P&gt;&lt;P&gt;Are you talking about adding vCenter machines into a manual pool this way?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-11-04 at 4.52.48 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/91891iEEC90473809B86D2/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-11-04 at 4.52.48 PM.png" alt="Screen Shot 2021-11-04 at 4.52.48 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 20:55:12 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2876401#M95291</guid>
      <dc:creator>chrisdhalstead</dc:creator>
      <dc:date>2021-11-04T20:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2876565#M95295</link>
      <description>&lt;P&gt;Says I do not have perms to upload images. Desktops -&amp;gt; manual pool -&amp;gt; add&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 15:40:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2876565#M95295</guid>
      <dc:creator>ntrippcig</dc:creator>
      <dc:date>2021-11-05T15:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2877808#M95327</link>
      <description>&lt;P&gt;I have the registration working but assigning users is failing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$desktop = Invoke-RestMethod "$($connectionservers)/rest/external/v1/virtual-machines?vcenter_id=$($vcenter_id)" -Method 'GET' -Headers $headers 
$desktop = $desktop | where-object {$_.name -eq $computer}
$pools = Invoke-RestMethod "$($connectionservers)/rest/inventory/v1/desktop-pools" -Method 'GET' -Headers $headers 
$pool_id = ($pools | Where-Object {$_.name -like $pool}).id
$desktopJ = "[
    $($desktop.id | ConvertTo-Json)
    ]"
$machineRegister = Invoke-RestMethod "$($connectionservers)/rest/inventory/v1/desktop-pools/$($pool_id)/action/add-machines" -Method "POST" -Headers $headers -Body ($desktopJ)
Invoke-RestMethod "$($connectionservers)/rest/inventory/v1/machines/$($machineRegister.id)/action/assign-users" -Method "POST" -Body "[`"XXXXXXXXXXXXXXXXXXXXX`"]"&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Invoke-RestMethod: 
VMware Horizon
        function toggleError()
        {
            var errorElement = document.getElementById('errorDetails');
            if (errorElement &amp;amp;&amp;amp; errorElement.style.display == 'none')
            {
                errorElement.style.display="block";
            }
            else
            {
                errorElement.style.display="none";
            }
        }
        function escapeHTML (str)
        {
            var div = document.createElement('div');
            var text = document.createTextNode(str);
            div.appendChild(text);
            return div.innerHTML;
        }







Error: Unsupported Media Type
The page you requested is not available.
        var url = escapeHTML(location.href);
        if (url.indexOf("http:") == 0 &amp;amp;&amp;amp; 415 == "404") {
                document.write(" Try HTTPS instead.");
        }
Show Details
    Error code: 415&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 12 Nov 2021 19:28:02 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2877808#M95327</guid>
      <dc:creator>ntrippcig</dc:creator>
      <dc:date>2021-11-12T19:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2896890#M96466</link>
      <description>&lt;P&gt;Did you get this to work? I am in a similar situation - need to add VMs to manual desktop and couldn't figure out where to get the machineID, as the VMs are not registered yet to any pools.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 22:18:32 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2896890#M96466</guid>
      <dc:creator>pillayar</dc:creator>
      <dc:date>2022-03-04T22:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2983461#M99820</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you find a solution? I've got the same problem. &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@496A89FA088F62A110AE1F7E1799BA25/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 14:20:13 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2983461#M99820</guid>
      <dc:creator>JanBolk</dc:creator>
      <dc:date>2023-08-22T14:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Horizon REST Call: /inventory/v1/desktop-pools/{id}/action/add-machines</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2985282#M99865</link>
      <description>&lt;P&gt;you need to get the machine id from /external/v1/virtual-machines&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 11:32:31 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Horizon-REST-Call-inventory-v1-desktop-pools-id-action-add/m-p/2985282#M99865</guid>
      <dc:creator>RetouwNL</dc:creator>
      <dc:date>2023-09-04T11:32:31Z</dc:date>
    </item>
  </channel>
</rss>

