<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using Powershell to Access the Duo Admin API in APIs</title>
    <link>https://community.cisco.com/t5/apis/using-powershell-to-access-the-duo-admin-api/m-p/4879572#M251</link>
    <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;now Have you got the solution?&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 16 Jul 2020 08:32:04 GMT</pubDate>
    <dc:creator>kabuchan15</dc:creator>
    <dc:date>2020-07-16T08:32:04Z</dc:date>
    <item>
      <title>Using Powershell to Access the Duo Admin API</title>
      <link>https://community.cisco.com/t5/apis/using-powershell-to-access-the-duo-admin-api/m-p/4879571#M250</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Has anyone had any luck getting powershell to work. with the API.  The documenation is horrid and i don’t want to go through the hassle of the module that i found on github.   If anyone has any scripts to connect to it with powershell, that would be awesmoe if you can share.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 May 2020 01:41:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/using-powershell-to-access-the-duo-admin-api/m-p/4879571#M250</guid>
      <dc:creator>Corey_Crossman</dc:creator>
      <dc:date>2020-05-13T01:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using Powershell to Access the Duo Admin API</title>
      <link>https://community.cisco.com/t5/apis/using-powershell-to-access-the-duo-admin-api/m-p/4879572#M251</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;now Have you got the solution?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Jul 2020 08:32:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/using-powershell-to-access-the-duo-admin-api/m-p/4879572#M251</guid>
      <dc:creator>kabuchan15</dc:creator>
      <dc:date>2020-07-16T08:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Powershell to Access the Duo Admin API</title>
      <link>https://community.cisco.com/t5/apis/using-powershell-to-access-the-duo-admin-api/m-p/4879573#M252</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;how do you call API with powershell?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Jul 2020 08:09:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/using-powershell-to-access-the-duo-admin-api/m-p/4879573#M252</guid>
      <dc:creator>kabuchan15</dc:creator>
      <dc:date>2020-07-21T08:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using Powershell to Access the Duo Admin API</title>
      <link>https://community.cisco.com/t5/apis/using-powershell-to-access-the-duo-admin-api/m-p/4879574#M253</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;May be old news by this point…however, after futzing around for a couple hours trying to get Powershell Invoke-RestMethod to work…  (that encrypting passwod thing is a bear)  I went for the GitHub module, and had it up and running in about 10 minutes.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Aug 2020 18:55:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/using-powershell-to-access-the-duo-admin-api/m-p/4879574#M253</guid>
      <dc:creator>lkeyes1</dc:creator>
      <dc:date>2020-08-11T18:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using Powershell to Access the Duo Admin API</title>
      <link>https://community.cisco.com/t5/apis/using-powershell-to-access-the-duo-admin-api/m-p/4879575#M254</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Same here…&lt;BR /&gt;
&lt;A href="https://github.com/mbegan" rel="noopener nofollow ugc"&gt;mbegan (Matt Egan) (github.com)&lt;/A&gt;&lt;BR /&gt;
That module seems to be the only thing that works.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Oct 2022 02:14:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/using-powershell-to-access-the-duo-admin-api/m-p/4879575#M254</guid>
      <dc:creator>Gigawatt</dc:creator>
      <dc:date>2022-10-13T02:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Powershell to Access the Duo Admin API</title>
      <link>https://community.cisco.com/t5/apis/using-powershell-to-access-the-duo-admin-api/m-p/4879576#M255</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you still need it, here is some sample code to work with authenticating to the REST API in PowerShell.&lt;/P&gt;
&lt;ASIDE class="quote quote-modified" data-post="4" data-topic="8760"&gt;
  &lt;DIV class="title"&gt;
    &lt;DIV class="quote-controls"&gt;&lt;/DIV&gt;
    &lt;IMG width="20" height="20" src="https://community.cisco.com/legacyfs/online/ciscoduo/avatar_quotes/michael_maher.png" style="display : inline;" /&gt;
    &lt;A href="https://community.duo.com/t/powershell-api-authorization-encoding/8760/4"&gt;Powershell API Authorization Encoding&lt;/A&gt; &lt;A class="badge-wrapper  bullet" href="https://community.cisco.com/c/api-forum/auth-api-forum/54"&gt;&lt;SPAN class="badge-category-parent-bg" style="background-color: #25AAE2;"&gt;&lt;/SPAN&gt;&lt;SPAN class="badge-category-bg" style="background-color: #25AAE2;"&gt;&lt;/SPAN&gt;&lt;SPAN style="" data-drop-close="true" class="badge-category clear-badge" title="Duo’s Auth API forum is for user discussions about adding two-factor authentication to different services. Find customer questions and content about the Duo Security Auth API."&gt;Auth API forum&lt;/SPAN&gt;&lt;/A&gt;
  &lt;/DIV&gt;
  &lt;BLOCKQUOTE&gt;
    Its not nice to work with I agree. 
Here is a reusable PowerShell function you can use 
function New-DuoRequest(){
    param(
        [Parameter(ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)]
            $apiHost,
        
        [Parameter(Mandatory=$true,ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)]
            [ValidateNotNull()]
            $apiEndpoint,
        
        [Parameter(ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)]
           …
  &lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;

&lt;P&gt;I agree that the documentation is lacking.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Oct 2022 09:31:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/using-powershell-to-access-the-duo-admin-api/m-p/4879576#M255</guid>
      <dc:creator>Michael_Maher</dc:creator>
      <dc:date>2022-10-24T09:31:48Z</dc:date>
    </item>
  </channel>
</rss>

