createTierMap

Back to index

Summary

Creates a tier map for an application.
projectName
Stringrequired
The name for the project that must be unique among all projects.
applicationName
Stringrequired
The name of the application.
environmentProjectName
Stringrequired
The name of the environment's project name.
environmentName
Stringrequired
The name of the environment.
applicationEntityRevisionId
UUIDoptional
The revision ID of the versioned object.
tierMapName
Stringoptional
The name of the tier map. If not specified the operation will assume a hyphenated application and environment name.
tierMappings
Mapoptional
The list of mappings between the application tiers and the environment tiers.

Usage

Perl

$cmdr->createTierMap( "test-projectName", # projectName "test-applicationName", # applicationName "test-environmentProjectName", # environmentProjectName "test-environmentName" # environmentName # optionals );

ectool

ectool createTierMap \ "test-projectName" `# projectName` \ "test-applicationName" `# applicationName` \ "test-environmentProjectName" `# environmentProjectName` \ "test-environmentName" `# environmentName` \ # optionals

Examples

Perl

$cmdr->createTierMap("Default", "Deploy", "Default", "Prod", {tierMapping => [{applicationTier => "Tomcat", environmentTier => "Server 1"}, {applicationTier => "AWS", environmentTier => "Server 2"}], tierMapName => "Web Apps"});

ectool

ectool createTierMap "Default" "Deploy" "Default" "Prod" --tierMapName "Web Apps" --tierMapping "Tomcat"="Server 1" "AWS"="Server 2"