To filter for machines with deployed or discovered status, you can use the IaaS APIs. A machine with the discovered status is in the cloud and has not yet been onboarded. A machine with the deployed status has been onboarded or provisioned from vRealize Automation .
If a machine has a discovered status, you can bring it into vRealize Automation management using the onboarding tool. See Onboard selected machines as a single deployment.
After onboarding, the machine has a deployed status and is associated with the deployment. Then you can manage it in the same way as any other provisioned machine.
To query for deployed or discovered status, you use the following parameters.
$filter=deploymnetId eq '*' |
Returns all machines that are deployed and under vRealize Automation management. Deployed machines have a deployment ID. |
$filter=deploymnetId ne '*' |
Returns all machines that are discovered in the cloud. Machines without the deployment ID property are not deployed. |
Machine filter examples
The following examples show how to list deployed or discovered machines.
If you want to... | Use this request |
---|---|
List all deployed machines | curl -X GET "$url/iaas/api/machines?apiVersion=$api_version&"'$filter='"deploymentId%20eq%20'*' -H 'Content-Type: application/json' -H "Authorization: Bearer $access_token" | jq "." |
List all discovered machines | curl -X GET "$url/iaas/api/cloud-accounts?apiVersion=$api_version&"'$filter='"deploymentId%20ne%20'*' -H 'Content-Type: application/json' -H "Authorization: Bearer $access_token" | jq "." |