Uploaded image for project: 'Service Orchestrator'
  1. Service Orchestrator
  2. SO-2308

Adding identity-url to RegionOne data in AAI

XMLWordPrintable

      this task is to automate step3 in vCPE instructions

      https://docs.onap.org/en/dublin/submodules/integration.git/docs/docs_vCPE.html

       
      {{REG_ONE_DATA=$(curl -X GET -k }}
      https:{{//10.8.8.22:30233/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne }}
      -H 'X-FromAppId: postman' {{}}
      -H 'X-TransactionId: 9999' {{}}
      -H 'accept: application/json' {{}}
      -u 'AAI:AAI')
       
      resource_version=$(echo $REG_ONE_DATA | jq '."resource-version"')
      relationship_list=$(echo $REG_ONE_DATA | jq '."relationship-list"')
       
      echo "resource_version is : ${resource_version}"
      echo "relationship_list is : ${relationship_list}"
       
      # IDENTITY-URL FIELD IS IMPORTANT HERE
      # RESOURCE VERSION NEED TO BE ONE YOU GET FROM ABOVE GET REQUEST
      {{curl -i -k -X PUT }}
      https:{{//10.8.8.22:30233/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne }}
      -H 'X-FromAppId: postman' {{}}
      -H 'X-TransactionId: 9999' {{}}
      -H 'accept: application/json' {{}}
      -H 'content-type: application/json' {{}}
      -u 'AAI:AAI' {{}}
      {{-d "

      {\}}

       \"cloud-owner\": \"CloudOwner\",
       \"cloud-region-id\": \"RegionOne\",
       \"cloud-type\": \"SharedNode\",
       \"owner-defined-type\": \"OwnerType\",
       \"cloud-region-version\": \"v1\",
       \"identity-url\": \"http://106.120.119.17:5000/v2.0\",
       \"cloud-zone\": \"CloudZone\",
       \"resource-version\": $resource_version,
       \"relationship-list\": $relationship_list
      }"

            bgrzybowski bgrzybowski
            michal.ptacek michal.ptacek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: