Set policy assignments
Assign (or unassign) policies on up to 100 entities. This endpoint returns a task ID and queues a task in the background to execute the request. Use the task ID to monitor task completion.
- application/json
Request Body
items object[]
Responses
- 202
- default
Success
- application/api.clumio.policy-assignments=v1+json
- Schema
- Example (from schema)
Schema
_links object
- task_id string
The Clumio-assigned ID of the task generated by this request.
{
"_links": {
"_self": {
"href": "string",
"templated": true,
"type": "string"
},
"read-task": {
"href": "string",
"templated": true,
"type": "string"
}
},
"task_id": "string"
}
Error
- application/json
- Schema
- Example (from schema)
Schema
errors object[]
{
"errors": [
{
"error_code": 0,
"error_message": "string"
}
]
}
POST /policies/assignments
Authorization
Request
Request
curl -L -X POST 'https://us-west-2.api.clumio.com/policies/assignments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.policy-assignments=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"items": [
{
"action": "assign",
"entity": {
"id": "string",
"type": "aws_ebs_volume"
},
"policy_id": "string"
}
]
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/policies/assignments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.policy-assignments=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"items": [
{
"action": "assign",
"entity": {
"id": "string",
"type": "aws_ebs_volume"
},
"policy_id": "string"
}
]
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/policies/assignments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.policy-assignments=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"items": [
{
"action": "assign",
"entity": {
"id": "string",
"type": "aws_ebs_volume"
},
"policy_id": "string"
}
]
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/policies/assignments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.policy-assignments=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"items": [
{
"action": "assign",
"entity": {
"id": "string",
"type": "aws_ebs_volume"
},
"policy_id": "string"
}
]
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/policies/assignments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.policy-assignments=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"items": [
{
"action": "assign",
"entity": {
"id": "string",
"type": "aws_ebs_volume"
},
"policy_id": "string"
}
]
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/policies/assignments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.policy-assignments=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"items": [
{
"action": "assign",
"entity": {
"id": "string",
"type": "aws_ebs_volume"
},
"policy_id": "string"
}
]
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/policies/assignments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.policy-assignments=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"items": [
{
"action": "assign",
"entity": {
"id": "string",
"type": "aws_ebs_volume"
},
"policy_id": "string"
}
]
}'