policies_bindings_list
GET/api/v3//policies/bindings/
PolicyBinding Viewset
Request
Query Parameters
enabled boolean
order integer
ordering string
Which field to use when ordering the results.
page integer
A page number within the paginated result set.
page_size integer
Number of results to return per page.
policy uuid
policy__isnull boolean
search string
A search term.
target uuid
target_in uuid[]
timeout integer
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
pagination
object
required
results
object[]
required
{
"pagination": {
"next": 0,
"previous": 0,
"count": 0,
"current": 0,
"total_pages": 0,
"start_index": 0,
"end_index": 0
},
"results": [
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"policy": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"group": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"user": 0,
"target": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"negate": true,
"enabled": true,
"order": 0,
"timeout": 0,
"failure_result": true
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
non_field_errors string[]
code string
property name* any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"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/policies/bindings/");
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());