blueprints: add FindObject tag

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
Marc 'risson' Schmitt
2024-12-19 15:55:34 +01:00
parent 7763a3673c
commit 906c63c16f
5 changed files with 130 additions and 88 deletions

View File

@ -12,6 +12,7 @@ For VS Code, for example, add these entries to your `settings.json`:
"!Enumerate sequence",
"!Env scalar",
"!Find sequence",
"!FindObject sequence",
"!Format sequence",
"!If sequence",
"!Index scalar",
@ -60,7 +61,22 @@ configure_flow:
]
```
Looks up any model and resolves to the the matches' primary key.
Looks up any model and resolves to the matches' primary key.
First argument is the model to be queried, remaining arguments are expected to be pairs of key=value pairs to query for.
#### `!FindObject` <span class="badge badge--version">authentik 2025.2+</span>
Examples:
```yaml
flow_designation:
!AtIndex [
!FindObject [authentik_flows.flow, [slug, default-password-change]],
designation,
]
```
Looks up any model and resolves to the matches' serialized data.
First argument is the model to be queried, remaining arguments are expected to be pairs of key=value pairs to query for.
#### `!Context`