Modify Pragma settings for a security policy

All products Update the pragma header excluded conditions. By default, the Pragma header debugging information is stripped from an operation's response except in cases where you set excludeCondition. To remove existing settings, submit your request with an empty payload {} at the top-level of an object. For example, submit "type": "{}" in the request body to remove the requestHeaderValueMatch from the excluded conditions. If you submit an empty payload for each member, you'll clear all of your condition settings. To modify Pragma header settings at the security configuration level, run Modify Pragma header settings for a configuration .

Path Params
int64
required

A unique identifier for each configuration.

integer
required

A unique identifier for each version of a configuration.

string
required

A unique identifier for a security policy.

Query Params
string

For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Body Params
string
required

The action to perform when a user passes a Pragma header. The only action currently supported is REMOVE.

string

Use OR to match any condition, or AND to match on all conditions.

excludeCondition
array of objects

The conditions to exclude from the default remove action. Any condition you set in this object appears in the Pragma header debug response object.

excludeCondition
Responses

Response body
object
string
required

The action to perform when a user passes a Pragma header. The only action currently supported is REMOVE.

REMOVE

string

Use OR to match any condition, or AND to match on all conditions.

OR AND

excludeCondition
array of objects

The conditions to exclude from the default remove action. Any condition you set in this object appears in the Pragma header debug response object.

excludeCondition
object
string

The name of the request header. In the example, accept.

string

The name of the request header to ignore from inspection. In the example, type.

boolean
required

When true, matches the selected values. When false, matches on anything outside the selected values.

string
required

The header value you want to appear in the response. You can choose from requestHeaderValueMatch, ipMatch, networkList, or queryParamNameValueMatch.

requestHeaderValueMatch ipMatch networkList queryParamNameValueMatch

boolean

Whether the condition should include the X-Forwarded-For header (XFF) header. This only applies when the condition type is IP_MATCH or NETWORK_LIST.

value
array of strings
required

List of header values, query parameter values, IP addresses, or names of network lists. To manage networks lists, use the Network Lists API.

value*
boolean

Whether to consider the case-sensitivity of the provided header value. This only applies when the condition type is REQUEST_HEADER_VALUE_MATCH.

boolean

Whether the provided header value includes wildcards, such as * or ?. This only applies to the REQUEST_HEADER_VALUE_MATCH condition type.

Language
Authentication
URL