How to add authentication to RESTMON schema
search cancel

How to add authentication to RESTMON schema

book

Article ID: 195068

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

I am creating a restmon schema and need to use basic authentication. I can add the basis setting to the definition section of the schema but how do I add username and password. I tried simply using username and password properties but that did not work, the restmon log continues to show 401 error. There is no documentation on how this should be done. This is a local UIM 20.1 installation.

Environment

Release : 20.1

Component : REST API

Resolution

auth:
username  -> Specify the username. Applies only when the authentication type is basic or NTLM.   String 
password  -> Specify the password. Applies only when the authentication type is basic or NTLM.   String

Supported authentication mechanisms are: basic; digest; ntlm; token; bearer; urltoken; Outh2

The following is a sample snippet of the restapiconnectdetails section:
"restapiconnectdetails":{      "type":"http",
      "hostname":"test.example.net",
      "port":"",
      "authentication":"ntlm",
      "username":"sampleUsername",
      "password":"samplePassword",
      "realmdomain":"",
      "token":"",
      "httptimeout":"120000",
      "checkcert":"no"
   },

You can add a header in the url definition section like below.
 
"headers": {
"Accept": "application/json"
}

The username & password fields should be part of definition section only.

Documentation for RestMon below.

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/ca-unified-infrastructure-management-probes/GA/monitoring/extensibility-and-integrations/monitor-technologies-using-restmon-probe.html

Additional Information

Note that Nodes are not applicable for UIM. APM/Digital OI schema use the Nodes objects to populate Topology of Monitoring technology.