Skip to content

List the config rules and the stored policies (`policy`).

GET
/v1/policies
curl --request GET \
--url https://ferritor.example.internal:7070/v1/policies
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.

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
Allowed values: config stored
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
Allowed values: loaded sealed unverified

Example

{
"policies": [
{
"source": "config"
}
],
"stored": "loaded"
}

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
Allowed values: invalid_argument unauthenticated permission_denied not_found method_not_allowed version_mismatch live_version no_namespace unknown_profile busy aborted misdirected_request sealed unaudited unknown_kek policy_unverified rate_limited unavailable failed_precondition internal
message
required

For people; may change.

string

Example

{
"error": {
"code": "invalid_argument"
}
}