Entity Filters
- 04 May 2023
- 2 Minutes to read
- Print
- DarkLight
- PDF
Entity Filters
- Updated on 04 May 2023
- 2 Minutes to read
- Print
- DarkLight
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Get-LiquitEntityFilter
Synopsis
Displays a list of entity filters belonging to an entity. This decides whether or not the filter sets are used in an 'AND' or 'OR' Clause.
Syntax
Get-LiquitEntityFilter
[-Entity] <Entity>
[-LiquitContext <LiquitContext>]
[<CommonParameters>]
Examples
Example 1: Get-LiquitEntityFilter
$package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
$snapshot = Get-LiquitPackageSnapshot -id 00000000-0000-0000-0000-000000000000 -package $package
$filterset = Get-LiquitFilterSet -Snapshot $snapshot -id 00000000-0000-0000-0000-000000000000
Get-LiquitEntityFilter -Entity $filterset
This command lists all the entity filters belonging to a filter set.
Set-LiquitEntityFilter
Synopsis
Creates a new entity filter.
Syntax
Set-LiquitEntityFilter
[-Snapshot] <PackageSnapshot[]>
[-Operator {And | Or}]
[-LiquitContext <LiquitContext>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-LiquitEntityFilter
[-Action] <Action[]>
[-Operator {And | Or}]
[-LiquitContext <LiquitContext>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-LiquitEntityFilter
[-Deployment] <Deployment[]>
[-Operator {And | Or}]
[-LiquitContext <LiquitContext>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-LiquitEntityFilter
[-DeploymentAction] <DeploymentAction[]>
[-Operator {And | Or}]
[-LiquitContext <LiquitContext>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Examples
Example 1: Set-LiquitEntityFilter
$package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
$snapshot = Get-LiquitPackageSnapshot -id 00000000-0000-0000-0000-000000000000 -package $package
Set-LiquitEntityFilter -Snapshot $snapshot -Operator Or
This command creates a new entity filter on the selected snapshot.
Parameters
Name | Value | Description | Required | Default value |
---|---|---|---|---|
Snapshot | <PackageSnapshot[]> | The package snapshot to which the entity filter should apply | Snapshot only | |
Action | <Action[]> | The action to which the entity filter should apply | Action only | |
DeploymentAction | <DeploymentAction[]> | The deployment action to which the entity filter should apply | Deployment Action only | |
Deployment | <Deployment[]> | The deployment to which the entity filter should apply | Deployment only | |
Operator | {And | Or} | Determines whether the filter sets are evaluated in an 'AND' or 'OR' clause | No | And |
LiquitContext | <LiquitContext> | Determines the selected zone | No | Default |
Remove-LiquitEntityFilter
Synopsis
Removes a filter entity from Liquit Workspace.
Syntax
Remove-LiquitEntityFilter
[-EntityFilter] <EntityFilter[]>
[-LiquitContext <LiquitContext>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-LiquitEntityFilter
[-Snapshot] <PackageSnapshot[]>
[-LiquitContext <LiquitContext>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-LiquitEntityFilter
[-Action] <Action[]>
[-LiquitContext <LiquitContext>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-LiquitEntityFilter
[-Deployment] <Deployment[]>
[-LiquitContext <LiquitContext>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-LiquitEntityFilter
[-DeploymentAction] <DeploymentAction[]>
[-LiquitContext <LiquitContext>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Examples
Example 1: Remove-LiquitEntityFilter
$package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
$snapshot = Get-LiquitPackageSnapshot -id 00000000-0000-0000-0000-000000000000 -package $package
Remove-LiquitEntityFilter -Snapshot $snapshot
This command removes the selected entity filter from Liquit Workspace.
Parameters
Name | Value | Description | Required | Default value |
---|---|---|---|---|
EntityFilter | <EntityFilter[]> | The entity filter(s) that should be removed | EntityFilter only | |
Snapshot | <PackageSnapshot[]> | The snapshot(s) containing the entity filter that should be removed | Snapshot only | |
Action | <Action[]> | The action(s) containing the entity filter that should be removed | Action only | |
DeploymentAction | <DeploymentAction[]> | The deployment action(s) containing the entity filter that should be removed | Deployment Action only | |
Deployment | <Deployment[]> | The deployment(s) containing the entity filter that should be removed | Deployment only | |
LiquitContext | <LiquitContext> | Determines the selected zone | No | Default |
Was this article helpful?