createReservation

Back to index

Summary

Creates a new reservation.
projectName
Stringrequired
The name for the project that must be unique among all projects.
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.
environmentName
Stringoptional
The name of the environment.
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

Perl

$cmdr->createReservation( "test-projectName", # projectName "test-reservationName" # reservationName # optionals );

ectool

ectool createReservation \ "test-projectName" `# projectName` \ "test-reservationName" `# reservationName` \ # optionals

Examples

Perl

$cmdr->createReservation('Default', 'Main branch', {environmentName => "Web Server", applicationName => "Heat Clinic", beginDate => "2019-04-30T00:00", endDate => "2019-05-15T00:00", timeZone => GMT});

ectool

ectool createReservation 'Default' 'Main branch' --environmentName "Web Server" --applicationName "Heat Clinic" --beginDate "2019-04-30T00:00" --endDate "2019-05-15T00:00" --timeZone GMT