このコンテンツは選択した言語では利用できません。
Chapter 22. robot
Manage user and organization robot accounts.
22.1. getUserRobots リンクのコピーリンクがクリップボードにコピーされました!
List the available robots for the user.
22.1.1. GET /api/v1/user/robots リンクのコピーリンクがクリップボードにコピーされました!
Authorizations: oauth2_implicit (user:admin)
22.1.2. Query parameters リンクのコピーリンクがクリップボードにコピーされました!
| 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 リンクのコピーリンクがクリップボードにコピーされました!
22.1.4. Example command リンクのコピーリンクがクリップボードにコピーされました!
$ 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 リンクのコピーリンクがクリップボードにコピーされました!
Returns the list of repository permissions for the org’s robot.
22.2.1. GET /api/v1/organization/{orgname}/robots/{robot_shortname}/permissions リンクのコピーリンクがクリップボードにコピーされました!
Authorizations: oauth2_implicit (user:admin)
22.2.2. Path parameters リンクのコピーリンクがクリップボードにコピーされました!
| 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 リンクのコピーリンクがクリップボードにコピーされました!
22.2.4. Example command リンクのコピーリンクがクリップボードにコピーされました!
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
"https://quay-server.example.com/api/v1/organization/<ORGNAME>/robots/<ROBOT_SHORTNAME>/permissions"
22.3. regenerateOrgRobotToken リンクのコピーリンクがクリップボードにコピーされました!
Regenerates the token for an organization robot.
22.3.1. POST /api/v1/organization/{orgname}/robots/{robot_shortname}/regenerate リンクのコピーリンクがクリップボードにコピーされました!
Authorizations: oauth2_implicit (org:admin)
22.3.2. Path parameters リンクのコピーリンクがクリップボードにコピーされました!
| 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 リンクのコピーリンクがクリップボードにコピーされました!
22.3.4. Example command リンクのコピーリンクがクリップボードにコピーされました!
$ curl -X POST \
-H "Authorization: Bearer <bearer_token>" \
"<quay-server.example.com>/api/v1/organization/<orgname>/robots/<robot_shortname>/regenerate"
22.4. getUserRobotPermissions リンクのコピーリンクがクリップボードにコピーされました!
Returns the list of repository permissions for the user’s robot.
22.4.1. GET /api/v1/user/robots/{robot_shortname}/permissions リンクのコピーリンクがクリップボードにコピーされました!
Authorizations: oauth2_implicit (user:admin)
22.4.2. Path parameters リンクのコピーリンクがクリップボードにコピーされました!
| 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 リンクのコピーリンクがクリップボードにコピーされました!
22.4.4. Example command リンクのコピーリンクがクリップボードにコピーされました!
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
"https://quay-server.example.com/api/v1/user/robots/<ROBOT_SHORTNAME>/permissions"
22.5. regenerateUserRobotToken リンクのコピーリンクがクリップボードにコピーされました!
Regenerates the token for a user’s robot.
22.5.1. POST /api/v1/user/robots/{robot_shortname}/regenerate リンクのコピーリンクがクリップボードにコピーされました!
Authorizations: oauth2_implicit (user:admin)
22.5.2. Path parameters リンクのコピーリンクがクリップボードにコピーされました!
| 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 リンクのコピーリンクがクリップボードにコピーされました!
22.5.4. Example command リンクのコピーリンクがクリップボードにコピーされました!
$ curl -X POST \
-H "Authorization: Bearer <bearer_token>" \
"<quay-server.example.com>/api/v1/user/robots/<robot_shortname>/regenerate"
22.6. getOrgRobot リンクのコピーリンクがクリップボードにコピーされました!
Returns the organization’s robot with the specified name.
22.6.1. GET /api/v1/organization/{orgname}/robots/{robot_shortname} リンクのコピーリンクがクリップボードにコピーされました!
Authorizations: oauth2_implicit (org:admin)
22.6.2. Path parameters リンクのコピーリンクがクリップボードにコピーされました!
| 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 リンクのコピーリンクがクリップボードにコピーされました!
22.6.4. Example command リンクのコピーリンクがクリップボードにコピーされました!
curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
"https://quay-server.example.com/api/v1/organization/<ORGNAME>/robots/<ROBOT_SHORTNAME>"
22.7. createOrgRobot リンクのコピーリンクがクリップボードにコピーされました!
Create a new robot in the organization.
22.7.1. PUT /api/v1/organization/{orgname}/robots/{robot_shortname} リンクのコピーリンクがクリップボードにコピーされました!
Authorizations: oauth2_implicit (org:admin)
22.7.2. Path parameters リンクのコピーリンクがクリップボードにコピーされました!
| 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) リンクのコピーリンクがクリップボードにコピーされました!
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 リンクのコピーリンクがクリップボードにコピーされました!
22.7.5. Example command リンクのコピーリンクがクリップボードにコピーされました!
$ curl -X PUT -H "Authorization: Bearer <bearer_token>" "https://<quay-server.example.com>/api/v1/organization/<organization_name>/robots/<robot_name>"
22.8. deleteOrgRobot リンクのコピーリンクがクリップボードにコピーされました!
Delete an existing organization robot.
22.8.1. DELETE /api/v1/organization/{orgname}/robots/{robot_shortname} リンクのコピーリンクがクリップボードにコピーされました!
Authorizations: oauth2_implicit (org:admin)
22.8.2. Path parameters リンクのコピーリンクがクリップボードにコピーされました!
| 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 リンクのコピーリンクがクリップボードにコピーされました!
22.8.4. Example command リンクのコピーリンクがクリップボードにコピーされました!
curl -X DELETE \
-H "Authorization: Bearer <bearer_token>" \
"<quay-server.example.com>/api/v1/organization/<organization_name>/robots/<robot_shortname>"
22.9. getOrgRobots リンクのコピーリンクがクリップボードにコピーされました!
List the organization’s robots.
22.9.1. GET /api/v1/organization/{orgname}/robots リンクのコピーリンクがクリップボードにコピーされました!
Authorizations: oauth2_implicit (org:admin)
22.9.2. Path parameters リンクのコピーリンクがクリップボードにコピーされました!
| Type | Name | Description | Schema |
|---|---|---|---|
| path | orgname required | The name of the organization | string |
22.9.3. Query parameters リンクのコピーリンクがクリップボードにコピーされました!
| 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 リンクのコピーリンクがクリップボードにコピーされました!
22.9.5. Example command リンクのコピーリンクがクリップボードにコピーされました!
$ curl -X GET -H "Authorization: Bearer <bearer_token>" "https://<quay-server.example.com>/api/v1/organization/<organization_name>/robots"
22.10. getUserRobot リンクのコピーリンクがクリップボードにコピーされました!
Returns the user’s robot with the specified name.
22.10.1. GET /api/v1/user/robots/{robot_shortname} リンクのコピーリンクがクリップボードにコピーされました!
Authorizations: oauth2_implicit (user:admin)
22.10.2. Path parameters リンクのコピーリンクがクリップボードにコピーされました!
| 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 リンクのコピーリンクがクリップボードにコピーされました!
22.10.4. Example command リンクのコピーリンクがクリップボードにコピーされました!
$ curl -X GET \
-H "Authorization: Bearer <bearer_token>" \
"<quay-server.example.com>/api/v1/user/robots/<robot_shortname>"
22.11. createUserRobot リンクのコピーリンクがクリップボードにコピーされました!
Create a new user robot with the specified name.
22.11.1. PUT /api/v1/user/robots/{robot_shortname} リンクのコピーリンクがクリップボードにコピーされました!
Authorizations: oauth2_implicit (user:admin)
22.11.2. Path parameters リンクのコピーリンクがクリップボードにコピーされました!
| 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) リンクのコピーリンクがクリップボードにコピーされました!
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 リンクのコピーリンクがクリップボードにコピーされました!
22.11.5. Example command リンクのコピーリンクがクリップボードにコピーされました!
$ curl -X PUT -H "Authorization: Bearer <bearer_token>" "https://<quay-server.example.com>/api/v1/user/robots/<robot_name>"
22.12. deleteUserRobot リンクのコピーリンクがクリップボードにコピーされました!
Delete an existing robot.
22.12.1. DELETE /api/v1/user/robots/{robot_shortname} リンクのコピーリンクがクリップボードにコピーされました!
Authorizations: oauth2_implicit (user:admin)
22.12.2. Path parameters リンクのコピーリンクがクリップボードにコピーされました!
| 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 リンクのコピーリンクがクリップボードにコピーされました!
22.12.4. Example command リンクのコピーリンクがクリップボードにコピーされました!
$ curl -X DELETE \
-H "Authorization: Bearer <bearer_token>" \
"<quay-server.example.com>/api/v1/user/robots/<robot_shortname>"
22.13. getOrgRobotFederation リンクのコピーリンクがクリップボードにコピーされました!
Manage federation configuration for a robot account within an organization.
22.13.1. GET /api/v1/organization/{orgname}/robots/{robot_shortname}/federation リンクのコピーリンクがクリップボードにコピーされました!
Retrieve the federation configuration for the specified organization robot.
Authorizations: oauth2_implicit (user:admin)
22.13.2. Path parameters リンクのコピーリンクがクリップボードにコピーされました!
| 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 リンクのコピーリンクがクリップボードにコピーされました!
22.14. createOrgRobotFederation リンクのコピーリンクがクリップボードにコピーされました!
Create a federation configuration for the specified organization robot.
22.14.1. POST /api/v1/organization/{orgname}/robots/{robot_shortname}/federation リンクのコピーリンクがクリップボードにコピーされました!
Create or replace the federation configuration for the specified organization robot.
Authorizations: oauth2_implicit (user:admin)
22.14.2. Path parameters リンクのコピーリンクがクリップボードにコピーされました!
| 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) リンクのコピーリンクがクリップボードにコピーされました!
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 リンクのコピーリンクがクリップボードにコピーされました!
22.14.5. Example command リンクのコピーリンクがクリップボードにコピーされました!
$ 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 リンクのコピーリンクがクリップボードにコピーされました!
Delete the federation configuration for the specified organization robot.
22.15.1. DELETE /api/v1/organization/{orgname}/robots/{robot_shortname}/federation リンクのコピーリンクがクリップボードにコピーされました!
Delete the federation configuration for the specified organization robot.
Authorizations: oauth2_implicit (user:admin)
22.15.2. Path parameters リンクのコピーリンクがクリップボードにコピーされました!
| 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 リンクのコピーリンクがクリップボードにコピーされました!
22.15.4. Example command リンクのコピーリンクがクリップボードにコピーされました!
$ curl -X DELETE \
-H "Authorization: Bearer <bearer_token>" \
"https://quay-server.example.com/api/v1/organization/{orgname}/robots/{robot_shortname}/federation"