SmartWebSecurity API, REST: SecurityProfile.Create
- HTTP request
- Body parameters
- SecurityRule
- RuleCondition
- 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
- SmartProtection
- Waf
- AnalyzeRequestBody
- Response
- Status
Creates a security profile in the specified folder using the data specified in the request.
HTTP request
POST https://smartwebsecurity.api.cloud.yandex.net/smartwebsecurity/v1/securityProfiles
Body parameters
{
"folderId": "string",
"labels": "object",
"name": "string",
"description": "string",
"defaultAction": "string",
"securityRules": [
{
// Includes only one of the fields `ruleCondition`, `smartProtection`, `waf`
"ruleCondition": {
"action": "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
}
}
}
},
"smartProtection": {
"mode": "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
}
}
}
},
"waf": {
"mode": "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
}
}
},
"wafProfileId": "string"
},
// end of the list of possible fields
"name": "string",
"priority": "string",
"dryRun": "boolean",
"description": "string",
"customPageId": "string"
}
],
"captchaId": "string",
"advancedRateLimiterProfileId": "string",
"analyzeRequestBody": {
"sizeLimit": "string",
"sizeLimitAction": "string"
}
}
|
Field |
Description |
|
folderId |
string Required field. ID of the folder to create a security profile in. |
|
labels |
object (map<string, string>) Labels as |
|
name |
string Required field. Name of the security 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 security profile. |
|
defaultAction |
enum (DefaultAction) Action to perform if none of rules matched.
|
|
securityRules[] |
List of security rules. |
|
captchaId |
string Captcha ID to use with this security profile. Set empty to use default. |
|
advancedRateLimiterProfileId |
string Advanced rate limiter profile ID to use with this security profile. Set empty to use default. |
|
analyzeRequestBody |
Parameters for request body analyzer. |
SecurityRule
A SecurityRule object, see Rules.
|
Field |
Description |
|
ruleCondition |
Rule actions, see Rule actions. Includes only one of the fields |
|
smartProtection |
Smart Protection rule, see Smart Protection rules. Includes only one of the fields |
|
waf |
Web Application Firewall (WAF) rule, see WAF rules. Includes only one of the fields |
|
name |
string Required field. Name of the rule. The name is unique within the security profile. 1-50 characters long. The string length in characters must be 1-50. Value must match the regular expression |
|
priority |
string (int64) Determines the priority for checking the incoming traffic. Acceptable values are 1 to 999999, inclusive. |
|
dryRun |
boolean This mode allows you to test your security profile or a single rule. |
|
description |
string Optional description of the rule. 0-512 characters long. The maximum string length in characters is 512. |
|
customPageId |
string ID of the custom page shown to the user when the rule denies a request. |
RuleCondition
RuleCondition object.
|
Field |
Description |
|
action |
enum (Action) Required field. Action to perform if this rule matched.
|
|
condition |
The condition for matching the rule. |
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. |
SmartProtection
SmartProtection object.
|
Field |
Description |
|
mode |
enum (Mode) Required field. Mode of protection.
|
|
condition |
The condition for matching the rule. |
Waf
Waf object.
|
Field |
Description |
|
mode |
enum (Mode) Required field. Mode of protection.
|
|
condition |
The condition for matching the rule. |
|
wafProfileId |
string Required field. ID of WAF profile to use in this rule. |
AnalyzeRequestBody
|
Field |
Description |
|
sizeLimit |
string (int64) Maximum size of body to pass to analyzer. In kilobytes. |
|
sizeLimitAction |
enum (Action) Required field. Action to perform if maximum size of body exceeded.
|
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. |