createReservation

On this page
Back to index

Summary

Creates a new reservation.
projectName
Stringrequired
The name for the project that must be unique among all projects.
environmentName
Stringoptional
The name of the environment.
reservationName
Stringrequired
The name of the environment reservation.
applicationName
Stringoptional
The name of the application.
beginDate
Stringoptional
Date of beginning reservation.
blackout
Booleanoptional
Do not allow executions against an environment at specified period.
description
Stringoptional
Comment text describing this object that is not interpreted at all by CloudBees CD/RO.
endDate
Stringoptional
The date when reservation event ends.
environmentProjectName
Stringoptional
The name of the environment project name.
environmentTierName
Stringoptional
The name of the environment tier.
monthDays
Stringoptional
A list of numbers from 1-31 separated by spaces, indicating zero or more days of the month.
overlap
Booleanoptional
Allow to overlap the reservation.
pipelineName
Stringoptional
The name of the pipeline.
recurrence
Booleanoptional
Recurrence reservation.
recurrenceEndDate
Stringoptional
Date of beginning reservation.
releaseName
Stringoptional
The name of the release.
timeZone
Stringoptional
The time zone to use when interpreting times.
weekDays
Stringoptional
Days of the week: any number of names such as Monday or Tuesday, separated by spaces.

Usage

Groovy

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