Uploaded image for project: 'Active and Available Inventory'
  1. Active and Available Inventory
  2. AAI-2386

Bulk API returns failure if one of the PUT request fails

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • Casablanca Release
    • A&AI Sprint 23, A&AI Sprint 24

      Bulk Put API contains multiple PUT request but if any of the PUT request fails then it does not proceed  the success PUT request as well. Ideally we should get the result of all the PUT requests in one response.  Not sure if we have made this behavior explicitly.

       

      https://127.0.0.1:8447/aai/v11/bulk/single-transaction

      {
      "operations": [
      {
      "action": "put",
      "body":

      { "fqdn": "pserver-key-fqdn", "hostname": "pserver-key" }

      ,
      "uri": "/cloud-infrastructure/pservers/pserver/pserver-key"
      },
      {
      "action": "put",
      "body":

      { "city": "city", "country": "NONE", "data-center-code": "code", "identity-url": "N/A", "physical-location-id": "complex-key", "physical-location-type": "type", "postal-code": "12345", "region": "Earth", "state": "state", "street1": "street" }

      ,
      "uri": "/cloud-infrastructure/complexes/complex/complex-key"
      },
      {
      "action": "put",
      "body":

      { "related-link": "/aai/v13/cloud-infrastructure/pservers/pserver/pserver-key", "related-to": "pserver" }

      ,
      "uri": "/cloud-infrastructure/complexes/complex/complex-key/relationship-list/relationship"
      }
      ]
      }

            vk250x vk250x
            chanduthakare chanduthakare
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: