Environment Instances can be accessed and modified through this API using three services: GET, PUT, and PATCH. These three services allow for the retrieval, complete update, and partial update of environment instances.
...
If we had an environment instance in our database with an environment id of 12347 and an instance id of 12342, we can run a GET request at the following URL: http://host:port/flexdeploy/rest/v1/topology/environmentinstance/12347/12342
...
When we run a PUT request at the following URL: http://host:port/flexdeploy/rest/v1/topology/environmentinstance/12347/12342
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "instanceId": 12342, "endPoints": [ { "endPointId": 10101, "resourceIds": [11223] }, { "endPointId": 10111, "resourceIds": [] } ], "environmentId": 12347, "isActive": true, "properties": [ { "propertyName": "FDSOA_EXT_CLASSPATH", "propertyValue": "classpath", "credentialId": null }, { "propertyName": "FDSOA_REVISIONS_TO_KEEP", "propertyValue": 15, "credentialId": null }, { "propertyName": "FDSOA_SERVER_HOST", "propertyValue": "dev-soa.newcompany.local", "credentialId": null }, { "propertyName": "FDSOA_SERVER_PORT", "propertyValue": 8001, "credentialId": null }, { "propertyName": "FD_ORACLE_SOA_HOME", "propertyValue": "/u01/oracle/products/fmw/soa", "credentialId": null }, { "propertyName": "MDS_PASS", "propertyValue": "*****", "credentialId": 74952 } ] } |
PATCH
This PATCH service will update an existing environment instance with the information passed through a JSON object. If an attribute of the JSON is null it will not be updated in the environment instance.
Info | ||
---|---|---|
| ||
http://host:port/flexdeploy/rest/v1/topology/environmentinstance/{environmentId}/{instanceId} |
...
When we run a PATCH request at the following URL: http://host:port/flexdeploy/rest/v1/topology/environmentinstance/12347/12342
...