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.

Authorizations:
query Parameters
url
required
string <url>

The vendor metadata file's URL.

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

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  modsec_update_vendor \
  url='http://example.com/update/meta_MyVendor.yaml'

Response samples

Content type
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
    }
}