List the config rules and the stored policies (`policy`).
GET
/v1/policies
const url = 'https://ferritor.example.internal:7070/v1/policies';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://ferritor.example.internal:7070/v1/policiesAuthorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”identity
string
Only the rules naming this identity (patterns covering it
included), or this exact <prefix>/* pattern.
page_size
integer format: int32
0 or absent: 100; capped at 1000.
page_token
string
The previous page’s next_page_token.
Responses
Section titled “Responses”One page, by name.
Media typeapplication/json
object
next_page_token
required
Empty when there’s no next page.
string
policies
required
Array<object>
A rule as listed or read.
object
actions
required
Action names (a config rule may hold admin actions).
Array<string>
all_paths
required
boolean
created_at
string format: date-time
description
required
string
identity
required
The <name> of a ferritor://<name> identity, or <prefix>/*.
string
name
required
Stored: its name. Config: config:<name>, or config:<n> by
position.
string
paths
required
Array<string>
source
required
Where a rule comes from.
string
updated_at
string format: date-time
version
Stored policies only.
integer format: int32
revision
The stored set’s revision, when loaded.
integer format: int64
stored
required
Whether the stored policies are in force (listed) on this server.
string
Example
{ "policies": [ { "source": "config" } ], "stored": "loaded"}default
Section titled “default”An error: see error.code.
Media typeapplication/json
Every error’s body.
object
error
required
object
code
required
Match on this, never on the message.
string
message
required
For people; may change.
string
Example
{ "error": { "code": "invalid_argument" }}