ip, an address or CIDR), country, asn, device, clientcert), principal, time (a JSON time window),client (cli, mcp, mcp:name=…, browser, api, agent) orapi-key — at one scope. Block beats allow; per dimension the mostmandatorymode: report, withenforceAt), then enforces. Send mode: report to keep it reporting,mode: enforce / enforceNow: true to enforce at once. A teammandatory unless told otherwise.would_lock_you_out with the reasons. Sendforce: true to save it anyway: that needs a fresh step-up (or atotp, or from the browser a password, in this body) and aaccess-rule:write for the account, a device or a resource (and theaccess:write), access-rule:team for a team — which theaccess-rule:write, checked in the route or controller in every mode. Access-rule:write (access-rule:team for a team); the lock-out guard; force needs a step-up.curl --location 'https://api.prod-orm.io/security/access-rules' \
--header 'Content-Type: application/json' \
--data '{
"scopeKind": "account",
"scopeId": "string",
"effect": "allow",
"dimension": "ip",
"value": "string",
"appliesTo": [
"string"
],
"mode": "report",
"enforceNow": true,
"expiresAt": "2019-08-24T14:15:22.123Z",
"note": "string",
"mandatory": true,
"force": true,
"totp": "string",
"password": "pa$$word"
}'{
"rule": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
"scopeKind": "account",
"scopeId": "string",
"scope": {
"kind": "account",
"id": "string"
},
"effect": "allow",
"dimension": "ip",
"value": null,
"appliesTo": [
"string"
],
"mandatory": true,
"mode": "enforce",
"enforceAt": "2019-08-24T14:15:22.123Z",
"note": "string",
"expiresAt": "2019-08-24T14:15:22.123Z",
"enabled": true,
"createdAt": "2019-08-24T14:15:22.123Z",
"createdBy": 0,
"lockdown": true,
"legacy": "blockedIps"
},
"forced": true
}