cancel
Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.

F5 AS3 API call to change Admin State of VIP not working

Naman
Altostratus
Altostratus

Hi All,

 

Using below API call to change admin-state of virtual service(vip) but its getting failed. kindly suggest payload.

 

https://x.x.x.x/mgmt/shared/appsvcs/declare

 

Body:

 

[{"op": "add", "path": "/well/vip_prod_avx/enable", "value": "true" }]

 

Response:

 

{

  "code": 422,

  "errors": [

    "/well/vip_prod_avx/enable: should be boolean"

  ],

  "declarationFullId": "",

  "message": "declaration is invalid"

}

1 REPLY 1

Naman
Altostratus
Altostratus

Hi All,

 

made few changes it removes the entire VIP from UI, instead of changing the admin state of virtual server, please help with the payload to just change admin state of vip without removing it from UI ?

 

{

   "class": "AS3",

   "action": "patch",

   "schemaVersion": "3.11.0",

   "persist": true,

   "patchBody": [

       {

           "op": "add",

           "path": "Infosec/testwebapp/serviceMain_testwebapp/enable",

           "value": false

       }

   ]

}