SmartWebSecurity WAF API, REST: WafProfile.Update
- HTTP request
- Path parameters
- Body parameters
- CoreRuleSet
- RuleSet
- WafProfileRule
- WafProfileExclusionRule
- Condition
- AuthorityMatcher
- StringMatcher
- ListsMatchers
- ListsMatcher
- HttpMethodMatcher
- RequestUriMatcher
- QueryMatcher
- HeaderMatcher
- IpMatcher
- IpRangesMatcher
- GeoIpMatcher
- AsnRangesMatcher
- CookieMatcher
- BotCategoryMatcher
- BotNameMatcher
- BotScoreMatcher
- IntMatcher
- IntLEMatcher
- IntGEMatcher
- IntEQMatcher
- IntNEMatcher
- VerifiedBotMatcher
- BoolMatcher
- FingerPrintMatcher
- ExcludeRules
- RequestCondition
- RequestParamMatcher
- StringMatcher
- HeaderMatcher
- CookieMatcher
- BodyMatcher
- AnalyzeRequestBody
- WafProfileRuleSet
- WafProfileCoreRuleSet
- WafProfileYaRuleSet
- RuleGroup
- WafProfileMlRuleSet
- Response
- Status
Updates the specified WAF profile.
HTTP request
PATCH https://smartwebsecurity.api.cloud.yandex.net/smartwebsecurity/v1/wafProfiles/{wafProfileId}
Path parameters
|
Field |
Description |
|
wafProfileId |
string Required field. ID of the WAF profile to update. |
Body parameters
{
// Includes only one of the fields `coreRuleSet`
"coreRuleSet": {
"inboundAnomalyScore": "string",
"paranoiaLevel": "string",
"ruleSet": {
"name": "string",
"version": "string",
"type": "string",
"id": "string"
}
},
// end of the list of possible fields
"updateMask": "string",
"name": "string",
"description": "string",
"labels": "object",
"rules": [
{
"ruleId": "string",
"isEnabled": "boolean",
"isBlocking": "boolean"
}
],
"exclusionRules": [
{
"name": "string",
"description": "string",
"condition": {
"authority": {
"authorities": [
{
// Includes only one of the fields `exactMatch`, `exactNotMatch`, `prefixMatch`, `prefixNotMatch`, `pireRegexMatch`, `pireRegexNotMatch`, `defined`, `listsMatchers`
"exactMatch": "string",
"exactNotMatch": "string",
"prefixMatch": "string",
"prefixNotMatch": "string",
"pireRegexMatch": "string",
"pireRegexNotMatch": "string",
"defined": "boolean",
"listsMatchers": {
"strListsMatch": {
"listIds": [
"string"
]
},
"strListsNotMatch": {
"listIds": [
"string"
]
},
"regExpListsMatch": {
"listIds": [
"string"
]
},
"regExpListsNotMatch": {
"listIds": [
"string"
]
}
}
// end of the list of possible fields
}
],
"authorityMatcher": {
// Includes only one of the fields `exactMatch`, `exactNotMatch`, `prefixMatch`, `prefixNotMatch`, `pireRegexMatch`, `pireRegexNotMatch`, `defined`, `listsMatchers`
"exactMatch": "string",
"exactNotMatch": "string",
"prefixMatch": "string",
"prefixNotMatch": "string",
"pireRegexMatch": "string",
"pireRegexNotMatch": "string",
"defined": "boolean",
"listsMatchers": {
"strListsMatch": {
"listIds": [
"string"
]
},
"strListsNotMatch": {
"listIds": [
"string"
]
},
"regExpListsMatch": {
"listIds": [
"string"
]
},
"regExpListsNotMatch": {
"listIds": [
"string"
]
}
}
// end of the list of possible fields
}
},
"httpMethod": {
"httpMethods": [
{
// Includes only one of the fields `exactMatch`, `exactNotMatch`, `prefixMatch`, `prefixNotMatch`, `pireRegexMatch`, `pireRegexNotMatch`, `defined`, `listsMatchers`
"exactMatch": "string",
"exactNotMatch": "string",
"prefixMatch": "string",
"prefixNotMatch": "string",
"pireRegexMatch": "string",
"pireRegexNotMatch": "string",
"defined": "boolean",
"listsMatchers": {
"strListsMatch": {
"listIds": [
"string"
]
},
"strListsNotMatch": {
"listIds": [
"string"
]
},
"regExpListsMatch": {
"listIds": [
"string"
]
},
"regExpListsNotMatch": {
"listIds": [
"string"
]
}
}
// end of the list of possible fields
}
],
"httpMethodMatcher": {
// Includes only one of the fields `exactMatch`, `exactNotMatch`, `prefixMatch`, `prefixNotMatch`, `pireRegexMatch`, `pireRegexNotMatch`, `defined`, `listsMatchers`
"exactMatch": "string",
"exactNotMatch": "string",
"prefixMatch": "string",
"prefixNotMatch": "string",
"pireRegexMatch": "string",
"pireRegexNotMatch": "string",
"defined": "boolean",
"listsMatchers": {
"strListsMatch": {
"listIds": [
"string"
]
},
"strListsNotMatch": {
"listIds": [
"string"
]
},
"regExpListsMatch": {
"listIds": [
"string"
]
},
"regExpListsNotMatch": {
"listIds": [
"string"
]
}
}
// end of the list of possible fields
}
},
"requestUri": {
"path": {
// Includes only one of the fields `exactMatch`, `exactNotMatch`, `prefixMatch`, `prefixNotMatch`, `pireRegexMatch`, `pireRegexNotMatch`, `defined`, `listsMatchers`
"exactMatch": "string",
"exactNotMatch": "string",
"prefixMatch": "string",
"prefixNotMatch": "string",
"pireRegexMatch": "string",
"pireRegexNotMatch": "string",
"defined": "boolean",
"listsMatchers": {
"strListsMatch": {
"listIds": [
"string"
]
},
"strListsNotMatch": {
"listIds": [
"string"
]
},
"regExpListsMatch": {
"listIds": [
"string"
]
},
"regExpListsNotMatch": {
"listIds": [
"string"
]
}
}
// end of the list of possible fields
},
"queries": [
{
"key": "string",
"value": {
// Includes only one of the fields `exactMatch`, `exactNotMatch`, `prefixMatch`, `prefixNotMatch`, `pireRegexMatch`, `pireRegexNotMatch`, `defined`, `listsMatchers`
"exactMatch": "string",
"exactNotMatch": "string",
"prefixMatch": "string",
"prefixNotMatch": "string",
"pireRegexMatch": "string",
"pireRegexNotMatch": "string",
"defined": "boolean",
"listsMatchers": {
"strListsMatch": {
"listIds": [
"string"
]
},
"strListsNotMatch": {
"listIds": [
"string"
]
},
"regExpListsMatch": {
"listIds": [
"string"
]
},
"regExpListsNotMatch": {
"listIds": [
"string"
]
}
}
// end of the list of possible fields
}
}
]
},
"headers": [
{
"name": "string",
"value": {
// Includes only one of the fields `exactMatch`, `exactNotMatch`, `prefixMatch`, `prefixNotMatch`, `pireRegexMatch`, `pireRegexNotMatch`, `defined`, `listsMatchers`
"exactMatch": "string",
"exactNotMatch": "string",
"prefixMatch": "string",
"prefixNotMatch": "string",
"pireRegexMatch": "string",
"pireRegexNotMatch": "string",
"defined": "boolean",
"listsMatchers": {
"strListsMatch": {
"listIds": [
"string"
]
},
"strListsNotMatch": {
"listIds": [
"string"
]
},
"regExpListsMatch": {
"listIds": [
"string"
]
},
"regExpListsNotMatch": {
"listIds": [
"string"
]
}
}
// end of the list of possible fields
}
}
],
"sourceIp": {
"ipRangesMatch": {
"ipRanges": [
"string"
]
},
"ipRangesNotMatch": {
"ipRanges": [
"string"
]
},
"geoIpMatch": {
"locations": [
"string"
]
},
"geoIpNotMatch": {
"locations": [
"string"
]
},
"ipListsMatch": {
"listIds": [
"string"
]
},
"ipListsNotMatch": {
"listIds": [
"string"
]
},
"asnRangesMatch": {
"asnRanges": [
"string"
]
},
"asnRangesNotMatch": {
"asnRanges": [
"string"
]
},
"asnListsMatch": {
"listIds": [
"string"
]
},
"asnListsNotMatch": {
"listIds": [
"string"
]
}
},
"cookies": [
{
"name": "string",
"value": {
// Includes only one of the fields `exactMatch`, `exactNotMatch`, `prefixMatch`, `prefixNotMatch`, `pireRegexMatch`, `pireRegexNotMatch`, `defined`, `listsMatchers`
"exactMatch": "string",
"exactNotMatch": "string",
"prefixMatch": "string",
"prefixNotMatch": "string",
"pireRegexMatch": "string",
"pireRegexNotMatch": "string",
"defined": "boolean",
"listsMatchers": {
"strListsMatch": {
"listIds": [
"string"
]
},
"strListsNotMatch": {
"listIds": [
"string"
]
},
"regExpListsMatch": {
"listIds": [
"string"
]
},
"regExpListsNotMatch": {
"listIds": [
"string"
]
}
}
// end of the list of possible fields
}
}
],
"botCategory": {
"botCategoryListsMatch": {
"listIds": [
"string"
]
},
"botCategoryListsNotMatch": {
"listIds": [
"string"
]
}
},
"botName": {
"botNameListsMatch": {
"listIds": [
"string"
]
},
"botNameListsNotMatch": {
"listIds": [
"string"
]
}
},
"botScore": {
"value": [
{
// Includes only one of the fields `leMatch`, `geMatch`, `eqMatch`, `neMatch`
"leMatch": {
"value": "string"
},
"geMatch": {
"value": "string"
},
"eqMatch": {
"value": "string"
},
"neMatch": {
"value": "string"
}
// end of the list of possible fields
}
]
},
"verifiedBot": {
"verified": {
"match": "boolean"
}
},
"fingerPrint": {
"ja3Ranges": [
{
// Includes only one of the fields `exactMatch`, `exactNotMatch`, `prefixMatch`, `prefixNotMatch`, `pireRegexMatch`, `pireRegexNotMatch`, `defined`, `listsMatchers`
"exactMatch": "string",
"exactNotMatch": "string",
"prefixMatch": "string",
"prefixNotMatch": "string",
"pireRegexMatch": "string",
"pireRegexNotMatch": "string",
"defined": "boolean",
"listsMatchers": {
"strListsMatch": {
"listIds": [
"string"
]
},
"strListsNotMatch": {
"listIds": [
"string"
]
},
"regExpListsMatch": {
"listIds": [
"string"
]
},
"regExpListsNotMatch": {
"listIds": [
"string"
]
}
}
// end of the list of possible fields
}
],
"ja4Ranges": [
{
// Includes only one of the fields `exactMatch`, `exactNotMatch`, `prefixMatch`, `prefixNotMatch`, `pireRegexMatch`, `pireRegexNotMatch`, `defined`, `listsMatchers`
"exactMatch": "string",
"exactNotMatch": "string",
"prefixMatch": "string",
"prefixNotMatch": "string",
"pireRegexMatch": "string",
"pireRegexNotMatch": "string",
"defined": "boolean",
"listsMatchers": {
"strListsMatch": {
"listIds": [
"string"
]
},
"strListsNotMatch": {
"listIds": [
"string"
]
},
"regExpListsMatch": {
"listIds": [
"string"
]
},
"regExpListsNotMatch": {
"listIds": [
"string"
]
}
}
// end of the list of possible fields
}
],
"ja3Matcher": {
// Includes only one of the fields `exactMatch`, `exactNotMatch`, `prefixMatch`, `prefixNotMatch`, `pireRegexMatch`, `pireRegexNotMatch`, `defined`, `listsMatchers`
"exactMatch": "string",
"exactNotMatch": "string",
"prefixMatch": "string",
"prefixNotMatch": "string",
"pireRegexMatch": "string",
"pireRegexNotMatch": "string",
"defined": "boolean",
"listsMatchers": {
"strListsMatch": {
"listIds": [
"string"
]
},
"strListsNotMatch": {
"listIds": [
"string"
]
},
"regExpListsMatch": {
"listIds": [
"string"
]
},
"regExpListsNotMatch": {
"listIds": [
"string"
]
}
}
// end of the list of possible fields
},
"ja4Matcher": {
// Includes only one of the fields `exactMatch`, `exactNotMatch`, `prefixMatch`, `prefixNotMatch`, `pireRegexMatch`, `pireRegexNotMatch`, `defined`, `listsMatchers`
"exactMatch": "string",
"exactNotMatch": "string",
"prefixMatch": "string",
"prefixNotMatch": "string",
"pireRegexMatch": "string",
"pireRegexNotMatch": "string",
"defined": "boolean",
"listsMatchers": {
"strListsMatch": {
"listIds": [
"string"
]
},
"strListsNotMatch": {
"listIds": [
"string"
]
},
"regExpListsMatch": {
"listIds": [
"string"
]
},
"regExpListsNotMatch": {
"listIds": [
"string"
]
}
}
// end of the list of possible fields
}
}
},
"excludeRules": {
"excludeAll": "boolean",
"ruleIds": [
"string"
]
},
"logExcluded": "boolean",
"requestCondition": {
"paramMatcher": {
"paramNames": [
{
"value": "string",
"caseSensitive": "boolean"
}
]
},
"headerMatcher": {
"headerNames": [
{
"value": "string",
"caseSensitive": "boolean"
}
]
},
"cookieMatcher": {
"cookieNames": [
{
"value": "string",
"caseSensitive": "boolean"
}
]
},
"bodyMatcher": {
"bodyValues": [
{
"value": "string",
"caseSensitive": "boolean"
}
]
}
}
}
],
"analyzeRequestBody": {
"isEnabled": "boolean",
"sizeLimit": "string",
"sizeLimitAction": "string"
},
"ruleSets": [
{
// Includes only one of the fields `coreRuleSet`, `yaRuleSet`, `mlRuleSet`
"coreRuleSet": {
"ruleSet": {
"name": "string",
"version": "string",
"type": "string",
"id": "string"
},
"inboundAnomalyScore": "string",
"paranoiaLevel": "string"
},
"yaRuleSet": {
"ruleSet": {
"name": "string",
"version": "string",
"type": "string",
"id": "string"
},
"ruleGroups": [
{
"id": "string",
"action": "string",
"inboundAnomalyScore": "string",
"isEnabled": "boolean"
}
]
},
"mlRuleSet": {
"ruleSet": {
"name": "string",
"version": "string",
"type": "string",
"id": "string"
},
"ruleGroups": [
{
"id": "string",
"action": "string",
"inboundAnomalyScore": "string",
"isEnabled": "boolean"
}
]
},
// end of the list of possible fields
"priority": "string",
"isEnabled": "boolean",
"action": "string"
}
],
"matchAllRuleSets": "boolean"
}
|
Field |
Description |
|
coreRuleSet |
Core rule set settings. See Basic rule set for details. Includes only one of the fields |
|
updateMask |
string (field-mask) A comma-separated names off ALL fields to be updated. If |
|
name |
string Name of the WAF profile. The name is unique within the folder. 1-50 characters long. The string length in characters must be 1-50. Value must match the regular expression |
|
description |
string Optional description of the WAF profile. |
|
labels |
object (map<string, string>) Labels as |
|
rules[] |
Settings for each rule in rule set. |
|
exclusionRules[] |
List of exclusion rules. See Rules. |
|
analyzeRequestBody |
Parameters for request body analyzer. |
|
ruleSets[] |
List of rule sets. See Rules. |
|
matchAllRuleSets |
boolean Parameter determines should all rule sets be matched. |
CoreRuleSet
|
Field |
Description |
|
inboundAnomalyScore |
string (int64) Anomaly score. Acceptable values are 2 to 10000, inclusive. |
|
paranoiaLevel |
string (int64) Paranoia level. |
|
ruleSet |
Required field. Rule set. |
RuleSet
A RuleSet object. Determines name and version of rule set.
|
Field |
Description |
|
name |
string Required field. Name of rule set. |
|
version |
string Required field. Version of rule set. |
|
type |
enum (RuleSetType) Type of rule set.
|
|
id |
string ID of rule set. |
WafProfileRule
WafProfileRule object. Determines settings for each rule_id in rule set.
|
Field |
Description |
|
ruleId |
string Required field. Rule ID. |
|
isEnabled |
boolean Determines is it rule enabled or not. |
|
isBlocking |
boolean Determines is it rule blocking or not. |
WafProfileExclusionRule
A WafProfileExclusionRule object. See Exclusion rules.
|
Field |
Description |
|
name |
string Required field. Name of exclusion rule. |
|
description |
string Optional description of the rule. 0-512 characters long. The maximum string length in characters is 512. |
|
condition |
The condition for matching traffic. |
|
excludeRules |
Required field. Exclude rules. |
|
logExcluded |
boolean Records the fact that an exception rule is triggered. |
|
requestCondition |
Additional condition applied to specific parts of the request to refine when the exclusion is triggered. |
Condition
Condition object. AND semantics implied.
See documentation for matchers description.
|
Field |
Description |
|
authority |
Match authority (Host header). |
|
httpMethod |
Match HTTP method. |
|
requestUri |
Match Request URI. |
|
headers[] |
Match HTTP headers. The maximum number of elements is 20. |
|
sourceIp |
Match IP. |
|
cookies[] |
Match cookies. The maximum number of elements is 20. |
|
botCategory |
Match bot category. |
|
botName |
Match bot name. |
|
botScore |
Match bot score. |
|
verifiedBot |
Match verified bot. |
|
fingerPrint |
Match fingerprint. |
AuthorityMatcher
AuthorityMatcher object.
|
Field |
Description |
|
authorities[] |
List of authorities. OR semantics implied. The maximum number of elements is 20. |
|
authorityMatcher |
Authority matcher. |
StringMatcher
StringMatcher object.
|
Field |
Description |
|
exactMatch |
string Exact match condition. The string length in characters must be 0-255. Includes only one of the fields |
|
exactNotMatch |
string Exact not match condition. The string length in characters must be 0-255. Includes only one of the fields |
|
prefixMatch |
string Prefix match condition. The string length in characters must be 0-255. Includes only one of the fields |
|
prefixNotMatch |
string Prefix not match condition. The string length in characters must be 0-255. Includes only one of the fields |
|
pireRegexMatch |
string PIRE regex match condition. The string length in characters must be 0-255. Includes only one of the fields |
|
pireRegexNotMatch |
string PIRE regex not match condition. The string length in characters must be 0-255. Includes only one of the fields |
|
defined |
boolean Matches if the field is defined. Includes only one of the fields |
|
listsMatchers |
Matches against string and regular expression lists. Includes only one of the fields |
ListsMatchers
ListsMatchers object.
|
Field |
Description |
|
strListsMatch |
String lists to match with. |
|
strListsNotMatch |
String lists to not match with. |
|
regExpListsMatch |
Regular expression lists to match with. |
|
regExpListsNotMatch |
Regular expression lists to not match with. |
ListsMatcher
ListsMatcher object.
|
Field |
Description |
|
listIds[] |
string List of list IDs to match against. OR semantics implied. The number of elements must be in the range 1-10. |
HttpMethodMatcher
HttpMethodMatcher object.
|
Field |
Description |
|
httpMethods[] |
List of HTTP methods. OR semantics implied. The maximum number of elements is 20. |
|
httpMethodMatcher |
HTTP method matcher. |
RequestUriMatcher
RequestUriMatcher object. AND semantics implied.
|
Field |
Description |
|
path |
Path of the URI RFC3986 |
|
queries[] |
List of query matchers. AND semantics implied. The maximum number of elements is 20. |
QueryMatcher
QueryMatcher object.
|
Field |
Description |
|
key |
string Required field. Key of the query parameter. The string length in characters must be 1-255. |
|
value |
Required field. Value of the query parameter. |
HeaderMatcher
HeaderMatcher object.
|
Field |
Description |
|
name |
string Required field. Name of header (case insensitive). The string length in characters must be 1-255. |
|
value |
Required field. Value of the header. |
IpMatcher
IpMatcher object. AND semantics implied.
|
Field |
Description |
|
ipRangesMatch |
IP ranges to match with. |
|
ipRangesNotMatch |
IP ranges to not match with. |
|
geoIpMatch |
Geo locations to match with. |
|
geoIpNotMatch |
Geo locations to not match with. |
|
ipListsMatch |
IP lists to match with. |
|
ipListsNotMatch |
IP lists to not match with. |
|
asnRangesMatch |
ASN ranges to match with. |
|
asnRangesNotMatch |
ASN ranges to not match with. |
|
asnListsMatch |
ASN lists to match with. |
|
asnListsNotMatch |
ASN lists to not match with. |
IpRangesMatcher
IpRangesMatcher object.
|
Field |
Description |
|
ipRanges[] |
string List of IP ranges. OR semantics implied. The string length in characters for each value must be greater than 0. The maximum number of elements is 10000. |
GeoIpMatcher
GeoIpMatcher object.
|
Field |
Description |
|
locations[] |
string ISO 3166-1 alpha 2. OR semantics implied. The minimum number of elements is 1. |
AsnRangesMatcher
AsnRangesMatcher object.
|
Field |
Description |
|
asnRanges[] |
string (int64) List of ASN values to match against. OR semantics implied. The maximum number of elements is 10000. Acceptable values are 0 to 4294967295, inclusive. |
CookieMatcher
CookieMatcher object.
|
Field |
Description |
|
name |
string Required field. Name of the cookie parametr. The string length in characters must be 1-255. |
|
value |
Required field. Value of the cookie parametr. |
BotCategoryMatcher
BotCategoryMatcher object. AND semantics implied.
|
Field |
Description |
|
botCategoryListsMatch |
Bot category lists to match with. |
|
botCategoryListsNotMatch |
Bot category lists to not match with. |
BotNameMatcher
BotNameMatcher object. AND semantics implied.
|
Field |
Description |
|
botNameListsMatch |
Bot name lists to match with. |
|
botNameListsNotMatch |
Bot name lists to not match with. |
BotScoreMatcher
BotScoreMatcher object.
|
Field |
Description |
|
value[] |
List of integer matchers for bot score. OR semantics implied. The maximum number of elements is 4. |
IntMatcher
IntMatcher object.
|
Field |
Description |
|
leMatch |
Less than or equal condition. Includes only one of the fields |
|
geMatch |
Greater than or equal condition. Includes only one of the fields |
|
eqMatch |
Equal condition. Includes only one of the fields |
|
neMatch |
Not equal condition. Includes only one of the fields |
IntLEMatcher
IntLEMatcher object.
|
Field |
Description |
|
value |
string (int64) Upper bound value (inclusive). |
IntGEMatcher
IntGEMatcher object.
|
Field |
Description |
|
value |
string (int64) Lower bound value (inclusive). |
IntEQMatcher
IntEQMatcher object.
|
Field |
Description |
|
value |
string (int64) Value to match against. |
IntNEMatcher
IntNEMatcher object.
|
Field |
Description |
|
value |
string (int64) Value to not match against. |
VerifiedBotMatcher
VerifiedBotMatcher object.
|
Field |
Description |
|
verified |
Matches if the bot is verified or not. |
BoolMatcher
BoolMatcher object.
|
Field |
Description |
|
match |
boolean Boolean value to match against. |
FingerPrintMatcher
FingerPrintMatcher object.
|
Field |
Description |
|
ja3Ranges[] |
List of JA3 fingerprint matchers. OR semantics implied. The maximum number of elements is 20. |
|
ja4Ranges[] |
List of JA4 fingerprint matchers. OR semantics implied. The maximum number of elements is 20. |
|
ja3Matcher |
JA3 fingerprint matcher. |
|
ja4Matcher |
JA4 fingerprint matcher. |
ExcludeRules
Determines list of excluded rules.
|
Field |
Description |
|
excludeAll |
boolean Set this option true to exclude all rules. |
|
ruleIds[] |
string List of rules to exclude. |
RequestCondition
|
Field |
Description |
|
paramMatcher |
Matcher for request query parameters. |
|
headerMatcher |
Matcher for request headers. |
|
cookieMatcher |
Matcher for request cookies. |
|
bodyMatcher |
Matcher for request body. |
RequestParamMatcher
|
Field |
Description |
|
paramNames[] |
List of request query parameter names to match. Up to 20 entries. The maximum number of elements is 20. |
StringMatcher
|
Field |
Description |
|
value |
string String value to match against. |
|
caseSensitive |
boolean Whether the match is case sensitive. |
HeaderMatcher
|
Field |
Description |
|
headerNames[] |
List of request header names to match. Up to 20 entries. The maximum number of elements is 20. |
CookieMatcher
|
Field |
Description |
|
cookieNames[] |
List of cookie names to match. Up to 20 entries. The maximum number of elements is 20. |
BodyMatcher
|
Field |
Description |
|
bodyValues[] |
List of request body values to match. Up to 20 entries. The maximum number of elements is 20. |
AnalyzeRequestBody
|
Field |
Description |
|
isEnabled |
boolean Possible to turn analyzer on and turn if off. |
|
sizeLimit |
string (int64) Maximum size of body to pass to analyzer. In kilobytes. |
|
sizeLimitAction |
enum (Action) Action to perform if maximum size of body exceeded.
|
WafProfileRuleSet
|
Field |
Description |
|
coreRuleSet |
Core rule set settings. See Basic rule set for details. Includes only one of the fields |
|
yaRuleSet |
Yandex rule set settings. Includes only one of the fields |
|
mlRuleSet |
Yandex Machine learning rule set settings. Includes only one of the fields |
|
priority |
string (int64) Priority of rule set. Acceptable values are 1 to 999999, inclusive. |
|
isEnabled |
boolean Determines is it rule set enabled or not. |
|
action |
enum (RuleSetAction) Action to perfome on rule set match.
|
WafProfileCoreRuleSet
|
Field |
Description |
|
ruleSet |
Required field. Rule set. |
|
inboundAnomalyScore |
string (int64) Anomaly score. Acceptable values are 2 to 10000, inclusive. |
|
paranoiaLevel |
string (int64) Paranoia level. |
WafProfileYaRuleSet
|
Field |
Description |
|
ruleSet |
Required field. Rule set. |
|
ruleGroups[] |
List of rule groups. |
RuleGroup
|
Field |
Description |
|
id |
string ID of the rule group. |
|
action |
enum (Action) Action to perfome on rule group match.
|
|
inboundAnomalyScore |
string (int64) Anomaly score. Acceptable values are 1 to 10000, inclusive. |
|
isEnabled |
boolean Determines is it rule group enabled or not. |
WafProfileMlRuleSet
|
Field |
Description |
|
ruleSet |
Required field. Rule set. |
|
ruleGroups[] |
List of rule groups. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"description": "string",
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"done": "boolean",
"metadata": "object",
// Includes only one of the fields `error`, `response`
"error": {
"code": "integer",
"message": "string",
"details": [
"object"
]
},
"response": "object"
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
|
Field |
Description |
|
id |
string ID of the operation. |
|
description |
string Description of the operation. 0-256 characters long. |
|
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
|
createdBy |
string ID of the user or service account who initiated the operation. |
|
modifiedAt |
string (date-time) The time when the Operation resource was last modified. String in RFC3339 To work with values in this field, use the APIs described in the |
|
done |
boolean If the value is |
|
metadata |
object Service-specific metadata associated with the operation. |
|
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
|
response |
object The normal response of the operation in case of success. Includes only one of the fields The operation result. |
Status
The error result of the operation in case of failure or cancellation.
|
Field |
Description |
|
code |
integer (int32) Error code. An enum value of google.rpc.Code |
|
message |
string An error message. |
|
details[] |
object A list of messages that carry the error details. |