Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-14162

DO467: User query: Ch08s06: How would I set up the curl POST command to provide that information if it was not included?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • DO467 - RHAAP2.2-en-2-20240613
    • DO467
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ROLE
    • en-US (English)

      Please fill in the following information:


      URL: https://rol.redhat.com/rol/app/courses/do467-2.2/pages/ch08s06 
      Reporter RHNID: wasim-rhls
      Section Title:     Guided Exercise: Launching Jobs with the Automation Controller API                                                                    

      Issue description

      One of the course objectives for DO-467v2.2 is to "Understand how to use an API script to obtain required parameters for launching jobs" and then also "Write and API scriplet to launch a job". Okay, got it. 

      But now in the course in Ch08s05 there is the the part that says: "To launch the job, the job template or API call must provide the inventory ID, the inventory name, the credential ID and the credential name. The output of the previous example, which used the GET method, included all this information, so you would not need to provide it in your API call to launch the job template." 

      My question is, what if it did not? How would I set up the curl POST command to provide that information if it was not included? I looked in all the links at the bottom of that page and could not find that information anywhere. 

      Steps to reproduce:

       

      Workaround:

       

      Expected result:

              glsbugs-automation@redhat.com PTL - Ansible Team
              wraja@redhat.com Wasim Raja
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: