File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -308,6 +308,7 @@ roleBinding
308308rolebinding
309309rolename
310310rootedfilesystem
311+ rotatekey
311312routingError
312313routingkey
313314rsa
Original file line number Diff line number Diff line change @@ -182,6 +182,38 @@ Admin endpoints are only available to a set of whitelisted users specified in th
182182 curl -H " Authorization: Bearer $token " -X PUT https://HOSTNAME/dataset/verify/my-dataset-01
183183 ```
184184
185+ - ` /dataset/rotatekey/:dataset`
186+ - accepts ` POST` requests with the dataset name as parameter
187+ - Triggers key rotation for all files in the dataset by sending a message to the rotatekey queue for each file.
188+
189+ - Error codes
190+ - ` 200` Key rotation triggered successfully.
191+ - ` 400` Dataset ID not provided.
192+ - ` 401` Token user is not in the list of admins.
193+ - ` 500` Internal error due to DB or MQ failures.
194+
195+ Example:
196+
197+ ` ` ` bash
198+ curl -H " Authorization: Bearer $token " -X POST https://HOSTNAME/dataset/rotatekey/my-dataset-01
199+ ` ` `
200+
201+ - ` /file/rotatekey/:fileid`
202+ - accepts ` POST` requests with the file ID as parameter
203+ - Triggers key rotation for the specified file by sending a message to the rotatekey queue.
204+
205+ - Error codes
206+ - ` 200` Query execute ok.
207+ - ` 400` File ID not provided or message validation failed.
208+ - ` 401` Token user is not in the list of admins.
209+ - ` 500` Internal error due to MQ or DB failures.
210+
211+ Example:
212+
213+ ` ` ` bash
214+ curl -H " Authorization: Bearer $token " -X POST https://HOSTNAME/file/rotatekey/c2acecc6-f208-441c-877a-2670e4cbb040
215+ ` ` `
216+
185217- ` /datasets/list`
186218 - accepts ` GET` requests
187219 - Returns all datasets together with their status and last modified timestamp.
You can’t perform that action at this time.
0 commit comments