Add Hosts to a static Host Group
-Id
: The Host Group ID
-Hosts
: One or more Agent IDs to add to the Host Group
PS> Add-CsGroupMember -Id <string> -Hosts @(<string>, <string>)
Update Host Groups by specifying the ID of the group and details to update
-Resources
: An array of Host Group properties
PS> Edit-CsGroup -Resources @(@{ id = <string>; assignment_rule = <string> }),
Search for Host Groups IDs
-Filter
: The filter expression that should be used to limit the results
-Limit
: The maximum records to return [default: 500]
-Offset
: The offset to start retrieving records from [default: 0]
-All
: Repeat request until all results are returned
PS> Get-CsGroupId
Search for info about Host Groups
-Filter
: The filter expression that should be used to limit the results
-Limit
: The maximum records to return [default: 500]
-Offset
: The offset to start retrieving records from [default: 0]
-Id
: IDs of specific host groups to return
-All
: Repeat request until all results are returned
PS> Get-CsGroupInfo
Search for members of a Host Group in your environment
-Id
: The ID of the Host Group to search for members of
-Filter
: The filter expression that should be used to limit the results
-Limit
: The maximum records to return [default: 5000]
-Offset
: The offset to start retrieving records from [default: 0]
-All
: Repeat request until all results are returned
PS> Get-CsGroupMemberId -Id <string>
Search for detail about members of a Host Group in your environment
-Id
: The ID of the Host Group to search for members of
-Filter
: The filter expression that should be used to limit the results
-Limit
: The maximum records to return [default: 5000]
-Offset
: The offset to start retrieving records from [default: 0]
-All
: Repeat request until all results are returned
PS> Get-CsGroupMemberInfo -Id <string>
Create Host Groups by specifying details about the group to create
-Resources
: An array of Host Group properties
PS> New-CsGroup -Resources @(@{ name = <string>; description = <string> })
Delete a set of Host Groups by specifying their IDs
-Id
: An array of IDs of the Host Groups to delete
PS> Remove-CsGroup -Id @(<string>, <string>)
Remove hosts from a static group
-Id
: The Host Group ID
-Hosts
: One or more agent IDs to remove from the group
PS> Remove-CsGroupMember -Id <string> -Hosts @(<string>, <string>)