EnvironmentTemplateTierMap commands

createEnvironmentTemplateTierMap

Creates a new environment template tier map for an application.

Arguments

Argument Name Type Description

projectName

String

The name for the project that must be unique among all projects. (Required)

applicationName

String

The name of the application (Required)

environmentProjectName

String

The name of the environment’s project name. (Required)

environmentTemplateName

String

The name of the environment template. (Required)

applicationEntityRevisionId

String

Revisionid of the versioned object

tierMapName

String

The name of the environment template tier map. If not specified the operation will assume a hyphenated application and environment name.

tierMappings

array

The list of mappings between the application tiers and the environment template tiers.

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.createEnvironmentTemplateTierMap(
                projectName: 'test-projectName',
                applicationName: 'test-applicationName',
                environmentProjectName: 'test-environmentProjectName',
                environmentTemplateName: 'test-environmentTemplateName'
                /* optional arguments */)

deleteEnvironmentTemplateTierMap

Deletes a environment template tier map from an application.

Arguments

Argument Name Type Description

projectName

String

The name for the project that must be unique among all projects. (Required)

applicationName

String

The name of the application (Required)

environmentProjectName

String

The name of the environment’s project name. (Required)

environmentTemplateName

String

The name of the environment template. (Required)

applicationEntityRevisionId

String

Revisionid of the versioned object

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.deleteEnvironmentTemplateTierMap(
                projectName: 'test-projectName',
                applicationName: 'test-applicationName',
                environmentProjectName: 'test-environmentProjectName',
                environmentTemplateName: 'test-environmentTemplateName'
                /* optional arguments */)

getEnvironmentTemplateTierMaps

Retrieve all environment template tier maps that are used by the given application.

Arguments

Argument Name Type Description

projectName

String

The name for the project that must be unique among all projects. (Required)

applicationName

String

The name of the application (Required)

applicationEntityRevisionId

String

Revisionid of the versioned object

orderByEnvironmentTemplateUsage

Boolean

True to return most recently used environment template.

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.getEnvironmentTemplateTierMaps(
                projectName: 'test-projectName',
                applicationName: 'test-applicationName'
                /* optional arguments */)

modifyEnvironmentTemplateTierMap

Modifies an existing environment template tier map.

Arguments

Argument Name Type Description

projectName

String

The name for the project that must be unique among all projects. (Required)

applicationName

String

The name of the application (Required)

environmentProjectName

String

The name of the environment’s project name. (Required)

environmentTemplateName

String

The name of the environment template. (Required)

tierMapName

String

The name of the environment template tier map. If not specified the operation will assume a hyphenated application and environment name.

applicationEntityRevisionId

String

Revisionid of the versioned object

tierMappings

array

The list of mappings between the application tiers and the environment template tiers.

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.modifyEnvironmentTemplateTierMap(
                projectName: 'test-projectName',
                applicationName: 'test-applicationName',
                environmentProjectName: 'test-environmentProjectName',
                environmentTemplateName: 'test-environmentTemplateName'
                /* optional arguments */)