policies_bindings_partial_update
PATCH/policies/bindings/:policy_binding_uuid/
PolicyBinding Viewset
Request
Path Parameters
A UUID string identifying this Policy Binding.
- application/json
Body
Negates the outcome of the policy. Messages are unaffected.
Possible values: >= -2147483648
and <= 2147483647
Possible values: <= 2147483647
Timeout after which Policy execution is terminated.
Result if the Policy execution fails.
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Array [
]
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
Possible values: <= 80 characters
Users added to this group will be superusers.
users_obj
object[]
nullable
required
Possible values: <= 150 characters
, Value must match regular expression ^[\w.@+-]+$
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
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
Possible values: <= 80 characters
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
Possible values: <= 2147483647
Timeout after which Policy execution is terminated.
Result if the Policy execution fails.
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"policy": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"group": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"user": 0,
"policy_obj": {
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"execution_logging": true,
"component": "string",
"verbose_name": "string",
"verbose_name_plural": "string",
"meta_model_name": "string",
"bound_to": 0
},
"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-09-27T14:26:18.394Z",
"email": "user@example.com",
"attributes": {},
"uid": "string"
}
],
"attributes": {},
"roles": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"roles_obj": [
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
}
]
},
"user_obj": {
"pk": 0,
"username": "string",
"name": "string",
"is_active": true,
"last_login": "2024-09-27T14:26:18.394Z",
"is_superuser": true,
"groups": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"groups_obj": [
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"num_pk": 0,
"name": "string",
"is_superuser": true,
"parent": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"parent_name": "string",
"attributes": {}
}
],
"email": "user@example.com",
"avatar": "string",
"attributes": {},
"uid": "string",
"path": "string",
"type": "internal",
"uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"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"
}
- application/json
- Schema
- Example (from schema)
Schema
{
"detail": "string",
"code": "string"
}