createEnvironmentTier

Back to index

Summary

Creates a new environment tier.
projectName
Stringrequired
The name for the project that must be unique among all projects.
environmentName
Stringrequired
The name of the environment.
environmentTierName
Stringrequired
Name for the environment tier; must be unique among all tiers for the environment.
batchSize
Stringoptional
The size of the batch supported by the environment tier.
batchSizeType
Stringoptional
The type of batch size supported by the environment tier.
Possible values: "count", "percentage"
description
Stringoptional
Comment text describing this object that is not interpreted at all by CloudBees CD/RO.
resourceName
Arrayoptional
List of resources to add to the environment tier.
resourcePhaseMapping
Arrayoptional
A map of resource and rolling deploy phase.
resourcePoolName
Arrayoptional
List of resource pools to add to the environment tier.
resourcePoolPhaseMapping
Arrayoptional
A map of resource pool and rolling deploy phase.

Usage

Perl

$cmdr->createEnvironmentTier( "test-projectName", # projectName "test-environmentName", # environmentName "test-environmentTierName" # environmentTierName # optionals );

ectool

ectool createEnvironmentTier \ "test-projectName" `# projectName` \ "test-environmentName" `# environmentName` \ "test-environmentTierName" `# environmentTierName` \ # optionals

Examples

Perl

$cmdr->createEnvironmentTier("Default", "PROD", "Web Services", {description => "Required for AWS"});

ectool

ectool createEnvironmentTier "Default" "PROD" "Web Services" --description "Required for AWS"