events_rules_retrieve
GET/api/v3//events/rules/:pbm_uuid/
NotificationRule Viewset
Request
Path Parameters
pbm_uuid uuidrequired
A UUID string identifying this Notification Rule.
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
pkuuidrequired
namestringrequired
transportsuuid[]
Select which transports should be used to notify the user. If none are selected, the notification will only be shown in the authentik UI.
severitySeverityEnum (string)
Controls which severity level the created notifications will have.
Possible values: [notice
, warning
, alert
]
groupuuidnullable
Define which group of users this notification should be sent and shown to. If left empty, Notification won't ben sent.
group_obj object
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"transports": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"severity": "notice",
"group": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"group_obj": {
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"num_pk": 0,
"name": "string",
"is_superuser": true,
"parent": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"parent_name": "string",
"users": [
0
],
"users_obj": [
{
"pk": 0,
"username": "string",
"name": "string",
"is_active": true,
"last_login": "2024-07-29T15:51:28.071Z",
"email": "user@example.com",
"attributes": {},
"uid": "string"
}
],
"attributes": {},
"roles": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"roles_obj": [
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
}
]
}
}
- application/json
- Schema
- Example (auto)
Schema
non_field_errorsstring[]
codestring
property name*any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
detailstringrequired
codestring
{
"detail": "string",
"code": "string"
}
Authorization: http
name: authentiktype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "/api/v3/events/rules/:pbm_uuid/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());