Remove secret vaults from an access policy
DELETE/api/v1/AccessControlPolicy/:policyId/SecretVault
Removes the listed secret vaults from the access policy. The response is the number of listed secret vaults that exist and were processed. The access policy must be a credential access policy. The server reads the list from the request body of this DELETE request, so the body is required. Some HTTP clients and API tools drop the body of a DELETE request; check that yours sends it.
Permission required: Administrator role.
Caution: The removal takes effect immediately; to undo it, add the secret vaults to the access policy again.
Request
Responses
- 200
- 400
- 403
- 404
Returns the number of secret vaults processed. A vault that existed but was not attached to the policy is still counted.
The list is missing or empty, no vaults were removed (for example none of the IDs matched a secret vault, or the access policy is not a credential policy), or the call failed.
The signed-in user does not have the required role or permission.
The access policy does not exist.