<?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: Block device from API in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420416#M3327</link>
    <description>&lt;P&gt;Really great answers to your question, we were informed, thank you. &lt;A href="https://basketballlegends.fun/football-legends-2016" target="_self" rel="nofollow noopener noreferrer"&gt;@noemi&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2020 08:00:57 GMT</pubDate>
    <dc:creator>noemijmorgan</dc:creator>
    <dc:date>2020-11-10T08:00:57Z</dc:date>
    <item>
      <title>Block device from API</title>
      <link>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420409#M3320</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm creating an App that can be rolled out to our Service Desk and Security Team to allow them to manage users devices etc. on our networks from the API.&lt;/P&gt;&lt;P&gt;One of the bits i'm looking to do is block a device from the network if we see any malicious activity etc. being conducted on that device. However, i'm unable to find what the policy ID maybe for the in built Meraki Blocked policy.&lt;/P&gt;&lt;P&gt;I've checked a device that is blocked on a network from the API and it says normal, even though on the dashboard it is actually blocked with a custom message being presented to it. :S&lt;/P&gt;&lt;P&gt;Any one had this issue before and can maybe shed some light on this?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;N&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 10:39:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420409#M3320</guid>
      <dc:creator>Bails1664</dc:creator>
      <dc:date>2019-07-08T10:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Block device from API</title>
      <link>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420410#M3321</link>
      <description>&lt;P&gt;You might be looking at per-SSID policies. The Dashboard API can set a client device to a Group Policy but not specific to an SSID. If you just need to block a user, then set a Group Policy to the device with strict limits or just set it to "Blocked"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Related API endpoints&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can find the available Group Policies for a network and their respective ID&lt;BR /&gt;&lt;A href="https://developer.cisco.com/meraki/api/#/rest/api-endpoints/group-policies/get-network-group-policies" target="_blank" rel="noopener nofollow noreferrer"&gt;https://developer.cisco.com/meraki/api/#/rest/api-endpoints/group-policies/get-network-group-policies&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;To assign a policy to a new or existing client&lt;BR /&gt;&lt;A href="https://developer.cisco.com/meraki/api/#/rest/api-endpoints/clients/provision-network-clients" target="_blank" rel="noopener nofollow noreferrer"&gt;https://developer.cisco.com/meraki/api/#/rest/api-endpoints/clients/provision-network-clients&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To assign a policy to an existing client only&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api/#/rest/api-endpoints/clients/update-network-client-policy" target="_blank" rel="noopener nofollow noreferrer"&gt;https://developer.cisco.com/meraki/api/#/rest/api-endpoints/clients/update-network-client-policy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;important params&lt;/EM&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;devicePolicy&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="sc-jlyJG iCRybi"&gt;&lt;DIV&gt;String&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="sc-hqyNC gTvvjt"&gt;&lt;DIV&gt;&lt;P class="sc-htpNat fEXQGR"&gt;The policy to apply to the specified client. Can be 'Whitelisted', 'Blocked', 'Normal' or 'Group policy'. Required.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;groupPolicyId&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="sc-jlyJG iCRybi"&gt;&lt;DIV&gt;String&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="sc-hqyNC gTvvjt"&gt;&lt;DIV&gt;&lt;P class="sc-htpNat fEXQGR"&gt;The ID of the desired group policy to apply to the client. Required if 'devicePolicy' is set to "Group policy". Otherwise this is ignored.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Example using the provision endpoint (works for all clients)&lt;/P&gt;&lt;PRE&gt;POST /networks/{networkId}/clients/provision&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Body:&lt;/STRONG&gt; Provision as Blocked&lt;/P&gt;&lt;PRE&gt;{
