seedEnvironmentInventory

On this page
Back to index

Summary

Seeds the environment with a new inventory to mimic an actual application or release-scoped deployment.
projectName
Stringrequired
The name for the project that must be unique among all projects.
environmentName
Stringrequired
The name of the environment.
applicationName
Stringrequired
Applications that owns the inventory item.
status
Stringrequired
Inventory deployment status.
Possible values: "success", "warning", "error", "skipped", "notRun"
applicationProcessName
Stringoptional
Application process used to deploy to the environment.
applicationTierName
Stringoptional
The name of the application tier.
applicationVersion
Stringoptional
Application version for the application that was deployed.
artifactName
Stringoptional
Artifact name for the inventory item.
artifactProviderSource
Stringoptional
Source of the provider that indirectly owns this artifact.
artifactSource
Stringoptional
Source of the artifact.
artifactUrl
Stringoptional
Url of the artifact. If using an IPv6 address, enclose the address in square brackets. Example: [<IPv6-ADDRESS>].
artifactVersion
Stringoptional
Artifact version for the inventory item.
clusterName
Stringoptional
Cluster where the item is installed.
clusterNamespace
Stringoptional
Cluster namespace where the item is installed.
componentName
Stringoptional
Component that owns the inventory item.
deploymentDetails
Stringoptional
Additional information about the deployment in JSON format.
deploymentStrategy
Stringoptional
Deployment strategy used for the deployment of the microservice artifact being added to the environment inventory. (Used exclusively in the context of an advanced deployment strategy for a microservice application).
Possible values: "canary", "bluegreen"
deploymentStrategyInProgress
Booleanoptional
Whether deployment strategy is in progress. (Used exclusively in the context of an advanced deployment strategy for a microservice application).
deploymentStrategyLabel
Stringoptional
Label used by microservice plugins EC-Helm and EC-Kubectl to identify deployments depending on the deployment strategy in progress. For example, canary and stable will be used with canary strategy-based deployments while preview and active will be used with bluegreen strategy-based deployments. (Used exclusively in the context of an advanced deployment strategy for a microservice application).
environmentProjectName
Stringoptional
Name for the project to which the environment or environment template belongs to.
jobId
Stringoptional
The ID of the job.
microserviceDeploymentData
Stringoptional
The deployment details related to a microservice deployment.
microserviceDeploymentSummary
Stringoptional
The summary of microservice deployment.
microserviceName
Stringoptional
Microservice that owns the inventory item.
releaseName
Stringoptional
Name of the release.
releaseProjectName
Stringoptional
Name of the release project.
resourceNames
Array<Unknown>optional
An array of resource names
seeded
Booleanoptional
Seeded status.
snapshotName
Stringoptional
Name of a snapshot.
stageName
Stringoptional
Name of the stage.

Usage

Groovy

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.seedEnvironmentInventory( projectName: "test-projectName", environmentName: "test-environmentName", applicationName: "test-applicationName", status: "test-status" /* optional arguments */ )