<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Api on Aaron&#39;s Worthless Words</title>
    <link>https://a996c8ee.aww-3cz.pages.dev/tags/api/</link>
    <description>Recent content in Api on Aaron&#39;s Worthless Words</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 12 Jan 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://a996c8ee.aww-3cz.pages.dev/tags/api/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Using Pynetbox to Create Netbox API Tokens</title>
      <link>https://a996c8ee.aww-3cz.pages.dev/posts/2023/01/using-pynetbox-to-create-netbox-api-tokens/</link>
      <pubDate>Thu, 12 Jan 2023 00:00:00 +0000</pubDate>
      <guid>https://a996c8ee.aww-3cz.pages.dev/posts/2023/01/using-pynetbox-to-create-netbox-api-tokens/</guid>
      <description>&lt;p&gt;As a warning to everyone, I am not a developer. I am a network engineer who is trying to do some automation stuff. Some of what I&amp;rsquo;m doing sounds logical to me, but I would not trust my own opinions for production work. I&amp;rsquo;m sure you can find a &lt;a href=&#34;https://netdev.chat/&#34;&gt;Slack channel&lt;/a&gt; or &lt;a href=&#34;https://infosec.exchange/explore&#34;&gt;Mastodon instance&lt;/a&gt; with people who can tell you how to do things properly.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://aconaway.com/2022/12/11/querying-netbox-with-pynetbox/&#34;&gt;The last time&lt;/a&gt;, I talked about using &lt;a href=&#34;https://github.com/netbox-community/pynetbox&#34;&gt;pynetbox&lt;/a&gt; to make queries to &lt;a href=&#34;https://github.com/netbox-community/netbox&#34;&gt;Netbox&lt;/a&gt;. This was a very simple example, and one of the things that bugged me the most about it was the &lt;a href=&#34;https://docs.netbox.dev/en/stable/integrations/rest-api/#tokens&#34;&gt;API token&lt;/a&gt;. In that post, we used a statically-assigned API token where I went into the Netbox GUI and generated one for myself. I think I may have even noted that this was definitely not the best way to handle those things. A possibly-better way to do it is to use your username and password on Netbox to generate a token for yourself. This would a token that you then delete when you&amp;rsquo;re done.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
