License commands

deleteLicense

Delete a license.

Arguments

Argument Name Type Description

productName

String

Product name of the license (Required)

featureName

String

Feature name of the license (Required)

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.deleteLicense(
                productName: 'test-productName',
                featureName: 'test-featureName')

getAdminLicense

Get the admin license which can be used when user licenses are maxed out.

Arguments

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.getAdminLicense()

getLicense

Return information for one license.

Arguments

Argument Name Type Description

productName

String

Product name of the license (Required)

featureName

String

Feature name of the license (Required)

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.getLicense(
                productName: 'test-productName',
                featureName: 'test-featureName')

getLicenseUsage

Get the current license usage.

Arguments

Argument Name Type Description

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.getLicenseUsage()

getLicenses

Returns all license data.

Arguments

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.getLicenses()

importLicenseData

Import one or more licenses.

Arguments

Argument Name Type Description

licenseData

String

Container elements for license data. Expects embedded XML as CDATA. (Required)

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.importLicenseData(
                licenseData: 'test-licenseData')