Clone or create a security policy

Creates a new copy of an existing security policy or creates a new security policy from scratch when you don't specify a policy to clone in the request. To create a new security policy, leave createFromSecurityPolicy empty in your request. Products: Kona Site Defender, App & API Protector with the Advanced Security module.

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 unique identifier (policyId) of the source policy to create the new policy from.

string

The default settings on the policy, true by default.

string

The name of the security policy. If not provided, the system generates a name automatically with the pattern clone from <createFromSecurityPolicy>.

string

The four-character alphanumeric string prefix for the policyId. If not provided, the prefix is autogenerated.

string | null

The source for the new the policy. If not provided, the source is blank. Other values are 'default' or the source security policy ID.

Responses

Response body
object
integer

Uniquely identifies the security configuration.

boolean
required

Indicates whether this security policy has a rate policy which has API_KEY as a client identifier. APIs are managed using the API Endpoint Definition API.

string
required

Uniquely identifies the security policy.

string
required

The name of the security policy.

policySecurityControls
object
required

The status of security controls defined in the security policy.

boolean
required

Whether you enabled API constraints.

boolean
required

Whether you enabled application layer controls.

boolean
required

Whether you enabled Bot Manager controls.

boolean
required

Whether you enabled network layer controls.

boolean
required

Whether you enabled rate controls.

boolean
required

Whether you enabled reputation controls.

boolean
required

Whether you enabled slow post controls.

integer

The version number of the security configuration.

Language
Authentication
URL