Send Netdot-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://osl.uoregon.edu/mailman/listinfo/netdot-users
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-users digest..."


Today's Topics:

   1. REST API Question (Francisco Gray)


----------------------------------------------------------------------

Message: 1
Date: Tue, 2 Apr 2013 17:17:59 +0000
From: Francisco Gray <[email protected]>
Subject: [Netdot-users] REST API Question
To: "<[email protected]>" <[email protected]>,
        "<[email protected]>" <[email protected]>
Message-ID: <FD66A675259E2A4E8E76EE485FA63CEA10DEB5FD@ad-oh-mbx01>
Content-Type: text/plain; charset="us-ascii"

Not sure where this question should go so I figured I would spam both lists...

I am trying to figure out how to create a CNAME for a given record via the REST 
API.  I would think that it would be a POST to either /host or possibly 
something in /rr?  I attempted to post to

POST /host?rrid=" + rrid, data) where data is a python dict (hash) with a 
single key/value pair of cname => "foo.example.com<http://foo.example.com>"

The raw code can be found here: 
https://github.com/frgray/netdot-client-python/blob/frgray-dev/netdot/client.py#L375-L392

Any help would be appreciated.
--
Francisco Gray
[email protected]<mailto:[email protected]>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://osl.uoregon.edu/pipermail/netdot-users/attachments/20130402/b863328c/attachment-0001.html
 

------------------------------

_______________________________________________
Netdot-users mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-users


End of Netdot-users Digest, Vol 53, Issue 2
*******************************************

Reply via email to