createUtilityResource

On this page
Back to index

Summary

Creates a new utility resource.
projectName
Stringrequired
The name for the project that must be unique among all projects.
environmentName
Stringoptional
Name of parent environment.
utilityResourceName
Stringrequired
Name for utilityResource; must be unique among all utility resources for the environment or environment template.
description
Stringoptional
Comment text describing this object that is not interpreted at all by CloudBees CD/RO.
environmentTemplateName
Stringoptional
Name of parent environmentTemplate.
resourceName
Stringoptional
The name of the default resource for this utility resource.

Usage

Groovy

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