Policy

Set-AppSecPolicy

Synopsis

Modify a security policy.

Syntax

Set-AppSecPolicy [-ConfigName] <String> [-VersionNumber] <String> [-PolicyName] <String> -NewName <String> [-Detail] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Set-AppSecPolicy [-ConfigName] <String> [-VersionNumber] <String> -PolicyID <String> -NewName <String> [-Detail] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Set-AppSecPolicy -ConfigID <Int32> [-VersionNumber] <String> -PolicyID <String> -NewName <String> [-Detail] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Set-AppSecPolicy -ConfigID <Int32> [-VersionNumber] <String> [-PolicyName] <String> -NewName <String> [-Detail] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Updates the name of a specific security policy in a configuration version. With this operation, you can currently edit only a security policy's name.

For any changes to settings within a security policy, run the modify operation for that specific setting. For example, to update your IP/Geo settings, run the Set-AppSecPolicyIPGeoFirewall operation.

When making a request, you can specify a configuration with the -ConfigName or -ConfigID parameter. The -VersionNumber parameter is an integer or the word latest. To specify a policy, use the -PolicyName or -PolicyID parameter.

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.

‑Detail

If present, the results contain detailed information on versions. If absent, the results contain summary information on versions.

‑EdgeRCFile

Your EdgeGrid resource file to authenticate your command. Defaults to ~/.edgerc.

‑NewName
Required

A new name for your configuration.

‑PolicyID
Conditionally required

Your security policy's ID.

‑PolicyName
Conditionally required

The name of your security policy.

‑Section

The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to default.

‑VersionNumber
Required

A configuration's version. Can be an integer or the word latest.

Related Links