This document will focus on how to access any node in the AAI database using path defined in aai_schema_v11.xsd .
AAIService component of CCSDK allows DG to access the node through the "key" and resource parameters of the request API.
<save
plugin=
"org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource=
"generic-vnf"
key=
"generic-vnf.vnf-id = $service-configuration-operation-input.ucpe-vms-service-information.vnf-list.vnf-information[0].vnf-id"
The DG node requires the developer to specify, among others, values of plugin, resource and key arguments.
The plugin argument should be set to "org.onap.ccsdk.sli.adaptors.aai.AAIService"
. Please note that the initial version of ONAP was using openecomp instead of onap. If you come accross plugin name using openecomp, please repalce it with the current version.
The resource is the name of the data type as defined in aai_schema_v11.xsd document defined by AAI Team.
The key string contains key-value pairs allowing us to uniquely identify the instance of type defined by resource.