Create a match target

Kona Site Defender, App & API Protector with the Advanced Security module Creates a new Match Target in the specified 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

Contains information about a match target.

apis
array of objects

Contains a list of objects containing an API endpoint ID and name. This field applies only to API match targets.

apis
bypassNetworkLists
array of objects

The list of network list identifiers and names.

bypassNetworkLists
integer

Uniquely identifies the security configuration.

integer

The version of security configuration.

string
enum
Defaults to NO_MATCH

Describes the rule to match on paths. Either NO_MATCH to not match on the default file, BASE_MATCH to match only requests for top-level hostnames ending in a trailing slash, or RECURSIVE_MATCH to match all requests for paths that end in a trailing slash.

Allowed:
fileExtensions
array of strings

Contains a list of file extensions.

fileExtensions
filePaths
array of strings

Contains a list of file paths.

filePaths
hostnames
array of strings

Contains a list of hostnames to protect.

hostnames
boolean

Describes whether the match target applies when a match is found in the specified fileExtensions or when a match isn't found.

boolean

Describes whether the match target applies when a match is found in the specified paths or when a match isn't found.

securityPolicy
object
required

The security policy associated with the match target.

integer

The position in the sequence of match targets.

integer

Uniquely identifies the match target.

string
enum
required

Describes the type of match target, either website or api.

Allowed:
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
URL
LoadingLoading…
Response
Choose an example:
application/json
application/problem+json