Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-10639

Fix toolbox importing product command document

    XMLWordPrintable

Details

    • 3
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

    Description

      In the toolbox document [ Importing products|https://access.redhat.com/documentation/en-us/red_hat_3scale_api_management/2.14/html/operating_red_hat_3scale_api_management/the-threescale-toolbox#importing-products], here is an example command.

      3scale product import -f petstore-product.yaml my-3scale-2
      

      But this example is insufficient as a product yaml file `petstore-product.yaml` specified with -f option must exists within a toolbox container.
      e.g. product yaml file needs to be mounted by v option and specify appropriate file path to -f/-file option.

      podman run --rm -v ${ABSOLUTE_RESOURCE_PATH}:/tmp/toolbox:ro,Z registry.redhat.io/3scale-amp2/toolbox-rhel8:3scale2.13 3scale product import --file=/tmp/toolbox/product.yaml https://${AUTH}@{3SCALE_ADMIN}-admin.{DOMAIN_NAME}
      

      ${ABSOLUTE_RESOURCE_PATH} is the directory where product yaml file(in above example, product.yaml) resides in local environment.

      Furthermore, example output of product import in the document is yaml format and is not accurate as real command output is json format. This output need to be improved as well.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-lcavalle Lluis Cavalle
              rhn-support-hmiura Hiroko Miura
              Lluis Cavalle Lluis Cavalle
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: