Fill in a condition and an action. Get a real doorman add command and the equivalent JSON, both accurate to what the CLI actually accepts.
doorman add --name "Block Admin Access" --field path --op pre --value "/admin" --action deny
{
"id": "rule_block_admin_access",
"name": "Block Admin Access",
"conditionGroup": [
{
"conditions": [
{
"type": "path",
"op": "pre",
"value": "/admin"
}
]
}
],
"action": {
"mitigate": {
"action": "deny"
}
},
"active": true
}Need multiple conditions in one rule (AND/OR groups)? A single command line can't do that. Run doorman add --interactive for the guided prompts instead.