You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
The "cloudRegion-fromNfTypeVendorVersion" query allows a client to provide A&AI with an nf-type, application-vendor, and optional application-version and retrieve the cloud-regions.
Input | Output | Users | Release(s) |
---|
nf-type application-vendor optional application-version | cloud-region |
| Amsterdam |
Details
Example payload
{
"start":["nodes/image?application-vendor={application-vendor}"],
"query":"query/cloudRegion-fromNfTypeVendorVersion?nfType={nf-type}"
}
OR
{
"start":["nodes/image?application-vendor={application-vendor}&application-version={application-version}"],
"query":"query/cloudRegion-fromNfTypeVendorVersion?nfType={nf-type}"
}
The Traversal
Only objects at the end of a line will be returned.
generic-vnf > nf-type
vserver >
image > application-vendor
image > application-version
cloud-region
Example Output
{"results": [
{
"id": "581447736",
"node-type": "cloud-region",
"url": "/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-2777/cloud-region-id2777",
"properties": {
"resource-version": "1500768726084",
"last-mod-source-of-truth": "FitNesse-Test",
"aai-created-ts": 1500768726083,
"aai-last-mod-ts": 1500768726084,
"source-of-truth": "FitNesse-Test",
"cloud-owner": "cloud-owner-2777",
"cloud-region-id": "cloud-region-id2777",
"cloud-type": "cloud-type-1",
"owner-defined-type": "1",
"cloud-region-version": "2.5",
"cloud-zone": "rs-CloudZone",
"sriov-automation": false
},
"related-to": [
{
"id": "827699208",
"node-type": "tenant",
"url": "/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-2777/cloud-region-id2777/tenants/tenant/tenant2"
},
{
"id": "1081557144",
"node-type": "image",
"url": "/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-2777/cloud-region-id2777/images/image/7fd-8d84-a-middletown2"
},
{
"id": "1319325904",
"node-type": "tenant",
"url": "/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-2777/cloud-region-id2777/tenants/tenant/tenant-testFitnesse"
}
]
},
{
"id": "1524002904",
"node-type": "cloud-region",
"url": "/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-222/cloud-region-id222",
"properties": {
"resource-version": "1500768725759",
"last-mod-source-of-truth": "FitNesse-Test",
"aai-created-ts": 1500768725759,
"aai-last-mod-ts": 1500768725759,
"source-of-truth": "FitNesse-Test",
"cloud-owner": "cloud-owner-222",
"cloud-region-id": "cloud-region-id222",
"cloud-type": "cloud-type-1",
"owner-defined-type": "1",
"cloud-region-version": "2.5",
"cloud-zone": "rs-CloudZone",
"sriov-automation": false
},
"related-to": [
{
"id": "786874592",
"node-type": "image",
"url": "/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-222/cloud-region-id222/images/image/7fd-8d84-a60"
},
{
"id": "1155084472",
"node-type": "tenant",
"url": "/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-222/cloud-region-id222/tenants/tenant/tenant-1"
},
{
"id": "1319321808",
"node-type": "tenant",
"url": "/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-222/cloud-region-id222/tenants/tenant/tenant223221"
},
{
"id": "1319334096",
"node-type": "image",
"url": "/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-222/cloud-region-id222/images/image/7fd-8d84-middletown3"
}
]
}
]}