Back to index
Summary
Creates a new environment inventory item.projectNameStringrequiredThe name for the project that must be unique among all projects. environmentNameStringrequiredThe name of the environment. applicationNameStringoptionalApplication that owns the inventory item. applicationTierNameStringoptionalName of the application tier. artifactNameStringoptionalArtifact name for the inventory item. artifactSourceStringoptionalSource of the artifact. artifactUrlStringoptionalUrl of the artifact. If using an IPv6 address, enclose the address in square brackets. Example: [<IPv6-ADDRESS>] .artifactVersionStringoptionalArtifact version for the inventory item. clusterNameStringoptionalCluster where the item is installed. componentNameStringoptionalComponent that owns the inventory item. descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. environmentProjectNameStringoptionalName for the project to which the environment or environment template belongs to. microserviceNameStringoptionalService that owns the inventory item. resourceNameStringoptionalResource where the item is installed. statusStringoptionalInventory deployment status. Possible values: "success" , "warning" , "error" , "skipped" , "notRun" |
Usage
Groovy
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 */ )