GetConfigurations
The GetConfigurations API returns a list of the application configuration names available on the server.
Note: This topic is for REST version 1.
      See GetConfigurations for the REST version 2. 
| GET | /{responsetype}/configurations | 
          
|---|---|
| http://localhost/IDORequestService/MGRESTService.svc/xml/configurations?configgroup=DEV | |
Parameters
| Name | In | Required? | Description | 
|---|---|---|---|
| responsetype | Path | Yes | Response request data format Specify either of these values: 
  | 
            
| configgroup | Query | No | The name of a configuration group Use this parameter to get the configurations from a specific configuration group.  | 
            
Headers
None
Request data
None
Response data in XML format
<ArrayOfstring xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <string>CSI_DALS</string> <string>CSI_EMEA</string> <string>CSI_LA</string> </ArrayOfstring>
Response data in JSON format
[ "CSI_DALS", "CSI_EMEA", "CSI_LA" ]
Example
This example code retrieves an array of configuration names from the specified configuration group through the ConfigServer.aspx page in IDORequestService:
string xml = string.Empty;
 
using ( HttpClient client = new HttpClient() )
{
   // optionally, you can use json as the response type
   string configGroup = "DEV";
   string requestUrl = $"http://server/IDORequestService/MGRESTService.svc/xml/configurations?configgroup={configGroup}";
 
   // send the request
   HttpResponseMessage response = client.GetAsync( requestUrl ).Result;
 
   using ( HttpContent content = response.Content )
   {
      Task<string> result = content.ReadAsStringAsync();
      // get the xml response containing the configuration list
      xml = result.Result;
   }
}