Environments

You can manage TDO Environments directly over REST API. The following calls are available:

 

Create Environment

curl -X POST --user $USER_PASSWORD "$JIRA_INSTANCE/rest/tdo/1.0/$PROJECT_KEY/environments" \ --header 'Content-Type:application/json' \ --data '{"name":"demo-env","description":"hello world"}'

List Environments

curl -X GET --user $USER_PASSWORD "$JIRA_INSTANCE/rest/tdo/1.0/$PROJECT_KEY/environments"

Update Environment

curl -X PUT --user $USER_PASSWORD "$JIRA_INSTANCE/rest/tdo/1.0/$PROJECT_KEY/environments/demo-env" \ --header 'Content-Type:application/json' \ --data '{"name":"demo-env","description":"hello world 2"}'

Delete Environment

Â