modifyMicroservice

Back to index

Summary

Modifies an existing microservice.
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.
definitionSource
Stringoptional
Enum representing the source of the microservice definition.
Possible values: "git", "helm_repository", "yaml_content"
definitionSourceParameter
Arrayoptional
Parameters to resolve the source of the artifact representing the microservice definition.
definitionType
Stringoptional
Microservice definition type.
Possible values: "helm", "yaml"
deployParameter
Arrayoptional
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.
newName
Stringoptional
The new name for an existing object that is being renamed.
rollbackParameter
Arrayoptional
Parameters to store microservice definition rollback parameters.

Usage

Perl

$cmdr->modifyMicroservice( "test-projectName", # projectName "test-applicationName", # applicationName "test-microserviceName" # microserviceName # optionals );

ectool

ectool modifyMicroservice \ "test-projectName" `# projectName` \ "test-applicationName" `# applicationName` \ "test-microserviceName" `# microserviceName` \ # optionals

Examples

Perl

$cmdr->modifyMicroservice({ projectName => "Default", microserviceName => "myMicroservice" , applicationName => "myApp", newName => "Deploy new microservice", description => "Pet store website" });

ectool

ectool modifyMicroservice "Default" "myMicroservice" --applicationName "myApp" --newName "Deploy new microservice" --description "Pet Store website"