Search in sources :

Example 1 with ResourcesClient

use of com.vmware.ops.api.client.controllers.ResourcesClient in project flowgate by vmware.

the class TestVROPS method getHostSystemResources.

public List<ResourceDto> getHostSystemResources() {
    ResourcesClient rClient = client.resourcesClient();
    ResourceQuery rq = new ResourceQuery();
    rq.setAdapterKind(new String[] { "VMWARE" });
    rq.setResourceKind(new String[] { "HostSystem" });
    return rClient.getResources(rq, null).getResourceList();
}
Also used : ResourcesClient(com.vmware.ops.api.client.controllers.ResourcesClient) ResourceQuery(com.vmware.ops.api.model.resource.ResourceQuery)

Aggregations

ResourcesClient (com.vmware.ops.api.client.controllers.ResourcesClient)1 ResourceQuery (com.vmware.ops.api.model.resource.ResourceQuery)1