setTierResourcePhase

Back to index

Summary

Maps a resource to a rolling deploy phase.
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.
resourceName
Arrayoptional
List of resources to be mapped to a rolling deploy phase.
resourcePhaseMapping
Arrayoptional
A map of resource and rolling deploy phase.
resourcePoolName
Arrayoptional
List of resource pools to be mapped to a rolling deploy phase.
resourcePoolPhaseMapping
Arrayoptional
A map of resource pool and rolling deploy phase.
rollingDeployPhaseName
Stringoptional
Name for the rolling deploy phase to be associated with the resource.

Usage

Perl

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

ectool

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

Examples

Perl

To map three resources to a rolling deploy phase:

$cmdr->setTierResourcePhase("Default", "PROD", "Web servers", {resourceNames => Webserver-resource1 Webserver-resource2 Webserver-resource3, rollingDeployPhaseName => Phase1});

To map three resource pools to a rolling deploy phase:

$cmdr->setTierResourcePhase("Default", "PROD", "Web servers", {resourceNames => Webserver-pool1 Webserver-pool2 Webserver-pool3, rollingDeployPhaseName => Phase1});

To map specific resources to specific rolling deploy phases:

$cmdr->setTierResourcePhase("Default", "PROD", "Web servers", {resourcePhaseMappings => Webserver-resource1=Phase1 Webserver-resource2=Phase2 Webserver-resource3=Phase1});

To map specific resource pools to specific rolling deploy phases:

$cmdr->setTierResourcePhase("Default", "PROD", "Web servers", {resourcePhaseMappings => Webserver-pool1=Phase1 Webserver-pool2=Phase2 Webserver-pool3=Phase1});

ectool

To map three resources to a rolling deploy phase:

ectool setTierResourcePhase "Default" "PROD" "Web servers" --resourceNames Webserver-resource1 Webserver-resource2 Webserver-resource3 --rollingDeployPhaseName Phase1

To map three resource pools to a rolling deploy phase:

ectool setTierResourcePhase "Default" "PROD" "Web servers" --resourcePoolNames Webserver-pool1 Webserver-pool2 Webserver-Pool3 --rollingDeployPhaseName Phase1

To map specific resources to specific rolling deploy phases:

ectool setTierResourcePhase "Default" "PROD" "Web servers" --resourcePhaseMappings Webserver-resource1=Phase1 Webserver-resource2=Phase2 Webserver-resource3=Phase1

To map specific resource pools to specific rolling deploy phases:

ectool setTierResourcePhase "Default" "PROD" "Web servers" --resourcePhaseMappings Webserver-pool1=Phase1 Webserver-pool2=Phase2 Webserver-pool3=Phase1