Back to index
Summary
Modifies an existing snapshot of an application.projectNameStringrequiredThe name for the project that must be unique among all projects. applicationNameStringoptionalThe name of application from which the snapshot should be created. snapshotNameStringrequiredName of the snapshot; must be unique within the snapshot container. componentVersionsArray<ComponentVersion>optionalComponent names and version used for snapshot. Use keyword LATEST to indicate the latest version.descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. environmentNameStringoptionalThe name of environment from which snapshot be created. environmentProjectNameStringoptionalName for the project to which the environment or environment template belongs to. newNameStringoptionalThe new name for an existing object that is being renamed. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.modifySnapshot( projectName: "test-projectName", snapshotName: "test-snapshotName" /* optional arguments */ )