Zum Inhalt springen

TestPlatformEmergencyRules

POST
/api/v1/platform/security/emergency-rules/test
curl --request POST \
--url https://example.com/api/v1/platform/security/emergency-rules/test \
--header 'Content-Type: application/json' \
--data '{ "host": "App", "method": "example", "url": "example", "headers": "example", "rule": { "host": "App", "method": "example", "conditions": [ { "kind": "PathStartsWith", "value": "example", "headerName": "example" } ], "action": "Block" } }'
Media typeapplication/json
object
host
required
Allowed values: App Auth Files All
method
required
string
url
required
string
headers
required
null | object
rule
required
One of:
null

OK

Media typeapplication/json
object
matches
required
Array<string>
draftMatches
required
boolean
refusal
required
One of:
null
testToken
required
null | string
Example
{
"refusal": "TooLong"
}

Bad Request

Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
errors
object
key
additional properties
Array<string>
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"errors": {
"additionalProperty": [
"example"
]
}
}

Forbidden

Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Too Many Requests

Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}