The "cloudRegion-fromCountry" query allows a client to provide A&AI with a country and retrieve all appropriate cloud-regions.
Input | Output | Users | Release(s) |
---|
country | cloud-region |
| Amsterdam |
Details
Example payload
{
"start":["cloud-infrastructure/complexes?country={country}"],
"query":"query/cloudRegion-fromCountry"
}
The Traversal
Only objects at the end of a line will be returned.
Example Output
{"results": [
{
"id": "1081299096",
"node-type": "cloud-region",
"url": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-custom443/cloud-region-custom-321",
"properties": {
"resource-version": "1500765120158",
"last-mod-source-of-truth": "FitNesse-Test",
"aai-created-ts": 1500765120157,
"aai-last-mod-ts": 1500765120158,
"source-of-truth": "FitNesse-Test",
"cloud-owner": "cloud-owner-custom443",
"cloud-region-id": "cloud-region-custom-321",
"cloud-type": "cloud-type-1",
"owner-defined-type": "1",
"cloud-region-version": "2.7",
"cloud-zone": "rs-CloudZone",
"sriov-automation": false
},
"related-to": [ {
"id": "909664360",
"node-type": "complex",
"url": "/aai/v11/cloud-infrastructure/complexes/complex/complex-Middletown22"
}]
},
{
"id": "1081295000",
"node-type": "cloud-region",
"url": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-custom/cloud-region-custom-2",
"properties": {
"resource-version": "1500765119481",
"last-mod-source-of-truth": "FitNesse-Test",
"aai-created-ts": 1500765119480,
"aai-last-mod-ts": 1500765119481,
"source-of-truth": "FitNesse-Test",
"cloud-owner": "cloud-owner-custom",
"cloud-region-id": "cloud-region-custom-2",
"cloud-type": "cloud-type-1",
"owner-defined-type": "1",
"cloud-region-version": "2.5",
"cloud-zone": "rs-CloudZone",
"sriov-automation": false
},
"related-to": [ {
"id": "1319178448",
"node-type": "complex",
"url": "/aai/v11/cloud-infrastructure/complexes/complex/complex-Middletown1"
}]
},
{
"id": "1523818584",
"node-type": "cloud-region",
"url": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-custom4/cloud-region-custom-3",
"properties": {
"resource-version": "1500765119815",
"last-mod-source-of-truth": "FitNesse-Test",
"aai-created-ts": 1500765119815,
"aai-last-mod-ts": 1500765119815,
"source-of-truth": "FitNesse-Test",
"cloud-owner": "cloud-owner-custom4",
"cloud-region-id": "cloud-region-custom-3",
"cloud-type": "cloud-type-1",
"owner-defined-type": "1",
"cloud-region-version": "2.7",
"cloud-zone": "rs-CloudZone",
"sriov-automation": false
},
"related-to": [ {
"id": "1319178448",
"node-type": "complex",
"url": "/aai/v11/cloud-infrastructure/complexes/complex/complex-Middletown1"
}]
}
]}