Groovy API reference

MicroserviceMapping

2 minute readReference

createMicroserviceMapping

Creates a new environment mapping for a microservice.

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

tierMapName

String

The name of the tier map

clusterName

String

The name of the cluster.

clusterProjectName

String

The name of the project which contains the cluster.

environmentName

String

Name of the environment which owns this cluster.

microserviceMappingName

String

The name of the microservice mapping

microserviceName

String

The name of the microservice

Usage

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


ElectricFlow ef = new ElectricFlow()

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

deleteMicroserviceMapping

Deletes an microservice cluster 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

tierMapName

String

The name of the tier map

clusterName

String

The name of the cluster.

clusterProjectName

String

The name of the project which contains the cluster.

environmentName

String

Name of the environment which owns this cluster.

microserviceMappingName

String

The name of the microservice mapping

microserviceName

String

The name of the microservice

Usage

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


ElectricFlow ef = new ElectricFlow()

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

modifyMicroserviceMapping

Modifies an existing environment 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

tierMapName

String

The name of the tier map

microserviceMappingName

String

The name of the microservice mapping

clusterName

String

The name of the cluster.

clusterProjectName

String

The name of the project which contains the cluster.

environmentName

String

Name of the environment which owns this cluster.

microserviceName

String

The name of the microservice

newName

String

New name for an existing object that is being renamed.

Usage

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


ElectricFlow ef = new ElectricFlow()

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