Get hardware configurations

The list of hardware configurations is available in the response of GET/api/configuration/list endpoint.

Click to show example commands to get the list of hardware configurations
projectId="<replacewithprojectid>"
openapikey="<replacewithopenapikey>"

# get list of hardware configurations
curl -L -X GET "https://api.mike-cloud-test.com/api/compute/configuration/list" \
  -H 'api-version: 2' \
  -H 'dhi-service-id: engine' \
  -H "dhi-project-id: $projectId" \
  -H "dhi-open-api-key: $openapikey"
var items = await computeClient.GetConfigurationListAsync(projectId);

foreach (var item in items)
{
    Console.WriteLine(item.PoolType); // The "PoolType" property is the identifier used for creating executions
}

Sample response:

[
  {
    "poolType": "VM-S-5",
    "nodeLimit": 100,
    "gpuCount": 0,
    "numberOfCores": 2,
    "memoryInMB": 7168,
    "resourceDiskSizeInMB": 14336,
    "description": "Based on either the 2.4 GHz Intel Xeon E5-2673 v3 (Haswell) processor or the 2.3 GHz Intel Xeon E5-2673 v4 (Broadwell) processor.",
    "virtualMachineSize": "Standard_DS2_v2"
  },
  {
    ...
  }
]