Add-LXCAResourceGroupMembers
This cmdlet adds devices to a static resource group.
Note
You cannot pipe objects to this cmdlet.
Syntax
Add-LXCAResourceGroupMembers [-Connection LXCAConnection]
-GroupUuid String
-DeviceType String
-DevicesUuid 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.
- -GroupUuid String
- Specifies the UUID of the resource group to which you want to add devices.
- -DeviceType String
- Specifies the type of the devices to be added. You can specify one of the following values.
Chassis
Nodes
Switches
Storage
- -DevicesUuid String[]
- Specifies the UUID of the devices to be added.
- 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 a Lenovo.SysMgmt.LXCA.Integration.Data.ResourceGroup object for the resource group with specified UUID. The returned object contains all the devices (including devices that were just added) in the resource group.
Note
This cmdlet does not returns any error if one or more devices were not added to the group.
Examples
The following example adds three switches to a specific resource group.
$cred = Get-Credential
Connect-LXCA -Host "192.0.2.0" -Credential $Cred –SkipCertificateCheck
$groupUuid = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
$switchesUuids = @("EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE", "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", `
"CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC")
$result = Add-LXCAResourceGroupMembers -GroupUuid $groupUuid -DevicesUuid $switchesUuids -DeviceType Switches
$result
Disconnect-LXCA
Related links
Give documentation feedback