summaryrefslogtreecommitdiffstats
path: root/docs/platform/Getting Started/media/test-complex
diff options
context:
space:
mode:
authorJimmy Forsyth <jf2512@att.com>2019-05-24 16:10:01 -0400
committerJimmy Forsyth <jf2512@att.com>2019-05-24 18:07:25 -0400
commitb0a32518159592219decbd34de1b51ee1e7a9bb6 (patch)
treedeebae72297f5b3fbf79f1bb1389f173cbb97973 /docs/platform/Getting Started/media/test-complex
parent1bef250998b7f5bf628b099dd55235ba0f30e003 (diff)
Updating Dublin docs
Issue-ID: AAI-2461 Signed-off-by: Jimmy Forsyth <jf2512@att.com> Change-Id: Ied0b40e9e92789d1dcfc419743f59653be71085e
Diffstat (limited to 'docs/platform/Getting Started/media/test-complex')
-rw-r--r--docs/platform/Getting Started/media/test-complex21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/platform/Getting Started/media/test-complex b/docs/platform/Getting Started/media/test-complex
new file mode 100644
index 00000000..2d4e53b7
--- /dev/null
+++ b/docs/platform/Getting Started/media/test-complex
@@ -0,0 +1,21 @@
+set -x
+
+PROTO=https://
+AAIINST1=127.0.0.1:8443/aai/v14
+CURLOPTS="--verbose --silent --insecure --user AAI:AAI"
+CURLHDR='--header "Accept: application/json" --header "X-TransactionId: testaai" --header "Content-Type: application/json" --header "X-FromAppId: AAI"'
+
+date
+
+eval curl $CURLOPTS $CURLHDR $PROTO$AAIINST1/cloud-infrastructure/complexes | jq '.'
+eval curl $CURLOPTS $CURLHDR --upload-file data-complex.json $PROTO$AAIINST1/cloud-infrastructure/complexes/complex/clli2 | jq '.'
+eval curl $CURLOPTS $CURLHDR $PROTO$AAIINST1/cloud-infrastructure/complexes/complex/clli2 | jq '.'
+eval curl $CURLOPTS $CURLHDR $PROTO$AAIINST1/cloud-infrastructure/complexes | jq '.'
+
+
+RESVER1=`eval curl $CURLOPTS $CURLHDR $PROTO$AAIINST1/cloud-infrastructure/complexes | jq '.["complex"] | .[] | select(.["physical-location-id"] == "clli2") | .["resource-version"] '`
+eval curl $CURLOPTS $CURLHDR --request DELETE $PROTO$AAIINST1/cloud-infrastructure/complexes/complex/clli2?resource-version=$RESVER1 | jq '.'
+eval curl $CURLOPTS $CURLHDR $PROTO$AAIINST1/cloud-infrastructure/complexes | jq '.'
+
+echo end test-complex
+