Licenses
  • 05 Nov 2024
  • 3 Minutes to read
  • Dark
    Light
  • PDF

Licenses

  • Dark
    Light
  • PDF

Article summary

Get-LiquitLicense

Synopsis

This command displays a list of all licenses known within Liquit Workspace.

Syntax

 Get-LiquitLicense 
	[-LiquitContext <LiquitContext>]  
	[<CommonParameters>]

 Get-LiquitLicense
	[-ID] <guid[]> 
	[-LiquitContext <LiquitContext>]  
	[<CommonParameters>]

 Get-LiquitLicense 
	[-EntityRef] <EntityRef[]> 
	[-LiquitContext <LiquitContext>]  
	[<CommonParameters>]

 Get-LiquitLicense
	[-Type] {Perpetual | SubscriptionMonthly | SubscriptionAnnual} 
	[-LiquitContext <LiquitContext>]  
	[<CommonParameters>]
    
Get-LiquitLicense 
    [-Search] <string> 
    [-LiquitContext <LiquitContext>]
    [<CommonParameters>]

Get-LiquitLicense 
    [-Name] <string> 
    [-LiquitContext <LiquitContext>]  
    [<CommonParameters>]

Examples

Example 1: Get-LiquitLicense

 Get-LiquitLicense

This command displays all licenses known in Liquit Workspace.

Example 2: Get-LiquitLicense

 Get-LiquitLicense-id 00000000-0000-0000-0000-000000000000

This command selects a specific license.

Parameters

NameValueDescriptionRequiredDefault value
Search<string>This parameter serves a similar purpose to the search box found in the license table from the Liquit Workspace UI. It enables users to search multiple columns within the table, such as Name and Type. When a search term is provided, the parameter filters records by matching values in these indexed columns. However, it's important to note that not all columns in the table are indexed, meaning that searches for values in these non-indexed columns will not return results. Non-indexed columns include for example the ID and columns containing checkboxes.
Name<string>Searches on the license name itself.
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

New-LiquitLicense

Synopsis

This command creates a new license.

Syntax

 New-LiquitLicense 
	[-Name] <string> 
	[-Type {Perpetual | SubscriptionMonthly | SubscriptionAnnual}]
	[-Count <int>]
	[-Cost <string>]
	[-Unit {Unspecified | Concurrent | User | Device}] 
	[-Description <string>]
	[-LicenseKey <string>]
	[-LiquitContext <LiquitContext>] 
	[-WhatIf] 
	[-Confirm]  
	[<CommonParameters>]

Example

    New-LiquitLicense -Name "PowerShell License" -Type Perpetual -Count 100 -Cost 100

This command creates a new license with the name "PowerShell License".

Parameters

NameValueDescriptionRequiredDefault value
Name<string>Provide a name for the license.Yes
Type{Perpetual | SubscriptionMonthly | SubscriptionAnnual}The type of the license.Yes
Count<int>The number of licenses.Yes
Cost<string>The cost of the license.Yes
Enabled<bool>Determines whether or not the package is enabled.NoTrue
Unit{Unspecified | Concurrent | User | Device}Determines the unit of the license.NoUnspecified
LicenseKey<string>The key associated with this license.
Description<string>The description of the license.No
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Set-LiquitLicense

Synopsis

This command lets you edit the properties of a license.

Syntax

 Set-LiquitLicense 
	[-License] <License[]> 
	[-Name <string>] 
	[-Type {Perpetual | SubscriptionMonthly | SubscriptionAnnual}] 
	[-Unit {Unspecified | Concurrent | User | Device}] 
	[-Count <int>] 
	[-Cost <string>]
	[-Description <string>] 
    [-LicenseKey <string>] 
	[-LiquitContext <LiquitContext>] 
	[-WhatIf] 
	[-Confirm]  
	[<CommonParameters>]

Example

 $license = Get-LiquitLicense -id 00000000-0000-0000-0000-000000000000
 Set-LiquitLicense -License $license -Name "Updated PowerShell License"

This command updates an existing license and renames it "Updated PowerShell License".

Parameters

NameValueDescriptionRequiredDefault value
Name<string>Provide a name for the licens.eNo
Type{Perpetual | SubscriptionMonthly | SubscriptionAnnual}The type of license.No
Count<int>The number of licenses.No
Cost<string>The cost of the license.No
Enabled<bool>Determines whether or not the package is enabled.NoTrue
Unit{Unspecified | Concurrent | User | Device}Determines the unit of the license.NoUnspecified
LicenseKey<string>The key associated with this license.
Description<string>The description of the license.No
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Remove-LiquitLicense

Synopsis

This command removes a license from the Liquit Workspace.

Syntax

 Remove-LiquitLicense 
	[-License] <License[]> 
	[-LiquitContext <LiquitContext>] 
	[-WhatIf] 
	[-Confirm]  
	[<CommonParameters>]

Example

 $license = Get-LiquitLicense -id 00000000-0000-0000-0000-000000000000
 Remove-LiquitLicense -License $license 

This command removes the selected license from the Liquit Workspace.

Parameters

NameValueDescriptionRequiredDefault value
License<License[]>The license you wish to remove.Yes
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Get-LiquitLicensePackage

Synopsis

This command displays a list of all packages associated with a license.

Syntax

Get-LiquitLicensePackage 
	[-License] <License[]> 
	[-LiquitContext <LiquitContext>]  
	[<CommonParameters>]

Example

 $license = Get-LiquitLicense -id 00000000-0000-0000-0000-000000000000
 Get-LiquitLicensePackage -License $license

Parameters

NameValueDescriptionRequiredDefault value
License<License>The license for which you want to display the associated packages.No
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Add-LiquitLicensePackage

Synopsis

This command associates a package to a license.

Syntax

Add-LiquitLicensePackage 
[-License] <License> 
[-Package] <Package[]> 
[-LiquitContext <LiquitContext>] 
[-WhatIf] 
[-Confirm]  
[<CommonParameters>] 

Example

 $license = Get-LiquitLicense -id 00000000-0000-0000-0000-000000000000
 $package = Get-LiquitPacakge -id 00000000-0000-0000-0000-000000000000
 Add-LiquitLicensePackage -License $license -Package $package

Parameters

NameValueDescriptionRequiredDefault value
License<License>The license to wich you want to add the package.No
Package<Package[]>The package that needs to be added to the license.No
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Remove-LiquitLicensePackage

Synopsis

This command disassociates all packages from a license.

Syntax

Remove-LiquitLicensePackage 
	[-License] <License> 
	[-Package] <Package[]> 
	[-LiquitContext <LiquitContext>] 
	[-WhatIf] 
	[-Confirm]  
	[<CommonParameters>]

Example

 $license = Get-LiquitLicense -id 00000000-0000-0000-0000-000000000000
 $package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
 Remove-LiquitLicensePackage -License $license -Package $package

Parameters

NameValueDescriptionRequiredDefault value
License<License>The license associated with the package.No
Package<Package[]>The package that needs to be dissociated from the license.No
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Was this article helpful?

What's Next