<?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 Restricy Python SDK to Get requests ? in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/restricy-python-sdk-to-get-requests/m-p/5438800#M6111</link>
    <description>&lt;P&gt;I don't want to generate another dummy email address and user account so I can generate another API key which is read-only ...&lt;/P&gt;&lt;P&gt;Is it possible to knobble the Python SDK so that it only allows Get() style requests with some magic parameter?  Effectively making it only allow read-only style functions?&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2024 10:13:04 GMT</pubDate>
    <dc:creator>Philip D'Ath</dc:creator>
    <dc:date>2024-07-17T10:13:04Z</dc:date>
    <item>
      <title>Restricy Python SDK to Get requests ?</title>
      <link>https://community.cisco.com/t5/network-platform-api/restricy-python-sdk-to-get-requests/m-p/5438800#M6111</link>
      <description>&lt;P&gt;I don't want to generate another dummy email address and user account so I can generate another API key which is read-only ...&lt;/P&gt;&lt;P&gt;Is it possible to knobble the Python SDK so that it only allows Get() style requests with some magic parameter?  Effectively making it only allow read-only style functions?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 10:13:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/restricy-python-sdk-to-get-requests/m-p/5438800#M6111</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2024-07-17T10:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Restricy Python SDK to Get requests ?</title>
      <link>https://community.cisco.com/t5/network-platform-api/restricy-python-sdk-to-get-requests/m-p/5438801#M6112</link>
      <description>&lt;P&gt;This would be great. I always have two additional accounts for RW and RO. I also tried one account for which I changed the permission to write when I wanted to configure something and back to read when only collecting data. But that is not really practical.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 10:16:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/restricy-python-sdk-to-get-requests/m-p/5438801#M6112</guid>
      <dc:creator>Karsten Iwen</dc:creator>
      <dc:date>2024-07-17T10:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Restricy Python SDK to Get requests ?</title>
      <link>https://community.cisco.com/t5/network-platform-api/restricy-python-sdk-to-get-requests/m-p/5438802#M6113</link>
      <description>&lt;P&gt;Not that I'm aware of, it'd be easy to evade by anyone able to edit the Python script, but it would be a good feature, you could make a wish for it.&lt;/P&gt;&lt;P&gt;Other ideas...&lt;/P&gt;&lt;P&gt;Create a script that takes the OpenAPI spec and creates an alternate library, say 'meraki_gets', that has function in it, and passes through all the functions starting 'get' to the real library, while replacing all the others with functions that do nothing.&lt;/P&gt;&lt;P&gt;Simpler would be nobble the Meraki library itself, filtering the endpoint url in the request function in rest_session.py - I've sometimes made changes to rest_session.py to work around API/library bugs, just need to remember to keep the changes after library updates! Need to do it in both async and sync versions.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 10:46:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/restricy-python-sdk-to-get-requests/m-p/5438802#M6113</guid>
      <dc:creator>sungod</dc:creator>
      <dc:date>2024-07-17T10:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Restricy Python SDK to Get requests ?</title>
      <link>https://community.cisco.com/t5/network-platform-api/restricy-python-sdk-to-get-requests/m-p/5438803#M6114</link>
      <description>&lt;P&gt;It looks like there is a config item called "simulate" that only allows GET calls.  I just tested it - and it is exactly what I am looking for.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/meraki/dashboard-api-python/blob/main/meraki/rest_session.py#L167" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/meraki/dashboard-api-python/blob/main/meraki/rest_session.py#L167&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/meraki/dashboard-api-python/blob/main/meraki/__init__.py#L71" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/meraki/dashboard-api-python/blob/main/meraki/__init__.py#L71&lt;/A&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;	dashboard = meraki.DashboardAPI(
		output_log=False,
		print_console=False,
		simulate=True
	)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Jul 2024 10:58:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/restricy-python-sdk-to-get-requests/m-p/5438803#M6114</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2024-07-17T10:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Restricy Python SDK to Get requests ?</title>
      <link>https://community.cisco.com/t5/network-platform-api/restricy-python-sdk-to-get-requests/m-p/5438804#M6115</link>
      <description>&lt;P&gt;Ooo, that's handy! Just filters out any request that isn't GET.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 11:23:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/restricy-python-sdk-to-get-requests/m-p/5438804#M6115</guid>
      <dc:creator>sungod</dc:creator>
      <dc:date>2024-07-17T11:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Restricy Python SDK to Get requests ?</title>
      <link>https://community.cisco.com/t5/network-platform-api/restricy-python-sdk-to-get-requests/m-p/5438805#M6116</link>
      <description>&lt;P&gt;I often use the simulate mode, when while starting out on a script, just to be sure I don't accidently post something unexpected to those orgs I use to test against. &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 12:26:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/restricy-python-sdk-to-get-requests/m-p/5438805#M6116</guid>
      <dc:creator>Rasmus Hoffmann Birkelund</dc:creator>
      <dc:date>2024-07-17T12:26:39Z</dc:date>
    </item>
  </channel>
</rss>

