EnvironmentInventoryItem commands

createEnvironmentInventoryItem

Creates a new environment inventory item.

Arguments

Argument Name Type Description

projectName

String

The name for the project that must be unique among all projects. (Required)

environmentName

String

The name of the environment. (Required)

applicationName

String

Application that owns the inventory item

applicationTierName

String

Name of the application tier

artifactName

String

Artifact name for the inventory item

artifactSource

String

Source of the artifact

artifactUrl

String

Url of the artifact

artifactVersion

String

Artifact version for the inventory item

componentName

String

Component that owns the inventory item

containerName

String

Container that owns the inventory item

description

String

Comment text describing this object that is not interpreted at all by CloudBees Flow.

environmentProjectName

String

Name for the project to which the environment or environment template belongs to.

resourceName

String

Resource where the item is installed

serviceName

String

Service that owns the inventory item

status

String

Inventory deployment status

Usage

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


ElectricFlow ef = new ElectricFlow()

def result = ef.createEnvironmentInventoryItem(
                projectName: 'test-projectName',
                environmentName: 'test-environmentName'
                /* optional arguments */)

deleteEnvironmentInventoryItem

Delete an inventory item

Arguments

Argument Name Type Description

projectName

String

The name for the project that must be unique among all projects. (Required)

environmentName

String

The name of the environment. (Required)

serviceName

String

Service that owns the inventory item

containerName

String

Container that owns the inventory item

applicationName

String

Application that owns the inventory item

componentName

String

Component that owns the inventory item

environmentProjectName

String

Name for the project to which the environment or environment template belongs to.

resourceName

String

Resource where the item is installed

Usage

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


ElectricFlow ef = new ElectricFlow()

def result = ef.deleteEnvironmentInventoryItem(
                projectName: 'test-projectName',
                environmentName: 'test-environmentName',
                /* optional arguments */)

getEnvironmentInventory

Retrieve a per-component grouped list of inventory items

Arguments

Argument Name Type Description

projectName

String

The name for the project that must be unique among all projects. (Required)

environmentName

String

The name of the environment. (Required)

serviceName

String

The name of the service.

applicationEntityRevisionId

String

Revisionid of the versioned object

applicationName

String

The name of the application.

environmentProjectName

String

Name for the project to which the environment or environment template belongs to.

serviceEntityRevisionId

String

Revisionid of the versioned object

Usage

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


ElectricFlow ef = new ElectricFlow()

def result = ef.getEnvironmentInventory(
                projectName: 'test-projectName',
                environmentName: 'test-environmentName',
                /* optional arguments */)

getEnvironmentInventoryItem

Retrieve an inventory item

Arguments

Argument Name Type Description

projectName

String

The name for the project that must be unique among all projects. (Required)

environmentName

String

The name of the environment. (Required)

serviceName

String

Service that owns the inventory item

containerName

String

Container that owns the inventory item

applicationName

String

Application that owns the inventory item

componentName

String

Component that owns the inventory item

environmentProjectName

String

Name for the project to which the environment or environment template belongs to.

includeResourceDetails

Boolean

True to include resource details (default is false)

resourceName

String

Resource where the item is installed

Usage

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


ElectricFlow ef = new ElectricFlow()

def result = ef.getEnvironmentInventoryItem(
                projectName: 'test-projectName',
                environmentName: 'test-environmentName',
                /* optional arguments */)

getEnvironmentInventoryItems

Retrieve all inventory items for a given environment

Arguments

Argument Name Type Description

projectName

String

The name for the project that must be unique among all projects. (Required)

environmentName

String

The name of the environment. (Required)

includeResourceDetails

Boolean

True to include resource details (default is false)

Usage

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


ElectricFlow ef = new ElectricFlow()

def result = ef.getEnvironmentInventoryItems(
                projectName: 'test-projectName',
                environmentName: 'test-environmentName'
                /* optional arguments */)

modifyEnvironmentInventoryItem

Modifies an existing environment inventory item.

Arguments

Argument Name Type Description

projectName

String

The name for the project that must be unique among all projects. (Required)

environmentName

String

The name of the environment. (Required)

serviceName

String

Service that owns the inventory item

containerName

String

Container that owns the inventory item

applicationName

String

Application that owns the inventory item

applicationTierName

String

Name of the application tier

artifactName

String

Artifact name for the inventory item

artifactSource

String

Source of the artifact

artifactUrl

String

Url of the artifact

artifactVersion

String

Artifact version for the inventory item

componentName

String

Component that owns the inventory item

description

String

Comment text describing this object that is not interpreted at all by CloudBees Flow.

environmentProjectName

String

Name for the project to which the environment or environment template belongs to.

resourceName

String

Resource where the item is installed

status

String

Inventory deployment status

Usage

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


ElectricFlow ef = new ElectricFlow()

def result = ef.modifyEnvironmentInventoryItem(
                projectName: 'test-projectName',
                environmentName: 'test-environmentName',
                /* optional arguments */)