Device Collection Members

Get-LiquitDeviceCollectionMember

This command displays a list of devices that are members of a specific device collection.

Syntax

 Get-LiquitDeviceCollectionMember 
	[-DeviceCollection] <DeviceCollection[]> 
	[-LiquitContext <LiquitContext>]  
	[<CommonParameters>]

Example

The following script lists all available devices from the selected device collection:

 $deviceCollection = Get-LiquitDeviceCollection -id 00000000-0000-0000-0000-000000000000
 Get-LiquitDeviceCollectionMember  -DeviceCollection $deviceCollection 




Add-LiquitDeviceCollectionMember

This command adds a device to a collection.

Syntax

 Add-LiquitDeviceCollectionMember 
	[-DeviceCollection] <DeviceCollection>
	[-Device] <Device[]> 
	[-LiquitContext <LiquitContext>] 
	[-WhatIf] 
	[-Confirm]  
	[<CommonParameters>]

Example

The following script adds a specific device to a specific collection:

 $device = Get-LiquitDevice -id 00000000-0000-0000-0000-000000000000
 $deviceCollection = Get-LiquitDeviceCollection -id 00000000-0000-0000-0000-000000000000
 Add-LiquitDeviceCollectionMember  -DeviceCollection $deviceCollection  -Device $device

Parameters

NameValueDescriptionRequiredDefault value
DeviceCollection<DeviceCollection>The collection to which you add the device.Yes
Device<Device[]>The device to add to the collection.Yes
LiquitContext<LiquitContext>Determines the selected zone.NoDefault




Remove-LiquitDeviceCollectionMember

This command removes a device from a collection.

Syntax

 Remove-LiquitDeviceCollectionMember 
	[-DeviceCollection] <DeviceCollection> 
	[-Device] <Device[]> 
	[-LiquitContext <LiquitContext>] 
	[-WhatIf] 
	[-Confirm]  
	[<CommonParameters>]

Example

The following script removes the selected device from the selected collection:

 $device = Get-LiquitDevice -id 00000000-0000-0000-0000-000000000000
 $deviceCollection = Get-LiquitDeviceCollection -id 00000000-0000-0000-0000-000000000000
 Remove-LiquitDeviceCollectionMember  -DeviceCollection $deviceCollection  -Device $device

Parameters

NameValueDescriptionRequiredDefault value
DeviceCollection<DeviceCollection>The collection from which you remove the device.Yes
Device<Device[]>The device to remove from the collection.Yes
LiquitContext<LiquitContext>Determines the selected zone.NoDefault