Groovy API reference

ApplicationServiceMapping

4 minute readReference

createApplicationServiceMapping

[DEPRECATED] This API is deprecated. Creates a new mapping between an application service and environment cluster.

Arguments

Argument NameTypeDescription

projectName

String

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

applicationName

String

The name of the application which contains the service.

tierMapName

String

The name of the tier map. If not provided, will use application name and environment name to resolve tierMap.

actualParameters

Actual parameters specific to plugin procedure associated with the application service

applicationEntityRevisionId

String

Revisionid of the versioned object

applicationServiceMappingName

String

The name of the application service mapping.

clusterName

String

The name of the environment cluster.

clusterProjectName

String

The name of the project which contains the cluster.

defaultCapacity

String

The default service capacity

environmentMapName

String

The name of the environment map. If not provided, will use service name and environment name to resolve environmentMap.

environmentName

String

The name of the environment which contains the cluster.

environmentProjectName

String

The name of the environment which contains the cluster.

maxCapacity

String

The max service capacity

minCapacity

String

The min service capacity

serviceClusterMappingName

String

The name of the service cluster mapping.

serviceEntityRevisionId

String

Deprecated: Deprecated due to microservice model changes Revisionid of the versioned object

serviceName

String

The name of the independent service.

volume

String

Volume json of the service

Usage

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


ElectricFlow ef = new ElectricFlow()

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

deleteApplicationServiceMapping

[DEPRECATED] This API is deprecated. Deletes an application service mapping.

Arguments

Argument NameTypeDescription

projectName

String

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

applicationName

String

The name of the application which contains the service.

tierMapName

String

The name of the tier map. If not provided, will use application name and environment name to resolve tierMap.

applicationEntityRevisionId

String

Revisionid of the versioned object

applicationServiceMappingName

String

The name of the application service mapping.

clusterName

String

The name of the environment cluster.

clusterProjectName

String

The name of the project which contains the cluster.

environmentMapName

String

The name of the environment map. If not provided, will use service name and environment name to resolve environmentMap.

environmentName

String

The name of the environment which contains the cluster.

environmentProjectName

String

The name of the environment which contains the cluster.

serviceClusterMappingName

String

The name of the service cluster mapping.

serviceEntityRevisionId

String

Deprecated: Deprecated due to microservice model changes Revisionid of the versioned object

serviceName

String

The name of the independent service.

Usage

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


ElectricFlow ef = new ElectricFlow()

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

getApplicationServiceMapping

[DEPRECATED] This API is deprecated. Retrieve an application service mapping.

Arguments

Argument NameTypeDescription

projectName

String

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

applicationName

String

The name of the application which contains the service.

tierMapName

String

The name of the tier map. If not provided, will use application name and environment name to resolve tierMap.

applicationServiceMappingName

String

The name of the application service mapping.

applicationEntityRevisionId

String

Revisionid of the versioned object

clusterName

String

The name of the environment cluster.

clusterProjectName

String

The name of the project which contains the cluster.

environmentMapName

String

The name of the environment map. If not provided, will use service name and environment name to resolve environmentMap.

environmentName

String

The name of the environment which contains the cluster.

environmentProjectName

String

The name of the environment which contains the cluster.

includeDetails

Boolean

True to include details (default is false)

serviceClusterMappingName

String

The name of the service cluster mapping.

serviceEntityRevisionId

String

Deprecated: Deprecated due to microservice model changes Revisionid of the versioned object

serviceName

String

The name of the independent service.

Usage

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


ElectricFlow ef = new ElectricFlow()

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

modifyApplicationServiceMapping

[DEPRECATED] This API is deprecated. Modifies an existing application service mapping.

Arguments

Argument NameTypeDescription

projectName

String

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

applicationName

String

The name of the application which contains the service.

tierMapName

String

The name of the tier map. If not provided, will use application name and environment name to resolve tierMap.

applicationServiceMappingName

String

The name of the application service mapping.

actualParameters

Actual parameters specific to plugin procedure associated with the application service

applicationEntityRevisionId

String

Revisionid of the versioned object

clearActualParameters

Boolean

True if we should remove all actual parameters.

clusterName

String

The name of the environment cluster.

clusterProjectName

String

The name of the project which contains the cluster.

defaultCapacity

String

The default service capacity

environmentMapName

String

The name of the environment map. If not provided, will use service name and environment name to resolve environmentMap.

environmentName

String

The name of the environment which contains the cluster.

environmentProjectName

String

The name of the environment which contains the cluster.

maxCapacity

String

The max service capacity

minCapacity

String

The min service capacity

serviceClusterMappingName

String

The name of the service cluster mapping.

serviceEntityRevisionId

String

Deprecated: Deprecated due to microservice model changes Revisionid of the versioned object

serviceName

String

The name of the independent service.

volume

String

Volume json of the service

Usage

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


ElectricFlow ef = new ElectricFlow()

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