Search for lockers using filters
- Updated: 2020/05/12
Search for lockers using filters
This example shows how to use this URL to return a list of lockers where the user has owner permission.
Prerequisites
Note:
- Use the Swagger definition files installed with your Control Room to test the APIs. View the available Swagger APIs at
http://<your_control_room_url>/swagger/
. - You can also use a REST client to complete this task.
Procedure
Note: You can also run REST requests from a command terminal. The following is a curl request
example. This example is formatted for readability. Replace the text inside the
angle brackets,
<authentication_token>
, with your authentication
token.curl -X POST "<your_control_room_url>/v2/credentialvault/lockers/list" -H "accept: application/json"
-H "X-Authorization: <authentication_token>" -H "Content-Type: application/json"
-d "{
\"fields\": [],
\"filter\": {
\"field\": \"permissions\",
\"value\": \"owner\"
},
\"sort\": [],
\"page\": {}
}"