Error
A valid request URL is required to generate request examples{
"timestamp": "2023-11-07T05:31:56Z",
"status": 404,
"error": "Not Found",
"message": "Not Found.",
"path": "/api/v1/rbac-manager/policies/srn2:policy%23missing"
}{
"timestamp": "2023-11-07T05:31:56Z",
"status": 404,
"error": "Not Found",
"message": "Not Found.",
"path": "/api/v1/rbac-manager/policies/srn2:policy%23missing"
}{
"status": 404,
"error": "Not Found",
"message": "Not Found."
}{
"status": 409,
"error": "Conflict",
"message": "Cannot delete policy as it is attached to 2 roles. Detach the policy from all roles before deleting."
}Policies
Delete a policy
Deletes a policy. Fails if the policy is still attached to any role; detach it first.
DELETE
/
policies
/
{policySrn}
Error
A valid request URL is required to generate request examples{
"timestamp": "2023-11-07T05:31:56Z",
"status": 404,
"error": "Not Found",
"message": "Not Found.",
"path": "/api/v1/rbac-manager/policies/srn2:policy%23missing"
}{
"timestamp": "2023-11-07T05:31:56Z",
"status": 404,
"error": "Not Found",
"message": "Not Found.",
"path": "/api/v1/rbac-manager/policies/srn2:policy%23missing"
}{
"status": 404,
"error": "Not Found",
"message": "Not Found."
}{
"status": 409,
"error": "Conflict",
"message": "Cannot delete policy as it is attached to 2 roles. Detach the policy from all roles before deleting."
}Was this page helpful?

