Skip to content

Commit

Permalink
Automatically regenerated Python library snippets.
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Action committed Jan 6, 2025
1 parent 426c8f7 commit b29574c
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 2 deletions.
2 changes: 1 addition & 1 deletion meraki/sdk/python/createOrganizationAdaptivePolicyAcl.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

organization_id = '549236'
name = 'Block sensitive web traffic'
rules = [{'policy': 'deny', 'protocol': 'tcp', 'srcPort': '1,33', 'dstPort': '22-30'}]
rules = [{'policy': 'deny', 'protocol': 'tcp', 'srcPort': '1,33', 'dstPort': '22-30', 'log': True, 'tcpEstablished': True}]
ip_version = 'ipv6'

response = dashboard.organizations.createOrganizationAdaptivePolicyAcl(
Expand Down
20 changes: 20 additions & 0 deletions meraki/sdk/python/createOrganizationDevicesControllerMigration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import meraki

# Defining your API key as a variable in source code is discouraged.
# This API key is for a read-only docs-specific environment.
# In your own code, use an environment variable as shown under the Usage section
# @ https://github.com/meraki/dashboard-api-python/

API_KEY = '75dd5334bef4d2bc96f26138c163c0a3fa0b5ca6'

dashboard = meraki.DashboardAPI(API_KEY)

organization_id = '549236'
serials = ['QABC-DEFG-HIJK']
target = 'wirelessController'

response = dashboard.organizations.createOrganizationDevicesControllerMigration(
organization_id, serials, target
)

print(response)
18 changes: 18 additions & 0 deletions meraki/sdk/python/getOrganizationDevicesControllerMigrations.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import meraki

# Defining your API key as a variable in source code is discouraged.
# This API key is for a read-only docs-specific environment.
# In your own code, use an environment variable as shown under the Usage section
# @ https://github.com/meraki/dashboard-api-python/

API_KEY = '75dd5334bef4d2bc96f26138c163c0a3fa0b5ca6'

dashboard = meraki.DashboardAPI(API_KEY)

organization_id = '549236'

response = dashboard.organizations.getOrganizationDevicesControllerMigrations(
organization_id, total_pages='all'
)

print(response)
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import meraki

# Defining your API key as a variable in source code is discouraged.
# This API key is for a read-only docs-specific environment.
# In your own code, use an environment variable as shown under the Usage section
# @ https://github.com/meraki/dashboard-api-python/

API_KEY = '75dd5334bef4d2bc96f26138c163c0a3fa0b5ca6'

dashboard = meraki.DashboardAPI(API_KEY)

organization_id = '549236'

response = dashboard.switch.getOrganizationSwitchPortsUsageHistoryByDeviceByInterval(
organization_id, total_pages='all'
)

print(response)
1 change: 1 addition & 0 deletions meraki/sdk/python/updateNetworkWirelessSsid.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
radiusServerTimeout=5,
radiusServerAttemptsLimit=5,
radiusFallbackEnabled=True,
radiusRadsec={'tlsTunnel': {'timeout': 600}},
radiusCoaEnabled=True,
radiusFailoverPolicy='Deny access',
radiusLoadBalancingPolicy='Round robin',
Expand Down
2 changes: 1 addition & 1 deletion meraki/sdk/python/updateOrganizationAdaptivePolicyAcl.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
organization_id, acl_id,
name='Block sensitive web traffic',
description='Blocks sensitive web traffic',
rules=[{'policy': 'deny', 'protocol': 'tcp', 'srcPort': '1,33', 'dstPort': '22-30'}],
rules=[{'policy': 'deny', 'protocol': 'tcp', 'srcPort': '1,33', 'dstPort': '22-30', 'log': True, 'tcpEstablished': True}],
ipVersion='ipv6'
)

Expand Down

0 comments on commit b29574c

Please sign in to comment.