curl --request GET \
--url https://use.hoop.dev/api/ai/session-analyzer/rules/{name}{
"connection_names": [
"pgdemo",
"mysql-prod"
],
"created_at": "2024-07-25T15:56:35.317601Z",
"description": "Blocks high-risk SQL commands",
"id": "15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7",
"name": "block-dangerous-queries",
"risk_evaluation": {
"high_risk_action": "block_execution",
"low_risk_action": "allow_execution",
"medium_risk_action": "allow_execution"
},
"updated_at": "2024-07-25T15:56:35.317601Z"
}Get an AI session analyzer rule by name
curl --request GET \
--url https://use.hoop.dev/api/ai/session-analyzer/rules/{name}{
"connection_names": [
"pgdemo",
"mysql-prod"
],
"created_at": "2024-07-25T15:56:35.317601Z",
"description": "Blocks high-risk SQL commands",
"id": "15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7",
"name": "block-dangerous-queries",
"risk_evaluation": {
"high_risk_action": "block_execution",
"low_risk_action": "allow_execution",
"medium_risk_action": "allow_execution"
},
"updated_at": "2024-07-25T15:56:35.317601Z"
}The name of the resource
OK
Connection names this rule applies to
["pgdemo", "mysql-prod"]The time the resource was created
"2024-07-25T15:56:35.317601Z"
Optional description
"Blocks high-risk SQL commands"
The resource identifier
"15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7"
Unique name for the rule
"block-dangerous-queries"
Risk evaluation actions per level
Show child attributes
The time the resource was updated
"2024-07-25T15:56:35.317601Z"
Was this page helpful?