Docs
Live demo
GET/api/v2/access-templates
access:readAPI token

Retrieve the latest access template versions with cursor pagination and optional engine filtering

Legacy keys with / were upgraded to - (-2, -3 on collision) while keeping display_name.

Parameters

Query8 optional
cursorstringquery

Opaque pagination cursor returned by the previous page

limitintegerquery

Maximum number of items to return (default: 20, max: 100)

min 1 · max 100 · default 20
enginestringquery

Filter templates by target engine.

postgreskubernetesmysqlclickhousemongodbapplicationssh
engine[]array of stringquery

Filter templates by any of these engines, in addition to engine

searchstringquery

Search template names, engines and descriptions. Every word must match one of them (case-insensitive)

max length 200
sortstringquery

Sort column. Giving search, engine[], sort or group parameters switches the list to the filtered ordering. Without them the list keeps its historical order

nameengineversionupdated
sort_directionstringquery

Sort direction. Defaults to the column direction (version and updated descend)

ascdesc
group_bystringquery

Order rows by this grouping key first, so a client can cut the page stream into groups

engine

Responses

200

OK

ListAccessTemplatesResponse · 4 fields
has_morebooleanrequired

True when another page follows. The list ends when it is false.

itemsarray of AccessTemplateResponserequired
12 fields
bodymap of string → any
created_atstring
default_ttlstring

TTL the rule wizard offers for this template, an ISO 8601 duration.

descriptionstring
enginestring
namestring

Key of the template. Rules, versions and every /access-templates/{name} path refer to the template by it, and a rename never changes it.

display_namestring

Name people see, the same for every version. Equals name until someone renames the template with PATCH /access-templates/{name}.

max_ttlstring

Longest TTL a rule of this template may ask for (L-14), an ISO 8601 duration.

rule_countinteger

How many rules of the caller organization use the template, any version, counted the way a refused delete counts them. Present only in GET, PUT and PATCH /access-templates/{name}.

min 0
future_objects_named_rowFutureObjectsNamedRowResponse

The first row of a PostgreSQL rule or template that names its objects by name or by a name mask while Future objects are on. Future objects reach only a row on every object of its kind in a schema, so the switch reaches none of these objects. Only a rule or template saved before Principal refused such a save carries it, and its next save is refused until Future objects are off or the row covers every object of its kind. A rule carries it in every read. A template only in GET /access-templates/{name} and the version read.

4 fields
objectsstringrequired

The kind of objects of the row, in the plural.

tablessequencesfunctionstypesobjects
databasestring

The database the row names. Absent when the row names none, and always for a template.

schemastring

The schema the row names. Absent when the row names none.

namestringrequired

The object name or name mask of the row.

updated_atstring
versioninteger
next_cursorstring

Opaque cursor of the next page, present only when has_more is true. Send it unchanged as the cursor query parameter with the same filters.

totalinteger

Full number of items that match the request, present only when the list counts them. It is never the size of the page.

Common errors: 400 401 403 429 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close