Skip to content

Commit

Permalink
Updates Clair API heading (#1060) (#1063)
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Smith <stevsmit@stevsmit-thinkpadt14gen4.remote.csb>
  • Loading branch information
stevsmit and Steven Smith authored Aug 9, 2024
1 parent 45b0bf1 commit b6dc01e
Show file tree
Hide file tree
Showing 54 changed files with 517 additions and 14 deletions.
2 changes: 1 addition & 1 deletion modules/adding-managing-labels-api.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ $ curl -X POST \
{"label": {"id": "346593fd-18c8-49db-854f-4cb1fb76ff9c", "key": "example-key", "value": "example-value", "source_type": "api", "media_type": "text/plain"}}
----

. You can delete a label using the link:https://docs.redhat.com/en/documentation/red_hat_quay/3/html-single/red_hat_quay_api_guide/index#deletemanifestlabel[]`DELETE /api/v1/repository/{repository}/manifest/{manifestref}/labels/{labelid}`] command:
. You can delete a label using the link:https://docs.redhat.com/en/documentation/red_hat_quay/3/html-single/red_hat_quay_api_guide/index#deletemanifestlabel[`DELETE /api/v1/repository/{repository}/manifest/{manifestref}/labels/{labelid}`] command:
+
[source,terminal]
----
Expand Down
16 changes: 16 additions & 0 deletions modules/api-logs-exportOrgLogs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,19 @@ _optional_|The e-mail address at which to e-mail a link to the exported logs|str
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command
[source,terminal]
----
$ curl -X POST \
-H "Authorization: Bearer <bearer_token>" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"starttime": "<MM/DD/YYYY>",
"endtime": "<MM/DD/YYYY>",
"callback_email": "org.logs@example.com"
}' \
"http://<quay-server.example.com>/api/v1/organization/{orgname}/exportlogs"
----
16 changes: 16 additions & 0 deletions modules/api-logs-exportRepoLogs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,19 @@ _optional_|The e-mail address at which to e-mail a link to the exported logs|str
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command
[source,terminal]
----
$ curl -X POST \
-H "Authorization: Bearer <bearer_token>" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"starttime": "2024-01-01",
"endtime": "2024-06-18",
"callback_url": "http://your-callback-url.example.com"
}' \
"http://<quay-server.example.com>/api/v1/repository/{repository}/exportlogs"
----
16 changes: 16 additions & 0 deletions modules/api-logs-exportUserLogs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,19 @@ _optional_|The e-mail address at which to e-mail a link to the exported logs|str
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command
[source,terminal]
----
$ curl -X POST \
-H "Authorization: Bearer <bearer_token>" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"starttime": "<MM/DD/YYYY>",
"endtime": "<MM/DD/YYYY>",
"callback_email": "your.email@example.com"
}' \
"http://<quay-server.example.com>/api/v1/user/exportlogs"
----
10 changes: 10 additions & 0 deletions modules/api-logs-getAggregateOrgLogs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,13 @@ _optional_|Earliest time for logs. Format: "%m/%d/%Y" in UTC.|string
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command
[source,terminal]
----
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
-H "Accept: application/json" \
"<quay-server.example.com>/api/v1/organization/{orgname}/aggregatelogs"
----
10 changes: 10 additions & 0 deletions modules/api-logs-getAggregateRepoLogs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,13 @@ _optional_|Earliest time for logs. Format: "%m/%d/%Y" in UTC.|string
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command
[source,terminal]
----
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
-H "Accept: application/json" \
"<quay-server.example.com>/api/v1/repository/<repository_name>/<namespace>/aggregatelogs?starttime=2024-01-01&endtime=2024-06-18""
----
10 changes: 10 additions & 0 deletions modules/api-logs-getAggregateUserLogs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,13 @@ _optional_|Earliest time for logs. Format: "%m/%d/%Y" in UTC.|string
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command
[source,terminal]
----
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
-H "Accept: application/json" \
"<quay-server.example.com>/api/v1/user/aggregatelogs?performer=<username>&starttime=<MM/DD/YYYY>&endtime=<MM/DD/YYYY>"
----
10 changes: 10 additions & 0 deletions modules/api-logs-listOrgLogs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,13 @@ _optional_|Earliest time for logs. Format: "%m/%d/%Y" in UTC.|string
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command
[source,terminal]
----
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
-H "Accept: application/json" \
"http://<quay-server.example.com>/api/v1/organization/{orgname}/logs"
----
10 changes: 10 additions & 0 deletions modules/api-logs-listRepoLogs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,13 @@ _optional_|Earliest time for logs. Format: "%m/%d/%Y" in UTC.|string
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command
[source,terminal]
----
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
-H "Accept: application/json" \
"http://<quay-server.example.com>/api/v1/repository/{repository}/logs"
----
7 changes: 7 additions & 0 deletions modules/api-logs-listUserLogs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,10 @@ _optional_|Earliest time for logs. Format: "%m/%d/%Y" in UTC.|string
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command
[source,terminal]
----
$ curl -X GET -H "Authorization: Bearer lfV4lVf9qRsyoFnrgEno1umIOrsdp8lPyMnfUDYY" -H "Accept: application/json" "quay-server.example.com/api/v1/user/logs"
----
15 changes: 15 additions & 0 deletions modules/api-manifest-addManifestLabel.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,18 @@ _required_|The media type for this label|
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command
[source,terminal]
----
$ curl -X POST \
-H "Authorization: Bearer <bearer_token>" \
-H "Content-Type: application/json" \
--data '{
"key": "<key>",
"value": "<value>",
"media_type": "<media_type>"
}' \
https://<quay-server.example.com>/api/v1/repository/<repository>/manifest/<manifestref>/labels
----
9 changes: 9 additions & 0 deletions modules/api-manifest-deleteManifestLabel.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,12 @@ _required_|The ID of the label|string
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command
[source,terminal]
----
$ curl -X DELETE \
-H "Authorization: Bearer <bearer_token>" \
https://<quay-server.example.com>/api/v1/repository/<repository>/manifest/<manifestref>/labels/<labelid>
----
10 changes: 10 additions & 0 deletions modules/api-manifest-getManifestLabel.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,13 @@ _required_|The ID of the label|string
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command
[source,terminal]
----
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
-H "Accept: application/json" \
https://<quay-server.example.com>/api/v1/repository/<repository>/manifest/<manifestref>/labels/<label_id>
----
10 changes: 10 additions & 0 deletions modules/api-manifest-getRepoManifest.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,13 @@ _required_|The digest of the manifest|string
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command
[source,terminal]
----
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
-H "Accept: application/json" \
https://<quay-server.example.com>/api/v1/repository/<repository>/manifest/<manifestref>
----
10 changes: 10 additions & 0 deletions modules/api-manifest-listManifestLabels.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,13 @@ _optional_|If specified, only labels matching the given prefix will be returned|
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command
[source,terminal]
----
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
-H "Accept: application/json" \
https://<quay-server.example.com>/api/v1/repository/<repository>/manifest/<manifestref>/labels
----
10 changes: 10 additions & 0 deletions modules/api-organization-deleteAdminedOrganization.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,13 @@ _required_|The name of the organization|string
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command

