Entity Filters
  • 26 Mar 2020
  • 2 Minutes To Read
  • Print
  • Share
  • Dark
    Light

Entity Filters

  • Print
  • Share
  • Dark
    Light

Get-LiquitEntityFilter

Synopsis

Displays a list of entity filters belonging to an entity. This decides wether or not the Filterset are used in an AND or OR Clause.

Syntax

PS C:\ Get-LiquitEntityFilter 
	[-Entity] <Entity> 
	[-LiquitContext <LiquitContext>]  
	[<CommonParameters>]

Examples

Example 1: Get-LiquitEntityFilter

PS C:\ $package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
PS C:\ $snapshot = Get-LiquitPackageSnapshot -id 00000000-0000-0000-0000-000000000000 -package $package
PS C:\ $filterset  = Get-LiquitFilterSet -Snapshot $snapshot -id 00000000-0000-0000-0000-000000000000
PS C:\ Get-LiquitEntityFilter -Entity $filterset

This command lists all the entity filter belonging to a filterset.

Set-LiquitEntityFilter

Synopsis

Creates a new entity filter.

Syntax

PS C:\ Set-LiquitEntityFilter 
	[-Snapshot] <PackageSnapshot[]> 
	[-Operator {And | Or}] 
	[-LiquitContext <LiquitContext>] 
	[-WhatIf] 
	[-Confirm]  
	[<CommonParameters>]

PS C:\ Set-LiquitEntityFilter 
	[-Action] <Action[]> 
	[-Operator {And | Or}]
	[-LiquitContext <LiquitContext>] 
	[-WhatIf] 
	[-Confirm]  
	[<CommonParameters>]

PS C:\ Set-LiquitEntityFilter 
	[-DeploymentAction] <DeploymentAction[]> 
	[-Operator {And | Or}] 
	[-LiquitContext <LiquitContext>] 
	[-WhatIf] 
	[-Confirm]  
	[<CommonParameters>]

Examples

Example 1: Set-LiquitEntityFilter

PS C:\ $package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
PS C:\ $snapshot = Get-LiquitPackageSnapshot -id 00000000-0000-0000-0000-000000000000 -package $package
PS C:\ 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 the entity filter should apply to Snapshot only
Action <Action[]> The Action the entity filter should apply to Action only
DeploymentAction <DeploymentAction[]> The Deployment Action the entity filter should apply to Deployment Action 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 enitity from the Liquit Workspace.

Syntax

PS C:\ Remove-LiquitEntityFilter 
	[-EntityFilter] <EntityFilter[]> 
	[-LiquitContext <LiquitContext>]
	[-WhatIf] 
	[-Confirm]  
	[<CommonParameters>]

PS C:\ Remove-LiquitEntityFilter 
	[-Snapshot] <PackageSnapshot[]> 
	[-LiquitContext <LiquitContext>] 
	[-WhatIf] 
	[-Confirm]  
	[<CommonParameters>]

PS C:\ Remove-LiquitEntityFilter 
	[-Action] <Action[]> 
	[-LiquitContext <LiquitContext>] 
	[-WhatIf] 
	[-Confirm]  
	[<CommonParameters>]

PS C:\ Remove-LiquitEntityFilter 
	[-DeploymentAction] <DeploymentAction[]> 
	[-LiquitContext <LiquitContext>] 
	[-WhatIf] 
	[-Confirm]  
	[<CommonParameters>]

Examples

Example 1: Remove-LiquitEntityFilter

PS C:\ $package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
PS C:\ $snapshot = Get-LiquitPackageSnapshot -id 00000000-0000-0000-0000-000000000000 -package $package
PS C:\ 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 Ententity filterityfilter that should be removed Action only
DeploymentAction <DeploymentAction[]> The Deployment Action(s) containing the entity filter that should be removed Deployment Action only
LiquitContext <LiquitContext> Determines the selected zone No Default
Was This Article Helpful?