policies_bindings_list
GET/policies/bindings/
PolicyBinding Viewset
Request
Query Parameters
Which field to use when ordering the results.
A page number within the paginated result set.
Number of results to return per page.
A search term.
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
Array [
]
]
pagination
object
required
results
object[]
required
policy_obj
object
required
Policy Serializer
When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
Get object component so that we know how to edit the object
Return object's verbose_name
Return object's plural verbose_name
Return internal model name
Return objects policy is bound to
group_obj
object
required
Group Serializer
Users added to this group will be superusers.
users_obj
object[]
nullable
required
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
Possible values: <= 150 characters
, Value must match regular expression ^[\w.@+-]+$
User's display name.
Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
Possible values: <= 254 characters
roles_obj
object[]
required
Possible values: <= 150 characters
user_obj
object
required
User Serializer
Possible values: <= 150 characters
User's display name.
Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
groups_obj
object[]
nullable
required
Get a numerical, int32 ID for the group
Users added to this group will be superusers.
Possible values: <= 254 characters
User's avatar, either a http/https URL or a data URI
Possible values: [internal
, external
, service_account
, internal_service_account
]
Negates the outcome of the policy. Messages are unaffected.
Possible values: >= -2147483648
and <= 2147483647
Timeout after which Policy execution is terminated.
Possible values: <= 2147483647
Result if the Policy execution fails.
{
"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
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
{
"detail": "string",
"code": "string"
}