6 Replies Latest reply on Nov 3, 2015 8:43 AM by cvachovecj

    How do you set the hostname via http POST in IPAM?

    sakodak

      My question is pretty much the same as in this thread:

       

      https://thwack.solarwinds.com/thread/68357

       

      I'm trying to set the hostname with a POST in curl (specifically pyCurl) but I'm coming up with nothing.  I can successfully mark an IP as used or available by submitting:

       

      objectId=3923&ids=128&entity=IPAM.IPNode&verb=UpdateManyStatus&ipstatus=1

       

      What are the variables I need to set so I can set things like hostname, alias and comment?

       

      It is surprisingly difficult to find adequate documentation for this product.  Where are ids, objectid, entity, verb and ipstatus documented?  I suspect if I can find that I can find other things to set.

       

      Thanks!

        • Re: How do you set the hostname via http POST in IPAM?
          tdanner

          IPAM does not currently provide these operations in a public API. The web service calls described in the thread you linked are not documented because they are not intended for use by anything other than the IPAM website.

            • Re: How do you set the hostname via http POST in IPAM?
              sakodak

              I figured that out after more searching of this forum.

               

              It's baffling to me why an enterprise product would not have an API, but there it is.

               

              I see references to a plan for an API being dropped, too.  Is that valid?

                • Re: How do you set the hostname via http POST in IPAM?
                  tdanner

                  Let me refer that question to IPAM's product manager, cvachovecj.

                    • Re: How do you set the hostname via http POST in IPAM?
                      cvachovecj

                      Could you please share some of these references? We don't plan to drop any IPAM functionality.

                       

                      Jiri

                        • Re: How do you set the hostname via http POST in IPAM?
                          sakodak

                          Let me be clear:

                           

                          After much searching for a solution for naming an IP via some sort of API I

                          found a reference (that I can't find now) that said something like (and I'm

                          paraphrasing) "Now that the plans for a real IPAM API have been dropped. .

                          ."  It was pretty deep in the google searches, FWIW.

                           

                          Note, this is not about IPAM itself being dropped, but a full API for IPAM

                          that was (allegedly) dropped.

                           

                          Can you verify:

                           

                          1) Is there a fully functional API for IPAM? (Fully functional meaning

                          values can be set as well as retrieved.)

                          2) If not, is there a plan to add this functionality?

                          3) If so, when will this functionality be available?

                           

                          To be doubly clear:

                           

                          The functionality I'm looking for is the ability to set values via a

                          RESTful (or anything, really) API in IPAM.  Especially the hostname, the

                          status, and a comment/note.  I can set the status via a pycurl hack, but I

                          can't be guaranteed that will stick around so I can't use it for anything

                          in production.  I would be temporarily satisfied with a similar curl hack

                          that can set the hostname.  I haven't looked at this in a while so I forget

                          where I left off in my reverse-engineering efforts.

                           

                           

                          On Mon, Nov 2, 2015 at 11:36 AM, Jiri Cvachovec <

                            • Re: How do you set the hostname via http POST in IPAM?
                              cvachovecj

                              Hi,

                               

                              Here are the answers:

                               

                              1) Is there a fully functional API for IPAM? (Fully functional meaning

                              values can be set as well as retrieved.)

                              No. You can only retrieve values from IPAM but not set/write them.

                               

                              2) If not, is there a plan to add this functionality?

                              This is an existing feature request, but it's not something we are working on now.


                              3) If so, when will this functionality be available?

                              N/A

                               

                              Jiri