vcenter_resource_pool

vCenter resource pool.

saltext.vcf.clients.vcenter_resource_pool.create(opts, name, parent, **spec)[source]

Create a resource pool under parent resource pool id.

saltext.vcf.clients.vcenter_resource_pool.tree(opts, profile=None)[source]

Return {root_rp_id: {pool: {name, children: [...]}}}.

REST list_() returns only {resource_pool, name}, so this walks each pool’s detail (get()) to find its parent and composes the tree in Python. Pools whose parent is not in the result (cluster-root pools) become top-level keys.