Entity Filters
- 04 Mar 2024
- 2 Minutes to read
- Print
- DarkLight
- PDF
Entity Filters
- Updated on 04 Mar 2024
- 2 Minutes to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Get-LiquitEntityFilter
Synopsis
This command displays a list of entity filters belonging to an entity. This way you can see whether or not the filter sets are used in an 'AND' or 'OR' clause.
Syntax
Get-LiquitEntityFilter
[-Entity] <Entity>
[-LiquitContext <LiquitContext>]
[<CommonParameters>]
Example
$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 specific filter set.
Set-LiquitEntityFilter
Synopsis
This command 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>]
Example
$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 in 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
This command removes a filter entity from the 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>]
Example
$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 the 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?