createMicroservice

On this page
Back to index

Summary

Creates a new microservice for a project or application.
projectName
Stringrequired
The name for the project that must be unique among all projects.
applicationName
Stringrequired
The name of the application.
microserviceName
Stringrequired
The name of the microservice.
addDeployProcess
Booleanoptional
If set to true, then a microservice process is also created.
definitionSource
Stringoptional
Enum representing the source of the microservice definition.
Possible values: "git", "helm_repository", "yaml_content"
definitionSourceParameters
Array<DefinitionSourceParameter>optional
Parameters to resolve the source of the artifact representing the microservice definition.
definitionType
Stringoptional
Microservice definition type.
Possible values: "helm", "yaml"
deployParameters
Array<DeployParameter>optional
Parameters to supply to deploy procedure of microservice definition type provider.
description
Stringoptional
Comment text describing this object that is not interpreted at all by CloudBees CD/RO.
rollbackParameters
Array<RollbackParameter>optional
Parameters to store microservice definition rollback parameters.

Usage

Groovy

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