AAIService Custom Query in SDN-C
- 1 AAIService Custom Query
- 1.1 Introduction
- 1.2 Sample request
- 1.2.1 References:
AAIService Custom Query
Introduction
AAI project provides custom query feature. SDN-CP AAIService bundle provides support for custom query.
To make a custom query request, the following call needs to be made:
Custom Query format
PUT /aai/v11/query?format={format}
{
"start" : "{namespace}/{resource}",
"query" : "query/{query-name}"
}
Sample request
Sample custome-query request
<save plugin="org.openecomp.sdnc.sli.aai.AAIService"
resource="custom-query"
key="format = 'resource'"
force="true"
local-only="false"
pfx="tmp.AnAI-data.vnf">
<parameter name="start[0]" value="`'network/generic-vnfs?vnf-name=' + $tmp.vnf-name`" />
<parameter name="start_length" value="1" />
<parameter name="query" value="query/complex-fromVnf" />
</save>
References:
AAI Project Custom Query wiki page
User story implementing custom query: