Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

Add a Metadata Filter to a vco Query

$
0
0

Add a Metadata Filter to a  VCO Query - how to use vco vcfilter ?? If there is a way I need the syntax to be able to use the below call.

I have to make a search based on key and value.

 

vcd rest call:

https://x.x.x.x/api/query?type=organization&format=records&fields=metadata@SYSTEM:first&filter=metadata@SYSTEM:first==STRING:world

 

vco:

 

what will be the expression for metadata??

 

var expressionOrg1 = new VclExpression(VclQueryOrgField.DISPLAYNAME, "*", VclExpressionType.EQUALS);

var expressionOrgMeta = ?? (need for metadata)

 

var expression = new Array(expressionOrg1, expressionOrgMeta);

 

var filter = new VclFilter(expression,VclFilterType.AND);

 

var params = new VclQueryParams();

var orgRef = new VclReference();

params.setFilter(filter);

params.addMetadataField("first", VclMetadataDomain.SYSTEM);


Viewing all articles
Browse latest Browse all 176483

Trending Articles



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