Uploaded image for project: 'Test'
  1. Test
  2. TEST-201

Adding customer SDN-ETHERNET-INTERNET automatically

XMLWordPrintable

      This is to automate step(2) in vCPE instructions

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

       

      Add customer SDN-ETHERNET-INTERNET (see the use case tutorial wiki page for detail)

       

      It should be a simple PUT command

       
      {{curl -k -X PUT }}
        'https://aai.onap:8443/aai/v11/business/customers/customer/SDN-ETHERNET-INTERNET' {{}}
        -H 'accept: application/json' {{}}
        -H 'cache-control: no-cache' {{}}
        -H 'content-type: application/json' {{}}
        -H 'X-TransactionId:9999' {{}}
        -H 'X-FromAppId:postman' {{}}
        -u 'AAI:AAI'{{}}
        -d '{
          "global-customer-id""SDN-ETHERNET-INTERNET",
          "subscriber-name""SDN-ETHERNET-INTERNET",
          "subscriber-type""INFRA",
          "service-subscriptions": {
              "service-subscription": [
                  {{{}}
                      "service-type""vCPE",
                      "relationship-list": {
                          "relationship": [
                              {{{}}
                                  "related-to""tenant",
                                  "related-link""/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/b1ce7742d956463999923ceaed71786e",
                                  "relationship-data": [
                                      {{{}}
                                          "relationship-key""cloud-region.cloud-owner",
                                          "relationship-value""CloudOwner"
                                      },
                                      {{{}}
                                          "relationship-key""cloud-region.cloud-region-id",
                                          "relationship-value""RegionOne"
                                      },
                                      {{{}}
                                          "relationship-key""tenant.tenant-id",
                                          "relationship-value""b1ce7742d956463999923ceaed71786e"
                                      }
                                  ],
                                  "related-to-property": [
                                      {{{}}
                                          "property-key""tenant.tenant-name",
                                          "property-value""onap-tieto"
                                      }
                                  ]
                              }
                          ]
                      }
                  }
              ]
          }
      }'
      {{}}
      and ideally it can be ready from "demo init" step 

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

              Created:
              Updated:
              Resolved: