POST ComputeResources/Discover/Clusters

Discover information about a compute resource's clusters prior to adding it to the system.

Note: The verb is POST rather than GET so that the credentials are passed securely in the message body rather than in the query string.

Request Information

Request body type

DiscoverComputeResourceInformationModel

Request body formats

application/json, text/json

Sample:
{
  "ComputeResourceType": "HyperV",
  "Address": "https://10.1.1.10",
  "UserNameOrApiKey": "DOMAIN\\scvmm",
  "PasswordBase64OrSecretKey": "cGFzc3dvcmQ="
}

Response Information

The tree of clusters available in the compute resource.

Response type

ClusterModel

Response body formats

application/json, text/json

Sample:
{
  "Href": "[api:ComputeResources(ab32f043-4682-4953-8dea-a0489b839f80)/ClusterTree",
  "Name": "ClusterRoot",
  "FullPath": "/ClusterRoot",
  "CanBeProvisioningTarget": true,
  "Children": [
    {
      "Name": "Cluster1",
      "FullPath": "/ClusterRoot/Cluster1",
      "CanBeProvisioningTarget": true
    },
    {
      "Name": "Cluster2",
      "FullPath": "/ClusterRoot/Cluster2",
      "CanBeProvisioningTarget": true
    }
  ]
}