ESP dSeries Workload Automation

 View Only
  • 1.  REST API http -v2 job set up

    Posted Jun 20, 2022 03:11 PM
    Has anyone has any working REST API trigger from CA set up via http V2 job . I am testing to trigger a REST API for dataprep application from CA .
    But receiving the below error . Any idea how to incorporate the credentials , customer is saying its working via token in Postman Canary software .

    ----------------------------------------------------------------
    Output of messages for workload object HTTP-V20/TEST123.1/MAIN
    Start date Mon Jun 20 05:46:18 PDT 2022
    ----------------------------------------------------------------
    Request Details
    ---------------
    Method: POST
    URI: https://api.clouddataprep.com/v4/plans/9832/run


    Response Headers
    ----------------
    Server: nginx
    Date: Mon, 20 Jun 2022 12:46:22 GMT
    Content-Type: application/json
    Transfer-Encoding: chunked
    Connection: keep-alive
    WWW-Authenticate: Bearer

    Status
    ------
    HTTP/1.1 401 Unauthorized

    {
    "code": 16,
    "message": "JWT validation failed: Missing or **** credentials",
    "details": [
    {
    "@type": "type.googleapis.com/google.rpc.DebugInfo",
    "stackEntries": [],
    "detail": "auth"
    }
    ]
    }

    HTTP Request failed. Reason: Status Text(Unauthorized). Status Code(401).
    ---------------- The end of the file ----------------


  • 2.  RE: REST API http -v2 job set up

    Broadcom Employee
    Posted Jun 21, 2022 12:43 AM
    Hi,

    You must see Headers Page where you can give the credentials information


    Hope it helps!
    Ravi Kiran


  • 3.  RE: REST API http -v2 job set up

    Posted Jun 22, 2022 02:17 PM
    Thank you very much Ravi . This helped . CA Job is running and was able to trigger the job in trifecta application .
    We used the below format in the header section .
    Authentication : Bearer token_value


  • 4.  RE: REST API http -v2 job set up

    Broadcom Employee
    Posted Jun 23, 2022 12:54 AM
    Thank you! Happy to know it helped!