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. applicationNameStringrequiredApplication that owns the inventory item. componentNameStringrequiredComponent that owns the inventory item. resourceNameStringrequiredResource where the item is installed. 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. 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. statusStringoptionalInventory deployment status. Possible values: "success" , "warning" , "error" , "skipped" , "notRun" |
Usage
Perl
$cmdr->createEnvironmentInventoryItem( "test-projectName", # projectName "test-environmentName", # environmentName "test-applicationName", # applicationName "test-componentName", # componentName "test-resourceName" # resourceName # optionals );
ectool
ectool createEnvironmentInventoryItem \ "test-projectName" `# projectName` \ "test-environmentName" `# environmentName` \ "test-applicationName" `# applicationName` \ "test-componentName" `# componentName` \ "test-resourceName" `# resourceName` \ # optionals