Skip to navigation
Service ProfilesUpdate DNS firewall enforcement and/or mode on a service profile

Update DNS firewall enforcement and/or mode on a service profile

Required permissions Learn more

ServiceProfile.DnsFirewallRuleSet + Update +1 endpoint

Roles: Administrator

Patches the enforce and/or mode properties of the DNS firewall rule set attached to a service profile. Both fields are optional; at least one must be present. A field left out of the request is not changed.

When enforce is true, the attached DNS firewall profiles are enforced for devices using this service profile. When enforce is false, the DNS firewall profiles remain attached but enforcement is disabled.

mode sets the default behavior for names not matched by any rule: allowlist denies them, blocklist allows them. This endpoint does not modify the DNS firewall profile text.

The “no assigned profile” and “custom DNS resolver assigned” checks run whenever this request explicitly sets enforce to true, regardless of whether enforcement was already on. A mode-only patch, or a patch that sets enforce to false, skips them.

Authentication

AuthorizationBearer

An auth_token should be provided to authenticate a session.

To obtain an auth_token, see the /api/v1/authenticate POST request.

Path parameters

service_profile_iddoubleRequired
The Numeric ID of a Service Profile

Request

This endpoint expects an object.
enforcebooleanOptional
Whether to enforce the attached DNS firewall profiles for devices using this service profile. Omit to leave enforcement unchanged.
modeenumOptional
Default DNS firewall mode for unmatched queries on the service profile. Omit to leave the mode unchanged.
Allowed values:

Response

DNS firewall rule set successfully updated on the service profile.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error