NSX-T Data Center REST API

Get the list of all the virtual machines that are not a part of any existing NSGroup. (Deprecated)

Get the list of all the virtual machines that are not a part of any existing NSGroup.
Deprecated: This API is deprecated. Please use below policy API /infra/realized-state/unassociated-virtual-machines to fetch virtual machines not associated with any existing policy group.

Request:

Method:
GET
URI Path(s):
/api/v1/ns-groups/unassociated-virtual-machines
Request Headers:
n/a
Query Parameters:
VirtualMachineListRequestParameters+
Request Body:
n/a

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
UnassociatedVMListResult+

Example Response:

{ "cursor" : "00361f148bdc-fe7c-4320-8ef3-594e28d57c87Iws-2", "result_count" : 1, "last_update_timestamp": 1488437880015 "results" : [ { "display_name" : "Iws-2", "resource_type" : "VirtualMachine", "local_id_on_host": "1", "external_id" : "420e72c9-55e7-a4f7-81bf-673a2af1a6cf", "host_id" : "cf0ffd7a-818a-11e4-9ab1-cb7a79b0af39", "compute_ids" : [ "locationId:420e72c9-55e7-a4f7-81bf-673a2af1a6cf", "instanceUuid:500e0c08-2ecc-2609-d9ba-ed489e48c787", "biosUuid:420e72c9-55e7-a4f7-81bf-673a2af1a6cf", "externalId:420e72c9-55e7-a4f7-81bf-673a2af1a6cf", "hostLocalId:1", "moIdOnHost:1" ], "tags" :[ { "Scope" : "tenant", "Tag" : "Customer1" }, ] "type" : "REGULAR", "powerState" : "VM_RUNNING", } ] }

Required Permissions:

read

Feature:

groups_groups

Additional Errors: