You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/automating-quay-using-the-api.adoc
+60-22Lines changed: 60 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,17 @@
2
2
[id="automating-quay-using-the-api"]
3
3
= Automating {productname} processes by using the API
4
4
5
-
With the API, {productname} administrators and users with access to the API can automate repetitive tasks such as repository management or image pruning. The following example shows you how you might use a Python script and a cron job to to automate image pruning.
5
+
With the API, {productname} administrators and users with access to the API can automate repetitive tasks such as repository management or image pruning.
6
+
7
+
The following example shows you how you might use a Python script and a cron job to automate the deletion of OAuth 2 applications _except_ the administrator's token. This might be useful if you want to ensure an application associated with an OAuth 2 access token is cycled after a certain period of time.
6
8
7
9
.Prerequisites
8
10
9
11
* You have access to the {productname} API, which entails having already created an OAuth 2 access token.
10
12
* You have set `BROWSER_API_CALLS_XHR_ONLY: false` in your `config.yaml` file.
11
13
* You have installed the Python `requests` library using.
12
14
* You have enabled cron jobs on your machine.
15
+
* You have created several organization applications, including one that will not be deleted.
0 commit comments