Back to index
Summary
Deletes an 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. microserviceNameStringoptionalService that owns the inventory item. artifactNameStringoptionalArtifact name for the inventory item. clusterNameStringoptionalCluster where the item is installed. artifactVersionStringoptionalArtifact version for the inventory item. componentNameStringoptionalComponent that owns the inventory item. deploymentStrategyLabelStringoptionalLabel 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). environmentProjectNameStringoptionalName for the project to which the environment or environment template belongs to. resourceNameStringoptionalResource where the item is installed. |
Usage
Groovy
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 */ )