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
The following example returns the information about a specific resource group.
$cred = Get-Credential
Connect-LXCA -Host "192.0.2.0" -Credential $Cred –SkipCertificateCheck
$uuid = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
$result = Get-LXCAResourceGroups -Type Static -GroupUuid $uids
$result
# Group members can be founded in:
$result.Members
Disconnect-LXCAThe following example returns the information about all static resource groups.
$cred = Get-Credential
Connect-LXCA -Host "192.0.2.0" -Credential $Cred –SkipCertificateCheck
$result = Get-LXCAResourceGroups -Type Static
$result
Disconnect-LXCA
Related links
Give documentation feedback