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 7 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=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 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, modelVersionID, modelInvariantID)Provide parameter in the request url
  • No labels