[source,terminal]
----
$ curl -X GET \
-H "Authorization: Bearer lfV4lVf9qRsyoFnrgEno1umIOrsdp8lPyMnfUDYY" \
"<quay-server.example.com>/api/v1/organization/<organization_name>"
----
12 changes: 12 additions & 0 deletions modules/api-permission-changeUserPermissions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,15 @@ _required_|Role to use for the user|string
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command

[source,terminal]
----
$ curl -X PUT \
-H "Authorization: Bearer <bearer_token>" \
-H "Content-Type: application/json" \
-d '{"role": "admin"}' \
https://<quay-server.example.com>/api/v1/repository/<namespace>/<repository>/permissions/user/<username>
----
10 changes: 10 additions & 0 deletions modules/api-permission-deleteUserPermissions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,13 @@ _required_|The full path of the repository. e.g. namespace/name|string
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command
[source,terminal]
----
$ curl -X DELETE \
-H "Authorization: Bearer <bearer_token>" \
-H "Accept: application/json" \
https://<quay-server.example.com>/api/v1/repository/<namespace>/<repository>/permissions/user/<username>
----
11 changes: 11 additions & 0 deletions modules/api-permission-listRepoUserPermissions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,14 @@ _required_|The full path of the repository. e.g. namespace/name|string
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command

[source,terminal]
----
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
-H "Accept: application/json" \
https://<quay-server.example.com>/api/v1/repository/<namespace>/<repository>/permissions/user/<username>/
----
17 changes: 17 additions & 0 deletions modules/api-prototype-createOrganizationPrototypePermission.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,20 @@ _required_|Information about the user or team to which the rule grants access|ob
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command

[source,terminal]
----
$ curl -X POST -H "Authorization: Bearer <bearer_token>" -H "Content-Type: application/json" --data '{
"role": "<admin_read_or_write>",
"delegate": {
"name": "<username>",
"kind": "user"
},
"activating_user": {
"name": "<robot_name>"
}
}' https://<quay-server.example.com>/api/v1/organization/<organization_name>/prototypes
----
10 changes: 10 additions & 0 deletions modules/api-prototype-deleteOrganizationPrototypePermission.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,13 @@ _required_|The name of the organization|string
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command
[source,terminal]
----
curl -X DELETE \
-H "Authorization: Bearer <bearer_token>" \
-H "Accept: application/json" \
https://<quay-server.example.com>/api/v1/organization/<organization_name>/prototypes/<prototype_id>
----
11 changes: 11 additions & 0 deletions modules/api-prototype-getOrganizationPrototypePermissions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,14 @@ _required_|The name of the organization|string
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command

[source,terminal]
----
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
-H "Accept: application/json" \
https://<quay-server.example.com>/api/v1/organization/<organization_name>/prototypes
----
13 changes: 13 additions & 0 deletions modules/api-prototype-updateOrganizationPrototypePermission.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,16 @@ _optional_|Role that should be applied to the permission|string
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command
[source,terminal]
----
$ curl -X PUT \
-H "Authorization: Bearer <bearer_token>" \
-H "Content-Type: application/json" \
--data '{
"role": "write"
}' \
https://<quay-server.example.com>/api/v1/organization/<organization_name>/prototypes/<prototypeid>
----
8 changes: 8 additions & 0 deletions modules/api-repository-deleteRepository.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,11 @@ _required_|The full path of the repository. e.g. namespace/name|string
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command

[source,terminal]
----
$ curl -X DELETE -H "Authorization: Bearer <bearer_token>" "quay-server.example.com/api/v1/repository/<namespace>/<repository_name>"
----
8 changes: 8 additions & 0 deletions modules/api-repository-getRepo.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,11 @@ _optional_|Whether to include action statistics|boolean
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

[discrete]
== Example command

[source,terminal]
----
$ curl -X GET -H "Authorization: Bearer <bearer_token>" "quay-server.example.com/api/v1/repository/<namespace>/<repository_name>"
----
Loading

0 comments on commit b6dc01e

Please sign in to comment.