Attributes
  • 09 Oct 2024
  • 2 Minutes to read
  • Dark
    Light
  • PDF

Attributes

  • Dark
    Light
  • PDF

Article summary

Get-LiquitAttribute

Synopsis

This command displays a list of all attributes associated with an entity. An attribute can be a package connection with a connector for example. Or it can be used to associate content with an uploaded type of action (e.g. “Install Uploaded File”).

Syntax

 Get-LiquitAttribute 
   [-Entity] <Entity> 
   [-LiquitContext <LiquitContext>]  
   [<CommonParameters>]

 Get-LiquitAttribute 
   [-Entity] <Entity> 
   [-Type] {Unknown | System | Server | Zone | Tag | IdentitySource | Device | User | Group | DeviceCollection | Package | PackageSnapshot | ActionSet | Action | FilterSet | Filter | Workspace | Policy | Context | View | MailServer | License | Team | Authenticator | Connector | Credential | ScheduledTask | EntityFilter | Deployment | Content |  IdentityProvider | Certificate | SystemUpdate | MailTemplate | AuthContract | PersonalPackage | DeviceRegistration | ConditionSet | Category | EventCollector | ZoneDomain | UserCollection | Session | Variable | Permission | Resource | Task | Approval} 
   [-LiquitContext <LiquitContext>]  
   [<CommonParameters>]

 Get-LiquitAttribute 
   [-Entity] <Entity> 
   [-ID] <string[]> 
   [-LiquitContext <LiquitContext>]  
   [<CommonParameters>]

Example

 $package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
 Get-LiquitAttribute -Entity $package 

This command displays all the attributes of the package.

New-LiquitAttribute

Synopsis

This command creates a new attribute.

Syntax

 New-LiquitAttribute 
   [-Entity] <Entity[]> 
   [-ID] <string> 
   [-Link <Entity>] 
   [-Settings <hashtable>] 
   [-LiquitContext <LiquitContext>] 
   [-WhatIf] 
   [-Confirm]  
   [<CommonParameters>]

Example

 $package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
 $packageSnapshot = Get-LiquitPackageSnapshot -Package $package -id
 $actionset = New-LiquitActionSet -Snapshot $packageSnapshot -Type Install
 $action = New-LiquitAction -Actionset $actionset -Type contentcopy -Enabled $true -Context Device -Settings @{content= "executable.exe"; destination = "C:\destination\"} -name "Contentaction"
 $content = New-LiquitContent -Path "C:\path\executable.exe" -FileName "executable.exe"
 $attribute = New-LiquitAttribute -Entity $action -Link $content -ID “content” -Settings: @{filename = "executable.exe"}

This command creates a new attribute and provides the link between the uploaded content and the action.

Parameters

NameValueDescriptionRequiredDefault value
Entity<Entity[]>The entity to which you want to associate the attribute.Yes
ID<string>The ID that should be associated with the attribute (e.g. “Content”).Yes
Link<Entity>A link to another optional entity.No
Settings<Hashtable>The settings of the attribute.Yes
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Set-LiquitAttribute

Synopsis

This command edits the properties of an attribute.

Syntax

 Set-LiquitAttribute 
   [-Attribute] <Attribute[]> 
   [-Link <Entity>] 
   [-Settings <hashtable>] 
   [-LiquitContext <LiquitContext>] 
   [-WhatIf] 
   [-Confirm]  
   [<CommonParameters>]

Example

 $package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
 Get-LiquitAttribute -Entity $package 
 Set-LiquitAttribute  -Settings @{filename = logo.png}

This command updates an existing attribute.

Parameters

NameValueDescriptionRequiredDefault value
Link<Entity>A link to another optional entity.No
Settings<Hashtable>The settings of the attribute.No
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Remove-LiquitAttribute

Synopsis

This command removes an attribute from the Liquit Workspace.

Syntax

 Remove-LiquitAttribute 
   [-Attribute] <Attribute[]> 
   [-LiquitContext <LiquitContext>] 
   [-WhatIf] 
   [-Confirm]  
   [<CommonParameters>]

Example

 $package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
 $attribute = Get-LiquitAttribute -Entity $package 
 Remove-LiquitAttribute -Attribute $attribute

This command removes the selected attribute from the Liquit Workspace.

Parameters

NameValueDescriptionRequiredDefault value
Attribute<Context>The attribute you wish to remove.Yes
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Was this article helpful?