Skip to content
Open
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-04 | Library v4.8.0 | API 1.76.0


No Python keyword parameter conflicts detected.


## 2026-10-17 | Library v4.7.0 | API 1.75.1


Expand Down
2 changes: 1 addition & 1 deletion meraki/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
from meraki._version import __version__ # noqa: F401
from datetime import datetime

__api_version__ = "1.75.1"
__api_version__ = "1.76.0"

__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.0"
__version__ = "4.8.0"
14 changes: 10 additions & 4 deletions meraki/aio/api/appliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -2519,6 +2519,7 @@ def updateNetworkApplianceTrafficShapingVpnExclusions(self, networkId: str, **kw
- 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.
- applicationCategoryMapping (object): Options for mapping configured majorApplications to application categories.
"""

kwargs.update(locals())
Expand All @@ -2533,6 +2534,7 @@ def updateNetworkApplianceTrafficShapingVpnExclusions(self, networkId: str, **kw
body_params = [
"custom",
"majorApplications",
"applicationCategoryMapping",
]
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}

Expand Down Expand Up @@ -3147,7 +3149,7 @@ def updateNetworkApplianceVpnBgp(self, networkId: str, enabled: bool, **kwargs):

def getNetworkApplianceVpnSiteToSiteVpn(self, networkId: str):
"""
**Return the site-to-site VPN settings of a network**
**Return the site-to-site VPN settings of an MX network or configuration template.**
https://developer.cisco.com/meraki/api-v1/#!get-network-appliance-vpn-site-to-site-vpn

- networkId (string): Network ID
Expand All @@ -3164,13 +3166,15 @@ def getNetworkApplianceVpnSiteToSiteVpn(self, networkId: str):

def updateNetworkApplianceVpnSiteToSiteVpn(self, networkId: str, mode: str, **kwargs):
"""
**Update the site-to-site VPN settings of a network**
**Update the site-to-site VPN settings of an MX network or configuration template in NAT mode**
https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-vpn-site-to-site-vpn

- networkId (string): Network ID
- mode (string): The site-to-site VPN mode. Can be one of 'none', 'spoke' or 'hub'
- confirmed (boolean): Whether to accept the confirmation warnings for these changes. Defaults to true, which accepts confirmation warnings and preserves the existing update behavior. Set to false to opt in to confirmation warnings. Review the warnings returned in confirmations, then retry with confirmed: true to accept them. Fatal errors must be corrected before retrying.
- natTraversal (object): NAT traversal settings. Omit to leave the existing setting unchanged.
- hubs (array): The list of VPN hubs, in order of preference. In spoke mode, at least 1 hub is required.
- subnets (array): The list of subnets and their VPN presence.
- subnets (array): The list of local VPN subnets and their VPN presence. VLAN entries include vlanId and subnetting where applicable. When the corresponding NFO is enabled, NAT settings are returned for every VLAN; non-VLAN entries omit vlanId, subnetting, and nat.legacy.
- sgt (object): Security Group Tag settings for the VPN peer.
- subnet (object): Configuration of subnet features
- hostTranslations (array): The list of VPN host translations. Host translations are supported starting from MX firmware version 26.1.2
Expand All @@ -3190,7 +3194,9 @@ def updateNetworkApplianceVpnSiteToSiteVpn(self, networkId: str, mode: str, **kw
resource = f"/networks/{networkId}/appliance/vpn/siteToSiteVpn"

body_params = [
"confirmed",
"mode",
"natTraversal",
"hubs",
"subnets",
"sgt",
Expand Down Expand Up @@ -5674,7 +5680,7 @@ def getOrganizationApplianceVpnStatuses(self, organizationId: str, total_pages=1

def getOrganizationApplianceVpnThirdPartyVPNPeers(self, organizationId: str):
"""
**Return the third party VPN peers for an organization**
**Return the configured third-party VPN peers for an organization.**
https://developer.cisco.com/meraki/api-v1/#!get-organization-appliance-vpn-third-party-v-p-n-peers

- organizationId (string): Organization ID
Expand Down
112 changes: 112 additions & 0 deletions meraki/aio/api/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,56 @@ def createDeviceCellularUplinksBandsMasksUpdate(self, serial: str, slot: str, ty

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

def revokeDeviceCertificate(self, serial: str, certificateSerial: str, **kwargs):
"""
**Revoke a device certificate**
https://developer.cisco.com/meraki/api-v1/#!revoke-device-certificate

- serial (string): Serial
- certificateSerial (string): Certificate serial
- reason (string): Revocation reason per RFC 5280; omit to use `unspecified`
"""

kwargs.update(locals())

if "reason" in kwargs:
options = [
"aACompromise",
"affiliationChanged",
"cACompromise",
"certificateHold",
"cessationOfOperation",
"keyCompromise",
"privilegeWithdrawn",
"removeFromCRL",
"superseded",
"unspecified",
]
assert kwargs["reason"] in options, (
f'''"reason" cannot be "{kwargs["reason"]}", & must be set to one of: {options}'''
)

metadata = {
"tags": ["devices", "configure", "certificates"],
"operation": "revokeDeviceCertificate",
}
serial = urllib.parse.quote(str(serial), safe="")
certificateSerial = urllib.parse.quote(str(certificateSerial), safe="")
resource = f"/devices/{serial}/certificates/{certificateSerial}/revoke"

body_params = [
"reason",
]
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"revokeDeviceCertificate: ignoring unrecognized kwargs: {invalid}")

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

def getDeviceClients(self, serial: str, **kwargs):
"""
**List the clients of a device, up to a maximum of a month ago**
Expand Down Expand Up @@ -781,6 +831,68 @@ def getDeviceLiveToolsPowerUsage(self, serial: str, jobId: str):

return self._session.get(metadata, resource)

def createDeviceLiveToolsRouteDetail(self, serial: str, type: str, vrf: dict, destination: dict, nextHop: dict, **kwargs):
"""
**Enqueue a live tool job to fetch route details from a device.**
https://developer.cisco.com/meraki/api-v1/#!create-device-live-tools-route-detail

- serial (string): Serial
- type (string): The type of the route provided. The only supported value for now is 'BGP'.
- vrf (object): The route VRF to inspect.
- destination (object): The destination of the route provided
- nextHop (object): The next-hop-IP of the route provided.
- callback (object): Details for the callback. Please include either an httpServerId OR url and sharedSecret
"""

kwargs.update(locals())

if "type" in kwargs:
options = ["BGP"]
assert kwargs["type"] in options, f'''"type" cannot be "{kwargs["type"]}", & must be set to one of: {options}'''

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

body_params = [
"type",
"vrf",
"destination",
"nextHop",
"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"createDeviceLiveToolsRouteDetail: ignoring unrecognized kwargs: {invalid}")

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

def getDeviceLiveToolsRouteDetail(self, serial: str, jobId: str):
"""
**Return a route details live tool job for a device.**
https://developer.cisco.com/meraki/api-v1/#!get-device-live-tools-route-detail

- serial (string): Serial
- jobId (string): Job ID
"""

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

return self._session.get(metadata, resource)

def createDeviceLiveToolsRoutingTableLookup(self, serial: str, **kwargs):
"""
**Enqueue a job to perform a routing table lookup request for a device**
Expand Down
Loading
Loading