Filtersets

Get-LiquitFilterset

Synopsis

This command displays a list of filter sets belonging to an entity.

Syntax

 Get-LiquitFilterSet 
    [-EntityFilter] <EntityFilter> 
    [-ID <guid[]>] 
    [-EntityRef <EntityRef[]>] 
    [-LiquitContext <LiquitContext>]  
    [<CommonParameters>]

 Get-LiquitFilterSet 
    [-Snapshot] <PackageSnapshot> 
    [-ID <guid[]>] 
    [-EntityRef <EntityRef[]>] 
    [-LiquitContext <LiquitContext>]  
    [<CommonParameters>]

 Get-LiquitFilterSet 
    [-Action] <Action> 
    [-ID <guid[]>] 
    [-EntityRef <EntityRef[]>] 
    [-LiquitContext <LiquitContext>]  
    [<CommonParameters>]

 Get-LiquitFilterSet 
    [-Deployment] <Deployment> 
    [-ID <guid[]>] 
    [-EntityRef <EntityRef[]>] 
    [-LiquitContext <LiquitContext>]  
    [<CommonParameters>]

 Get-LiquitFilterSet 
    [-DeploymentAction] <DeploymentAction> 
    [-ID <guid[]>] 
    [-EntityRef <EntityRef[]>] 
    [-LiquitContext <LiquitContext>]  
    [<CommonParameters>]

Examples

Example 1: Get-LiquitFilterSet

 $package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
 $snapshot = Get-LiquitPackageSnapshot -id 00000000-0000-0000-0000-000000000000 -package $package
 Get-LiquitFilterSet -Snapshot $snapshot

This command lists all filter sets belonging to the specified package snapshot.

Example 2: Get-LiquitFilterSet

 $package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
 $snapshot = Get-LiquitPackageSnapshot -id 00000000-0000-0000-0000-000000000000 -package $package
 $actionset = Get-LiquitActionSet -Snapshot $snapshot
 $action = Get-LiquitAction -id 00000000-0000-0000-0000-000000000000 -ActionSet $actionset
 Get-LiquitFilterSet -Action $action

This command will display all the filter sets belonging to the specified action.

New-LiquitFilterSet

Synopsis

This command creates a new filter set.

Syntax

 New-LiquitFilterSet 
    [-EntityFilter] <EntityFilter[]> 
    [-LiquitContext <LiquitContext>] 
    [-WhatIf] 
    [-Confirm]  
    [<CommonParameters>]

 New-LiquitFilterSet 
    [-Snapshot] <PackageSnapshot[]> 
    [-LiquitContext <LiquitContext>] 
    [-WhatIf] 
    [-Confirm]  
    [<CommonParameters>]

 New-LiquitFilterSet 
    [-Action] <Action[]> 
    [-LiquitContext <LiquitContext>] 
    [-WhatIf] 
    [-Confirm]  
    [<CommonParameters>]

 New-LiquitFilterSet 
    [-Deployment] <Deployment[]> 
    [-LiquitContext <LiquitContext>] 
    [-WhatIf] 
    [-Confirm]  
    [<CommonParameters>]

 New-LiquitFilterSet 
    [-DeploymentAction] <DeploymentAction[]> 
    [-LiquitContext <LiquitContext>] 
    [-WhatIf] 
    [-Confirm]  
    [<CommonParameters>]

Examples

Example 1: New-LiquitFilterSet

 $package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
 $snapshot = Get-LiquitPackageSnapshot -id 00000000-0000-0000-0000-000000000000 -package $package
 New-LiquitFilterSet -Snapshot $snapshot

This command creates a new filter set in the specified package snapshot.

Example 2: New-LiquitFilterSet

 $package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
 $snapshot = Get-LiquitPackageSnapshot -id 00000000-0000-0000-0000-000000000000 -package $package
 $actionset = Get-LiquitActionSet -Snapshot $snapshot
 $action = Get-LiquitAction -id 00000000-0000-0000-0000-000000000000 -ActionSet $actionset
 New-LiquitFilterSet -Action $action

This command creates a new filter set in the specified action.

Parameters

Name Value Description Required Default value
EntityFilter <EntityFilter[]> The entity filter determines whether or not filter sets are used in an 'AND' or 'OR' clause. Entity filter only
Snapshot <PackageSnapshot[]> The package snapshot to which the filter needs to be applied. Snapshot only
Action <Action[]> The action to which the filter needs to be applied. Action only
Deployment <Deployment[]> The deployment to which the filter needs to be applied. Deployment only
DeploymentAction <DeploymentAction[]> The deployment action to which the filter needs to be applied. Deployment action only
LiquitContext <LiquitContext> Determines the selected zone. No Default

Remove-LiquitFilterSet

Synopsis

This command removes a filter set from the Liquit Workspace.

Syntax

 Remove-LiquitFilterSet
    [-FilterSet] <FilterSet[]> 
    [-LiquitContext <LiquitContext>] 
    [-WhatIf] 
    [-Confirm]  
    [<CommonParameters>]

Example

 $package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
 $snapshot = Get-LiquitPackageSnapshot -id 00000000-0000-0000-0000-000000000000 -package $package
 $actionset = Get-LiquitActionSet -Snapshot $snapshot
 $action = Get-LiquitAction -id 00000000-0000-0000-0000-000000000000 -ActionSet $actionset
 $filterset = Get-LiquitFilterSet -Action $action -id 00000000-0000-0000-0000-000000000000
 Remove-LiquitFilterSet -FilterSet $filterset 

This command removes the selected filter set from the Liquit Workspace.

Parameters

Name Value Description Required Default value
FilterSet <FilterSet[]> The filter set(s) that should be removed. Yes
LiquitContext <LiquitContext> Determines the selected zone. No Default