Policy
New-AppSecPolicy
Synopsis
Create a security policy.
Syntax
New-AppSecPolicy [-ConfigName] <String> [-VersionNumber] <String> -PolicyName <String> -PolicyPrefix <String> [-CreateFromPolicyName <String>] [-CreateFromPolicyID <String>] [-DefaultSettings <String>] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
New-AppSecPolicy -ConfigID <Int32> [-VersionNumber] <String> -PolicyName <String> -PolicyPrefix <String> [-CreateFromPolicyName <String>] [-CreateFromPolicyID <String>] [-DefaultSettings <String>] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
Creates a new security policy. When making a request, 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. |
‑ConfigID Conditionally required |
Your configuration's ID. |
‑ConfigName Conditionally required |
The name of your security configuration. |
‑CreateFromPolicyID |
The ID of the policy you want to clone. You can use this or |
‑CreateFromPolicyName |
The name of the policy you want to clone. You can use this or |
‑DefaultSettings |
The default settings on the policy. If not provided, the |
‑EdgeRCFile |
Your EdgeGrid resource file to authenticate your command. Defaults to |
‑PolicyName Required |
The name of your security policy. |
‑PolicyPrefix Required |
The four-character alphanumeric string prefix for 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 about 6 hours ago