deleteEnvironmentInventoryItem

Back to index

Summary

Deletes an inventory item.
projectName
Stringrequired
The name for the project that must be unique among all projects.
environmentName
Stringrequired
The name of the environment.
applicationName
Stringrequired
Application that owns the inventory item.
componentName
Stringrequired
Component that owns the inventory item.
resourceName
Stringrequired
Resource where the item is installed.
artifactName
Stringoptional
Artifact name for the inventory item.
artifactVersion
Stringoptional
Artifact version for the inventory item.
clusterName
Stringoptional
Cluster where the item is installed.
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.
microserviceName
Stringoptional
Service that owns the inventory item.

Usage

Perl

$cmdr->deleteEnvironmentInventoryItem( "test-projectName", # projectName "test-environmentName", # environmentName "test-applicationName", # applicationName "test-componentName", # componentName "test-resourceName" # resourceName # optionals );

ectool

ectool deleteEnvironmentInventoryItem \ "test-projectName" `# projectName` \ "test-environmentName" `# environmentName` \ "test-applicationName" `# applicationName` \ "test-componentName" `# componentName` \ "test-resourceName" `# resourceName` \ # optionals

Examples

Perl

$cmdr->deleteEnvironmentInventoryItem("Utilities", "PROD", "Deploy", "WAR file", "Server 1", {environmentProjectName => "Default");

ectool

ectool deleteEnvironmentInventoryItem "Utilities" "PROD" "Deploy" "WAR file" "Server 1" --environmentProjectName "Default"