Update a security log profile
You can update an existing F5 WAF for NGINX security log profile using the NGINX Instance Manager REST API. Depending on your workflow, you can either overwrite the current version or create a new revision.
To update a log profile, use one of the following methods:
POSTwith theisNewRevision=trueparameter to create a new revision.PUTwith the log profile UID to overwrite the existing version.
Use tools such ascurlor Postman to send requests to the NGINX Instance Manager REST API. The API base URL ishttps://<NIM-FQDN>/api/[nim|platform]/<API_VERSION>.
All requests require authentication. For details on authentication methods, see the API overview.
| Method | Endpoint |
|---|---|
| POST | /api/platform/v1/security/logprofiles?isNewRevision=true |
| PUT | /api/platform/v1/security/logprofiles/{security-log-profile-uid} |
curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/logprofiles?isNewRevision=true \
-H "Authorization: Bearer <access token>" \
-H "Content-Type: application/json" \
-d @update-default-log.jsonTo overwrite an existing security log profile:
-
Retrieve the profile’s UID:
shell curl -X PUT https://{{NIM_FQDN}}/api/platform/v1/security/logprofiles/<log-profile-uid> \ -H "Authorization: Bearer <access token>" \ -H "Content-Type application/json" \ -d @update-log-profile.json -
Update the log profile using the UID:
shell curl -X PUT https://{{NIM_FQDN}}/api/platform/v1/security/logprofiles/<log-profile-uid> \ -H "Authorization: Bearer <access token>" \ -H "Content-Type: application/json" \ -d @update-log-profile.json
After updating the security log profile, you can publish it to specific instances or instance groups.