UNSOLVED

Yeysy

updated

10 days ago

Y

Yeysy

1 Rookie

12 Posts

0

114

November 2nd, 2023 13:04

How to create a Device Discovery Rule using the API?

Hi:

 

Anybody knows how to create a Device Discovery Rule using the API in the SCG?

I can find in documentation endpoints for run a device discovery rule and for get a list for device discovery rules but not for create a new one.

 

Thanks and regards

Yeysy

  • DELL-Chris H

    7 Practitioner

    9682 Posts

    48046 Points

    0

    0

    Posted November 2nd, 2023 18:30

    Yeysy,

     

    You would normally add devices from here

     

     

    Image

     

     

    for discovery rules I believe these are going to be required.

     

     

    Image

     

     

    So I would make one on purpose, then run a GET on it and find out what is needed and build out future ones from there.

     

    Let me know if this helps.

     

    DELL-Chris H

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!

  • Yeysy

    1 Rookie

    12 Posts

    0

    0

    Posted November 3rd, 2023 10:28

    Hi @DELL-Chris H​:

    I've try sending PUT and POST to endpoint /v2/inventory/discoveryrules using multiple combinations in the body but without luck.

    Do you think the URI for this task is not implemented in the API?

    BT

    Yeysy

  • damyiu

    4 Posts

    0

    0

    Posted November 3rd, 2023 14:41

    Hi @DELL-Chris H​:

    I've try sending PUT and POST to endpoint /v2/inventory/discoveryrules using multiple combinations in the body but without luck.

    Do you think the URI for this site is not implemented in the API?

    BT

    Yeysy



    Yes, it is possible that the URI for /v2/inventory/discoveryrules is not implemented in the API, or that it is not supported for creating new discovery rules.

    Dell-Martin S

    Moderator

    3791 Posts

    25534 Points

    0

    November 3rd, 2023 15:19

    thank you for your answer damyiu