Get-LXCAResourceGroups

This cmdlet retrieves information about all resource groups or a specific resource group.

Note: You cannot pipe objects to this cmdlet.

Syntax

Get-LXCAResourceGroups [-Connection LXCAConnection]
                        -Type String
                       [-GroupUuid String]
                       [CommonParameter]

Parameters

-Connection LXCAConnection
Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
-Type String
Specifies the type of resource group. This can be the following value.
  • static

-GroupUuid String
Specifies the UUID of the resource group to be retrieved. If not specified, information about all static resource groups are returned.
CommonParameters
This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.

Results

This cmdlet returns one of the following objects:
  • Lenovo.SysMgmt.LXCA.Integration.Data.ResourceGroup

    If -GroupUuid is specified, this cmdlet returns a Lenovo.SysMgmt.LXCA.Integration.Data.ResourceGroup object for the group with specified UUID.

  • Lenovo.SysMgmt.LXCA.Integration.Data.ResourceGroup[]

    If -GroupUuid is not specified, this cmdlet returns an array of Lenovo.SysMgmt.LXCA.Integration.Data.ResourceGroup objects.

Examples

Related links

Add-LXCAResourceGroupMembers