Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 38 Current »

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:
 
 
 

  • No labels