Certification Project Image Request#
Contain status and related metadata of a certProject image request.
operation | String required
String parameters
enum publish | unpublish | sync-tags | delete | publish-manifest-list | unpublish-manifest-list | delete-manifest-list
Operation performed during the image request. Operations containing ‘manifest-list’ can be performed only when manifest_list_digest is defined. Other operations can be combined only with image_id.
cert_project | ObjectID read-only
Unique identifier for the certification project.
image_id | ObjectID
Container image id associated with the image request. When defined, manifest_list_digest is forbidden.
images | List[SingleArchImage]
Images referenced by the manifest_list_digest.
manifest_list_digest | String
Manifest list digest for multi-arch images. When defined, image_id is forbidden.
_id | ObjectID read-only
MongoDB unique _id
creation_date | DateTime read-only
The date when the entry was created. Value is created automatically on creation.
last_update_date | DateTime read-only
The date when the entry was last updated.
org_id | Integer read-only
Red Hat Org ID / account_id from Red Hat SSO. Also corresponds to company_org_id in Red Hat Connect.
status | String read-only
String parameters
enum pending | in progress | failed | completed | aborted
The request status
status_message | String read-only
An explanatory message to a request status.
cert_project | RESTGetCertProjectById
URI to the certification project related to this image request.
image | RESTGetImage
URI to the container image.
image_id_1
- Fields
image_id: ASC
- Description
- Index for certProjectImageRequest based on the image_id field
status_1_creation_date_-1
- Fields
status: ASCcreation_date: DESC
- Description
- Index for certProjectImageRequest based on the status and creation_date (descending) field
cert_project_1_org_id_1
- Fields
cert_project: ASCorg_id: ASC
- Description
- Index for certProjectImageRequest based on the cert_project and org_id field
edges.cert_project | Certification Project
Edge to related certification project.
Parent arguments: [‘cert_project’]
Uses GQL query: get_certification_project
Example queries
{
get_certification_image_request_by_id(id: "6304c560cbb2b2d2d4053b8e") {
error {
detail
status
}
data {
_id
edges {
cert_project {
error {
status
detail
}
data {
_id
}
}
}
}
}
}
{
get_certification_image_requests(page: 0, page_size: 50, sort_by: [{ field: "creation_date", order: DESC }]) {
error {
detail
status
}
total # omit for better performance
page_size
page
data {
_id
edges {
cert_project {
error {
status
detail
}
data {
_id
}
}
}
}
}
}
{
get_certification_image_requests_by_cert_project_id(id: "6304c560cbb2b2d2d4053b8e", page: 0, page_size: 50, sort_by: [{ field: "creation_date", order: DESC }]) {
error {
detail
status
}
total # omit for better performance
page_size
page
data {
_id
edges {
cert_project {
error {
status
detail
}
data {
_id
}
}
}
}
}
}
{
get_certification_image_requests_by_image_id(id: "6304c560cbb2b2d2d4053b8e", page: 0, page_size: 50, sort_by: [{ field: "creation_date", order: DESC }]) {
error {
detail
status
}
total # omit for better performance
page_size
page
data {
_id
edges {
cert_project {
error {
status
detail
}
data {
_id
}
}
}
}
}
}
edges.image | Container Image
Edge to related container image.
Parent arguments: [‘image_id’]
Uses GQL query: get_image
Example queries
{
get_certification_image_request_by_id(id: "6304c560cbb2b2d2d4053b8e") {
error {
detail
status
}
data {
_id
edges {
image {
error {
status
detail
}
data {
_id
}
}
}
}
}
}
{
get_certification_image_requests(page: 0, page_size: 50, sort_by: [{ field: "creation_date", order: DESC }]) {
error {
detail
status
}
total # omit for better performance
page_size
page
data {
_id
edges {
image {
error {
status
detail
}
data {
_id
}
}
}
}
}
}
{
get_certification_image_requests_by_cert_project_id(id: "6304c560cbb2b2d2d4053b8e", page: 0, page_size: 50, sort_by: [{ field: "creation_date", order: DESC }]) {
error {
detail
status
}
total # omit for better performance
page_size
page
data {
_id
edges {
image {
error {
status
detail
}
data {
_id
}
}
}
}
}
}
{
get_certification_image_requests_by_image_id(id: "6304c560cbb2b2d2d4053b8e", page: 0, page_size: 50, sort_by: [{ field: "creation_date", order: DESC }]) {
error {
detail
status
}
total # omit for better performance
page_size
page
data {
_id
edges {
image {
error {
status
detail
}
data {
_id
}
}
}
}
}
}
images[].edges.container_image | Container Image
Image associated with the image_id.
Parent arguments: [‘image_id’]
Uses GQL query: get_image
Example queries
{
get_certification_image_request_by_id(id: "6304c560cbb2b2d2d4053b8e") {
error {
detail
status
}
data {
_id
images {
edges {
container_image {
error {
status
detail
}
data {
_id
}
}
}
}
}
}
}
{
get_certification_image_requests(page: 0, page_size: 50, sort_by: [{ field: "creation_date", order: DESC }]) {
error {
detail
status
}
total # omit for better performance
page_size
page
data {
_id
images {
edges {
container_image {
error {
status
detail
}
data {
_id
}
}
}
}
}
}
}
{
get_certification_image_requests_by_cert_project_id(id: "6304c560cbb2b2d2d4053b8e", page: 0, page_size: 50, sort_by: [{ field: "creation_date", order: DESC }]) {
error {
detail
status
}
total # omit for better performance
page_size
page
data {
_id
images {
edges {
container_image {
error {
status
detail
}
data {
_id
}
}
}
}
}
}
}
{
get_certification_image_requests_by_image_id(id: "6304c560cbb2b2d2d4053b8e", page: 0, page_size: 50, sort_by: [{ field: "creation_date", order: DESC }]) {
error {
detail
status
}
total # omit for better performance
page_size
page
data {
_id
images {
edges {
container_image {
error {
status
detail
}
data {
_id
}
}
}
}
}
}
}