7.19. search
对所有 registry 上下文执行搜索。
7.19.1. conductRepoSearch 复制链接链接已复制到粘贴板!
获取与指定查询匹配的应用程序和存储库列表。
GET /api/v1/find/repositories
授权:
查询参数
类型 | Name | 描述 | 模式 |
---|---|---|---|
query |
includeUsage | 是否包含使用元数据 | 布尔值 |
query |
页 | 该页面。 | 整数 |
query |
query | 搜索查询。 | 字符串 |
响应
示例命令
curl -X GET "https://quay-server.example.com/api/v1/find/repositories?query=<repo_name>&page=1&includeUsage=true" \ -H "Authorization: Bearer <bearer_token>"
$ curl -X GET "https://quay-server.example.com/api/v1/find/repositories?query=<repo_name>&page=1&includeUsage=true" \
-H "Authorization: Bearer <bearer_token>"
7.19.2. conductSearch 复制链接链接已复制到粘贴板!
获取与指定查询匹配的实体和资源列表。
GET /api/v1/find/all
授权: oauth2_implicit (存储库:read)
查询参数
类型 | Name | 描述 | 模式 |
---|---|---|---|
query |
query | 搜索查询。 | 字符串 |
响应
示例命令
curl -X GET "https://quay-server.example.com/api/v1/find/all?query=<mysearchterm>" \ -H "Authorization: Bearer <bearer_token>"
$ curl -X GET "https://quay-server.example.com/api/v1/find/all?query=<mysearchterm>" \
-H "Authorization: Bearer <bearer_token>"
7.19.3. getMatchingEntities 复制链接链接已复制到粘贴板!
获取与指定前缀匹配的实体列表。
GET /api/v1/entities/{prefix}
授权:
路径参数
类型 | Name | 描述 | 模式 |
---|---|---|---|
path |
所需 前缀 | 字符串 |
查询参数
类型 | Name | 描述 | 模式 |
---|---|---|---|
query |
includeOrgs | 是否包含机构名称。 | 布尔值 |
query |
includeTeams | 是否包含团队名称。 | 布尔值 |
query |
namespace | 在查询机构实体时要使用的命名空间。 | 字符串 |
响应
示例命令
curl -X GET "https://quay-server.example.com/api/v1/entities/<prefix>?includeOrgs=<true_or_false>&includeTeams=<true_or_false>&namespace=<namespace>" \ -H "Authorization: Bearer <bearer_token>"
$ curl -X GET "https://quay-server.example.com/api/v1/entities/<prefix>?includeOrgs=<true_or_false>&includeTeams=<true_or_false>&namespace=<namespace>" \
-H "Authorization: Bearer <bearer_token>"