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

Compare with Current View Page History

« Previous Version 10 Next »

Overview

The AAI Context Builder in POMBA receives the rest call from Context Aggregator and then query AAI to get service data, transform the AAI response data to common model, send  the common model data back to Context Aggregator.

File Structure


/opt
|-- app
    |-- config
    |   |-- application.properties
    |   |-- logback.xml
    |-- lib
    |   |-- pomba-aai-context-builder.jar
    |-- bin
        |-- startService.sh
      


Configuration


application.properties
spring.jersey.type=filter
spring.mvc.urls=swagger,docs,prometheus,auditevents,info,heapdump,autoconfig,beans,loggers,dump,env,trace,health,configprops,mappings,metrics,webjars

server.contextPath=/aaicontextbuilder
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration

#This property is used to set the Tomcat connector attributes.developers can define multiple attributes separated by comma
#tomcat.connector.attributes=allowTrace-true
#The max number of active threads in this pool
server.tomcat.max-threads=200
#The minimum number of threads always kept alive
server.tomcat.min-spare-threads=25

# AAI REST Client Configuration
aai.host=10.147.57.139
aai.port=8080
aai.username=AAI
aai.password=OBF:1gfr1ev31gg7
aai.httpProtocol=https
aai.connectionTimeout=5000
aai.readTimeout=1000

# HTTP Basic Authorization credentials for Rest Service API
http.userId=admin
http.password=OBF:1u2a1toa1w8v1tok1u30

aai.searchNodeQuery=/aai/v11/search/nodes-query?search-node-type=service-instance&filter=service-instance-id:EQUALS:

#Servlet context parameters
server.context_parameters.p-name=value #context parameter with p-name as key and value as value.


Error Code

Error CodeDescriptionResolution
400missing X-FromAppId from the headerProvide X-FromAppId in the header and re-send the request
401missing basic auth from the headerProvide basic authorization in the header and re-send the request
400missing mandatory parameter from url (serviceInstanceID)Provide parameter in the request url
  • No labels