From 8a6b0b5aeab216617ff95757709afcb94952ffd6 Mon Sep 17 00:00:00 2001 From: Jerry Flood Date: Sun, 12 Nov 2017 15:44:21 -0500 Subject: Update A&AI api to v11 and create complex Issue: TEST-34 Change-Id: Ibac7f78390f517e3d3876ec0adff97d1136b2f28 Signed-off-by: Jerry Flood --- .../assets/templates/aai/add_complex_body.template | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 robot/assets/templates/aai/add_complex_body.template (limited to 'robot/assets/templates/aai') diff --git a/robot/assets/templates/aai/add_complex_body.template b/robot/assets/templates/aai/add_complex_body.template new file mode 100644 index 00000000..136a620b --- /dev/null +++ b/robot/assets/templates/aai/add_complex_body.template @@ -0,0 +1,42 @@ + { + "complex-name": "${complex_name}", + "physical-location-id": "${physical_location_id}", + "data-center-code": "example-data-center-code-val-5556", + "identity-url": "example-identity-url-val-56898", + "physical-location-type": "example-physical-location-type-val-7608", + "street1": "example-street1-val-34205", + "street2": "example-street2-val-99210", + "city": "example-city-val-27150", + "state": "example-state-val-59487", + "postal-code": "example-postal-code-val-68871", + "country": "example-country-val-94173", + "region": "example-region-val-13893", + "latitude": "example-latitude-val-89101", + "longitude": "example-longitude-val-66229", + "elevation": "example-elevation-val-30253", + "lata": "example-lata-val-46073", + "relationship-list": { + "relationship": [ + { + "related-to": "cloud-region", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "${cloud_owner}" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "${region}" + } + ], + "related-to-property": [ + { + "property-key": "cloud-region.owner-defined-type", + "property-value": "${owner_defined_type}" + } + ] + } + ] + } + } -- cgit 1.2.3-korg