Forum Discussion
Tim_McCarthy_20
Nimbostratus
Sep 17, 2018Powershell REST security-log-profiles config
I'm writing a PowerShell script utilizing Joel's REST modules. I am successfully building the nodes, the pools, the VIPS, and all the associated profiles and policies, however I can't seem to get the...
Wackitron_36350
Altocumulus
Mar 03, 2019curl -X PATCH \
'https://your_bigip_ip/mgmt/tm/ltm/virtual/~Common~some_vip_name-VS' \
-H 'Authorization: Basic TXlRLVhdfhsadfsajfadsgasiufh=' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: 03ac9874-ee45-4cce-a0dc-c54da1c78ae2' \
-H 'cache-control: no-cache' \
-d '{
"securityLogProfiles": [
"/Common/QRadar",
"/Common/rsyslog_Azure",
"/Common/local-dos"
]
}'
@Tim, above is the Curl call to add the security profiles of one's choice. For your local log profile, you need right escape characters like below
~Common~Log%20illegal%20requests
Select my comment as a right answer once you test it out.
Cheers
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