Forum Discussion
Alice_Goldfuss_
Nimbostratus
Jul 31, 2015PUT/PATCH on virtual-address?
I'm trying to update a virtual-address, but keep getting:
{"code":403,"message":"Operation is not supported on component /ltm/virtual-address.","errorStack":[]}
I can create a new virtual-address just fine, but I can't modify an existing one. Are PUT/PATCH commands not valid here?
3 Replies
- kunjan
Nimbostratus
What's the cmd you are trying to execute?
- Alice_Goldfuss_
Nimbostratus
curl -sk -u 'user:password' -H 'Content-Type: application/json' -X PUT https://BIG_IP/mgmt/tm/ltm/virtual-address -d '{ "name" : "ADDRESS_IP", "routeAdvertisement" : "enabled"}'curl -sk -u 'user:password' -H 'Content-Type: application/json' -X PATCH https://BIG_IP/mgmt/tm/ltm/virtual-address -d '{ "name" : "ADDRESS_IP", "routeAdvertisement" : "enabled"}' - Alice_Goldfuss_
Nimbostratus
Never mind, I was approaching this the wrong way.
Should be:
curl -sk -u 'user:password' -H 'Content-Type: application/json' -X PUT https://BIG_IP/mgmt/tm/ltm/virtual-address/ADDRESS_IP -d '{"routeAdvertisement" : "enabled"}'
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects