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=http aai.connectionTimeout=5000 aai.readTimeout=1000 # HTTP Basic Authorization credentials for Rest Service API http.userId=admin http.password=OBF:1u2a1toa1w8v1tok1u30 # {0} = customerId {1} = serviceType {2} = serviceInstanceId aai.serviceInstancePath=/aai/v11/business/customers/customer/{0}/service-subscriptions/service-subscription/{1}/service-instances/service-instance/{2} #Servlet context parameters server.context_parameters.p-name=value #context parameter with p-name as key and value as value.
Error Code
Error Code | Description | Resolution |
---|---|---|
400 | missing X-FromAppId from the header | Provide X-FromAppId in the header and re-send the request |
401 | missing basic auth from the header | Provide basic authorization in the header and re-send the request |
400 | missing mandatory parameter from url (serviceInstanceID, modelVersionID, modelInvariantID) | Provide parameter in the request url |