...
Code Block | ||
---|---|---|
| ||
# HTTP Basic Authorization credentials for Rest Service API http.userId=<username for basic authorization> http.password=<password for basic authorization> |
Interfaces/API
URI example
Code Block | ||
---|---|---|
| ||
http://localhost:8080/sdccontextbuilder/service/context?serviceInstanceId=x&modelVersionId=0ab6f9f3-e169-4485-8216-f8c4fbc2e098&modelInvariantId=z |
JSON response example
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
"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 Code | Description | Resolution |
---|---|---|
400 | missing AppId from the header | Provide AppId 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 |
...