Create a malware policy

All products Create a new malware policy for a security configuration version.

Path Params
int64
required

A unique identifier for each configuration.

integer
required

A unique identifier for each version of a configuration.

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

Contains details about a malware policy.

string

The ID of a client list containing file hashes of specific files to allow.

string

The ID of a client list containing file hashes of specific files to block.

contentTypes
array of objects

The content types and encodings to match.

contentTypes
string

Descriptive text you provide about a policy.

hostnames
array of strings
required

The hostnames to match. This is where you want the malware detections to focus.

hostnames*
boolean
Defaults to false

Whether to log the name of the file that triggered an alert or deny action.

string
required

The name you assign to a malware policy.

paths
array of strings
required

The paths to match. You can use the ? and * wildcards anywhere in a path.

paths*
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
URL
LoadingLoading…
Response
Choose an example:
application/json
application/problem+json