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

Documentation: Correct Red Hat Quay API examples

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • quay-3.15.0, quay-v3.16.9
    • documentation
    • Product / Portfolio Work
    • False
    • Hide

      None

      Show
      None
    • False
    • Quay Enterprise

      In https://docs.redhat.com/es/documentation/red_hat_quay/3.15/html/red_hat_quay_api_guide/quay-api-examples#org-proxy-cache-configuration-api we have

      $ curl -X POST "https://<quay-server.example.com>/api/v1/organization/<orgname>/proxycache" \
        -H "Authorization: Bearer <access_token>" \
        -H "Content-Type: application/json" \
        -d '{
              "upstream_registry": "<upstream_registry>"
            }' 

      That does not work as it has other mandatory fields. We propose to change it for:

      curl -X POST "https://<quay-server.example.com>/api/v1/organization/<orgname>/proxycache" \
        -H "Authorization: Bearer <access_token>" \
        -H "Content-Type: application/json" \
        -d '{
              "upstream_registry": "<upstream_registry>"
              "upstream_registry_username": "your_robot_account_username"
              "upstream_registry_password": "your_robot_account_password"
            }'

              rhn-support-stevsmit Steven Smith
              rhn-support-jortizpa Jose Ortiz Padilla
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: