Forum Discussion
Update ASM characte sets with REST
Hi,
i would like to update the ASM policy's character-sets (url or header ...) with REST but i don't know how! When i GET a policy (/mgmt/tm/asm/policies/sUHvoeuXMTm6slcYRzRdNQ), the json object contains this following element :
"characterSetReference": {
"link": ";, "isSubCollection": true
}
So i've requested (GET) the character-sets (/mgmt/tm/asm/policies/sUHvoeuXMTm6slcYRzRdNQ/character-sets) and so i received a listing of json objects with characters sets by type (url / header / parameter / ...). Each object have an id and a self link (/mgmt/tm/asm/policies/sUHvoeuXMTm6slcYRzRdNQ/character-sets/yB5yjZ1ML2NvBn-JzBSGLA).
"characterSet": [ { "isAllowed": false, "metachar": "0x0" }, { "isAllowed": false, "metachar": "0x1" }, ... ]
I've tried to PATCH the self link with modified data but it doesn't work, even though the ASM policy is unactive.
Is there a way to update this kind of character set ?
Thanks for your help.
1 Reply
- Pierre-Antoine
Nimbostratus
i finally found the answer... the PATCH on the specific character set (/mgmt/tm/asm/policies/h-MeglgwRs4rvG_G9k--EA/character-sets/yB5yjZ1ML2NvBn-JzBSGLA) request work... i just have done my tests on the first character ({ "isAllowed": false,"metachar": "0x0" }) witch is the NULL value and readonly ! i have modified the second character's value (isAllowed) and it work fine.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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