Update ModSecurity vendor ruleset

This function updates a vendor with the current version of the rule set.

Important:

When you disable the Web Server role, the system disables this function.

SecurityBasicAuth
Request
query Parameters
url
required
string <url>

The vendor metadata file's URL.

Example: url=http://example.com/update/meta_MyVendor.yaml
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/modsec_update_vendor
Request samples
whmapi1 --output=jsonpretty \
  modsec_update_vendor \
  url='http://example.com/update/meta_MyVendor.yaml'
Response samples
application/json
{
  • "data": {
    • "diagnostics": {
      • "added_configs": [
        • "modsec_vendor_configs/MyVendor/three.conf"
        ],
      • "deleted_configs": [
        • "modsec_vendor_configs/MyVendor/one.conf"
        ],
      • "new_configs": [
        • {
          • "active": 0,
          • "config": "modsec_vendor_configs/MyVendor/two.conf",
          • "vendor_id": "MyVendor"
          }
        ],
      • "prev_configs": [
        • {
          • "config": "modsec_vendor_configs/MyVendor/two.conf"
          }
        ]
      },
    • "vendor": {}
    },
  • "metadata": {
    • "command": "modsec_update_vendor",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}