createCluster

On this page
Back to index

Summary

Creates a new cluster configuration object for a microservice application.
projectName
Stringrequired
The name for the project that must be unique among all projects.
clusterName
Stringrequired
The name of the cluster.
definitionParameters
Array<DefinitionParameter>optional
Cluster definition parameter.
description
Stringoptional
Comment text describing this object that is not interpreted at all by CloudBees CD/RO.
environmentName
Stringoptional
Name of the environment which owns this cluster.
pluginConfigurationName
Stringoptional
Name of the plugin configuration.
pluginKey
Stringoptional
Name of the plugin key.
pluginProjectName
Stringoptional
Plugin project name.
providerClusterName
Stringoptional
Name of the cluster on the provider platform.
providerProjectName
Stringoptional
Name of the project on the provider platform.
provisionParameters
Array<ProvisionParameter>optional
Provision parameter.
provisionProcedure
Stringoptional
Provision procedure name.

Usage

Groovy

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