createSnapshot

On this page
Back to index

Summary

Creates a new snapshot of the specified application or microservice.
projectName
Stringrequired
The name for the project that must be unique among all projects.
applicationName
Stringoptional
The name of application from which the snapshot should be created.
snapshotName
Stringrequired
Name of the snapshot; must be unique within the snapshot container.
componentVersions
Array<ComponentVersion>optional
Component names and version used for snapshot. Use keyword LATEST to indicate the latest version.
description
Stringoptional
Comment text describing this object that is not interpreted at all by CloudBees CD/RO.
environmentName
Stringoptional
The name of environment from which snapshot be created.
environmentProjectName
Stringoptional
Name for the project to which the environment or environment template belongs to.

Usage

Groovy

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