What is SDC Context Builder?

POMBA Architecture#SDCContextBuilder

Configuration

Configuration of the SDC Context Builder is done via config/application.properties (TODO: to be updated when SDC Context Builder can be installed by OOM)

SDC Connection
 #Application properties
 sdcConnect.username=<username for connecting to SDC>
 sdcConnect.password=<password for connecting to SDC>
 sdcConnect.consumerID=<consumer ID for connecting to SDC>
 sdcConnect.sdcAddress=<IP address and port for connecting to SDC>
Provide basic authorization
  # HTTP Basic Authorization credentials for Rest Service API
  http.userId=<username for basic authorization>
  http.password=<password for basic authorization>

Interfaces/API

URI example

SDC Context Builder URI example
http://localhost:8080/sdccontextbuilder/service/context?serviceInstanceId=x&modelVersionId=0ab6f9f3-e169-4485-8216-f8c4fbc2e098&modelInvariantId=z

JSON response example

SDC Context Builder JSON response example
{
    "service": {
        "name": "vFW 2018-08-27 20:29:55",
        "invariantUUID": "f7685b21-d970-4bb5-8197-f6b0ad43ea9f",
        "uuid": "0ab6f9f3-e169-4485-8216-f8c4fbc2e098",
        "dataQuality": {
            "status": "ok"
        },
        "attributeList": []
    },
    "dataQuality": {
        "status": "ok"
    },
    "attributeList": [],
    "vfList": [
        {
            "name": "ea70f4ad-da50-47e2-92fc 0",
            "type": "org.openecomp.resource.vf.Ea70f4adDa5047e292fc",
            "invariantUUID": "9a1ac406-4e8f-4d32-ac7f-88d2b1c02005",
            "uuid": "dc498cbe-32fb-46ec-b965-3670defc33bc",
            "dataQuality": {
                "status": "ok"
            },
            "attributeList": [],
            "vfModuleList": [
                {
                    "invariantUUID": "c5614dec-fdaf-4c1a-bd30-71aa80259a42",
                    "uuid": "7904b8a0-2bbc-4692-81da-278bd59e3093",
                    "maxInstances": 1,
                    "minInstances": 1,
                    "dataQuality": {
                        "status": "ok"
                    },
                    "attributeList": [],
                    "vmList": [],
                    "networkList": []
                }
            ],
            "vnfcList": [
                {
                    "name": "abstract_vfw",
                    "invariantUUID": "2836ea29-8146-48c4-abf1-6d06e4a791f3",
                    "uuid": "1c6f1b51-060f-4cb4-9463-f1195b231d95",
                    "type": "vfw",
                    "dataQuality": {
                        "status": "ok"
                    },
                    "attributeList": []
                },
                {
                    "name": "abstract_vsn",
                    "invariantUUID": "18524008-96d5-446e-bb6a-020fa6f6a1aa",
                    "uuid": "964dc6dd-5aae-4f8d-992b-cd10fb2f2729",
                    "type": "vsn",
                    "dataQuality": {
                        "status": "ok"
                    },
                    "attributeList": []
                },
                {
                    "name": "abstract_vpg",
                   "invariantUUID": "cae45b46-afe0-44d9-8c3e-cc12a0602e2e",
                    "uuid": "96f06c33-d4bf-447a-a7dd-60fd2d715609",
                    "type": "vpg",
                    "dataQuality": {
                        "status": "ok"
                   },
                    "attributeList": []
                }
            ]
        }
    ]
}



Error Code

Error CodeDescriptionResolution
400missing AppId from the headerProvide AppId in the header and re-send the request
401missing basic auth from the headerProvide basic authorization in the header and re-send the request





  • No labels