Skip to content

Get one rule: a stored policy or a config rule (`policy`).

GET
/v1/policies/{name}
curl --request GET \
--url https://ferritor.example.internal:7070/v1/policies/example

A config rule by its config: name.

name
required
string

A stored policy’s name (secret-path rules, may contain /), or config:… for a config rule.

The rule.

Media typeapplication/json

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

Example

{
"source": "config"
}

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"
}
}