Start a Conversation

Unsolved

B

17 Posts

1435

December 10th, 2018 23:00

Discover one asset in OME through API

Hello,

Even if i read the documentation many times (OME API Guide version), i cant find the good way to create the a query to discover 1 asset through the idrac.

Example are always with range and many others things, but the simple case isnt describe.

Can you please give me a sample of the input payload json for a case like this.
* DiscoveryName : Discovery-hostname
* idrac name/IP : "idrac-hostname" // IP : 192.168.11.23
* user/pwd : user_name // pass_word
* running now
* No additional Options (trap or email)

Thanks for your help

 

 

 

1K Posts

December 12th, 2018 00:00

Hi,

I believe the below payload should help you. Please let me know if it does not.

 

URI: POST: https://IP/api/DiscoveryConfigService/DiscoveryConfigGroups

 

Payload :

{

    "DiscoveryConfigGroupName": "Discoveryname",

    "DiscoveryConfigGroupDescription": "Testing",

    "DiscoveryStatusEmailRecipient": "test@dell.com",

    "DiscoveryConfigModels": [

      {

        "DiscoveryConfigId": 0,

        "DiscoveryConfigDescription": "",

        "DiscoveryConfigStatus": "",

        "DiscoveryConfigTargets": [

          {

            "DiscoveryConfigTargetId": 0,

            "NetworkAddressDetail": "IP Address",

            "AddressType": 30,

            "Disabled": true,

            "Exclude": false

          }

        ],

        "ConnectionProfile": "{\"profileName\":\"sdf\",\"profileDescription\":\"\",\"type\":\"DISCOVERY\",\"credentials\":[{\"id\":0,\"type\":\"WSMAN\",\"authType\":\"Basic\",\"modified\":false,\"credentials\":{\"username\":\"username\",\"password\":\"password\",\"caCheck\":false,\"cnCheck\":false,\"port\":443,\"retries\":3,\"timeout\":60,\"isHttp\":false,\"keepAlive\":false}}]}",

        "DeviceType": [

          1000

        ]

      }

    ],

    "DiscoveryConfigTaskParam": [],

    "DiscoveryConfigTasks": [],

    "Schedule": {

      "RunNow": true,

      "RunLater": false,

      "Recurring": null,

      "Cron": "startnow"

    }

  }

No Events found!

Top