Uploaded image for project: 'Integration'
  1. Integration
  2. INT-541

Refactor the populating data for the default cloud region into AAI

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Won't Do
    • Icon: Medium Medium
    • Frankfurt Release
    • None
    • None
    • None

      Refactor robot scripts: populate the default cloud region into AAI with correct information: align to ESR VIM registration.

      Example with curl command (OOM based ONAP):

      curl -X PUT \
      https://\AAI_SERVICE_IP:AAI_SERVICE_PORT/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne \
      -H 'Accept: application/json' \
      -H 'Authorization: Basic QUFJOkFBSQ==' \
      -H 'Cache-Control: no-cache' \
      -H 'Content-Type: application/json' \
      -H 'Postman-Token: f649f37a-be59-420e-a9ca-f65f48959d57' \
      -H 'Real-Time: true' \
      -H 'X-FromAppId: jimmy-postman' \
      -H 'X-TransactionId: 9999' \
      -d '{
      "cloud-owner": "CloudOwner",
      "cloud-region-id": "RegionOne",
      "cloud-type": "openstack",
      "owner-defined-type": "t1",
      "cloud-region-version": "titanium_cloud",
      "complex-name": "clli1",
      "cloud-zone": "CloudZone",
      "sriov-automation": false,
      "identity-url": "http://msb-iag.onap:80/api/multicloud/v1/CloudOwner/RegionOne/identity/v2.0",
      "esr-system-info-list": {
      "esr-system-info": [
      {
      "esr-system-info-id": "58f0b6fe-b451-4828-940c-f08062338bd7",
      "service-url": "{{keystone-endpoint, e.g. http://10.12.25.2:5000/v3 }}",
      "user-name": "username",
      "password": "password",
      "system-type": "VIM",
      "ssl-insecure": true,
      "cloud-domain": "Default",
      "default-tenant": "project name, e.g. Integration-SB-01",
      "system-status": "active"
      }
      ]
      }
      }
      '

      curl -X POST \
      'http://msb-iag.onap:80/api/multicloud-titanium_cloud/v0/CloudOwner_RegionOne/registry' \
      -H 'Accept: application/json' \
      -H 'Cache-Control: no-cache' \
      -H 'Content-Type: application/json' \
      -H 'Postman-Token: fa323f8f-ef5f-4ae9-a505-de9888a5cc4a'

       

       

            biny993 biny993
            biny993 biny993
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: