@@ -12,17 +12,61 @@ const (
1212 // ClusterDefaultResourcePoolName is the default resource pool name for a cluster.
1313 ClusterDefaultResourcePoolName = "Resources"
1414
15- // ClusterInventoryPath is the path for cluster inventory.
16- ClusterInventoryPath = "/%s/host/%s"
17-
1815 // DefaultDomain is the default vCenter domain.
1916 DefaultDomain = "VSPHERE.LOCAL"
17+ )
18+
19+ const (
20+ // DatastoreInventoryPrefix is the prefix for datastore inventory.
21+ // Replacements: datacenter name.
22+ DatastoreInventoryPrefix = "/%s/datastore/"
23+
24+ // HostInventoryPath is the path for cluster or host system inventory.
25+ // Replacements: datacenter name, cluster or host system name.
26+ HostInventoryPath = "/%s/host/%s"
27+
28+ // HostInventoryPrefix is the prefix for host inventory.
29+ // Replacements: datacenter name.
30+ HostInventoryPrefix = "/%s/host/"
31+
32+ // HostInventoryGlob is the path for listing all host inventory in a
33+ // datacenter; including host systems and clusters.
34+ // Replacements: datacenter name.
35+ HostInventoryGlob = "/%s/host/*"
2036
21- // HostSystemInventoryPath is the path for host system inventory.
22- HostSystemInventoryPath = "/%s/host/%s/%s"
37+ // HostChildInventoryPath is the path for host system or resource pool inventory.
38+ // Replacements: datacenter name, cluster, host system, or resource pool name.
39+ HostChildInventoryPath = "/%s/host/%s/%s"
40+
41+ // NetworkInventoryPath is the path for network inventory.
42+ // Replacements: datacenter name, network name.
43+ NetworkInventoryPath = "/%s/network/%s"
44+
45+ // NetworkInventoryPrefix is the prefix for network inventory.
46+ // Replacements: datacenter name.
47+ NetworkInventoryPrefix = "/%s/network/"
2348
2449 // ResourcePoolInventoryPath is the path for resource pool inventory.
50+ // Replacements: datacenter name, cluster name, resource pool name.
2551 ResourcePoolInventoryPath = "/%s/host/%s/Resources/%s"
52+
53+ // ResourcePoolInventoryGlob is the path for listing all resource pools
54+ // in a cluster.
55+ // Replacements: datacenter name, cluster name.
56+ ResourcePoolInventoryGlob = "/%s/host/%s/Resources/*"
57+
58+ // ResourcePoolChildInventoryGlob is the path for listing all child inventory
59+ // in a resource pool.
60+ // Replacements: datacenter name, cluster name, resource pool name.
61+ ResourcePoolChildInventoryGlob = "/%s/host/%s/Resources/%s/*"
62+
63+ // VMFolderInventoryPath is the path for VM folder inventory.
64+ // Replacements: datacenter name, vm folder name.
65+ VMFolderInventoryPath = "/%s/vm/%s"
66+
67+ // VMFolderInventoryPrefix is the prefix for VM folder inventory.
68+ // Replacements: datacenter name.
69+ VMFolderInventoryPrefix = "/%s/vm/"
2670)
2771
2872// Account contains vCenter account details.
0 commit comments