createEnvironment
Creates a new environment.
Argument | Description |
---|---|
projectName |
The project name. Argument Type: String |
environmentName |
Name of the environment that must be unique among all projects. Argument Type: String |
applicationName |
(Optional) Name of the application . Supply one of |
applicationProjectName |
(Optional) Name of the project to which Argument Type: String |
description |
(Optional) Comment text describing this object; not interpreted by CloudBees CD/RO . Argument Type: String |
environmentEnabled |
(Optional) True to enable rolling deploy on this environment. Argument Type: Boolean |
reservationRequired |
(Optional) < Boolean flag - Argument Type: Boolean |
rollingDeployEnabled |
(Optional) < Boolean flag - Argument Type: Boolean |
rollingDeployType |
(Optional) The type of rolling deploy supported by the environment. Argument Type: RollingDeployType |
serviceName |
(Optional) Name of the service. Supply one of |
serviceProjectName |
(Optional) Name of the project to which Argument Type: String |
Response
Returns an environment object.
createEnvironmentInventoryItem
Creates a new environment inventory item.
Argument | Description |
---|---|
projectName |
Name of the project. Argument Type: String |
environmentName |
Name of the environment. Argument Type: String |
Required for application-scoped component objects: |
|
applicationName |
Name of the application. Supply one of Argument Type: String |
componentName |
Name of the component that owns the inventory item. Argument Type: String |
resourceName |
Name of the resource where the item is installed. Argument Type: String |
Required for application-scoped microservice objects: |
|
applicationName |
Name of the application. Supply Argument Type: String |
microserviceName |
Name of the microservice. Supply one of |
clusterName |
Name of the cluster. Argument Type: String |
artifactName |
(Optional) Artifact name deployed by the microservice. Argument Type: String |
artifactSource |
(Optional) Source of the artifact. Use Argument Type: String |
artifactUrl |
(Optional) URL of the artifact. Argument Type: String |
artifactVersion |
(Optional) Artifact version for the inventory item. |
Required for project-scoped service objects: |
|
serviceName |
Name of the service. Supply one of |
containerName |
Name of the container. Argument Type: String |
Optional arguments: |
|
applicationTierName |
(Optional) Name of the application tier. Argument Type: String Argument Type: String |
description |
(Optional) Comment text describing this object; not interpreted by CloudBees CD/RO . Argument Type: String |
environmentProjectName |
(Optional) Name of the project to which the environment or environment template belongs. Argument Type: String |
status |
(Optional) Deployment status of the inventory item. Possible values include: Argument Type: String |
Response
Retrieves an environmentInventoryItem object.
ec-perl
Syntax:
$<object>->createEnvironmentInventoryItem(<projectName>, <environmentName>, <applicationName>, <componentName>, <resourceName>, {<optionals>});
Example:
$ec->createEnvironmentInventoryItem("Default", "Web Server", "Deploy", "WAR file", "local", {artifactName =>"com.ec:myApp", artifactVersion=>"3.1", description => "Required"});
ectool
Syntax:
ectool createEnvironmentInventoryItem <projectName> <environmentName> <applicationName> <componentName> <resourceName> [optionals]
Example:
ectool createEnvironmentInventoryItem "Default" "Web Server" "Deploy" "WAR file" "local" -- artifactName "com.ec:myApp" --artifactVersion "3.1" --description "Required"
createEnvironmentMap (deprecated)
Creates a new service environment map for a service.
Argument | Description |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String |
environmentName |
Name of the environment. Argument Type: String |
serviceName |
(Optional) The name of the service. Argument Type: String |
description |
(Optional) Comment text describing this object; not interpreted by CloudBees CD/RO . Argument Type: String |
environmentMapName |
(Optional) The name of the tier map. If not specified the operation will assume a hyphenated service and environment name. Argument Type: String |
environmentProjectName |
(Optional) The name of the environment’s project. Argument Type: String |
serviceEntityRevisionId |
(Optional) Revision ID of the versioned object. Argument Type: String |
Response
Retrieves an environmentMap object.
createReservation
Creates a new reservation.
Argument | Description |
---|---|
projectName |
The name for the project that must be unique among all projects. Argument Type: String |
reservationName |
The name of the environment reservation. Argument Type: String |
environmentName |
The name of the environment. Argument Type: String |
beginDate |
The date when the reservation begins, formatted as yyyy-mm-ddThh:mm . |
endDate |
The date when reservation ends, formatted as yyyy-mm-ddThh:mm . Argument Type: String |
timeZone |
The time zone to use when interpreting times. Argument Type: String |
applicationName |
(Optional) The name of the application. Argument Type: String |
blackout |
(Optional) < Boolean flag — Argument Type: Boolean |
description |
(Optional) Comment text describing this object; not interpreted at all by CloudBees CD/RO . Argument Type: String |
environmentProjectName |
(Optional) The name of the environment project. Argument Type: String |
environmentTierName |
(Optional) The name of the environment tier. Argument Type: String |
monthDays |
(Optional) A list of numbers from 1 to 31 separated by spaces, indicating zero or more days of the month. Argument Type: String |
overlap |
(Optional) < Boolean flag — Argument Type: Boolean |
pipelineName |
(Optional) The name of the pipeline. |
recurrence |
(Optional) < Boolean flag — Argument Type: Boolean |
recurrenceEndDate |
(Optional) The date when the recurring reservation ends. Argument Type: String |
releaseName |
(Optional) The name of the release. Argument Type: String |
serviceName |
(Optional) The name of the service. Argument Type: String |
weekDays |
(Optional) Restricts the schedule to specified days of the week. Specify days of the week separated by spaces. Use English names Argument Type: String |
Response
Retrieves an reservation object.
ec-perl
Syntax:
$<object>->createReservation(<projectName>, <reservationName>, {<optionals>});
Example:
$ec->createReservation('Default', 'Main branch', {environmentName => "Web Server", applicationName => "Heat Clinic", beginDate => "2019-04-30T00:00", endDate => "2019-05-15T00:00", timeZone => GMT});
deleteEnvironment
Deletes an environment.
Argument | Description |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String |
environmentName |
Name of the environment that must be unique among all projects. Argument Type: String |
deleteEnvironmentInventoryItem
Deletes an inventory item.
Argument | Description |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String |
environmentName |
Name of the environment. Argument Type: String |
Required for application-scoped component objects: |
|
applicationName |
Name of the application. Supply one of Argument Type: String |
componentName |
Name of the component that owns the inventory item. Argument Type: String |
resourceName |
Name of the resource where the item is installed. Argument Type: String |
Required for application-scoped microservice objects: |
|
applicationName |
Name of the application. Supply Argument Type: String |
microserviceName |
Name of the service. Supply Argument Type: String |
artifactName |
The name of the artifact deployed by the microservice. Since a single microservice can deploy multiple artifacts, this is needed to resolve the inventory item. Argument Type: String |
clusterName |
Name of the container. Argument Type: String |
Optional arguments: |
|
environmentProjectName |
(Optional) Name for the project to which the environment or environment template belongs. Argument Type: String |
deleteEnvironmentMap (deprecated)
Deletes a microservice environment map from a microservice.
Argument | Description |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String |
environmentName |
Name of the environment that must be unique among all projects. Argument Type: String |
environmentProjectName |
(Optional) The name of the environment’s project. Argument Type: String |
serviceEntityRevisionId |
(Optional) Revision ID of the versioned object. Argument Type: UUID |
serviceName |
(Optional) The name of the service. Argument Type: String |
deleteReservation
Deletes the specified reservation.
Argument | Description |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String |
reservationName |
The name of the environment reservation. Argument Type: String |
getEnvironment
Retrieves an environment by name.
Argument | Description |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String |
environmentName |
Name of the environment that must be unique among all projects. Argument Type: String |
Response
Returns an environment object.
getEnvironmentApplications
Retrieves a list of applications installed on the given environment.
Argument | Description |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String |
environmentName |
Name of the environment. Argument Type: String |
Response
Returns a list of environmentApplication objects.
getEnvironmentDeployments
Gets environment deployments for the specified environment.
Argument | Description |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String |
environmentName |
Name of the environment that must be unique among all projects. Argument Type: String |
getEnvironmentInventory
Retrieves a per-component grouped list of inventory items.
Argument | Description |
---|---|
Required for application objects without a snapshot: |
|
projectName |
The name of the project. Argument Type: String |
environmentName |
Name of the environment. Argument Type: String |
applicationName |
Name of the application. Supply one of |
Required for application objects with a snapshot: |
|
projectName |
The name of the project. Argument Type: String |
environmentName |
Name of the environment. Argument Type: String |
applicationName |
Name of the application. Argument Type: String |
applicationEntityRevisionId |
Revision ID of the versioned object. Argument Type: UUID |
Required for project-scoped microservice: |
|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String |
environmentName |
Name of the environment. Argument Type: String |
applicationName |
Name of the application. Argument Type: String |
Optional: |
|
environmentProjectName |
(Optional) Name for the project to which the environment or environment template belongs. Argument Type: String |
Response
Returns zero or more environmentInventory objects.
getEnvironmentInventoryItem
Retrieves an inventory item.
Argument | Description |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String |
environmentName |
Name of the environment. Argument Type: String |
Required for application-scoped component objects: |
|
applicationName |
Name of the application. Supply one of Argument Type: String |
componentName |
Name of the component that owns the inventory item. Argument Type: String |
resourceName |
Name of the resource where the item is installed. Argument Type: String |
Required for application-scoped microservice objects: |
|
applicationName |
Name of the application. Supply Argument Type: String |
microserviceName |
Name of the microservice. Supply Argument Type: String |
artifactName |
The name of the artifact deployed by the microservice. Since a single microservice can deploy multiple artifacts, this parameter is needed to resolve the inventory item. Argument Type: String |
clusterName |
Name of the cluster. Argument Type: String |
Required for project-scoped service objects: |
|
serviceName |
Name of the service. Supply one of Argument Type: String |
containerName |
Name of the container. Argument Type: String |
Optional arguments: |
|
environmentProjectName |
(Optional) Name for the project to which the environment or environment template belongs. Argument Type: String |
includeResourceDetails |
(Optional) < Boolean flag — Argument Type: Boolean |
Response
Retrieves an environmentInventoryItem object.
ec-perl
Syntax:
$<object>->getEnvironmentInventoryItem(<projectName>, <environmentName>, <applicationName>, <componentName>, <resourceName>, {<optionals>});
Example:
$ec->getEnvironmentInventoryItem("Default", "Test Lab", "Save snapshot", "WAR file", "QA server", {environmentProjectName => "QA only"});
getEnvironmentInventoryItems
Retrieves all the inventory items for a given environment.
Argument | Description |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String |
environmentName |
Name of the environment. Argument Type: String |
includeResourceDetails |
(Optional) < Boolean flag — |
Response
Retrieves zero or more environmentInventory objects.
getEnvironmentMaps (deprecated)
Get microservice environment maps.
Argument | Description |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String |
serviceEntityRevisionId |
(Optional) Revision ID of the versioned object. Argument Type: UUID |
serviceName |
(Optional) The name of the service. Argument Type: String |
Response
Retrieves zero or more environmentMap objects .
getEnvironments
Retrieves all environments in a project.
Argument | Description |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String |
Response
Returns zero or more environment objects.
getReservation
Retrieves an environment reservation by its name.
Argument | Description |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String |
reservationName |
The name of the environment reservation. Argument Type: String |
beginDate |
(Optional) The date when the reservation begins. Argument Type: String |
endDate |
(Optional) The date when the reservation ends. Argument Type: String |
includeTimeslots |
(Optional) < Boolean flag — |
timeZone |
(Optional) The time zone to use when interpreting times. Argument Type: String |
Response
Retrieve a reservation object.
getReservations
Retrieves all the environment reservations.
Argument | Description |
---|---|
applicationName |
(Optional) The name of the application. Argument Type: String |
beginDate |
(Optional) The date when the reservation begins. Argument Type: String |
blackout |
(Optional) < Boolean flag — |
endDate |
(Optional) The date when the reservation ends. Argument Type: String |
environmentName |
(Optional) The name of the environment. Argument Type: String |
environmentProjectName |
(Optional) The name of the environment project. Argument Type: String |
environmentTierName |
(Optional) The name of the environment tier. Argument Type: String |
includeTimeslots |
(Optional) < Boolean flag — |
pipelineName |
(Optional) The name of the pipeline. Argument Type: String |
projectName |
(Optional) The name for the project that must be unique among all projects. Argument Type: String |
releaseName |
(Optional) The name of the release. Argument Type: String |
reserverTypes |
(Optional) The types of the objects reserving the environments (the Reserver). Argument Type: Collection |
timeZone |
(Optional) The time zone to use when interpreting times. Argument Type: String |
Response
Retrieves zero or more reservation objects.
getRunSchedules
Retrieves the run schedules with environment reservations.
Argument | Description |
---|---|
beginDate endDate |
(Optional) The beginning and ending dateof the reservation. The format is yyyy-mm-dd . Must be specified if |
includeTimeslots |
(Optional) < Boolean flag— |
filters |
(Optional) Filters to use during the search operation. Argument Type: Collection |
timeZone |
(Optional) The time zone to use when interpreting times. Argument Type: String |
Response
Retrieves zero or more schedule objects.
modifyEnvironment
Modifies an environment.
Argument | Description |
---|---|
projectName |
The project name. Argument Type: String |
environmentName |
Name of the environment that must be unique among all projects. Argument Type: String |
description |
(Optional) Comment text describing this object; not interpreted by CloudBees CD/RO . Argument Type: String |
environmentEnabled |
(Optional) True to enable rolling deploy on this environment. Argument Type: Boolean |
newName |
(Optional) New name for the environment. Argument Type: String |
reservationRequired |
(Optional) < Boolean flag - Argument Type: Boolean |
rollingDeployEnabled |
(Optional) < Boolean flag - Argument Type: Boolean |
rollingDeployType |
(Optional) The type of rolling deploy supported by the environment. Argument Type: RollingDeployType |
Response
Returns the modified environment object.
modifyEnvironmentInventoryItem
Modifies an existing environment inventory item.
Argument | Description |
---|---|
projectName |
Name of the project. Argument Type: String |
environmentName |
Name of the environment. Argument Type: String |
Required for application-scoped component objects: |
|
applicationName |
Name of the application. Supply one of |
componentName |
Name of the component that owns the inventory item. Argument Type: String |
resourceName |
Name of the resource where the item is installed. Argument Type: String |
Required for application-scoped service objects: |
|
applicationName |
Name of the application. Supply one of |
serviceName |
Name of the service. Supply one of |
containerName |
Name of the container. Argument Type: String |
Required for project-scoped service objects: |
|
serviceName |
Name of the service. Supply one of |
containerName |
Name of the container. Argument Type: String |
Optional arguments: |
|
applicationTierName |
(Optional) Name of the application tier. Argument Type: String |
artifactName |
(Optional) Artifact name for the inventory item. Argument Type: String |
artifactSource |
(Optional) Source of the artifact. Argument Type: String |
artifactUrl |
(Optional) URL of the artifact. Argument Type: String |
artifactVersion |
(Optional) Artifact version for the inventory item. Argument Type: String |
description |
(Optional) Comment text describing this object; not interpreted by CloudBees CD/RO . Argument Type: String |
environmentProjectName |
(Optional) Name of the project to which the environment or environment template belongs. Argument Type: String |
newName |
(Optional) The new name for the object. Argument Type: String |
status |
(Optional) Deployment status of the inventory item. Possible values include: Argument Type: String |
Response
Retrieves the modified environmentInventoryItem object.
modifyEnvironmentMap (deprecated)
Modifies an existing service environment map.
Argument | Description |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String |
environmentName |
Name of the environment. Argument Type: String |
serviceName |
(Optional) The name of the service. Argument Type: String |
description |
(Optional) Comment text describing this object; not interpreted by CloudBees CD/RO . Argument Type: String |
environmentMapName |
(Optional) The name of the tier map. If not specified the operation will assume a hyphenated service and environment name. Argument Type: String |
environmentProjectName |
(Optional) The name of the environment’s project. Argument Type: String |
newName |
(Optional) New name for an existing object. Argument Type: String |
serviceEntityRevisionId |
(Optional) Revision ID of the versioned object. Argument Type: String |
Response
Retrieves an environmentMap object.
modifyReservation
Modifies an environment reservation.
Argument | Description |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String |
reservationName |
The name of the environment reservation. Argument Type: String |
applicationName |
(Optional) The name of the application Argument Type: String |
beginDate |
(Optional) The date when the reservation begins. Argument Type: String |
blackout |
(Optional) < Boolean flag — |
description |
(Optional) Comment text describing this object; not interpreted at all by CloudBees CD/RO . Argument Type: String |
endDate |
(Optional) The date when the reservation ends. Argument Type: String |
environmentName |
(Optional) The name of the environment. Argument Type: String |
environmentProjectName |
(Optional) The name of the environment project. Argument Type: String |
environmentTierName |
(Optional) The name of the environment tier. Argument Type: String |
monthDays |
(Optional) A list of numbers from 1 to 31 separated by spaces, indicating zero or more days of the month. Argument Type: String |
newName |
(Optional) New name for an existing object. Argument Type: String |
overlap |
< Boolean flag — |
pipelineName |
(Optional) The name of the pipeline. Argument Type: String |
recurrence |
(Optional) < Boolean flag — |
(Optional) recurrenceEndDate |
The date when the recurring reservation ends. Argument Type: String |
releaseName |
(Optional) The name of the release. Argument Type: String |
timeZone |
(Optional) The time zone to use when interpreting times. Argument Type: String |
weekDays |
(Optional) Restricts the schedule to specified days of the week. Specify days of the week separated by spaces. Use English names "Monday", "Tuesday". Argument Type: String |
Response
Retrieves the modified reservation object.
ec-perl
Syntax:
$<object>->modifyReservation(<projectName>, <reservationName>, {<optionals>});
Example:
$ec->modifyReservation('Default', 'Main branch', {environmentName => "Web Server", applicationName => "Heat Clinic", beginDate => '22:00', endDate => '23:30', timeZone => 'local', overlap => false, weekDays => 'Monday' 'Wednesday' 'Friday' 'Sunday'});
ectool
Syntax:
ectool modifyReservation <projectName> <reservationName> [optionals]
Example:
ectool modifyReservation 'Default' 'Main branch' --environmentName "Web Server" --applicationName "Heat Clinic" --beginDate '22:00' --endDate '23:30' --timeZone 'local' --overlap true --weekDays 'Monday' 'Wednesday' 'Friday' 'Sunday'
seedEnvironmentInventory
Seeds the environment with a new inventory to mimic an actual application- or release-scoped deployment.
Argument | Description |
---|---|
projectName |
The project containing the application. |
environmentName |
Name of the environment. Argument Type: String |
applicationName |
Application that owns the inventory item. Use for existing applications. |
seeded |
< Boolean flag - Whether inventory data is seeded. For traditional applications, set to Argument Type: Boolean |
microserviceName |
The name of the microservice. Argument Type: String |
clusterName |
Name of the cluster into which microservice application is deployed. Argument Type: String |
clusterNamespace |
The cluster namespace into which microservice application is deployed. Argument Type: String |
artifactProviderSource |
Source of the artifact provider. Curretly, only Argument Type: String |
microserviceDeploymentData |
The unstructured data related to microservice deployment from the Helm chart. Argument Type: String |
microserviceDeploymentSummary |
The unstructured data related to microservice deployment summary from Helm chart. Argument Type: String |
artifactProviderSource |
Source of the artifact provider that provides the artifact for deployment. Supported values: Argument Type: String |
applicationProcessName |
Application process that will be deployed to the environment. Argument Type: String |
status |
Deployment status of the environment inventory. Argument Type: JobOutcome |
Seeding an inventory for a non-existing application (release and not-release scoped): |
|
applicationTierName |
Application tier that owns the inventory item. Use for non-existing applications. Argument Type: String |
Seeding an inventory for an application object without a snapshot: |
|
resourceNames |
Resources assigned to the environment. Argument Type: Collection |
componentName |
Component that owns the inventory item Argument Type: String |
artifactName |
Artifact name for the inventory item. Argument Type: String |
artifactVersion |
Artifact version for the inventory item. Argument Type: String |
Seeding an inventory for an application object with a snapshot: |
|
resourceNames |
Resources assigned to the environment. Argument Type: Collection |
snapshotName |
Name of the snapshot. Argument Type: String |
Seeding an inventory for a release-scoped application object: |
|
artifactName |
Artifact name for the inventory item. Argument Type: String |
artifactVersion |
Artifact version for the inventory item. Argument Type: String |
componentName |
Component that owns the inventory item Argument Type: String |
releaseName |
Name of the release. Argument Type: String |
releaseProjectName |
Name of the project to which |
resourceNames |
Resources assigned to the environment. Argument Type: Collection |
stageName |
Name of the stage. Argument Type: String |
Optional arguments: |
|
artifactSource |
(Optional) Source of the artifact. Argument Type: String |
artifactUrl |
(Optional) URL of the artifact. Argument Type: String |
environmentProjectName |
(Optional) Name for the project to which the environment or environment template belongs. Argument Type: String |
Response
Returns the new environmentInventory object.