GetConfigurations
The GetConfigurations API returns a list of the application configuration names available on the server.
Note: This topic is for REST version 2.
See GetConfigurations for the REST version 1.
| GET | /configurations |
|---|---|
| http://localhost/IDORequestService/ido/configurations?configgroup=DEV | |
Parameters
| Name | In | Required? | Description |
|---|---|---|---|
| configgroup | Query | No | The name of a configuration group This parameter is used to get the configurations from a specific configuration group. |
Headers
None
Request data
None
Response data
{
"Message": null,
"Success": true,
"Configurations": [
"CSI_DALS",
"CSI_EMEA",
"CSI_LA"
]
}
Example
This example code retrieves an array of configuration names from a specified configuration group using the ConfigServer.aspx page in IDORequestService.
string json = string.Empty;
using ( HttpClient client = new HttpClient() )
{
string configGroup = "DEV";
string requestUrl = $"http://server/IDORequestService/ido/configurations?configgroup={configGroup}";
// send the get request
HttpResponseMessage response = client.GetAsync( requestUrl ).Result;
using ( HttpContent content = response.Content )
{
Task<string> result = content.ReadAsStringAsync();
// get the response containing the configuration list
json = result.Result;
}
}