"mac": "00:11:22:33:44:55",
"name": "Miles's phone",
"devicePolicy": "Blocked"
}&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Body:&lt;/STRONG&gt; Provision as Group Policy&lt;/P&gt;&lt;PRE&gt;{
"mac": "00:11:22:33:44:55",
"name": "Miles's phone",
"devicePolicy": "Group policy",
"groupPolicyId": "99"
}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 11:24:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420410#M3321</guid>
      <dc:creator>DexterLabora</dc:creator>
      <dc:date>2019-07-08T11:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Block device from API</title>
      <link>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420411#M3322</link>
      <description>Thats the fella!&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Mon, 08 Jul 2019 11:39:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420411#M3322</guid>
      <dc:creator>Bails1664</dc:creator>
      <dc:date>2019-07-08T11:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Block device from API</title>
      <link>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420412#M3323</link>
      <description>Actually, is there a way to add in the blocked note when sending the API POST?</description>
      <pubDate>Wed, 10 Jul 2019 09:13:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420412#M3323</guid>
      <dc:creator>Bails1664</dc:creator>
      <dc:date>2019-07-10T09:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Block device from API</title>
      <link>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420413#M3324</link>
      <description>&lt;P&gt;&lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/6172"&gt;@Bails1664&lt;/A&gt; Do you have a GitHub repo I can reference? This sounds awesome!!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 01:00:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420413#M3324</guid>
      <dc:creator>DillonWhite9048</dc:creator>
      <dc:date>2019-08-15T01:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Block device from API</title>
      <link>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420414#M3325</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/1450"&gt;@DexterLabora&lt;/A&gt; wrote:&lt;BR /&gt;&lt;P&gt;You might be looking at per-SSID policies. The Dashboard API can set a client device to a Group Policy but not specific to an SSID. If you just need to block a user, then set a Group Policy to the device with strict limits or just set it to "Blocked"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Related API endpoints&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can find the available Group Policies for a network and their respective ID&lt;BR /&gt;&lt;A href="https://developer.cisco.com/meraki/api/#/rest/api-endpoints/group-policies/get-network-group-policies" target="_blank" rel="noopener nofollow noreferrer"&gt;https://developer.cisco.com/meraki/api/#/rest/api-endpoints/group-policies/get-network-group-policies&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;To assign a policy to a new or existing client&lt;BR /&gt;&lt;A href="https://developer.cisco.com/meraki/api/#/rest/api-endpoints/clients/provision-network-clients" target="_blank" rel="noopener nofollow noreferrer"&gt;https://developer.cisco.com/meraki/api/#/rest/api-endpoints/clients/&lt;/A&gt;&lt;A href="https://happywheels2.io" target="_blank" rel="nofollow noopener noreferrer"&gt;happy wheels&lt;/A&gt;&lt;A href="https://developer.cisco.com/meraki/api/#/rest/api-endpoints/clients/provision-network-clients" target="_blank" rel="noopener nofollow noreferrer"&gt;provision-network-clients&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To assign a policy to an existing client only&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api/#/rest/api-endpoints/clients/update-network-client-policy" target="_blank" rel="noopener nofollow noreferrer"&gt;https://developer.cisco.com/meraki/api/#/rest/api-endpoints/clients/update-network-client-policy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;important params&lt;/EM&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;devicePolicy&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="sc-jlyJG iCRybi"&gt;&lt;DIV&gt;String&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="sc-hqyNC gTvvjt"&gt;&lt;DIV&gt;&lt;P class="sc-htpNat fEXQGR"&gt;The policy to apply to the specified client. Can be 'Whitelisted', 'Blocked', 'Normal' or 'Group policy'. Required.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;groupPolicyId&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="sc-jlyJG iCRybi"&gt;&lt;DIV&gt;String&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="sc-hqyNC gTvvjt"&gt;&lt;DIV&gt;&lt;P class="sc-htpNat fEXQGR"&gt;The ID of the desired group policy to apply to the client. Required if 'devicePolicy' is set to "Group policy". Otherwise this is ignored.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Example using the provision endpoint (works for all clients)&lt;/P&gt;&lt;PRE&gt;POST /networks/{networkId}/clients/provision&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Body:&lt;/STRONG&gt; Provision as Blocked&lt;/P&gt;&lt;PRE&gt;{
"mac": "00:11:22:33:44:55",
"name": "Miles's phone",
"devicePolicy": "Blocked"
}&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Body:&lt;/STRONG&gt; Provision as Group Policy&lt;/P&gt;&lt;PRE&gt;{
"mac": "00:11:22:33:44:55",
"name": "Miles's phone",
"devicePolicy": "Group policy",
"groupPolicyId": "99"
}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This worked great. I've been digging into this for over an hour! Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 07:06:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420414#M3325</guid>
      <dc:creator>claybarber</dc:creator>
      <dc:date>2019-09-11T07:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Block device from API</title>
      <link>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420415#M3326</link>
      <description>&lt;P&gt;finally something that actually worked, thanks to you man &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/29095"&gt;@claybarber&lt;/A&gt; &lt;A href="https://quotesology.com/funny-work-quotes/" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;FONT color="#FFFFFF"&gt;funny work quotes&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 13:25:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420415#M3326</guid>
      <dc:creator>MollyEskam</dc:creator>
      <dc:date>2020-07-16T13:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Block device from API</title>
      <link>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420416#M3327</link>
      <description>&lt;P&gt;Really great answers to your question, we were informed, thank you. &lt;A href="https://basketballlegends.fun/football-legends-2016" target="_self" rel="nofollow noopener noreferrer"&gt;@noemi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 08:00:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420416#M3327</guid>
      <dc:creator>noemijmorgan</dc:creator>
      <dc:date>2020-11-10T08:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Block device from API</title>
      <link>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420417#M3328</link>
      <description>&lt;P&gt;DexterLaBora &lt;SPAN&gt;actually worked, thanks to you man @&lt;A href="https://dottrusty.com/" target="_self" rel="nofollow noopener noreferrer"&gt;DexterLaBora&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 14:45:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420417#M3328</guid>
      <dc:creator>Jackmash2</dc:creator>
      <dc:date>2022-01-18T14:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Block device from API</title>
      <link>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420418#M3329</link>
      <description>&lt;P&gt;Thanks for it.  This endpoint allows you to create and manage block devices.  @&lt;A href="https://dotsnel.com/" target="_self" rel="nofollow noopener noreferrer"&gt;dotsnel&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 12:14:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/block-device-from-api/m-p/5420418#M3329</guid>
      <dc:creator>IsiahAtkins</dc:creator>
      <dc:date>2022-05-20T12:14:47Z</dc:date>
    </item>
  </channel>
</rss>

