Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 232869

Re: vCloud API - How to get only public catalogs or only organisation catalogs?

$
0
0
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


Viewing all articles
Browse latest Browse all 232869

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>