このコンテンツは選択した言語では利用できません。

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

TypeNameDescriptionSchema

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

HTTP CodeDescriptionSchema

200

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

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

TypeNameDescriptionSchema

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

HTTP CodeDescriptionSchema

200

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

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

TypeNameDescriptionSchema

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

HTTP CodeDescriptionSchema

201

Successful creation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

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

TypeNameDescriptionSchema

path

robot_shortname

required

The short name for the robot, without any user or organization prefix

string

22.4.3. Responses

HTTP CodeDescriptionSchema

200

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

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

TypeNameDescriptionSchema

path

robot_shortname

required

The short name for the robot, without any user or organization prefix

string

22.5.3. Responses

HTTP CodeDescriptionSchema

201

Successful creation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

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

TypeNameDescriptionSchema

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

HTTP CodeDescriptionSchema

200

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

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

TypeNameDescriptionSchema

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

NameDescriptionSchema

description

optional

Optional text description for the robot

string

unstructured_metadata

optional

Optional unstructured metadata for the robot

object

22.7.4. Responses

HTTP CodeDescriptionSchema

201

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

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

TypeNameDescriptionSchema

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

HTTP CodeDescriptionSchema

204

Deleted

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

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

TypeNameDescriptionSchema

path

orgname

required

The name of the organization

string

22.9.3. Query parameters

TypeNameDescriptionSchema

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

HTTP CodeDescriptionSchema

200

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

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

TypeNameDescriptionSchema

path

robot_shortname

required

The short name for the robot, without any user or organization prefix

string

22.10.3. Responses

HTTP CodeDescriptionSchema

200

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

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

TypeNameDescriptionSchema

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

NameDescriptionSchema

description

optional

Optional text description for the robot

string

unstructured_metadata

optional

Optional unstructured metadata for the robot

object

22.11.4. Responses

HTTP CodeDescriptionSchema

200

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

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

TypeNameDescriptionSchema

path

robot_shortname

required

The short name for the robot, without any user or organization prefix

string

22.12.3. Responses

HTTP CodeDescriptionSchema

204

Deleted

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

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

TypeNameDescriptionSchema

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

HTTP CodeDescriptionSchema

200

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

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

TypeNameDescriptionSchema

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.

Important

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.

NameDescriptionSchema

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 (sub claim) of the external OIDC identity authorized for this robot

string

audiences

optional

List of acceptable token audience (aud claim) values for this federation entry. Defaults to ["quay"] when omitted.

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

HTTP CodeDescriptionSchema

201

Successful invocation

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

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

TypeNameDescriptionSchema

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

HTTP CodeDescriptionSchema

204

Deleted

 

400

Bad Request

ApiError

401

Session required

ApiError

403

Unauthorized access

ApiError

404

Not found

ApiError

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"
Red Hat logoGithubRedditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

Red Hat ドキュメントについて

Legal Notice

Theme

© 2026 Red Hat
トップに戻る