Forum Discussion

AndrewB's avatar
AndrewB
Icon for Nimbostratus rankNimbostratus
Oct 04, 2019

AS3 Move/Merge API Request

Hi All,

 

I'm creating applications using AS3 via API calls to BIG-IQ, and by default they are placed in the 'Default Application' app container.

 

I'm then trying to move these applications to a new app container using the API call outlined here:

 

https://clouddocs.f5.com/products/big-iq/mgmt-api/v7.0.0/ApiReferences/bigiq_public_api_ref/r_as3_move_merge.html

 

I feel that I’m using this correctly, but I’m getting an error back from BIG-IQ that the request is malformed, so I must be making an error somewhere. I'd appreciate some input into where I'm going wrong, or where I could dig into some logs to find more information.

 

 

 

I'm querying the following URL to get a list of applications:

 

GET -> https://<BIG-IQ>/mgmt/cm/global/config-sets/

 

This returns a list of applications in the form:

 

...
"applicationReference": {
    "link": "https://localhost/mgmt/cm/global/global-apps/69cf49ad-de27-3540-b38f-9773d06ca1c4"
},
...

 

I then use this application reference in my move request, for example:

 

POST -> https://<BIG-IQ>/mgmt/cm/global/global-apps-merge-move

 

{
   "componentAppReferencesToMove": [{
           "link": "https://localhost/mgmt/cm/global/global-apps/69cf49ad-de27-3540-b38f-9773d06ca1c4"
   }],
   "targetGlobalAppName": "ShippingAPI",
   "deleteEmptyGlobalAppsWhenDone": false,
   "requireNewGlobalApp": true
}

 

And this is the JSON response I get back:

 

{
    "code": 400,
    "originalRequestBody": "{\r\n    \"componentAppReferencesToMove\": [{\r\n            \"link\": \"https://localhost/mgmt/cm/global/global-apps/69cf49ad-de27-3540-b38f-9773d06ca1c4\"\r\n    }],\r\n    \"targetGlobalAppName\": \"ShippingAPI\",\r\n    \"deleteEmptyGlobalAppsWhenDone\": false,\r\n    \"requireNewGlobalApp\": true\r\n}",
    "referer": "10.32.2.21",
    "restOperationId": 58903785,
    "errorStack": [],
    "kind": ":resterrorresponse"
}

 

Thanks!

No RepliesBe the first to reply