Retrieving vRealize Operations Manager resource objects
Resource objects are data centers, folders, clusters, ESXi hosts, datastores, virtual machines, resource pools, and so on. The Get-OMResource
cmdlet retrieves vRealize Operations Manager resource objects. The syntax of Get-OMResource
cmdlet is as follows. The first parameter set is the default:
Get-OMResource [[-Name] <String[]>] [-ResourceKind <String[]>]
[-AdapterKind <String[]>] [-Orphaned] [-Server <OMServer[]>]
[<CommonParameters>]
The second parameter set is there to retrieve vROPs resource objects by ID:
Get-OMResource -Id <String[]> [-Server <OMServer[]>]
[<CommonParameters>]
The -Id
parameter is required.
The third parameter set is required to retrieve vROPs resource objects by specifying objects from vSphere:
Get-OMResource [-Entity] <VIObjectCore[]> [<CommonParameters>]
The -Entity
parameter is required.
If you use the Get-OMResource
cmdlet without parameters...