Malware policy
New-AppSecMalwarePolicy
Synopsis
Create a malware policy.
Syntax
New-AppSecMalwarePolicy [-ConfigName] <String> [-VersionNumber] <String> -Name <String> -Paths <String> -Hostnames <String> [-Description <String>] [-AllowListID <String>] [-BlockListID <String>] [-ContentTypes <String>] [-LogFilename] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
New-AppSecMalwarePolicy [-ConfigName] <String> [-VersionNumber] <String> -Body <Object> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
New-AppSecMalwarePolicy -ConfigID <Int32> [-VersionNumber] <String> -Body <Object> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
New-AppSecMalwarePolicy -ConfigID <Int32> [-VersionNumber] <String> -Name <String> -Paths <String> -Hostnames <String> [-Description <String>] [-AllowListID <String>] [-BlockListID <String>] [-ContentTypes <String>] [-LogFilename] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
Creates a new malware policy for a security configuration version. When making a request, you can provide the policy attributes individually as parameter values or you can send all elements at once with the -Body
parameter. You can specify a configuration by its name or ID. The -VersionNumber
parameter is an integer or the word latest
.
Parameters
‑AccountSwitchKey |
An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use Get-AccountSwitchKey. |
‑AllowListID |
The ID of a client list containing file hashes of specific files to allow. |
‑BlockListID |
The ID of a client list containing file hashes of specific files to block. |
‑Body Conditionally required |
The request body, either as a |
‑ConfigID Conditionally required |
Your configuration's ID. |
‑ConfigName Conditionally required |
The name of your security configuration. |
‑ContentTypes |
The content types and encodings to match. |
‑Description |
Describes the security configuration. |
‑EdgeRCFile |
Your EdgeGrid resource file to authenticate your command. Defaults to |
‑Hostnames Conditionally required |
List of hostnames to be added to the configuration. |
‑LogFilename |
If present, the function logs the name of the file that triggered an |
‑Name Conditionally required |
The name you assigned to the security configuration. |
‑Paths Conditionally required |
The paths to match. You can use the |
‑Section |
The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to |
‑VersionNumber Required |
A configuration's version. Can be an integer or the word |
Related Links
Updated 8 days ago