Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-7169

[DOC] Quay 3.10: chapter 13.6.4.2. Using the API to view quota usage has additional "quota" parameter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • quay-v3.10.0
    • documentation
    • False
    • None
    • False
    • Documentation (Ref Guide, User Guide, etc.)
    • 0

      Hello,

      The sample command from chapter "13.6.4.2. Using the API to view quota usage" from "Manage redhat Quay" [1] in Quay 3.10 documentation has an additional "quota" parameter which is not part of the source code for the API.

      Source code :

      https://github.com/quay/quay/blob/02635f5fccbd5870be87a9aa41f77d160612a877/endpoints/api/repository.py#L193-L263

       

      as per current documentation:

      curl -k -X GET -H "Authorization: Bearer <token>" -H 'Content-Type: application/json' 'https://example-registry-quay-quay-enterprise.apps.docs.gcp.quaydev.org/api/v1/repository?last_modified=true&namespace=testorg&popularity=true&public=true&quota=true' | jq

       

      required modification [remove "&quota=true" from above command] :

      curl -k -X GET -H "Authorization: Bearer <token>" -H 'Content-Type: application/json' 'https://example-registry-quay-quay-enterprise.apps.docs.gcp.quaydev.org/api/v1/repository?last_modified=true&namespace=testorg&popularity=true&public=true'  | jq

       

      Can be verified with chapter "2.15.2. listRepos" from "Red Hat Quay API Guide"[2] as "quota" isn't a valid parameter.

      Resources:

      [1] https://access.redhat.com/documentation/en-us/red_hat_quay/3.10/html/manage_red_hat_quay/red-hat-quay-quota-management-and-enforcement#using_the_api_to_view_quota_usage

      [2] https://access.redhat.com/documentation/en-us/red_hat_quay/3.10/html/red_hat_quay_api_guide/red_hat_quay_application_programming_interface_api#listrepos 

      Let us know, if any additional information is required.

       

      Regards,

      Rachitha

            rhn-support-stevsmit Steven Smith
            rhn-support-rmypala Rachitha Mypala
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: