VcloudClient client = new VcloudClient(<ip>, Version.V5_1);
client.login(<username>, <password>);
QueryService queryService = client.getQueryService();
List<QueryResultCatalogRecordType> list = queryService.queryRecords(QueryRecordType.CATALOG).getRecords();//or
List<QueryResultCatalogRecordType> list = queryService.queryCatalogRecords().getRecords(); for(QueryResultCatalogRecordType item: list){ //item.getName() //item.isIsPublished() //this is the name of the method}
I use those query methods from vCloud SDK that make a request like: GET https://<ip>/api/query?type=catalog
But they only gives published catalogs. Unpublished catalogs are not return.
Does anyone know why this code does not return unpublished catalogs?
Octavian