.. raw:: html Container Grades ================ .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Grades are describing security risk with containers that Red Hat provides through the Red Hat Ecosystem Catalog. .. tab-set:: .. tab-item:: Fields .. div:: :name: ``architecture`` ``architecture`` | String :bdg-danger:`required` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Image architecture. .. div:: :name: ``current_grade`` ``current_grade`` | String :bdg-danger:`required` :bdg-warning-line:`nullable` .. dropdown:: String parameters :animate: fade-in ``enum`` A | B | C | D | E | F .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Current image security grade based on current date and grading schedule. .. div:: :name: ``freshness_grades`` ``freshness_grades`` | List[:doc:`/objects/FreshnessGrade`] :bdg-danger:`required` :bdg-primary-line:`read-only` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted the grade based on applicable updates and time provided by PST CVE engine. .. div:: :name: ``image_id`` ``image_id`` | String :bdg-danger:`required` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Unique identifier for image. .. div:: :name: ``tag`` ``tag`` | String :bdg-danger:`required` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Name of floating tag associated with the image. .. div:: :name: ``next_drop_date`` ``next_drop_date`` | :doc:`/scalars/DateTime` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted A date when current grade drops. .. tab-item:: Links .. div:: :name: ``image`` ``image`` | :doc:`/endpoints/RESTGetImage` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted URI to the container image. .. tab-item:: Indexes Index management is not enabled on this collection. .. tab-item:: Edges .. div:: :name: ``edges.image`` ``edges.image`` | :doc:`ContainerImage` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Edge to related container image. .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Parent arguments: ['image_id'] .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Uses GQL query: get_image .. dropdown:: Example queries :animate: fade-in .. raw:: html
                {
                    find_repository_grades_by_registry_path(registry: "example", repository: "example") {
                        error {
                            detail
                            status
                        }
                        data {
                            _id
                            edges {
                                image {
                                    error {
                                        status
                                        detail
                                    }
                                    data {
                                        _id
                                    }
                                }
                            }
                        }
                    }
                }
                
.. tab-item:: Usage .. dropdown:: Endpoints :animate: fade-in - :doc:`GET - /repositories/registry/{registry}/repository/{repository}/grades ` .. dropdown:: Queries and Mutations :animate: fade-in - :doc:`find_repository_grades_by_registry_path `