Forum Discussion
F5 AS3 API call to change Admin State of VIP not working
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"
}
- NamanAltostratus
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
}
]
}
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com