Environment Extensions Update

The environment_extensions_update script is used to update the environment extensions for a given environment. The script is intended to run after the release_pipeline script has been ran.

Warning

A word of caution about updating environment extensions. Ensure that partial is set to true. If not, the default action is to reset all environment extensions. Therefore, if you only try to update a few values, then the rest will be set to default.

 1import boomi_cicd
 2
 3# The environment_extensions_update.py script updates the environment extensions for the
 4# environment set within the environment variables json.
 5
 6
 7# Open environment extensions release json
 8env_ext_release = boomi_cicd.set_env_release()
 9environment_id = boomi_cicd.query_environment(boomi_cicd.ENVIRONMENT_NAME)
10boomi_cicd.update_environment_extensions(environment_id, env_ext_release)

Required Environment Variables

Environment Variable

Description

BOOMI_ACCOUNT_ID

The Boomi account ID.

BOOMI_ATOM_NAME

The name of the Boomi Atom.

BOOMI_ATOM_NAME_DR

The name of the Boomi Atom.

BOOMI_BASE_URL

The base URL for the Boomi API. https://api.boomi.com/api/rest/v1

BOOMI_PASSWORD

The Boomi password. Atomsphere API Token is recommended

BOOMI_ENV_RELEASE_FILE

The location of the release JSON file to use. The release file contains the environment extensions to be updated.

BOOMI_USERNAME

The Boomi username. Atomsphere API Token is recommended

Release JSON File

The release file contains the environment extensions JSON. Additional information about environment extensions can be found within Boomi’s documention. Below is an example of a environment extensions release file.

 1{
 2   "@type" : "EnvironmentExtensions",
 3   "processProperties" : {
 4      "@type" : "OverrideProcessProperties",
 5      "ProcessProperty" : [
 6         {
 7            "@type" : "OverrideProcessProperty",
 8            "ProcessPropertyValue" : [
 9               {
10                  "@type" : "ProcessPropertyValue",
11                  "label" : "String",
12                  "key" : "new-1355426770730",
13                  "encryptedValueSet" : false,
14                  "useDefault" : false,
15                  "value" : "Partialupdates"
16               },
17               {
18                  "@type" : "ProcessPropertyValue",
19                  "label" : "Password",
20                  "key" : "new-1355426788553",
21                  "value" : "PasswordUpdated",
22                  "encryptedValueSet" : false,
23                  "useDefault" : false
24               }
25            ],
26            "id" : "24a56789...",
27            "name" : "Boomi Test"
28         }
29      ]
30   },
31   "environmentId" : "456789ab...",
32   "extensionGroupId" : "",
33   "id" : "6f678d09...",
34   "partial" : true
35}