Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/generation-report.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Generation Report

## 2026-11-18 | Library v4.7.0b2 | API 1.76.0-beta.2


No Python keyword parameter conflicts detected.


## 2026-11-11 | Library v4.7.0b1 | API 1.76.0-beta.1


Expand Down
2 changes: 1 addition & 1 deletion meraki/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
from meraki.exceptions import APIError, APIKeyError, APIResponseError, AsyncAPIError
from meraki.rest_session import RestSession

__api_version__ = "1.76.0-beta.1"
__api_version__ = "1.76.0-beta.2"

__all__ = [
"APIError",
Expand Down
2 changes: 1 addition & 1 deletion meraki/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "4.7.0b1"
__version__ = "4.7.0b2"
6 changes: 3 additions & 3 deletions meraki/aio/api/appliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -2685,13 +2685,13 @@ def updateNetworkApplianceTrafficShapingUplinkSelection(self, networkId: str, **

def updateNetworkApplianceTrafficShapingVpnExclusions(self, networkId: str, **kwargs):
"""
**Update VPN exclusion rules for an MX network.**
**Update VPN exclusion rules for a Security Appliance or Secure Router network.**
https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-traffic-shaping-vpn-exclusions

- networkId (string): Network ID
- custom (array): Custom VPN exclusion rules. Pass an empty array to clear existing rules.
- majorApplications (array): Major Application based VPN exclusion rules. Pass an empty array to clear existing rules.
- applications (array): NBAR application-based VPN exclusion rules. The documented example is a Secure Router NBAR catalog entry. On Secure Router networks, the ID and name must identify the same enabled NBAR application; traffic-shaping application IDs are not interchangeable. Available for networks on firmware >= 19.2.
- applications (array): NBAR application-based VPN exclusion rules. The documented example is a NBAR catalog entry. On Secure Router networks, the ID and name must identify the same enabled NBAR application; traffic-shaping application IDs are not interchangeable with NBAR application IDs. Available for networks on firmware >= 19.2.
- applicationCategoryMapping (object): Options for mapping configured majorApplications to application categories.
"""

Expand Down Expand Up @@ -5790,7 +5790,7 @@ def getOrganizationApplianceTrafficShapingVpnExclusionsByNetwork(
self, organizationId: str, total_pages=1, direction="next", **kwargs
):
"""
**Display VPN exclusion rules for MX networks.**
**Display VPN exclusion rules for Security Appliance and Secure Router networks.**
https://developer.cisco.com/meraki/api-v1/#!get-organization-appliance-traffic-shaping-vpn-exclusions-by-network

- organizationId (string): Organization ID
Expand Down
2 changes: 1 addition & 1 deletion meraki/aio/api/campusGateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def provisionOrganizationCampusGatewayClusters(
**kwargs,
):
"""
**Provisions a cluster,adds campus gateways to it and associate/dissociate failover targets.**
**Provision a campus gateway cluster, add campus gateways, configure AP-assignment load balancing, and associate or dissociate failover targets**
https://developer.cisco.com/meraki/api-v1/#!provision-organization-campus-gateway-clusters

- organizationId (string): Organization ID
Expand Down
62 changes: 62 additions & 0 deletions meraki/aio/api/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,68 @@ def getDeviceLiveToolsDhcpLease(self, serial: str, dhcpLeasesId: str):

return self._session.get(metadata, resource)

def createDeviceLiveToolsDnsLookup(self, serial: str, hostname: str, dnsServer: str, queryType: str, **kwargs):
"""
**Enqueue a DNS lookup job from the device**
https://developer.cisco.com/meraki/api-v1/#!create-device-live-tools-dns-lookup

- serial (string): Serial
- hostname (string): Hostname for the device to resolve.
- dnsServer (string): IPv4 or IPv6 DNS server address.
- queryType (string): DNS record type to request.
- callback (object): Details for the callback. Please include either an httpServerId OR url and sharedSecret
"""

kwargs.update(locals())

if "queryType" in kwargs:
options = ["A", "AAAA"]
assert kwargs["queryType"] in options, (
f'''"queryType" cannot be "{kwargs["queryType"]}", & must be set to one of: {options}'''
)

metadata = {
"tags": ["devices", "liveTools", "dnsLookup"],
"operation": "createDeviceLiveToolsDnsLookup",
}
serial = urllib.parse.quote(str(serial), safe="")
resource = f"/devices/{serial}/liveTools/dnsLookup"

body_params = [
"hostname",
"dnsServer",
"queryType",
"callback",
]
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}

if self._session._validate_kwargs:
all_params = [] + body_params
invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"]
if invalid and self._session._logger:
self._session._logger.warning(f"createDeviceLiveToolsDnsLookup: ignoring unrecognized kwargs: {invalid}")

return self._session.post(metadata, resource, payload)

def getDeviceLiveToolsDnsLookup(self, serial: str, id: str):
"""
**Return a DNS lookup job.**
https://developer.cisco.com/meraki/api-v1/#!get-device-live-tools-dns-lookup

- serial (string): Serial
- id (string): ID
"""

metadata = {
"tags": ["devices", "liveTools", "dnsLookup"],
"operation": "getDeviceLiveToolsDnsLookup",
}
serial = urllib.parse.quote(str(serial), safe="")
id = urllib.parse.quote(str(id), safe="")
resource = f"/devices/{serial}/liveTools/dnsLookup/{id}"

return self._session.get(metadata, resource)

def createDeviceLiveToolsLedsBlink(self, serial: str, duration: int, **kwargs):
"""
**Enqueue a job to blink LEDs on a device**
Expand Down
67 changes: 67 additions & 0 deletions meraki/aio/api/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3268,6 +3268,73 @@ def getNetworkTrafficShapingDscpTaggingOptions(self, networkId: str):

return self._session.get(metadata, resource)

def getNetworkUmbrellaAccount(self, networkId: str):
"""
**Show network-wide Umbrella account settings**
https://developer.cisco.com/meraki/api-v1/#!get-network-umbrella-account

- networkId (string): Network ID
"""

metadata = {
"tags": ["networks", "configure", "umbrella", "account"],
"operation": "getNetworkUmbrellaAccount",
}
networkId = urllib.parse.quote(str(networkId), safe="")
resource = f"/networks/{networkId}/umbrella/account"

return self._session.get(metadata, resource)

def updateNetworkUmbrellaAccount(self, networkId: str, key: str, secret: str, **kwargs):
"""
**Update network-wide Umbrella account settings**
https://developer.cisco.com/meraki/api-v1/#!update-network-umbrella-account

- networkId (string): Network ID
- key (string): API key generated from Umbrella dashboard
- secret (string): API secret generated from Umbrella dashboard
"""

kwargs = locals()

metadata = {
"tags": ["networks", "configure", "umbrella", "account"],
"operation": "updateNetworkUmbrellaAccount",
}
networkId = urllib.parse.quote(str(networkId), safe="")
resource = f"/networks/{networkId}/umbrella/account"

body_params = [
"key",
"secret",
]
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}

if self._session._validate_kwargs:
all_params = [] + body_params
invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"]
if invalid and self._session._logger:
self._session._logger.warning(f"updateNetworkUmbrellaAccount: ignoring unrecognized kwargs: {invalid}")

return self._session.put(metadata, resource, payload)

def getNetworkUmbrellaPolicies(self, networkId: str):
"""
**Return a list of Umbrella protection policies available for applying on an SSID or Group Policy**
https://developer.cisco.com/meraki/api-v1/#!get-network-umbrella-policies

- networkId (string): Network ID
"""

metadata = {
"tags": ["networks", "configure", "umbrella", "policies"],
"operation": "getNetworkUmbrellaPolicies",
}
networkId = urllib.parse.quote(str(networkId), safe="")
resource = f"/networks/{networkId}/umbrella/policies"

return self._session.get(metadata, resource)

def unbindNetwork(self, networkId: str, **kwargs):
"""
**Unbind a network from a template.**
Expand Down
4 changes: 0 additions & 4 deletions meraki/aio/api/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ def updateDeviceSwitchPort(self, serial: str, portId: str, **kwargs):
- vlan (integer): The VLAN of the switch port. For a trunk port, this is the native VLAN. A null value will clear the value set for trunk ports.
- voiceVlan (integer): The voice VLAN of the switch port. Only applicable to access ports.
- allowedVlans (string): The VLANs allowed on the switch port. Only applicable to trunk ports.
- activeVlans (string): The VLANs that are active on the switch port. Only applicable to trunk ports.
- isolationEnabled (boolean): The isolation status of the switch port.
- rstpEnabled (boolean): The rapid spanning tree protocol status.
- stpGuard (string): The state of the STP guard ('disabled', 'root guard', 'bpdu guard' or 'loop guard').
Expand Down Expand Up @@ -273,7 +272,6 @@ def updateDeviceSwitchPort(self, serial: str, portId: str, **kwargs):
"vlan",
"voiceVlan",
"allowedVlans",
"activeVlans",
"isolationEnabled",
"rstpEnabled",
"stpGuard",
Expand Down Expand Up @@ -3635,7 +3633,6 @@ def updateOrganizationConfigTemplateSwitchProfilePort(
- vlan (integer): The VLAN of the switch template port. For a trunk port, this is the native VLAN. A null value will clear the value set for trunk ports.
- voiceVlan (integer): The voice VLAN of the switch template port. Only applicable to access ports.
- allowedVlans (string): The VLANs allowed on the switch template port. Only applicable to trunk ports.
- activeVlans (string): The VLANs that are active on the switch template port. Only applicable to trunk ports.
- isolationEnabled (boolean): The isolation status of the switch template port.
- rstpEnabled (boolean): The rapid spanning tree protocol status.
- stpGuard (string): The state of the STP guard ('disabled', 'root guard', 'bpdu guard' or 'loop guard').
Expand Down Expand Up @@ -3700,7 +3697,6 @@ def updateOrganizationConfigTemplateSwitchProfilePort(
"vlan",
"voiceVlan",
"allowedVlans",
"activeVlans",
"isolationEnabled",
"rstpEnabled",
"stpGuard",
Expand Down
Loading
Loading