Environment Tier

addResourcesToEnvironmentTier

Adds resources to the specified environment tier.

Required arguments

projectName

Name of the project. This name must be unique among all projects.

String

environmentName

Name of the environment which must be unique among all environments for the project.

String

environmentTierName

Name for the environment tier that must be unique among all tiers in the environment.

String

Optional arguments

resourceNames

List of resources to add to the environment tier.

Collection

resourcePhaseMappings

A map of resources and rolling deploy phases.

Map

Response

None or a status OK message.

ec-perl

Syntax:

$->addResourcesToEnvironmentTier(, , , {});


Example:

$ec->addResourcesToEnvironmentTier("Default", "QA", "Tomcat", {resourceNames => "local"});

ectool

Syntax:

ectool addResourcesToEnvironmentTier    [optionals]

Example:

ectool addResourcesToEnvironmentTier "Default" "QA" "Tomcat" --resourceNames "local"

createEnvironmentTier

Creates a new environment tier.

Required arguments

projectName

Name for the project; must be unique among all projects.

String

environmentName

Name of the environment which must be unique among all environments for the project; must be unique among all projects.

String

environmentTierName

Name of the environment tier; must be unique among all tiers for the environment.

String

Optional arguments

batchSize

The size of the batch supported by the environment tier.

String

batchSizeType

The type of batch size supported by the environment tier.

BatchSizeType

description

Comment text describing this object; not interpreted at all by CloudBees CD .

String

resourceNames

List of resources to add to the environment tier.

Collection

resourcePhaseMappings

A map of the resources to the rolling deploy phases to which they are assigned.

Map

resourcePoolNames

A list of resource pools to add to the environment tier.

Collection

resourcePoolPhaseMappings

A map of the resource pools to the rolling deploy phases to which they are assigned.

Map

Response

Returns an environment tier element.

ec-perl

Syntax:

$->createEnvironmentTier(, , , {});


Example:

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

ectool

Syntax:

ectool createEnvironmentTier    [optionals]

Example:

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

deleteEnvironmentTier

Deletes an environment tier.

Required arguments

projectName

Name of the project that must be unique among all projects.

String

environmentName

Name of the environment that must be unique among all environments for the project. The name must be unique among all projects.

String

environmentTierName

Name of the environment tier that must be unique among all tiers for the environment.

String

Optional arguments

None

Response

None or a status OK message.

ec-perl

Syntax:

$->deleteEnvironmentTier(, , );


Example:

$ec->deleteEnvironmentTier("Default", "PROD", "App Server");

ectool

Syntax:

ectool deleteEnvironmentTier   

Example:

ectool deleteEnvironmentTier "Default" "PROD" "App Server"

getEnvironmentTier

Retrieves an environment tier by name.

Required arguments

projectName

Name of the project that must be unique among all projects.

String

environmentName

Name of the environment that must be unique among all environments for the project. It must be unique among all projects.

String

environmentTierName

Name of the environment tier that must be unique among all tiers for the environment.

String

Optional arguments

None

Response

Returns an environment tier element.

ec-perl

Syntax:

$->getEnvironmentTier(, , );


Example:

$ec->getEnvironmentTier("Default", "QA Lab", "Test Machine 1");

ectool

Syntax:

ectool getEnvironmentTier   

Example:

ectool getEnvironmentTier "Default" "QA Lab" "Test Machine 1"

getEnvironmentTiers

Retrieves all environment tiers in an environment.

Required arguments

projectName

Name of the project that must be unique among all projects.

String

environmentName

Name of the environment that must be unique among all environments for the project. It must be unique among all projects.

String

Optional arguments

None

Response

Returns zero or more environment tier elements.

ec-perl

Syntax:

$->getEnvironmentTiers(, );


Example:

$ec->getEnvironmentTiers("Default", "QA Lab");

ectool

Syntax:

ectool getEnvironmentTiers  

Example:

ectool getEnvironmentTiers "Default" "QA Lab"

modifyEnvironmentTier

Modifies an environment tier.

Required arguments

projectName

Name of the project that must be unique among all projects.

String

environmentName

Name of the environment that must be unique among all environments for the project.

String

environmentTierName

Name of the environment tier that must be unique among all tiers for the environment.

String

Optional arguments

batchSize

The size of the batch supported by the environment tier.

String

batchSizeType

The type of batch size supported by the environment tier.

BatchSizeType

description

Comment text describing this object; not interpreted at all by CloudBees CD .

String

newName

New name for an existing environment tier.

String

resourceNames

List of resources to add to the environment tier.

Collection

resourcePhaseMappings

A map of the resources to the rolling deploy phases to which they are assigned.

Map

resourcePoolNames

A list of resource pools to add to the environment tier.

Collection

resourcePoolPhaseMappings

A map of the resource pools to the rolling deploy phases to which they are assigned.

Map

Response

Retrieves an updated environment tier element.

ec-perl

Syntax:

$->modifyEnvironmentTier(, , , {});


Example:

$ec->modifyEnvironmentTier("Default", "QA lab", "Tomcat 1", {newName => "Tomcat 2", description => "New server});

ectool

Syntax:

ectool modifyEnvironmentTier    [optionals]

Example:

ectool modifyEnvironmentTier "Default" "QA lab" "Tomcat 1" --newName "Tomcat 2" --description "New server"

removeResourcesFromEnvironmentTier

Removes the given resources from the given environment tier.

Required arguments

projectName

Name of the project. This name must be unique among all projects.

Argument Type: String

String

environmentName

The name of the environment.

String

environmentTierName

Name for the environment tier that must be unique among all tiers for the environment.

String

Optional arguments

resourceNames

List of resources to remove from the environment tier.

Collection

Response

Removes zero or more environment tier elements.

ec-perl

Syntax:

$->removeResourcesFromEnvironmentTier(, , , {});


Example:

$ec->removeResourcesFromEnvironmentTier("Default", "Production", "Apache");

ectool

Syntax:

ectool removeResourcesFromEnvironmentTier    [optionals]

Example:

ectool removeResourcesFromEnvironmentTier "Default" "Production" "Apache"