Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 22. robot
Manage user and organization robot accounts.
22.1. getUserRobots Link kopierenLink in die Zwischenablage kopiert!
List the available robots for the user.
22.1.1. GET /api/v1/user/robots Link kopierenLink in die Zwischenablage kopiert!
Authorizations: oauth2_implicit (user:admin)
22.1.2. Query parameters Link kopierenLink in die Zwischenablage kopiert!
| Type | Name | Description | Schema |
|---|---|---|---|
| query | limit optional | If specified, the number of robots to return. | integer |
| query | token optional | If false, the robot’s token is not returned. | boolean |
| query | permissions optional | Whether to include repositories and teams in which the robots have permission. | boolean |
22.1.3. Responses Link kopierenLink in die Zwischenablage kopiert!
22.1.4. Example command Link kopierenLink in die Zwischenablage kopiert!
$ curl -X GET "https://quay-server.example.com/api/v1/user/robots?limit=10&token=false&permissions=true" \
-H "Authorization: Bearer <your_access_token>"
22.2. getOrgRobotPermissions Link kopierenLink in die Zwischenablage kopiert!
Returns the list of repository permissions for the org’s robot.
22.2.1. GET /api/v1/organization/{orgname}/robots/{robot_shortname}/permissions Link kopierenLink in die Zwischenablage kopiert!
Authorizations: oauth2_implicit (user:admin)
22.2.2. Path parameters Link kopierenLink in die Zwischenablage kopiert!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | robot_shortname required | The short name for the robot, without any user or organization prefix | string |
| path | orgname required | The name of the organization | string |
22.2.3. Responses Link kopierenLink in die Zwischenablage kopiert!
22.2.4. Example command Link kopierenLink in die Zwischenablage kopiert!
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
"https://quay-server.example.com/api/v1/organization/<ORGNAME>/robots/<ROBOT_SHORTNAME>/permissions"
22.3. regenerateOrgRobotToken Link kopierenLink in die Zwischenablage kopiert!
Regenerates the token for an organization robot.
22.3.1. POST /api/v1/organization/{orgname}/robots/{robot_shortname}/regenerate Link kopierenLink in die Zwischenablage kopiert!
Authorizations: oauth2_implicit (org:admin)
22.3.2. Path parameters Link kopierenLink in die Zwischenablage kopiert!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | robot_shortname required | The short name for the robot, without any user or organization prefix | string |
| path | orgname required | The name of the organization | string |
22.3.3. Responses Link kopierenLink in die Zwischenablage kopiert!
22.3.4. Example command Link kopierenLink in die Zwischenablage kopiert!
$ curl -X POST \
-H "Authorization: Bearer <bearer_token>" \
"<quay-server.example.com>/api/v1/organization/<orgname>/robots/<robot_shortname>/regenerate"
22.4. getUserRobotPermissions Link kopierenLink in die Zwischenablage kopiert!
Returns the list of repository permissions for the user’s robot.
22.4.1. GET /api/v1/user/robots/{robot_shortname}/permissions Link kopierenLink in die Zwischenablage kopiert!
Authorizations: oauth2_implicit (user:admin)
22.4.2. Path parameters Link kopierenLink in die Zwischenablage kopiert!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | robot_shortname required | The short name for the robot, without any user or organization prefix | string |
22.4.3. Responses Link kopierenLink in die Zwischenablage kopiert!
22.4.4. Example command Link kopierenLink in die Zwischenablage kopiert!
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
"https://quay-server.example.com/api/v1/user/robots/<ROBOT_SHORTNAME>/permissions"
22.5. regenerateUserRobotToken Link kopierenLink in die Zwischenablage kopiert!
Regenerates the token for a user’s robot.
22.5.1. POST /api/v1/user/robots/{robot_shortname}/regenerate Link kopierenLink in die Zwischenablage kopiert!
Authorizations: oauth2_implicit (user:admin)
22.5.2. Path parameters Link kopierenLink in die Zwischenablage kopiert!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | robot_shortname required | The short name for the robot, without any user or organization prefix | string |
22.5.3. Responses Link kopierenLink in die Zwischenablage kopiert!
22.5.4. Example command Link kopierenLink in die Zwischenablage kopiert!
$ curl -X POST \
-H "Authorization: Bearer <bearer_token>" \
"<quay-server.example.com>/api/v1/user/robots/<robot_shortname>/regenerate"
22.6. getOrgRobot Link kopierenLink in die Zwischenablage kopiert!
Returns the organization’s robot with the specified name.
22.6.1. GET /api/v1/organization/{orgname}/robots/{robot_shortname} Link kopierenLink in die Zwischenablage kopiert!
Authorizations: oauth2_implicit (org:admin)
22.6.2. Path parameters Link kopierenLink in die Zwischenablage kopiert!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | robot_shortname required | The short name for the robot, without any user or organization prefix | string |
| path | orgname required | The name of the organization | string |
22.6.3. Responses Link kopierenLink in die Zwischenablage kopiert!
22.6.4. Example command Link kopierenLink in die Zwischenablage kopiert!
curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
"https://quay-server.example.com/api/v1/organization/<ORGNAME>/robots/<ROBOT_SHORTNAME>"
22.7. createOrgRobot Link kopierenLink in die Zwischenablage kopiert!
Create a new robot in the organization.
22.7.1. PUT /api/v1/organization/{orgname}/robots/{robot_shortname} Link kopierenLink in die Zwischenablage kopiert!
Authorizations: oauth2_implicit (org:admin)
22.7.2. Path parameters Link kopierenLink in die Zwischenablage kopiert!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | robot_shortname required | The short name for the robot, without any user or organization prefix | string |
| path | orgname required | The name of the organization | string |
22.7.3. Request body schema (application/json) Link kopierenLink in die Zwischenablage kopiert!
Optional data for creating a robot
| Name | Description | Schema |
|---|---|---|
| description optional | Optional text description for the robot | string |
| unstructured_metadata optional | Optional unstructured metadata for the robot | object |
22.7.4. Responses Link kopierenLink in die Zwischenablage kopiert!
22.7.5. Example command Link kopierenLink in die Zwischenablage kopiert!
$ curl -X PUT -H "Authorization: Bearer <bearer_token>" "https://<quay-server.example.com>/api/v1/organization/<organization_name>/robots/<robot_name>"
22.8. deleteOrgRobot Link kopierenLink in die Zwischenablage kopiert!
Delete an existing organization robot.
22.8.1. DELETE /api/v1/organization/{orgname}/robots/{robot_shortname} Link kopierenLink in die Zwischenablage kopiert!
Authorizations: oauth2_implicit (org:admin)
22.8.2. Path parameters Link kopierenLink in die Zwischenablage kopiert!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | robot_shortname required | The short name for the robot, without any user or organization prefix | string |
| path | orgname required | The name of the organization | string |
22.8.3. Responses Link kopierenLink in die Zwischenablage kopiert!
22.8.4. Example command Link kopierenLink in die Zwischenablage kopiert!
curl -X DELETE \
-H "Authorization: Bearer <bearer_token>" \
"<quay-server.example.com>/api/v1/organization/<organization_name>/robots/<robot_shortname>"
22.9. getOrgRobots Link kopierenLink in die Zwischenablage kopiert!
List the organization’s robots.
22.9.1. GET /api/v1/organization/{orgname}/robots Link kopierenLink in die Zwischenablage kopiert!
Authorizations: oauth2_implicit (org:admin)
22.9.2. Path parameters Link kopierenLink in die Zwischenablage kopiert!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | orgname required | The name of the organization | string |
22.9.3. Query parameters Link kopierenLink in die Zwischenablage kopiert!
| Type | Name | Description | Schema |
|---|---|---|---|
| query | limit optional | If specified, the number of robots to return. | integer |
| query | token optional | If false, the robot’s token is not returned. | boolean |
| query | permissions optional | Whether to include repositories and teams in which the robots have permission. | boolean |
22.9.4. Responses Link kopierenLink in die Zwischenablage kopiert!
22.9.5. Example command Link kopierenLink in die Zwischenablage kopiert!
$ curl -X GET -H "Authorization: Bearer <bearer_token>" "https://<quay-server.example.com>/api/v1/organization/<organization_name>/robots"
22.10. getUserRobot Link kopierenLink in die Zwischenablage kopiert!
Returns the user’s robot with the specified name.
22.10.1. GET /api/v1/user/robots/{robot_shortname} Link kopierenLink in die Zwischenablage kopiert!
Authorizations: oauth2_implicit (user:admin)
22.10.2. Path parameters Link kopierenLink in die Zwischenablage kopiert!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | robot_shortname required | The short name for the robot, without any user or organization prefix | string |
22.10.3. Responses Link kopierenLink in die Zwischenablage kopiert!
22.10.4. Example command Link kopierenLink in die Zwischenablage kopiert!
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
"<quay-server.example.com>/api/v1/user/robots/<robot_shortname>"
22.11. createUserRobot Link kopierenLink in die Zwischenablage kopiert!
Create a new user robot with the specified name.
22.11.1. PUT /api/v1/user/robots/{robot_shortname} Link kopierenLink in die Zwischenablage kopiert!
Authorizations: oauth2_implicit (user:admin)
22.11.2. Path parameters Link kopierenLink in die Zwischenablage kopiert!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | robot_shortname required | The short name for the robot, without any user or organization prefix | string |
22.11.3. Request body schema (application/json) Link kopierenLink in die Zwischenablage kopiert!
Optional data for creating a robot
| Name | Description | Schema |
|---|---|---|
| description optional | Optional text description for the robot | string |
| unstructured_metadata optional | Optional unstructured metadata for the robot | object |
22.11.4. Responses Link kopierenLink in die Zwischenablage kopiert!
22.11.5. Example command Link kopierenLink in die Zwischenablage kopiert!
$ curl -X PUT -H "Authorization: Bearer <bearer_token>" "https://<quay-server.example.com>/api/v1/user/robots/<robot_name>"
22.12. deleteUserRobot Link kopierenLink in die Zwischenablage kopiert!
Delete an existing robot.
22.12.1. DELETE /api/v1/user/robots/{robot_shortname} Link kopierenLink in die Zwischenablage kopiert!
Authorizations: oauth2_implicit (user:admin)
22.12.2. Path parameters Link kopierenLink in die Zwischenablage kopiert!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | robot_shortname required | The short name for the robot, without any user or organization prefix | string |
22.12.3. Responses Link kopierenLink in die Zwischenablage kopiert!
22.12.4. Example command Link kopierenLink in die Zwischenablage kopiert!
$ curl -X DELETE \
-H "Authorization: Bearer <bearer_token>" \
"<quay-server.example.com>/api/v1/user/robots/<robot_shortname>"
22.13. getOrgRobotFederation Link kopierenLink in die Zwischenablage kopiert!
Manage federation configuration for a robot account within an organization.
22.13.1. GET /api/v1/organization/{orgname}/robots/{robot_shortname}/federation Link kopierenLink in die Zwischenablage kopiert!
Retrieve the federation configuration for the specified organization robot.
Authorizations: oauth2_implicit (user:admin)
22.13.2. Path parameters Link kopierenLink in die Zwischenablage kopiert!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | orgname + robot_shortnamerequired | The name of the organization and the short name for the robot, without any user or organization prefix | string |
22.13.3. Responses Link kopierenLink in die Zwischenablage kopiert!
22.14. createOrgRobotFederation Link kopierenLink in die Zwischenablage kopiert!
Create a federation configuration for the specified organization robot.
22.14.1. POST /api/v1/organization/{orgname}/robots/{robot_shortname}/federation Link kopierenLink in die Zwischenablage kopiert!
Create or replace the federation configuration for the specified organization robot.
Authorizations: oauth2_implicit (user:admin)
22.14.2. Path parameters Link kopierenLink in die Zwischenablage kopiert!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | orgname + robot_shortnamerequired | The name of the organization and the short name for the robot, without any user or organization prefix | string |
22.14.3. Request body schema (application/json) Link kopierenLink in die Zwischenablage kopiert!
Array of federation configuration entries for the robot.
A create or update request replaces the whole list of federation entries for the robot account. To keep an existing entry, send the entry back in the same request along with the id of the entry.
| Name | Description | Schema |
|---|---|---|
| id optional | The stable identifier of an existing federation entry. Pass this field back in a request | string |
| issuer required | Issuer URL of the external OIDC provider for this federation entry | string |
| subject required |
Subject ( | string |
| audiences optional |
List of acceptable token audience ( | array of strings |
| api_scopes optional | Space-separated list of Red Hat Quay management API scopes that a federated workload is allowed to request. Omit for registry-only federation. | string |
Example request body
[
{
"issuer": "https://login.microsoftonline.com/<tenant-id>/v2.0",
"subject": "<user-object-id>"
}
]
22.14.4. Responses Link kopierenLink in die Zwischenablage kopiert!
22.14.5. Example command Link kopierenLink in die Zwischenablage kopiert!
$ curl -X POST "https://quay-server.example.com/api/v1/organization/{orgname}/robots/{robot_shortname}/federation" \
-H "Authorization: Bearer <your_access_token>" \
-H "Content-Type: application/json" \
-d '[
{
"issuer": "https://keycloak-auth-realm.quayadmin.org/realms/quayrealm",
"subject": "449e14f8-9eb5-4d59-a63e-b7a77c75f770"
}
]'
22.15. deleteOrgRobotFederation Link kopierenLink in die Zwischenablage kopiert!
Delete the federation configuration for the specified organization robot.
22.15.1. DELETE /api/v1/organization/{orgname}/robots/{robot_shortname}/federation Link kopierenLink in die Zwischenablage kopiert!
Delete the federation configuration for the specified organization robot.
Authorizations: oauth2_implicit (user:admin)
22.15.2. Path parameters Link kopierenLink in die Zwischenablage kopiert!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | orgname + robot_shortnamerequired | The name of the organization and the short name for the robot, without any user or organization prefix | string |
22.15.3. Responses Link kopierenLink in die Zwischenablage kopiert!
22.15.4. Example command Link kopierenLink in die Zwischenablage kopiert!
$ curl -X DELETE \
-H "Authorization: Bearer <bearer_token>" \
"https://quay-server.example.com/api/v1/organization/{orgname}/robots/{robot_shortname}/federation"