Version 2.1.1792967583 · latest Download OpenAPI Markdown

Access control lists

Rule sets that allow or block requests by IP/CIDR and other conditions; the platform provides built-in rules and tenants can create their own.

aclsProtectionAuthentication: User (some parameters admin only)6 endpoints

List ACLs

GET/api/v2/acls
Authentication: User (some parameters admin only)

Query parameters

FieldTypeRequiredDescription
pageinteger— Page number, starting from 1
Default 1
page_sizeinteger— Items per page
Default 20
sortstring— Sort fields, comma-separated; prefix `-` for descending, e.g. `-created_at,id`
tenant_idinteger— Admin only: filter by tenant. Ignored for tenant credentials, which only see their own tenant's data
enabledboolean— Filter by enabled state.
namestring— Filter by name substring.
ownerstring— platform = platform objects only; tenant = tenant objects only.
Values ["platform","tenant"]

Create ACL

POST/api/v2/acls
Authentication: User (some parameters admin only)

Request body application/json

FieldTypeRequiredDescription
default_actionstringRequired Action when no rule matches.
Values ["allow","deny"]
desstring— Remark; empty if omitted (omitting it on update also clears it, since the update replaces the whole object).
enabledboolean— Whether enabled
Default true
namestringRequired Name
rulesAclRule[]Required Matched in order; the count is limited by the setting protect.acl_rules_max.
tenant_idinteger— Owning tenant; null = platform object (built-in or created by an admin, read-only for tenants).

Batch enable or disable ACLs

POST/api/v2/acls/batch-enable
Authentication: User (some parameters admin only)

Request body application/json

FieldTypeRequiredDescription
enabledbooleanRequired Whether enabled
Default true
idsinteger[]Required IDs of the objects to change, at most 100.

Get ACL

GET/api/v2/acls/{id}
Authentication: User (some parameters admin only)

Update ACL

PUT/api/v2/acls/{id}
Authentication: User (some parameters admin only)

Request body application/json

FieldTypeRequiredDescription
default_actionstringRequired Action when no rule matches.
Values ["allow","deny"]
desstring— Remark; empty if omitted (omitting it on update also clears it, since the update replaces the whole object).
enabledboolean— Whether enabled
Default true
namestringRequired Name
rulesAclRule[]Required Matched in order; the count is limited by the setting protect.acl_rules_max.
tenant_idinteger— Owning tenant; null = platform object (built-in or created by an admin, read-only for tenants).

Delete ACL

DELETE/api/v2/acls/{id}
Authentication: User (some parameters admin only)

Access control lists object

FieldTypeRequiredDescription
builtinboolean— Built-in object; cannot be deleted.
read-only
created_atstring— Created at
read-only
default_actionstring— Action when no rule matches.
Values ["allow","deny"]
desstring— Remark; empty if omitted (omitting it on update also clears it, since the update replaces the whole object).
enabledboolean— Whether enabled
Default true
errorsFieldError[]— Why each remaining item was not changed; field is /ids/<index>, code as in the single-item update (not_found, readonly and so on).
idinteger— Record ID
read-only
idsinteger[]Required IDs of the objects to change, at most 100.
namestring— Name
rulesAclRule[]— Matched in order; the count is limited by the setting protect.acl_rules_max.
tenant_idinteger— Owning tenant; null = platform object (built-in or created by an admin, read-only for tenants).
read-only
updatedinteger[]— IDs that were set (including those already in the target state), in request order.
updated_atstring— Updated at
read-only