setTierResourcePhase

On this page
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.
resourceNames
Array<Unknown>optional
List of resources to be mapped to a rolling deploy phase.
resourcePhaseMappings
Array<ResourcePhaseMapping>optional
A map of resource and rolling deploy phase.
resourcePoolNames
Array<Unknown>optional
List of resource pools to be mapped to a rolling deploy phase.
resourcePoolPhaseMappings
Array<ResourcePoolPhaseMapping>optional
A map of resource pool and rolling deploy phase.
rollingDeployPhaseName
Stringoptional
Name for the rolling deploy phase to be associated with the resource.

Usage

Groovy

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.setTierResourcePhase( projectName: "test-projectName", environmentName: "test-environmentName", environmentTierName: "test-environmentTierName" /* optional arguments */ )