Uploaded image for project: 'Command Line Interface'
  1. Command Line Interface
  2. CLI-131

Create, Update and Delete Cloud Complex Using CLI

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Highest Highest
    • Dublin Release
    • None

      The ONAP CLI does not have any means to create, update or delete  a cloud Complex. Currently this is done via REST using the following curl commands

      CREATE CLOUD COMPLEX

      curl -X PUT \
      https://$ONAP_AAI_IP:$ONAP_AAI_PORT/aai/v14/cloud-infrastructure/complexes/complex/clli1 \
      -H 'Accept: application/json' \
      -H 'Authorization: Basic QUFJOkFBSQ==' \
      -H 'Cache-Control: no-cache' \
      -H 'Content-Type: application/json' \
      -H 'Postman-Token: 2b272126-aa65-41e6-aa5d-46bc70b9eb4f' \
      -H 'Real-Time: true' \
      -H 'X-FromAppId: jimmy-postman' \
      -H 'X-TransactionId: 9999' \
      -d '

      { "physical-location-id": "clli1", "data-center-code": "example-data-center-code-val-6667", "complex-name": "clli1", "identity-url": "example-identity-url-val-28399", "physical-location-type": "example-physical-location-type-val-28399", "street1": "example-street1-val-28399", "street2": "example-street1-val-28399", "city": "example-city-val-28399", "state": "example-state-val-28399", "postal-code": "97124", "country": "example-country-val-28399", "region": "example-region-val-28399", "latitude": "39.9042", "longitude": "106.4074", "elevation": "elevation-val-28399", "lata": "example-lata-val-28399" }

      '

       

      UPDATE CLOUD COMPLEX

      curl -X PUT \
      https://$ONAP_AAI_IP:$ONAP_AAI_PORT/aai/v14/cloud-infrastructure/complexes/complex/clli1 \
      -H 'Accept: application/json' \
      -H 'Authorization: Basic QUFJOkFBSQ==' \
      -H 'Cache-Control: no-cache' \
      -H 'Content-Type: application/json' \
      -H 'Postman-Token: 2b272126-aa65-41e6-aa5d-46bc70b9eb4f' \
      -H 'Real-Time: true' \
      -H 'X-FromAppId: jimmy-postman' \
      -H 'X-TransactionId: 9999' \
      -d '

      { "physical-location-id": "clli1", "data-center-code": "example-data-center-code-val-5556", "complex-name": "clli1", "identity-url": "example-identity-url-val-56898", "resource-version": "1543284556407", "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": "00000", "country": "USA", "region": "example-region-val-13893", "latitude": "32.89948", "longitude": "97.045443", "elevation": "example-elevation-val-28399", "lata": "example-lata-val-28399" }

      '

            itohan itohan
            itohan itohan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: