Create a malware policy

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
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*
Responses

Response body
object
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
object
encodedContentAttributes
array of objects

An optional list of encoded attribute paths.

encodedContentAttributes
object
encoding
array of strings

The encodings used for the attribute path. Currently only base64 is supported.

encoding
string

The JSONPath to an attribute with encoded content. The path must point to a single item, and may not include the $, .., ? or * operators.

string
required

The name of the content type.

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*
integer

Read-only Uniquely identifies each malware policy.

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
object
string

A URL to access the newly created resource.

Language
Authentication
URL