dfm61
Jun 13, 2019Nimbostratus
add to ASM policy description
Is it possible too 'add' to an existing security policy description keeping the existing description information? Either through iControl or using a tmsh command.
Is it possible too 'add' to an existing security policy description keeping the existing description information? Either through iControl or using a tmsh command.
Not directly, but you can do it.
>> TMSH
list asm policy TEST1 description
asm policy TEST1 {
description "my_old_description"
}
modify asm policy TEST1 description myold_description___my_new_description
>> iControl REST
curl -sku admin:XXXX -X GET https://localhost/mgmt/tm/asm/policies | json-format | grep -A3 \"TEST1\"
"name": "TEST1",
"caseInsensitive": false,
"loginPageReference": {
"link": "https://localhost/mgmt/tm/asm/policies/dp1jS1FtctV2ubWCQe0Bhg/login-pages?ver\u003d12.1.4",
curl -sku admin:XXXX -X GET https://localhost/mgmt/tm/asm/policies/dp1jS1FtctV2ubWCQe0Bhg | json-format | grep description
"description": "my_old_description",
curl -sku admin:XXXX -X PATCH https://localhost/mgmt/tm/asm/policies/dp1jS1FtctV2ubWCQe0Bhg -H "Content-Type: application/json" -d '{"description": "myold_description___my_new_description"}' | json-format
KR,
Dario