Download OpenAPI specification:Download
Rules APIs provided by Detection and Response services are used to CRUD rules
Creates a new recommendation rule. Returns the rule_id
used to reference the rule in subsequent requests, along with the rule data.
Rules created and stored successfully
Bad request
Invalid authentication
Invalid authorization (e.g, unauthorized resource)
Unique field collision
Rate limit reached
Internal error
{- "name": "Block risky countries",
- "priority": 10,
- "recommendation": "challenge",
- "enabled": false,
- "mode": "preview",
- "type": "risk",
- "description": "string",
- "matchers": [
- {
- "ip_cidrs": {
- "op": "ip_in",
- "value": [
- "string"
]
}, - "device_ids": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_fingerprints": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_public_keys": {
- "op": "in",
- "value": [
- "string"
]
}, - "user_ids": {
- "op": "in",
- "value": [
- "string"
]
}, - "country_codes": {
- "op": "in",
- "value": [
- "string"
]
}, - "browser_names": {
- "op": "in",
- "value": [
- "string"
]
}, - "os_versions": {
- "op": "in",
- "value": [
- "string"
]
}, - "action_type": {
- "op": "in",
- "value": [
- "string"
]
}, - "client_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "application_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "asn_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "organization_name": {
- "op": "in",
- "value": [
- "string"
]
}, - "organization_type": {
- "op": "in",
- "value": [
- "string"
]
}, - "ip_timezone": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_timezone": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_platform": {
- "op": "in",
- "value": [
- "string"
]
}, - "user_agent": {
- "op": "contains",
- "value": [
- "string"
]
}, - "location": {
- "op": "contains",
- "value": [
- "string"
]
}
}
]
}
{- "message": "string",
- "rule_id": "728c1541-d6d1-4290-9a53-cdf01dd32d60",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Block risky countries",
- "priority": 10,
- "recommendation": "challenge",
- "enabled": false,
- "mode": "preview",
- "type": "risk",
- "description": "string",
- "matchers": [
- {
- "ip_cidrs": {
- "op": "ip_in",
- "value": [
- "string"
]
}, - "device_ids": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_fingerprints": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_public_keys": {
- "op": "in",
- "value": [
- "string"
]
}, - "user_ids": {
- "op": "in",
- "value": [
- "string"
]
}, - "country_codes": {
- "op": "in",
- "value": [
- "string"
]
}, - "browser_names": {
- "op": "in",
- "value": [
- "string"
]
}, - "os_versions": {
- "op": "in",
- "value": [
- "string"
]
}, - "action_type": {
- "op": "in",
- "value": [
- "string"
]
}, - "client_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "application_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "asn_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "organization_name": {
- "op": "in",
- "value": [
- "string"
]
}, - "organization_type": {
- "op": "in",
- "value": [
- "string"
]
}, - "ip_timezone": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_timezone": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_platform": {
- "op": "in",
- "value": [
- "string"
]
}, - "user_agent": {
- "op": "contains",
- "value": [
- "string"
]
}, - "location": {
- "op": "contains",
- "value": [
- "string"
]
}
}
], - "created_date": "2019-08-24",
- "updated_date": "2019-08-24"
}
}
Retrieves a list of all recommendation rules
Rules retrieved successfully
Bad request
Invalid authentication
Invalid authorization (e.g, unauthorized resource)
Rate limit reached
Internal error
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Block risky countries",
- "priority": 10,
- "recommendation": "challenge",
- "enabled": false,
- "mode": "preview",
- "type": "risk",
- "description": "string",
- "matchers": [
- {
- "ip_cidrs": {
- "op": "ip_in",
- "value": [
- "string"
]
}, - "device_ids": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_fingerprints": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_public_keys": {
- "op": "in",
- "value": [
- "string"
]
}, - "user_ids": {
- "op": "in",
- "value": [
- "string"
]
}, - "country_codes": {
- "op": "in",
- "value": [
- "string"
]
}, - "browser_names": {
- "op": "in",
- "value": [
- "string"
]
}, - "os_versions": {
- "op": "in",
- "value": [
- "string"
]
}, - "action_type": {
- "op": "in",
- "value": [
- "string"
]
}, - "client_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "application_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "asn_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "organization_name": {
- "op": "in",
- "value": [
- "string"
]
}, - "organization_type": {
- "op": "in",
- "value": [
- "string"
]
}, - "ip_timezone": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_timezone": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_platform": {
- "op": "in",
- "value": [
- "string"
]
}, - "user_agent": {
- "op": "contains",
- "value": [
- "string"
]
}, - "location": {
- "op": "contains",
- "value": [
- "string"
]
}
}
], - "created_date": "2019-08-24",
- "updated_date": "2019-08-24"
}
]
}
Retrieves a specific recommendation rule by its ID
Rule retrieved successfully
Bad request
Invalid authentication
Invalid authorization (e.g, unauthorized resource)
Not found
Rate limit reached
Internal error
{- "id": "string",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Block risky countries",
- "priority": 10,
- "recommendation": "challenge",
- "enabled": false,
- "mode": "preview",
- "type": "risk",
- "description": "string",
- "matchers": [
- {
- "ip_cidrs": {
- "op": "ip_in",
- "value": [
- "string"
]
}, - "device_ids": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_fingerprints": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_public_keys": {
- "op": "in",
- "value": [
- "string"
]
}, - "user_ids": {
- "op": "in",
- "value": [
- "string"
]
}, - "country_codes": {
- "op": "in",
- "value": [
- "string"
]
}, - "browser_names": {
- "op": "in",
- "value": [
- "string"
]
}, - "os_versions": {
- "op": "in",
- "value": [
- "string"
]
}, - "action_type": {
- "op": "in",
- "value": [
- "string"
]
}, - "client_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "application_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "asn_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "organization_name": {
- "op": "in",
- "value": [
- "string"
]
}, - "organization_type": {
- "op": "in",
- "value": [
- "string"
]
}, - "ip_timezone": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_timezone": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_platform": {
- "op": "in",
- "value": [
- "string"
]
}, - "user_agent": {
- "op": "contains",
- "value": [
- "string"
]
}, - "location": {
- "op": "contains",
- "value": [
- "string"
]
}
}
], - "created_date": "2019-08-24",
- "updated_date": "2019-08-24"
}
}
Updates a specific recommendation rule
Rule updated successfully
Bad request
Invalid authentication
Invalid authorization (e.g, unauthorized resource)
Not found
Rate limit reached
Internal error
{- "name": "Block risky countries",
- "priority": 10,
- "recommendation": "challenge",
- "enabled": false,
- "mode": "preview",
- "type": "risk",
- "description": "string",
- "matchers": [
- {
- "ip_cidrs": {
- "op": "ip_in",
- "value": [
- "string"
]
}, - "device_ids": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_fingerprints": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_public_keys": {
- "op": "in",
- "value": [
- "string"
]
}, - "user_ids": {
- "op": "in",
- "value": [
- "string"
]
}, - "country_codes": {
- "op": "in",
- "value": [
- "string"
]
}, - "browser_names": {
- "op": "in",
- "value": [
- "string"
]
}, - "os_versions": {
- "op": "in",
- "value": [
- "string"
]
}, - "action_type": {
- "op": "in",
- "value": [
- "string"
]
}, - "client_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "application_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "asn_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "organization_name": {
- "op": "in",
- "value": [
- "string"
]
}, - "organization_type": {
- "op": "in",
- "value": [
- "string"
]
}, - "ip_timezone": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_timezone": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_platform": {
- "op": "in",
- "value": [
- "string"
]
}, - "user_agent": {
- "op": "contains",
- "value": [
- "string"
]
}, - "location": {
- "op": "contains",
- "value": [
- "string"
]
}
}
]
}
{- "message": "string",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Block risky countries",
- "priority": 10,
- "recommendation": "challenge",
- "enabled": false,
- "mode": "preview",
- "type": "risk",
- "description": "string",
- "matchers": [
- {
- "ip_cidrs": {
- "op": "ip_in",
- "value": [
- "string"
]
}, - "device_ids": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_fingerprints": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_public_keys": {
- "op": "in",
- "value": [
- "string"
]
}, - "user_ids": {
- "op": "in",
- "value": [
- "string"
]
}, - "country_codes": {
- "op": "in",
- "value": [
- "string"
]
}, - "browser_names": {
- "op": "in",
- "value": [
- "string"
]
}, - "os_versions": {
- "op": "in",
- "value": [
- "string"
]
}, - "action_type": {
- "op": "in",
- "value": [
- "string"
]
}, - "client_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "application_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "asn_id": {
- "op": "in",
- "value": [
- "string"
]
}, - "organization_name": {
- "op": "in",
- "value": [
- "string"
]
}, - "organization_type": {
- "op": "in",
- "value": [
- "string"
]
}, - "ip_timezone": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_timezone": {
- "op": "in",
- "value": [
- "string"
]
}, - "device_platform": {
- "op": "in",
- "value": [
- "string"
]
}, - "user_agent": {
- "op": "contains",
- "value": [
- "string"
]
}, - "location": {
- "op": "contains",
- "value": [
- "string"
]
}
}
], - "created_date": "2019-08-24",
- "updated_date": "2019-08-24"
}
}
Deletes a specific recommendation rule. Note that you can also disable rules if needed using the enabled rule attribute.
Rule updated successfully
Bad request
Invalid authentication
Invalid authorization (e.g, unauthorized resource)
Not found
Rate limit reached
Internal error
{- "message": "string"
}