createMicroservice
Creates a new microservice for a project or 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) |
microserviceName |
String |
The name of the microservice. (Required) |
addDeployProcess |
Boolean |
If set to true,then a microservice process is also created. |
definitionSource |
String |
Enum representing the source of the microservice definition. |
definitionSourceParameters |
array |
Parameters to resolve the source of the artifact representing microservice definition. |
definitionType |
String |
Microservice definition type. |
deployParameters |
DeployParameter array |
Parameters to supply to deploy procedure of microservice definition type provider. |
description |
String |
Comment text describing this object that is not interpreted at all by CloudBees CD/RO. |
rollbackParameters |
RollbackParameter array |
Parameters to store microservice definition rollback parameters. |
Usage
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 */)
deleteMicroservice
getMicroservice
getMicroservices
modifyMicroservice
Modifies an existing microservice.
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) |
microserviceName |
String |
The name of the microservice. (Required) |
definitionSource |
String |
Enum representing the source of the microservice definition. |
definitionSourceParameters |
array |
Parameters to resolve the source of the artifact representing microservice definition. |
definitionType |
String |
Microservice definition type. |
deployParameters |
DeployParameter array |
Parameters to supply to deploy procedure of microservice definition type provider. |
description |
String |
Comment text describing this object that is not interpreted at all by CloudBees CD/RO. |
newName |
String |
The new name for an existing object that is being renamed. |
rollbackParameters |
RollbackParameter array |
Parameters to store microservice definition rollback parameters. |
Usage
import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*
ElectricFlow ef = new ElectricFlow()
def result = ef.modifyMicroservice(
projectName: 'test-projectName',
applicationName: 'test-applicationName',
microserviceName: 'test-microserviceName'
/* optional arguments */)