Scenario |
---|
You want to create a new environment using REST API. This article is an addition to the POST request for a configuration item (CI) from our REST API documentation, to help you out. |
Environment |
XL Deploy, REST API, version 7.5.x (in this example) |
Steps to Perform |
Bellow you will find an example of how you can add a new environment using our REST API. In this case a new environment with the name 'was2' is created with 'Infrastructure/was85nd/vagrantCell01' as a reference.
|
Caveats (if any) |
If you want to make a change to an already existing environment, you can first use the GET request to get all the existing information about your CI. Then make some changes and use the POST request to send those changes to you XL Deploy. Of course you can also use a GET request as an example to see how your environment looks like, as a help to create your new enviroment. |
Additional Information |
Documentation about our REST API of version 7.5.x you can find here. |
Tags |
environment, kb, how-to, xldeploy, xld, restapi |
How to add an environment using REST API?
FollowDaphne Burgerhoudt -