Working with Online Depots
You can use the
vSphere
Automation
APIs to
add online depots to the list of currently configured online software depots. Use online depots to add new content over time to the management scope of Depot Manager.
Depot Manager periodically updates the software depots metadata stored on the
vCenter
Server
instance. In case, new
software updates are uploaded to the online depots, the Depot Manager makes sure that
the metadata stored on the vCenter
Server
database is updated accordingly. To add an online depot to the Depot Manager, you must first create the online depot
specification by using the . To specify the URI to the
Online.CreateSpec
data structurevendor-index.xml
file of the online depot, use the
. Optionally, you can
add a description and enable the depot. By default, when you add an online depot to the
Depot Manager, the depot is enabled and its metadata is synchronized following the
defined schedule. If you want to synchronize the added online depot immediately, location
property of the
Online.CreateSpec
data structureuse the
. When you complete the depot specification, POST
https://
request<vcenter_ip_address_or_fqdn>
/api/esx/settings/depots?action=sync&vmw-task=trueuse the
. POST
https://
request and submit the <vcenter_ip_address_or_fqdn>
/api/esx/settings/depots/onlineOnline.CreateSpec
JSON object to add the
depotYou can edit the depot description and deactivate the depot by
using the
. PATCH
https://
request and submitting the depot ID as path parameter and an
<vcenter_ip_address_or_fqdn>
/api/esx/settings/depots/online/<depot_id>
Online.UpdateSpec
JSON object in the request bodyYou can remove an online depot from the list of currently configured depots by using the
. This operation does not
remove the already downloaded metadata and payloads from the deleted depot. You cannot
delete the default VMware online depot, you can only deactivate it.
DELETE
https://
request and submitting the depot ID as a pat parameter<vcenter_ip_address_or_fqdn>
/api/esx/settings/depots/online/<depot_id>
?vmw-task=trueTo retrieve a list of currently configured online depots, .
use
the
. You can also retrieve information about a currently configured online
depot by using the GET
https://
request<vcenter_ip_address_or_fqdn>
/api/esx/settings/depots/onlineGET
https://
request and submitting the depot ID as path parameter<vcenter_ip_address_or_fqdn>
/api/esx/settings/depots/online/<depot_id>