removerobot probe callback UIMAPI call failing with Error 500
search cancel

removerobot probe callback UIMAPI call failing with Error 500

book

Article ID: 246699

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM) CA Unified Infrastructure Management On-Premise (Nimsoft / UIM) CA Unified Infrastructure Management SaaS (Nimsoft / UIM)

Issue/Introduction

When I use UIMAPI Swagger Post Call, using a probe call Callback to "removerobot" the call is failing with Error 500

POST

/probes/{domain}/{hub}/{robot}/{probe}/callback/{callback}

Returns a UIM PDS structure with the information requested from the callback of the UIM probe specified

Environment

  • Release : DX UIM 20.4.* / 23.4.*
  • Component: UIMAPI 

Cause

Bad formatting of Swagger Json body

Resolution

The below was used:

{
  "parameters": [
    {
      "name": "string",
      "type": "string",
      "value": "<robotname>"
    }
  ],
  "pds": "string",
  "timeout": 0
}





However, the good Format should be:

{
  "parameters": [
    {
      "name": "name",
      "type": "string",
      "value": "<robotname>"
    }
  ],
  "pds": "string",
  "timeout": 0
}

Additional Information

Curl Example: 

curl -X POST "http://##.##.###.##/uimapi/probes/<hostname>_domain/<hostname>_hub/<hostname>/hub/callback/removerobot" -H "accept: application/xml" -H "Content-Type: application/json" -d "{ \"parameters\": [ { \"name\": \"name\", \"type\": \"string\", \"value\": \"<hostname>\" } ], \"pds\": \"string\", \"timeout\": 0}"