Skip to content

Appliance

Appliance

Appliance class.

assign_organization_policies_global_group_policies_appliance_vlans

Assign VLANs to a policy.

API documentation: assignOrganizationPoliciesGlobalGroupPoliciesApplianceVlans

Parameters:

  • organization_id (str) –

    Organization ID.

  • policy (AssignOrganizationPoliciesGlobalGroupPoliciesApplianceVlansPolicy) –

    Policy to assign VLANs to.

  • vlans (list[AssignOrganizationPoliciesGlobalGroupPoliciesApplianceVlansVlansItem]) –

    VLANs to assign.

Returns:

  • OrganizationPoliciesGlobalGroupPoliciesApplianceVlansResponse

    Successful operation.

Example API response
{
  "success": true
}

bulk_organization_appliance_dns_local_profiles_assignments_create

Assign the local DNS profile to networks in the organization.

API documentation: bulkOrganizationApplianceDnsLocalProfilesAssignmentsCreate

Parameters:

  • organization_id (str) –

    Organization ID.

  • items (list[BulkOrganizationApplianceDnsLocalProfilesAssignmentsCreateItemsItem]) –

    List containing the network ID and Profile ID.

Returns:

  • BulkOrganizationApplianceDnsLocalProfilesAssignmentsCreateResponse

    Successful operation.

Example API response
{
  "items": [
    {
      "assignmentId": "123456",
      "network": {
        "id": "N_123456"
      },
      "profile": {
        "id": "1234"
      }
    }
  ]
}

connect_network_appliance_umbrella_account

Connect a Cisco Umbrella account to this network.

API documentation: connectNetworkApplianceUmbrellaAccount

Parameters:

  • network_id (str) –

    Network ID.

  • api (ConnectNetworkApplianceUmbrellaAccountApi) –

    Umbrella API credentials.

Returns:

  • ConnectNetworkApplianceUmbrellaAccountResponse

    Successful operation.

Example API response
{
  "umbrella": {
    "organization": {
      "id": "8769012"
    }
  }
}

create_device_appliance_vmx_authentication_token

Generate a new vMX authentication token.

API documentation: createDeviceApplianceVmxAuthenticationToken

Parameters:

  • serial (str) –

    Serial.

Returns:

  • CreateDeviceApplianceVmxAuthenticationTokenResponse

    Successful operation.

Example API response
{
  "token": "ffc0b7b578b61be5bd1d172132c78044/9af03bd84d474",
  "expiresAt": "2021-06-18T12:40:10Z"
}

create_network_appliance_devices_redundancy_swap

Swap MX primary and warm spare appliances.

API documentation: createNetworkApplianceDevicesRedundancySwap

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • UpdateNetworkApplianceDevicesRedundancyResponse

    Successful operation.

Example API response
{
  "networkId": "L_12345",
  "name": "some_locale",
  "enabled": true,
  "mode": "active-active",
  "designations": [
    {
      "serial": "Q234-ABCD-5678",
      "priority": 1
    }
  ],
  "uplink": {
    "mode": "virtual",
    "interfaces": [
      {
        "name": "wan1",
        "addresses": [
          {
            "address": "1.2.3.4",
            "subnet": "192.168.1.0/24"
          }
        ]
      }
    ],
    "sharing": {
      "enabled": true,
      "vlanId": "100",
      "byInterface": [
        {
          "name": "wan1",
          "parent": "primary"
        }
      ]
    },
    "loadBalancing": {
      "enabled": true,
      "vlanSelection": {
        "mode": "auto",
        "byDevice": [
          {
            "serial": "Q234-ABCD-5678",
            "vlanIds": [
              1,
              2
            ]
          }
        ]
      }
    }
  }
}

create_network_appliance_prefixes_delegated_static

Add a static delegated prefix from a network.

API documentation: createNetworkAppliancePrefixesDelegatedStatic

Parameters:

  • network_id (str) –

    Network ID.

  • prefix (str) –

    A static IPv6 prefix.

  • origin (CreateNetworkAppliancePrefixesDelegatedStaticOrigin) –

    The origin of the prefix.

  • description (str | None, default: None ) –

    A name or description for the prefix.

Returns:

  • NetworkAppliancePrefixesDelegatedStaticResponse

    Successful operation.

Example API response
{
  "staticDelegatedPrefixId": "1284392014819",
  "prefix": "2001:db8:3c4d:15::/64",
  "origin": {
    "type": "internet",
    "interfaces": [
      "wan1"
    ]
  },
  "description": "Prefix on WAN 1 of Long Island Office network",
  "createdAt": "2018-05-12T00:00:00Z",
  "updatedAt": "2018-05-12T00:00:00Z"
}

create_network_appliance_rf_profile

Creates new RF profile for this network.

API documentation: createNetworkApplianceRfProfile

Parameters:

  • network_id (str) –

    Network ID.

  • name (str) –

    The name of the new profile. Must be unique. This param is required on creation.

  • two_four_ghz_settings (CreateNetworkApplianceRfProfileTwoFourGhzSettings | None, default: None ) –

    Settings related to 2.4Ghz band.

  • five_ghz_settings (CreateNetworkApplianceRfProfileFiveGhzSettings | None, default: None ) –

    Settings related to 5Ghz band.

  • per_ssid_settings (CreateNetworkApplianceRfProfilePerSsidSettings | None, default: None ) –

    Per-SSID radio settings by number.

Returns:

  • NetworkApplianceRfProfileResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "networkId": "N_24329156",
  "name": "Some Custom RF Profile",
  "twoFourGhzSettings": {
    "minBitrate": 11.0,
    "axEnabled": true
  },
  "fiveGhzSettings": {
    "minBitrate": 12,
    "axEnabled": true
  },
  "perSsidSettings": {
    "1": {
      "bandOperationMode": "dual",
      "bandSteeringEnabled": true
    },
    "2": {
      "bandOperationMode": "dual",
      "bandSteeringEnabled": true
    },
    "3": {
      "bandOperationMode": "dual",
      "bandSteeringEnabled": true
    },
    "4": {
      "bandOperationMode": "dual",
      "bandSteeringEnabled": true
    }
  }
}

create_network_appliance_static_route

Add a static route for an MX or teleworker network.

API documentation: createNetworkApplianceStaticRoute

Parameters:

  • network_id (str) –

    Network ID.

  • name (str) –

    Name of the route.

  • subnet (str) –

    Subnet of the route.

  • gateway_ip (str) –

    Gateway IP address (next hop).

  • gateway_vlan_id (int | None, default: None ) –

    Gateway VLAN ID.

Returns:

  • NetworkApplianceStaticRouteResponse

    Successful operation.

Example API response
{
  "id": "d7fa4948-7921-4dfa-af6b-ae8b16c20c39",
  "ipVersion": 4,
  "networkId": "N_24329156",
  "enabled": true,
  "name": "My route",
  "subnet": "192.168.1.0/24",
  "gatewayIp": "1.2.3.5",
  "fixedIpAssignments": {
    "22:33:44:55:66:77": {
      "ip": "1.2.3.4",
      "name": "Some client name"
    }
  },
  "reservedIpRanges": [
    {
      "start": "192.168.1.0",
      "end": "192.168.1.1",
      "comment": "A reserved IP range"
    }
  ],
  "gatewayVlanId": 100
}

create_network_appliance_traffic_shaping_custom_performance_class

Add a custom performance class for an MX network.

API documentation: createNetworkApplianceTrafficShapingCustomPerformanceClass

Parameters:

  • network_id (str) –

    Network ID.

  • name (str) –

    Name of the custom performance class.

  • max_latency (int | None, default: None ) –

    Maximum latency in milliseconds.

  • max_jitter (int | None, default: None ) –

    Maximum jitter in milliseconds.

  • max_loss_percentage (int | None, default: None ) –

    Maximum percentage of packet loss.

Returns:

  • NetworkApplianceTrafficShapingCustomPerformanceClassResponse

    Successful operation.

Example API response
{
  "name": "myCustomPerformanceClass",
  "customPerformanceClassId": "123",
  "maxLatency": 100,
  "maxJitter": 100,
  "maxLossPercentage": 5
}

create_network_appliance_vlan

Add a VLAN.

API documentation: createNetworkApplianceVlan

Parameters:

  • network_id (str) –

    Network ID.

  • id (str) –

    The VLAN ID of the new VLAN (must be between 1 and 4094).

  • name (str) –

    The name of the new VLAN.

  • subnet (str | None, default: None ) –

    The subnet of the VLAN.

  • appliance_ip (str | None, default: None ) –

    The local IP of the appliance on the VLAN.

  • group_policy_id (str | None, default: None ) –

    The id of the desired group policy to apply to the VLAN.

  • template_vlan_type (CreateNetworkApplianceVlanTemplateVlanType | None, default: None ) –

    Type of subnetting of the VLAN. Applicable only for template network.

  • cidr (str | None, default: None ) –

    CIDR of the pool of subnets. Applicable only for template network. Each network bound to the template will automatically pick a subnet from this pool to build its own VLAN.

  • mask (int | None, default: None ) –

    Mask used for the subnet of all bound to the template networks. Applicable only for template network.

  • ipv6 (CreateNetworkApplianceVlanIpv6 | None, default: None ) –

    IPv6 configuration on the VLAN.

  • dhcp_handling (CreateNetworkApplianceVlanDhcpHandling | None, default: None ) –

    The appliance's handling of DHCP requests on this VLAN. One of: 'Run a DHCP server', 'Relay DHCP to another server' or 'Do not respond to DHCP requests'.

  • dhcp_relay_server_ips (list[str] | None, default: None ) –

    The IPs (IPv4) of the DHCP servers that DHCP requests should be relayed to. CIDR/subnet notation and hostnames are not supported.

  • dhcp_lease_time (CreateNetworkApplianceVlanDhcpLeaseTime | None, default: None ) –

    The term of DHCP leases if the appliance is running a DHCP server on this VLAN. One of: '30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week'.

  • mandatory_dhcp (CreateNetworkApplianceVlanMandatoryDhcp | None, default: None ) –

    Mandatory DHCP will enforce that clients connecting to this VLAN must use the IP address assigned by the DHCP server. Clients who use a static IP address won't be able to associate. Only available on firmware versions 17.0 and above.

  • dhcp_boot_options_enabled (bool | None, default: None ) –

    Use DHCP boot options specified in other properties.

  • dhcp_boot_next_server (str | None, default: None ) –

    DHCP boot option to direct boot clients to the server to load the boot file from.

  • dhcp_boot_filename (str | None, default: None ) –

    DHCP boot option for boot filename.

  • dhcp_options (list[CreateNetworkApplianceVlanDhcpOptionsItem] | None, default: None ) –

    The list of DHCP options that will be included in DHCP responses. Each object in the list should have "code", "type", and "value" properties.

  • vrf (CreateNetworkApplianceVlanVrf | None, default: None ) –

    VRF configuration on the VLAN.

  • uplinks (list[CreateNetworkApplianceVlanUplinksItem] | None, default: None ) –

    Per-uplink NAT exception override configuration on the VLAN. Applicable only for networks that support NAT exceptions.

Returns:

  • CreateNetworkApplianceVlanResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "interfaceId": "1284392014819",
  "name": "My VLAN",
  "subnet": "192.168.1.0/24",
  "applianceIp": "192.168.1.2",
  "groupPolicyId": "101",
  "templateVlanType": "same",
  "cidr": "192.168.1.0/24",
  "mask": 28,
  "mandatoryDhcp": {
    "enabled": true
  },
  "ipv6": {
    "enabled": true,
    "prefixAssignments": [
      {
        "autonomous": false,
        "staticPrefix": "2001:db8:3c4d:15::/64",
        "staticApplianceIp6": "2001:db8:3c4d:15::1",
        "origin": {
          "type": "internet",
          "interfaces": [
            "wan0"
          ]
        }
      }
    ]
  },
  "vrf": {
    "id": "1000",
    "name": "VRF BLUE"
  }
}

create_organization_appliance_dns_local_profile

Create a new local DNS profile.

API documentation: createOrganizationApplianceDnsLocalProfile

Parameters:

  • organization_id (str) –

    Organization ID.

  • name (str) –

    Name of profile.

Returns:

  • OrganizationApplianceDnsLocalProfileResponse

    Successful operation.

Example API response
{
  "profileId": "123456",
  "name": "Default profile"
}

create_organization_appliance_dns_local_profiles_assignments_bulk_delete

Unassign the local DNS profile to networks in the organization.

API documentation: createOrganizationApplianceDnsLocalProfilesAssignmentsBulkDelete

Parameters:

  • organization_id (str) –

    Organization ID.

  • items (list[CreateOrganizationApplianceDnsLocalProfilesAssignmentsBulkDeleteItemsItem]) –

    List containing the assignment ID.

Returns:

  • BulkOrganizationApplianceDnsLocalProfilesAssignmentsCreateResponse

    Successful operation.

Example API response
{
  "items": [
    {
      "assignmentId": "123456",
      "network": {
        "id": "N_123456"
      },
      "profile": {
        "id": "1234"
      }
    }
  ]
}

create_organization_appliance_dns_local_record

Create a new local DNS record.

API documentation: createOrganizationApplianceDnsLocalRecord

Parameters:

  • organization_id (str) –

    Organization ID.

  • hostname (str) –

    Hostname for the DNS record.

  • address (str) –

    IP for the DNS record.

  • profile (CreateOrganizationApplianceDnsLocalRecordProfile) –

    The profile the DNS record is associated with.

Returns:

  • GetOrganizationApplianceDnsLocalRecordsResponse

    Successful operation.

Example API response
[
  {
    "recordId": "12345",
    "hostname": "www.test.com",
    "address": "10.1.1.0",
    "profile": {
      "id": "1"
    }
  }
]

create_organization_appliance_dns_split_profile

Create a new split DNS profile.

API documentation: createOrganizationApplianceDnsSplitProfile

Parameters:

  • organization_id (str) –

    Organization ID.

  • name (str) –

    Name of profile.

  • hostnames (list[str]) –

    The hostname patterns to match for redirection. For more information on Split DNS hostname pattern formatting, please consult the Split DNS KB.

  • nameservers (CreateOrganizationApplianceDnsSplitProfileNameservers) –

    Contains the nameserver information for redirection.

Returns:

  • OrganizationApplianceDnsSplitProfileResponse

    Successful operation.

Example API response
{
  "profileId": "123456",
  "name": "Default profile",
  "hostnames": [
    "*.test1.com",
    "*.test2.com"
  ],
  "nameservers": {
    "addresses": [
      "12.1.10.1"
    ]
  }
}

create_organization_appliance_dns_split_profiles_assignments_bulk_create

Assign the split DNS profile to networks in the organization.

API documentation: createOrganizationApplianceDnsSplitProfilesAssignmentsBulkCreate

Parameters:

  • organization_id (str) –

    Organization ID.

  • items (list[CreateOrganizationApplianceDnsSplitProfilesAssignmentsBulkCreateItemsItem]) –

    List containing the network ID and Profile ID.

Returns:

  • BulkOrganizationApplianceDnsLocalProfilesAssignmentsCreateResponse

    Successful operation.

Example API response
{
  "items": [
    {
      "assignmentId": "123456",
      "network": {
        "id": "N_123456"
      },
      "profile": {
        "id": "1234"
      }
    }
  ]
}

create_organization_appliance_dns_split_profiles_assignments_bulk_delete

Unassign the split DNS profile to networks in the organization.

API documentation: createOrganizationApplianceDnsSplitProfilesAssignmentsBulkDelete

Parameters:

  • organization_id (str) –

    Organization ID.

  • items (list[CreateOrganizationApplianceDnsSplitProfilesAssignmentsBulkDeleteItemsItem]) –

    List containing the assignment ID.

Returns:

  • BulkOrganizationApplianceDnsLocalProfilesAssignmentsCreateResponse

    Successful operation.

Example API response
{
  "items": [
    {
      "assignmentId": "123456",
      "network": {
        "id": "N_123456"
      },
      "profile": {
        "id": "1234"
      }
    }
  ]
}

delete_network_appliance_prefixes_delegated_static

Delete a static delegated prefix from a network.

API documentation: deleteNetworkAppliancePrefixesDelegatedStatic

Parameters:

  • network_id (str) –

    Network ID.

  • static_delegated_prefix_id (str) –

    Static delegated prefix ID.

Returns:

  • None

    Successful operation.

delete_network_appliance_rf_profile

Delete a RF Profile.

API documentation: deleteNetworkApplianceRfProfile

Parameters:

  • network_id (str) –

    Network ID.

  • rf_profile_id (str) –

    Rf profile ID.

Returns:

  • None

    Successful operation.

delete_network_appliance_static_route

Delete a static route from an MX or teleworker network.

API documentation: deleteNetworkApplianceStaticRoute

Parameters:

  • network_id (str) –

    Network ID.

  • static_route_id (str) –

    Static route ID.

Returns:

  • None

    Successful operation.

delete_network_appliance_traffic_shaping_custom_performance_class

Delete a custom performance class from an MX network.

API documentation: deleteNetworkApplianceTrafficShapingCustomPerformanceClass

Parameters:

  • network_id (str) –

    Network ID.

  • custom_performance_class_id (str) –

    Custom performance class ID.

Returns:

  • None

    Successful operation.

delete_network_appliance_vlan

Delete a VLAN from a network.

API documentation: deleteNetworkApplianceVlan

Parameters:

  • network_id (str) –

    Network ID.

  • vlan_id (str) –

    Vlan ID.

Returns:

  • None

    Successful operation.

delete_organization_appliance_dns_local_profile

Deletes a local DNS profile.

API documentation: deleteOrganizationApplianceDnsLocalProfile

Parameters:

  • organization_id (str) –

    Organization ID.

  • profile_id (str) –

    Profile ID.

Returns:

  • None

    Successful operation.

delete_organization_appliance_dns_local_record

Deletes a local DNS record.

API documentation: deleteOrganizationApplianceDnsLocalRecord

Parameters:

  • organization_id (str) –

    Organization ID.

  • record_id (str) –

    Record ID.

Returns:

  • None

    Successful operation.

delete_organization_appliance_dns_split_profile

Deletes a split DNS profile.

API documentation: deleteOrganizationApplianceDnsSplitProfile

Parameters:

  • organization_id (str) –

    Organization ID.

  • profile_id (str) –

    Profile ID.

Returns:

  • None

    Successful operation.

disconnect_network_appliance_umbrella_account

Disconnect Umbrella account from this network.

API documentation: disconnectNetworkApplianceUmbrellaAccount

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • None

    Successful operation.

get_device_appliance_dhcp_subnets

Return the DHCP subnet information for an appliance.

API documentation: getDeviceApplianceDhcpSubnets

Parameters:

  • serial (str) –

    Serial.

Returns:

  • PaginatedResponse[GetDeviceApplianceDhcpSubnetsResponseItem]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "subnet": "192.168.1.0/24",
    "vlanId": 100,
    "usedCount": 2,
    "freeCount": 251
  }
]

get_device_appliance_performance

Return the performance score for a single MX.

API documentation: getDeviceAppliancePerformance

Parameters:

  • serial (str) –

    Serial.

  • t0 (str | None, default: None ) –

    The beginning of the timespan for the data. The maximum lookback period is 30 days from today.

  • t1 (str | None, default: None ) –

    The end of the timespan for the data. t1 can be a maximum of 14 days after t0.

  • timespan (float | None, default: None ) –

    The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be greater than or equal to 30 minutes and be less than or equal to 14 days. The default is 30 minutes.

Returns:

  • GetDeviceAppliancePerformanceResponse | None

    Successful operation.

Example API response
{
  "perfScore": 10.0
}

get_device_appliance_prefixes_delegated

Return current delegated IPv6 prefixes on an appliance.

API documentation: getDeviceAppliancePrefixesDelegated

Parameters:

  • serial (str) –

    Serial.

Returns:

  • PaginatedResponse[GetDeviceAppliancePrefixesDelegatedResponseItem]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "origin": {
      "interface": "wan1"
    },
    "prefix": "2001:db8:3c4d:15::/64",
    "counts": {
      "assigned": 2,
      "available": 253
    },
    "method": "auto",
    "staticDelegatedPrefixId": "2001:db8:3c4d:15::/64",
    "description": "My ISP provider",
    "isPreferred": true,
    "expiresAt": "2018-05-12T00:00:00Z"
  }
]

get_device_appliance_prefixes_delegated_vlan_assignments

Return prefixes assigned to all IPv6 enabled VLANs on an appliance.

API documentation: getDeviceAppliancePrefixesDelegatedVlanAssignments

Parameters:

  • serial (str) –

    Serial.

Returns:

  • PaginatedResponse[GetDeviceAppliancePrefixesDelegatedVlanAssignmentsResponseItem]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "vlan": {
      "id": 100,
      "name": "My VLAN"
    },
    "origin": {
      "interface": "wan1",
      "prefix": "2001:db8:3c4d:15::/64"
    },
    "status": "Active",
    "ipv6": {
      "prefix": "2001:db8:3c4d:15::/64",
      "address": "2001:db8:3c4d:15::1",
      "linkLocal": {
        "address": "2001:db8:3c4d:15::1"
      },
      "solicitedNodeMulticast": {
        "address": "2001:db8:3c4d:15::1"
      }
    }
  }
]

get_device_appliance_radio_settings

Return the radio settings of an appliance.

API documentation: getDeviceApplianceRadioSettings

Parameters:

  • serial (str) –

    Serial.

Returns:

  • DeviceApplianceRadioSettingsResponse

    Successful operation.

Example API response
{
  "serial": "Q234-ABCD-5678",
  "rfProfileId": "1234",
  "twoFourGhzSettings": {
    "channel": 11,
    "targetPower": 21
  },
  "fiveGhzSettings": {
    "channel": 149,
    "channelWidth": 20,
    "targetPower": 15
  }
}

Return the uplink settings for a secure router or security appliance.

API documentation: getDeviceApplianceUplinksSettings

Parameters:

  • serial (str) –

    Serial.

Returns:

  • DeviceApplianceUplinksSettingsResponse

    Successful operation.

Example API response
{
  "interfaces": {
    "wan1": {
      "enabled": true,
      "vlanTagging": {
        "enabled": true,
        "vlanId": 1
      },
      "svis": {
        "ipv4": {
          "assignmentMode": "static",
          "address": "9.10.11.10/16",
          "gateway": "13.14.15.16",
          "nameservers": {
            "addresses": [
              "1.2.3.4"
            ]
          }
        },
        "ipv6": {
          "assignmentMode": "static",
          "address": "1:2:3::4",
          "gateway": "1:2:3::5",
          "nameservers": {
            "addresses": [
              "1001:4860:4860::8888",
              "1001:4860:4860::8844"
            ]
          }
        }
      },
      "pppoe": {
        "enabled": true,
        "authentication": {
          "enabled": true,
          "username": "username"
        }
      }
    },
    "wan2": {
      "enabled": true,
      "vlanTagging": {
        "enabled": true,
        "vlanId": 1
      },
      "svis": {
        "ipv4": {
          "assignmentMode": "static",
          "address": "9.10.11.10/16",
          "gateway": "13.14.15.16",
          "nameservers": {
            "addresses": [
              "1.2.3.4"
            ]
          }
        },
        "ipv6": {
          "assignmentMode": "static",
          "address": "1:2:3::4",
          "gateway": "1:2:3::5",
          "nameservers": {
            "addresses": [
              "1001:4860:4860::8888",
              "1001:4860:4860::8844"
            ]
          }
        }
      },
      "pppoe": {
        "enabled": true,
        "authentication": {
          "enabled": true,
          "username": "username"
        }
      }
    }
  }
}

get_network_appliance_client_security_events

List the security events for a client.

API documentation: getNetworkApplianceClientSecurityEvents

Parameters:

  • network_id (str) –

    Network ID.

  • client_id (str) –

    Client ID.

  • t0 (str | None, default: None ) –

    The beginning of the timespan for the data. Data is gathered after the specified t0 value. The maximum lookback period is 791 days from today.

  • t1 (str | None, default: None ) –

    The end of the timespan for the data. t1 can be a maximum of 791 days after t0.

  • timespan (float | None, default: None ) –

    The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 791 days. The default is 31 days.

  • per_page (int | None, default: None ) –

    The number of entries per page returned. Acceptable range is 3 - 1000. Default is 100.

  • starting_after (str | None, default: None ) –

    A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • ending_before (str | None, default: None ) –

    A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • sort_order (GetNetworkApplianceClientSecurityEventsSortOrder | None, default: None ) –

    Sorted order of security events based on event detection time. Order options are 'ascending' or 'descending'. Default is ascending order.

  • total_pages (int | Literal['all'], default: 'all' ) –

    use with per_page to get total results up to total_pages * per_page; -1 or "all" for all pages.

  • direction (Literal['prev', 'next'], default: 'next' ) –

    direction to paginate, either "next" (default) or "prev" page.

Returns:

  • PaginatedResponse[GetNetworkApplianceClientSecurityEventsResponse]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "ts": "2018-02-11T00:00:00.090210Z",
    "eventType": "File Scanned",
    "clientName": "COMPUTER-M-V78J",
    "clientMac": "10:dd:b1:eb:88:f8",
    "clientIp": "192.168.128.2",
    "srcIp": "192.168.128.2",
    "destIp": "119.192.233.48",
    "protocol": "http",
    "uri": "http://www.favorite-icons.com/program/FavoriteIconsUninstall.exe",
    "canonicalName": "PUA.Win.Dropper.Kraddare::1201",
    "destinationPort": 80,
    "fileHash": "3ec1b9a95fe62aa25fc959643a0f227b76d253094681934daaf628d3574b3463",
    "fileType": "MS_EXE",
    "fileSizeBytes": 193688,
    "disposition": "Malicious",
    "action": "Blocked"
  },
  {
    "ts": "2018-02-11T00:00:00.090210Z",
    "eventType": "IDS Alert",
    "deviceMac": "00:18:0a:01:02:03",
    "clientMac": "A1:B2:C3:D4:E5:F6",
    "srcIp": "1.2.3.4:34195",
    "destIp": "10.20.30.40:80",
    "protocol": "tcp/ip",
    "priority": "2",
    "classification": "4",
    "blocked": true,
    "message": "SERVER-WEBAPP JBoss JMX console access attempt",
    "signature": "1:21516:9",
    "sigSource": "",
    "ruleId": "meraki:intrusion/snort/GID/1/SID/26267"
  }
]

get_network_appliance_connectivity_monitoring_destinations

Return the connectivity testing destinations for an MX network.

API documentation: getNetworkApplianceConnectivityMonitoringDestinations

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceConnectivityMonitoringDestinationsResponse

    Successful operation.

Example API response
{
  "destinations": [
    {
      "ip": "1.2.3.4",
      "description": "Google",
      "default": false
    }
  ]
}

get_network_appliance_content_filtering

Return the content filtering settings for an MX network.

API documentation: getNetworkApplianceContentFiltering

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceContentFilteringResponse

    Successful operation.

Example API response
{
  "allowedUrlPatterns": [
    "http://www.example.org",
    "http://help.com.au"
  ],
  "blockedUrlPatterns": [
    "http://www.example.com",
    "http://www.betting.com"
  ],
  "blockedUrlCategories": [
    {
      "id": "meraki:contentFiltering/category/1",
      "name": "Real Estate"
    }
  ],
  "urlCategoryListSize": "topSites"
}

get_network_appliance_content_filtering_categories

List all available content filtering categories for an MX network.

API documentation: getNetworkApplianceContentFilteringCategories

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • GetNetworkApplianceContentFilteringCategoriesResponse

    Successful operation.

Example API response
{
  "categories": [
    {
      "id": "meraki:contentFiltering/category/1",
      "name": "Real Estate"
    }
  ]
}

get_network_appliance_firewall_cellular_firewall_rules

Return the cellular firewall rules for an MX network.

API documentation: getNetworkApplianceFirewallCellularFirewallRules

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • GetNetworkApplianceFirewallCellularFirewallRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "comment": "Allow TCP traffic to subnet with HTTP servers.",
      "policy": "allow",
      "protocol": "tcp",
      "srcPort": "Any",
      "srcCidr": "Any",
      "destPort": "443",
      "destCidr": "192.168.1.0/24",
      "syslogEnabled": false
    }
  ]
}

get_network_appliance_firewall_firewalled_service

Return the accessibility settings of the given service ('ICMP', 'web', or 'SNMP').

API documentation: getNetworkApplianceFirewallFirewalledService

Parameters:

  • network_id (str) –

    Network ID.

  • service (str) –

    Service.

Returns:

  • NetworkApplianceFirewallFirewalledServiceResponse

    Successful operation.

Example API response
{
  "service": "web",
  "access": "restricted",
  "allowedIps": [
    "123.123.123.1"
  ]
}

get_network_appliance_firewall_firewalled_services

List the appliance services and their accessibility rules.

API documentation: getNetworkApplianceFirewallFirewalledServices

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • PaginatedResponse[NetworkApplianceFirewallFirewalledServiceResponse]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "service": "web",
    "access": "restricted",
    "allowedIps": [
      "123.123.123.1"
    ]
  }
]

get_network_appliance_firewall_inbound_cellular_firewall_rules

Return the inbound cellular firewall rules for an MX network.

API documentation: getNetworkApplianceFirewallInboundCellularFirewallRules

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • GetNetworkApplianceFirewallCellularFirewallRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "comment": "Allow TCP traffic to subnet with HTTP servers.",
      "policy": "allow",
      "protocol": "tcp",
      "srcPort": "Any",
      "srcCidr": "Any",
      "destPort": "443",
      "destCidr": "192.168.1.0/24",
      "syslogEnabled": false
    }
  ]
}

get_network_appliance_firewall_inbound_firewall_rules

Return the inbound firewall rules for an MX network.

API documentation: getNetworkApplianceFirewallInboundFirewallRules

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceFirewallInboundFirewallRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "comment": "Allow TCP traffic to subnet with HTTP servers.",
      "policy": "allow",
      "protocol": "tcp",
      "srcPort": "Any",
      "srcCidr": "Any",
      "destPort": "443",
      "destCidr": "192.168.1.0/24",
      "syslogEnabled": false
    }
  ],
  "syslogDefaultRule": false
}

get_network_appliance_firewall_l3_firewall_rules

Return the L3 firewall rules for an MX network.

API documentation: getNetworkApplianceFirewallL3FirewallRules

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • GetNetworkApplianceFirewallCellularFirewallRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "comment": "Allow TCP traffic to subnet with HTTP servers.",
      "policy": "allow",
      "protocol": "tcp",
      "srcPort": "Any",
      "srcCidr": "Any",
      "destPort": "443",
      "destCidr": "192.168.1.0/24",
      "syslogEnabled": false
    }
  ]
}

get_network_appliance_firewall_l7_firewall_rules

List the MX L7 firewall rules for an MX network.

API documentation: getNetworkApplianceFirewallL7FirewallRules

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceFirewallL7FirewallRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "policy": "deny",
      "type": "host",
      "value": "google.com"
    }
  ]
}

get_network_appliance_firewall_l7_firewall_rules_application_categories

Return the L7 firewall application categories and their associated applications for an MX network.

API documentation: getNetworkApplianceFirewallL7FirewallRulesApplicationCategories

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • GetNetworkApplianceFirewallL7FirewallRulesApplicationCategoriesResponse

    Successful operation.

Example API response
{
  "applicationCategories": [
    {
      "id": "meraki:layer7/category/24",
      "name": "Advertising",
      "applications": [
        {
          "id": "meraki:layer7/application/5",
          "name": "Advertising.com"
        }
      ]
    }
  ]
}

get_network_appliance_firewall_one_to_many_nat_rules

Return the 1:Many NAT mapping rules for an MX network.

API documentation: getNetworkApplianceFirewallOneToManyNatRules

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceFirewallOneToManyNatRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "publicIp": "146.11.11.13",
      "uplink": "internet1",
      "portRules": [
        {
          "name": "Rule 1",
          "protocol": "tcp",
          "publicPort": "9443",
          "localIp": "192.168.128.1",
          "localPort": "443",
          "allowedIps": [
            "any"
          ]
        }
      ]
    }
  ]
}

get_network_appliance_firewall_one_to_one_nat_rules

Return the 1:1 NAT mapping rules for an MX network.

API documentation: getNetworkApplianceFirewallOneToOneNatRules

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceFirewallOneToOneNatRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "name": "Service behind NAT",
      "publicIp": "146.12.3.33",
      "lanIp": "192.168.128.22",
      "uplink": "internet1",
      "allowedInbound": [
        {
          "protocol": "tcp",
          "destinationPorts": [
            "80"
          ],
          "allowedIps": [
            "10.82.112.0/24",
            "10.82.0.0/16"
          ]
        }
      ]
    }
  ]
}

get_network_appliance_firewall_port_forwarding_rules

Return the port forwarding rules for an MX network.

API documentation: getNetworkApplianceFirewallPortForwardingRules

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceFirewallPortForwardingRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "lanIp": "192.168.128.1",
      "allowedIps": [
        "any"
      ],
      "name": "Description of Port Forwarding Rule",
      "protocol": "tcp",
      "publicPort": "8100-8101",
      "localPort": "442-443",
      "uplink": "both"
    }
  ]
}

get_network_appliance_firewall_settings

Return the firewall settings for this network.

API documentation: getNetworkApplianceFirewallSettings

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceFirewallSettingsResponse

    Successful operation.

Example API response
{
  "spoofingProtection": {
    "ipSourceGuard": {
      "mode": "block"
    }
  }
}

get_network_appliance_port

Return per-port VLAN settings for a single secure router or security appliance port.

API documentation: getNetworkAppliancePort

Parameters:

  • network_id (str) –

    Network ID.

  • port_id (str) –

    Port ID.

Returns:

  • NetworkAppliancePortResponse

    Successful operation.

Example API response
{
  "number": 1,
  "enabled": true,
  "type": "access",
  "dropUntaggedTraffic": false,
  "vlan": 3,
  "allowedVlans": "all",
  "accessPolicy": "open"
}

get_network_appliance_ports

List per-port VLAN settings for all ports of a secure router or security appliance.

API documentation: getNetworkAppliancePorts

Parameters:

  • network_id (str) –

    Network ID.

Returns:

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "number": 1,
    "enabled": true,
    "type": "access",
    "dropUntaggedTraffic": false,
    "vlan": 3,
    "allowedVlans": "all",
    "accessPolicy": "open"
  }
]

get_network_appliance_prefixes_delegated_static

Return a static delegated prefix from a network.

API documentation: getNetworkAppliancePrefixesDelegatedStatic

Parameters:

  • network_id (str) –

    Network ID.

  • static_delegated_prefix_id (str) –

    Static delegated prefix ID.

Returns:

  • NetworkAppliancePrefixesDelegatedStaticResponse

    Successful operation.

Example API response
{
  "staticDelegatedPrefixId": "1284392014819",
  "prefix": "2001:db8:3c4d:15::/64",
  "origin": {
    "type": "internet",
    "interfaces": [
      "wan1"
    ]
  },
  "description": "Prefix on WAN 1 of Long Island Office network",
  "createdAt": "2018-05-12T00:00:00Z",
  "updatedAt": "2018-05-12T00:00:00Z"
}

get_network_appliance_prefixes_delegated_statics

List static delegated prefixes for a network.

API documentation: getNetworkAppliancePrefixesDelegatedStatics

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • PaginatedResponse[NetworkAppliancePrefixesDelegatedStaticResponse]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "staticDelegatedPrefixId": "1284392014819",
    "prefix": "2001:db8:3c4d:15::/64",
    "origin": {
      "type": "internet",
      "interfaces": [
        "wan1"
      ]
    },
    "description": "Prefix on WAN 1 of Long Island Office network",
    "createdAt": "2018-05-12T00:00:00Z",
    "updatedAt": "2018-05-12T00:00:00Z"
  }
]

get_network_appliance_rf_profile

Return a RF profile.

API documentation: getNetworkApplianceRfProfile

Parameters:

  • network_id (str) –

    Network ID.

  • rf_profile_id (str) –

    Rf profile ID.

Returns:

  • NetworkApplianceRfProfileResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "networkId": "N_24329156",
  "name": "Some Custom RF Profile",
  "twoFourGhzSettings": {
    "minBitrate": 11.0,
    "axEnabled": true
  },
  "fiveGhzSettings": {
    "minBitrate": 12,
    "axEnabled": true
  },
  "perSsidSettings": {
    "1": {
      "bandOperationMode": "dual",
      "bandSteeringEnabled": true
    },
    "2": {
      "bandOperationMode": "dual",
      "bandSteeringEnabled": true
    },
    "3": {
      "bandOperationMode": "dual",
      "bandSteeringEnabled": true
    },
    "4": {
      "bandOperationMode": "dual",
      "bandSteeringEnabled": true
    }
  }
}

get_network_appliance_rf_profiles

List the RF profiles for this network.

API documentation: getNetworkApplianceRfProfiles

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • GetNetworkApplianceRfProfilesResponse

    Successful operation.

Example API response
{
  "assigned": [
    {
      "id": "1234",
      "networkId": "N_24329156",
      "name": "Some Custom RF Profile",
      "twoFourGhzSettings": {
        "minBitrate": 11.0,
        "axEnabled": true
      },
      "fiveGhzSettings": {
        "minBitrate": 12,
        "axEnabled": true
      },
      "perSsidSettings": {
        "1": {
          "bandOperationMode": "dual",
          "bandSteeringEnabled": true
        },
        "2": {
          "bandOperationMode": "dual",
          "bandSteeringEnabled": true
        },
        "3": {
          "bandOperationMode": "dual",
          "bandSteeringEnabled": true
        },
        "4": {
          "bandOperationMode": "dual",
          "bandSteeringEnabled": true
        }
      }
    }
  ]
}

get_network_appliance_security_events

List the security events for a network.

API documentation: getNetworkApplianceSecurityEvents

Parameters:

  • network_id (str) –

    Network ID.

  • t0 (str | None, default: None ) –

    The beginning of the timespan for the data. Data is gathered after the specified t0 value. The maximum lookback period is 365 days from today.

  • t1 (str | None, default: None ) –

    The end of the timespan for the data. t1 can be a maximum of 365 days after t0.

  • timespan (float | None, default: None ) –

    The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 365 days. The default is 31 days.

  • per_page (int | None, default: None ) –

    The number of entries per page returned. Acceptable range is 3 - 1000. Default is 100.

  • starting_after (str | None, default: None ) –

    A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • ending_before (str | None, default: None ) –

    A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • sort_order (GetNetworkApplianceSecurityEventsSortOrder | None, default: None ) –

    Sorted order of security events based on event detection time. Order options are 'ascending' or 'descending'. Default is ascending order.

  • total_pages (int | Literal['all'], default: 'all' ) –

    use with per_page to get total results up to total_pages * per_page; -1 or "all" for all pages.

  • direction (Literal['prev', 'next'], default: 'next' ) –

    direction to paginate, either "next" (default) or "prev" page.

Returns:

  • PaginatedResponse[GetNetworkApplianceClientSecurityEventsResponse]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "ts": "2018-02-11T00:00:00.090210Z",
    "eventType": "File Scanned",
    "clientName": "COMPUTER-M-V78J",
    "clientMac": "10:dd:b1:eb:88:f8",
    "clientIp": "192.168.128.2",
    "srcIp": "192.168.128.2",
    "destIp": "119.192.233.48",
    "protocol": "http",
    "uri": "http://www.favorite-icons.com/program/FavoriteIconsUninstall.exe",
    "canonicalName": "PUA.Win.Dropper.Kraddare::1201",
    "destinationPort": 80,
    "fileHash": "3ec1b9a95fe62aa25fc959643a0f227b76d253094681934daaf628d3574b3463",
    "fileType": "MS_EXE",
    "fileSizeBytes": 193688,
    "disposition": "Malicious",
    "action": "Blocked"
  },
  {
    "ts": "2018-02-11T00:00:00.090210Z",
    "eventType": "IDS Alert",
    "deviceMac": "00:18:0a:01:02:03",
    "clientMac": "A1:B2:C3:D4:E5:F6",
    "srcIp": "1.2.3.4:34195",
    "destIp": "10.20.30.40:80",
    "protocol": "tcp/ip",
    "priority": "2",
    "classification": "4",
    "blocked": true,
    "message": "SERVER-WEBAPP JBoss JMX console access attempt",
    "signature": "1:21516:9",
    "sigSource": "",
    "ruleId": "meraki:intrusion/snort/GID/1/SID/26267"
  }
]

get_network_appliance_security_intrusion

Returns all supported intrusion settings for an MX network.

API documentation: getNetworkApplianceSecurityIntrusion

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • GetNetworkApplianceSecurityIntrusionResponse

    Successful operation.

Example API response
{
  "mode": "prevention",
  "idsRulesets": "balanced",
  "protectedNetworks": {
    "useDefault": false,
    "includedCidr": [
      "10.0.0.0/8",
      "127.0.0.0/8",
      "169.254.0.0/16",
      "172.16.0.0/12"
    ],
    "excludedCidr": [
      "10.0.0.0/8",
      "127.0.0.0/8"
    ]
  }
}

get_network_appliance_security_malware

Returns all supported malware settings for an MX network.

API documentation: getNetworkApplianceSecurityMalware

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceSecurityMalwareResponse

    Successful operation.

Example API response
{
  "mode": "enabled",
  "allowedUrls": [
    {
      "url": "help.com.au",
      "comment": "allow help.com.au"
    }
  ],
  "allowedFiles": [
    {
      "sha256": "e82c5f7d75004727e1f3b94426b9a11c8bc4c312a9170ac9a73abace40aef503",
      "comment": "allow ZIP file"
    }
  ]
}

get_network_appliance_settings

Return the appliance settings for a network.

API documentation: getNetworkApplianceSettings

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceSettingsResponse

    Successful operation.

Example API response
{
  "clientTrackingMethod": "MAC address",
  "deploymentMode": "routed",
  "dynamicDns": {
    "enabled": true,
    "prefix": "test",
    "url": "test-adfgnnhjea.meraki.com"
  }
}

get_network_appliance_single_lan

Return single LAN configuration.

API documentation: getNetworkApplianceSingleLan

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceSingleLanResponse

    Successful operation.

Example API response
{
  "subnet": "192.168.1.0/24",
  "applianceIp": "192.168.1.2",
  "mandatoryDhcp": {
    "enabled": true
  },
  "ipv6": {
    "enabled": true,
    "prefixAssignments": [
      {
        "autonomous": false,
        "staticPrefix": "2001:db8:3c4d:15::/64",
        "staticApplianceIp6": "2001:db8:3c4d:15::1",
        "origin": {
          "type": "internet",
          "interfaces": [
            "wan0"
          ]
        }
      }
    ]
  }
}

get_network_appliance_ssid

Return a single MX SSID.

API documentation: getNetworkApplianceSsid

Parameters:

  • network_id (str) –

    Network ID.

  • number (str) –

    Number.

Returns:

  • NetworkApplianceSsidResponse

    Successful operation.

Example API response
{
  "number": 1,
  "name": "My SSID",
  "enabled": true,
  "defaultVlanId": 1,
  "authMode": "8021x-radius",
  "radiusServers": [
    {
      "host": "0.0.0.0",
      "port": 1000
    }
  ],
  "encryptionMode": "wpa",
  "wpaEncryptionMode": "WPA2 only",
  "visible": true
}

get_network_appliance_ssids

List the MX SSIDs in a network.

API documentation: getNetworkApplianceSsids

Parameters:

  • network_id (str) –

    Network ID.

Returns:

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "number": 1,
    "name": "My SSID",
    "enabled": true,
    "defaultVlanId": 1,
    "authMode": "8021x-radius",
    "radiusServers": [
      {
        "host": "0.0.0.0",
        "port": 1000
      }
    ],
    "encryptionMode": "wpa",
    "wpaEncryptionMode": "WPA2 only",
    "visible": true
  }
]

get_network_appliance_static_route

Return a static route for an MX or teleworker network.

API documentation: getNetworkApplianceStaticRoute

Parameters:

  • network_id (str) –

    Network ID.

  • static_route_id (str) –

    Static route ID.

Returns:

  • NetworkApplianceStaticRouteResponse

    Successful operation.

Example API response
{
  "id": "d7fa4948-7921-4dfa-af6b-ae8b16c20c39",
  "ipVersion": 4,
  "networkId": "N_24329156",
  "enabled": true,
  "name": "My route",
  "subnet": "192.168.1.0/24",
  "gatewayIp": "1.2.3.5",
  "fixedIpAssignments": {
    "22:33:44:55:66:77": {
      "ip": "1.2.3.4",
      "name": "Some client name"
    }
  },
  "reservedIpRanges": [
    {
      "start": "192.168.1.0",
      "end": "192.168.1.1",
      "comment": "A reserved IP range"
    }
  ],
  "gatewayVlanId": 100
}

get_network_appliance_static_routes

List the static routes for an MX or teleworker network.

API documentation: getNetworkApplianceStaticRoutes

Parameters:

  • network_id (str) –

    Network ID.

Returns:

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "id": "d7fa4948-7921-4dfa-af6b-ae8b16c20c39",
    "ipVersion": 4,
    "networkId": "N_24329156",
    "enabled": true,
    "name": "My route",
    "subnet": "192.168.1.0/24",
    "gatewayIp": "1.2.3.5",
    "fixedIpAssignments": {
      "22:33:44:55:66:77": {
        "ip": "1.2.3.4",
        "name": "Some client name"
      }
    },
    "reservedIpRanges": [
      {
        "start": "192.168.1.0",
        "end": "192.168.1.1",
        "comment": "A reserved IP range"
      }
    ],
    "gatewayVlanId": 100
  }
]

get_network_appliance_traffic_shaping

Display the traffic shaping settings for an MX network.

API documentation: getNetworkApplianceTrafficShaping

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceTrafficShapingResponse

    Successful operation.

Example API response
{
  "globalBandwidthLimits": {
    "limitUp": 2048,
    "limitDown": 5120
  }
}

get_network_appliance_traffic_shaping_custom_performance_class

Return a custom performance class for an MX network.

API documentation: getNetworkApplianceTrafficShapingCustomPerformanceClass

Parameters:

  • network_id (str) –

    Network ID.

  • custom_performance_class_id (str) –

    Custom performance class ID.

Returns:

  • NetworkApplianceTrafficShapingCustomPerformanceClassResponse

    Successful operation.

Example API response
{
  "name": "myCustomPerformanceClass",
  "customPerformanceClassId": "123",
  "maxLatency": 100,
  "maxJitter": 100,
  "maxLossPercentage": 5
}

get_network_appliance_traffic_shaping_custom_performance_classes

List all custom performance classes for an MX network.

API documentation: getNetworkApplianceTrafficShapingCustomPerformanceClasses

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • PaginatedResponse[NetworkApplianceTrafficShapingCustomPerformanceClassResponse]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "name": "myCustomPerformanceClass",
    "customPerformanceClassId": "123",
    "maxLatency": 100,
    "maxJitter": 100,
    "maxLossPercentage": 5
  }
]

get_network_appliance_traffic_shaping_rules

Display the traffic shaping settings rules for an MX network.

API documentation: getNetworkApplianceTrafficShapingRules

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceTrafficShapingRulesResponse

    Successful operation.

Example API response
{
  "defaultRulesEnabled": true,
  "rules": [
    {
      "definitions": [
        {
          "type": "host",
          "value": "google.com"
        }
      ],
      "perClientBandwidthLimits": {
        "settings": "custom",
        "bandwidthLimits": {
          "limitUp": 1000000,
          "limitDown": 1000000
        }
      },
      "dscpTagValue": 0,
      "priority": "normal"
    }
  ]
}

Returns the uplink bandwidth limits for your MX network.

API documentation: getNetworkApplianceTrafficShapingUplinkBandwidth

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceTrafficShapingUplinkBandwidthResponse

    Successful operation.

Example API response
{
  "bandwidthLimits": {
    "wan1": {
      "limitUp": 1000000,
      "limitDown": 1000000
    },
    "wan2": {
      "limitUp": 1000000,
      "limitDown": 1000000
    },
    "cellular": {
      "limitUp": 51200,
      "limitDown": 51200
    }
  }
}

Show uplink selection settings for an MX network.

API documentation: getNetworkApplianceTrafficShapingUplinkSelection

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceTrafficShapingUplinkSelectionResponse

    Successful operation.

Example API response
{
  "activeActiveAutoVpnEnabled": true,
  "defaultUplink": "wan1",
  "loadBalancingEnabled": true,
  "failoverAndFailback": {
    "immediate": {
      "enabled": true
    }
  },
  "wanTrafficUplinkPreferences": [
    {
      "trafficFilters": [
        {
          "type": "custom",
          "value": {
            "protocol": "tcp",
            "source": {
              "port": "1-1024",
              "cidr": "192.168.1.0/24",
              "vlan": 10,
              "host": 254
            },
            "destination": {
              "port": "any",
              "cidr": "any",
              "applications": [
                {
                  "id": "meraki:layer7/application/3",
                  "name": "DNS",
                  "type": "major"
                }
              ]
            }
          }
        }
      ],
      "preferredUplink": "wan1"
    }
  ],
  "vpnTrafficUplinkPreferences": [
    {
      "trafficFilters": [
        {
          "type": "applicationCategory",
          "value": {
            "id": "meraki:layer7/category/1",
            "protocol": "tcp",
            "source": {
              "port": "any",
              "cidr": "192.168.1.0/24",
              "network": "L_23456789",
              "vlan": 20,
              "host": 200
            },
            "destination": {
              "port": "1-1024",
              "cidr": "any",
              "network": "L_12345678",
              "vlan": 10,
              "host": 254,
              "fqdn": "www.google.com"
            }
          }
        }
      ],
      "preferredUplink": "bestForVoIP",
      "failOverCriterion": "poorPerformance",
      "performanceClass": {
        "type": "custom",
        "builtinPerformanceClassName": "VoIP",
        "customPerformanceClassId": "123456"
      }
    }
  ]
}

Get the sent and received bytes for each uplink of a network.

API documentation: getNetworkApplianceUplinksUsageHistory

Parameters:

  • network_id (str) –

    Network ID.

  • t0 (str | None, default: None ) –

    The beginning of the timespan for the data. The maximum lookback period is 365 days from today.

  • t1 (str | None, default: None ) –

    The end of the timespan for the data. t1 can be a maximum of 31 days after t0.

  • timespan (float | None, default: None ) –

    The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 10 minutes.

  • resolution (int | None, default: None ) –

    The time resolution in seconds for returned data. The valid resolutions are: 60, 300, 600, 1800, 3600, 86400. The default is 60.

Returns:

  • PaginatedResponse[GetNetworkApplianceUplinksUsageHistoryResponseItem]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "startTime": "2021-07-22T02:00:00Z",
    "endTime": "2021-07-22T03:00:00Z",
    "byInterface": [
      {
        "interface": "wan1",
        "sent": 1562063,
        "received": 9528787
      }
    ]
  }
]

get_network_appliance_vlan

Return a VLAN.

API documentation: getNetworkApplianceVlan

Parameters:

  • network_id (str) –

    Network ID.

  • vlan_id (str) –

    Vlan ID.

Returns:

  • NetworkApplianceVlanResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "interfaceId": "1284392014819",
  "name": "My VLAN",
  "subnet": "192.168.1.0/24",
  "applianceIp": "192.168.1.2",
  "groupPolicyId": "101",
  "templateVlanType": "same",
  "cidr": "192.168.1.0/24",
  "mask": 28,
  "dhcpRelayServerIps": [
    "192.168.1.0",
    "192.168.128.0"
  ],
  "dhcpHandling": "Run a DHCP server",
  "dhcpLeaseTime": "1 day",
  "dhcpBootOptionsEnabled": false,
  "dhcpBootNextServer": "1.2.3.4",
  "dhcpBootFilename": "sample.file",
  "fixedIpAssignments": {
    "00:11:22:33:44:55": {
      "ip": "1.2.3.4",
      "name": "My favorite IP"
    }
  },
  "reservedIpRanges": [
    {
      "start": "192.168.1.0",
      "end": "192.168.1.1",
      "comment": "A reserved IP range"
    }
  ],
  "dnsNameservers": "google_dns",
  "dhcpOptions": [
    {
      "code": "5",
      "type": "text",
      "value": "five"
    }
  ],
  "vpnNatSubnet": "192.168.1.0/24",
  "mandatoryDhcp": {
    "enabled": true
  },
  "ipv6": {
    "enabled": true,
    "prefixAssignments": [
      {
        "autonomous": false,
        "staticPrefix": "2001:db8:3c4d:15::/64",
        "staticApplianceIp6": "2001:db8:3c4d:15::1",
        "origin": {
          "type": "internet",
          "interfaces": [
            "wan0"
          ]
        }
      }
    ]
  },
  "vrf": {
    "id": "1000",
    "name": "VRF BLUE"
  }
}

get_network_appliance_vlans

List the VLANs for a Security Appliance network.

API documentation: getNetworkApplianceVlans

Parameters:

  • network_id (str) –

    Network ID.

Returns:

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "id": "1234",
    "interfaceId": "1284392014819",
    "name": "My VLAN",
    "subnet": "192.168.1.0/24",
    "applianceIp": "192.168.1.2",
    "groupPolicyId": "101",
    "templateVlanType": "same",
    "cidr": "192.168.1.0/24",
    "mask": 28,
    "dhcpRelayServerIps": [
      "192.168.1.0",
      "192.168.128.0"
    ],
    "dhcpHandling": "Run a DHCP server",
    "dhcpLeaseTime": "1 day",
    "dhcpBootOptionsEnabled": false,
    "dhcpBootNextServer": "1.2.3.4",
    "dhcpBootFilename": "sample.file",
    "fixedIpAssignments": {
      "00:11:22:33:44:55": {
        "ip": "1.2.3.4",
        "name": "My favorite IP"
      }
    },
    "reservedIpRanges": [
      {
        "start": "192.168.1.0",
        "end": "192.168.1.1",
        "comment": "A reserved IP range"
      }
    ],
    "dnsNameservers": "google_dns",
    "dhcpOptions": [
      {
        "code": "5",
        "type": "text",
        "value": "five"
      }
    ],
    "vpnNatSubnet": "192.168.1.0/24",
    "mandatoryDhcp": {
      "enabled": true
    },
    "ipv6": {
      "enabled": true,
      "prefixAssignments": [
        {
          "autonomous": false,
          "staticPrefix": "2001:db8:3c4d:15::/64",
          "staticApplianceIp6": "2001:db8:3c4d:15::1",
          "origin": {
            "type": "internet",
            "interfaces": [
              "wan0"
            ]
          }
        }
      ]
    },
    "vrf": {
      "id": "1000",
      "name": "VRF BLUE"
    }
  }
]

get_network_appliance_vlans_settings

Returns the enabled status of VLANs for the network.

API documentation: getNetworkApplianceVlansSettings

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceVlansSettingsResponse

    Successful operation.

Example API response
{
  "vlansEnabled": true
}

get_network_appliance_vpn_bgp

Return a Hub BGP Configuration.

API documentation: getNetworkApplianceVpnBgp

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceVpnBgpResponse

    Successful operation.

Example API response
{
  "enabled": true,
  "asNumber": 64515,
  "ibgpHoldTimer": 120,
  "routerId": "10.15.10.2",
  "neighbors": [
    {
      "ip": "10.10.10.22",
      "ipv6": {
        "address": "2002::1234:abcd:ffff:c0a8:101"
      },
      "remoteAsNumber": 64343,
      "receiveLimit": 120,
      "allowTransit": true,
      "ebgpHoldTimer": 180,
      "ebgpMultihop": 2,
      "sourceInterface": "wan1",
      "nextHopIp": "1.2.3.4",
      "ttlSecurity": {
        "enabled": false
      },
      "authentication": {
        "password": "abc123"
      },
      "multiExitDiscriminator": 2,
      "pathPrepend": [
        1,
        2
      ],
      "weight": 10,
      "filterIn": [
        "10.0.0.0/8",
        "172.16.0.0/12"
      ],
      "communityOut": [
        "64515:100",
        "NO_EXPORT"
      ]
    }
  ]
}

get_network_appliance_vpn_site_to_site_vpn

Return the site-to-site VPN settings of a network.

API documentation: getNetworkApplianceVpnSiteToSiteVpn

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceVpnSiteToSiteVpnResponse

    Successful operation.

Example API response
{
  "mode": "spoke",
  "hubs": [
    {
      "hubId": "N_4901849",
      "useDefaultRoute": true
    }
  ],
  "subnets": [
    {
      "localSubnet": "192.168.1.0/24",
      "useVpn": true,
      "nat": {
        "enabled": true,
        "remoteSubnet": "192.168.2.0/24"
      }
    }
  ],
  "subnet": {
    "nat": {
      "isAllowed": true
    }
  },
  "hostTranslations": [
    {
      "name": "Host 1",
      "local": {
        "address": "192.168.1.10"
      },
      "remote": {
        "address": "72.168.2.10"
      }
    }
  ]
}

get_network_appliance_warm_spare

Return MX warm spare settings.

API documentation: getNetworkApplianceWarmSpare

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceWarmSpareResponse

    Successful operation.

Example API response
{
  "enabled": true,
  "primarySerial": "Q234-ABCD-5678",
  "spareSerial": "Q234-ABCD-5678",
  "uplinkMode": "virtual",
  "wan1": {
    "ip": "1.2.3.4",
    "subnet": "192.168.1.0/24"
  },
  "wan2": {
    "ip": "1.2.3.4",
    "subnet": "192.168.1.0/24"
  }
}

get_organization_appliance_devices_redundancy_by_network

Return MX warm spare settings.

API documentation: getOrganizationApplianceDevicesRedundancyByNetwork

Parameters:

  • organization_id (str) –

    Organization ID.

  • per_page (int | None, default: None ) –

    The number of entries per page returned. Acceptable range is 5 - 1000. Default is 50.

  • starting_after (str | None, default: None ) –

    A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • ending_before (str | None, default: None ) –

    A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • total_pages (int | Literal['all'], default: 'all' ) –

    use with per_page to get total results up to total_pages * per_page; -1 or "all" for all pages.

  • direction (Literal['prev', 'next'], default: 'next' ) –

    direction to paginate, either "next" (default) or "prev" page.

Returns:

  • PaginatedResponse[UpdateNetworkApplianceDevicesRedundancyResponseDesignationsItem]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
{
  "networkId": "L_12345",
  "name": "some_locale",
  "enabled": true,
  "mode": "active-active",
  "designations": [
    {
      "serial": "Q234-ABCD-5678",
      "priority": 1
    }
  ],
  "uplink": {
    "mode": "virtual",
    "interfaces": [
      {
        "name": "wan1",
        "addresses": [
          {
            "address": "1.2.3.4",
            "subnet": "192.168.1.0/24"
          }
        ]
      }
    ],
    "sharing": {
      "enabled": true,
      "vlanId": "100",
      "byInterface": [
        {
          "name": "wan1",
          "parent": "primary"
        }
      ]
    },
    "loadBalancing": {
      "enabled": true,
      "vlanSelection": {
        "mode": "auto",
        "byDevice": [
          {
            "serial": "Q234-ABCD-5678",
            "vlanIds": [
              1,
              2
            ]
          }
        ]
      }
    }
  }
}

get_organization_appliance_dns_local_profiles

Fetch the local DNS profiles used in the organization.

API documentation: getOrganizationApplianceDnsLocalProfiles

Parameters:

  • organization_id (str) –

    Organization ID.

  • profile_ids (list[str] | None, default: None ) –

    Optional parameter to filter the results by profile IDs.

Returns:

  • PaginatedResponse[OrganizationApplianceDnsLocalProfileResponse]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "profileId": "123456",
    "name": "Default profile"
  }
]

get_organization_appliance_dns_local_profiles_assignments

Fetch the local DNS profile assignments in the organization.

API documentation: getOrganizationApplianceDnsLocalProfilesAssignments

Parameters:

  • organization_id (str) –

    Organization ID.

  • profile_ids (list[str] | None, default: None ) –

    Optional parameter to filter the results by profile IDs.

  • network_ids (list[str] | None, default: None ) –

    Optional parameter to filter the results by network IDs.

Returns:

  • PaginatedResponse[GetOrganizationApplianceDnsLocalProfilesAssignmentsResponseItemsItem]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
{
  "items": [
    {
      "assignmentId": "123456",
      "network": {
        "id": "N_123456"
      },
      "profile": {
        "id": "1234"
      }
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 10,
        "remaining": 0
      }
    }
  }
}

get_organization_appliance_dns_local_records

Fetch the DNS records used in local DNS profiles.

API documentation: getOrganizationApplianceDnsLocalRecords

Parameters:

  • organization_id (str) –

    Organization ID.

  • profile_ids (list[str] | None, default: None ) –

    Optional parameter to filter the results by profile IDs.

Returns:

  • PaginatedResponse[UpdateOrganizationApplianceDnsLocalRecordResponse]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "recordId": "12345",
    "hostname": "www.test.com",
    "address": "10.1.1.0",
    "profile": {
      "id": "1"
    }
  }
]

get_organization_appliance_dns_split_profiles

Fetch the split DNS profiles used in the organization.

API documentation: getOrganizationApplianceDnsSplitProfiles

Parameters:

  • organization_id (str) –

    Organization ID.

  • profile_ids (list[str] | None, default: None ) –

    Optional parameter to filter the results by profile IDs.

Returns:

  • PaginatedResponse[OrganizationApplianceDnsSplitProfileResponse]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "profileId": "123456",
    "name": "Default profile",
    "hostnames": [
      "*.test1.com",
      "*.test2.com"
    ],
    "nameservers": {
      "addresses": [
        "12.1.10.1"
      ]
    }
  }
]

get_organization_appliance_dns_split_profiles_assignments

Fetch the split DNS profile assignments in the organization.

API documentation: getOrganizationApplianceDnsSplitProfilesAssignments

Parameters:

  • organization_id (str) –

    Organization ID.

  • profile_ids (list[str] | None, default: None ) –

    Optional parameter to filter the results by profile IDs.

  • network_ids (list[str] | None, default: None ) –

    Optional parameter to filter the results by network IDs.

Returns:

  • PaginatedResponse[GetOrganizationApplianceDnsLocalProfilesAssignmentsResponseItemsItem]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
{
  "items": [
    {
      "assignmentId": "123456",
      "network": {
        "id": "N_123456"
      },
      "profile": {
        "id": "1234"
      }
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 10,
        "remaining": 0
      }
    }
  }
}

get_organization_appliance_firewall_multicast_forwarding_by_network

List Static Multicasting forwarding settings for MX networks.

API documentation: getOrganizationApplianceFirewallMulticastForwardingByNetwork

Parameters:

  • organization_id (str) –

    Organization ID.

  • per_page (int | None, default: None ) –

    The number of entries per page returned. Acceptable range is 3 - 1000. Default is 1000.

  • starting_after (str | None, default: None ) –

    A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • ending_before (str | None, default: None ) –

    A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • network_ids (list[str] | None, default: None ) –

    Optional parameter to filter the results by network IDs.

  • total_pages (int | Literal['all'], default: 'all' ) –

    use with per_page to get total results up to total_pages * per_page; -1 or "all" for all pages.

  • direction (Literal['prev', 'next'], default: 'next' ) –

    direction to paginate, either "next" (default) or "prev" page.

Returns:

  • PaginatedResponse[UpdateNetworkApplianceFirewallMulticastForwardingResponse]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
{
  "items": [
    {
      "network": {
        "id": "N_24329156",
        "name": "Main Office"
      },
      "rules": [
        {
          "description": "test",
          "address": "224.0.0.1",
          "vlanIds": [
            "1"
          ]
        }
      ]
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 1,
        "remaining": 0
      }
    }
  }
}

get_organization_appliance_routing_vrfs_settings

Return the VRF setting for an organization.

API documentation: getOrganizationApplianceRoutingVrfsSettings

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • OrganizationApplianceRoutingVrfsSettingsResponse

    Successful operation.

Example API response
{
  "enabled": false
}

get_organization_appliance_security_events

List the security events for an organization.

API documentation: getOrganizationApplianceSecurityEvents

Parameters:

  • organization_id (str) –

    Organization ID.

  • t0 (str | None, default: None ) –

    The beginning of the timespan for the data. Data is gathered after the specified t0 value. The maximum lookback period is 365 days from today.

  • t1 (str | None, default: None ) –

    The end of the timespan for the data. t1 can be a maximum of 365 days after t0.

  • timespan (float | None, default: None ) –

    The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 365 days. The default is 31 days.

  • per_page (int | None, default: None ) –

    The number of entries per page returned. Acceptable range is 3 - 1000. Default is 100.

  • starting_after (str | None, default: None ) –

    A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • ending_before (str | None, default: None ) –

    A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • sort_order (GetOrganizationApplianceSecurityEventsSortOrder | None, default: None ) –

    Sorted order of security events based on event detection time. Order options are 'ascending' or 'descending'. Default is ascending order.

  • total_pages (int | Literal['all'], default: 'all' ) –

    use with per_page to get total results up to total_pages * per_page; -1 or "all" for all pages.

  • direction (Literal['prev', 'next'], default: 'next' ) –

    direction to paginate, either "next" (default) or "prev" page.

Returns:

  • PaginatedResponse[GetNetworkApplianceClientSecurityEventsResponse]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "ts": "2018-02-11T00:00:00.090210Z",
    "eventType": "File Scanned",
    "clientName": "COMPUTER-M-V78J",
    "clientMac": "10:dd:b1:eb:88:f8",
    "clientIp": "192.168.128.2",
    "srcIp": "192.168.128.2",
    "destIp": "119.192.233.48",
    "protocol": "http",
    "uri": "http://www.favorite-icons.com/program/FavoriteIconsUninstall.exe",
    "canonicalName": "PUA.Win.Dropper.Kraddare::1201",
    "destinationPort": 80,
    "fileHash": "3ec1b9a95fe62aa25fc959643a0f227b76d253094681934daaf628d3574b3463",
    "fileType": "MS_EXE",
    "fileSizeBytes": 193688,
    "disposition": "Malicious",
    "action": "Blocked"
  },
  {
    "ts": "2018-02-11T00:00:00.090210Z",
    "eventType": "IDS Alert",
    "deviceMac": "00:18:0a:01:02:03",
    "clientMac": "A1:B2:C3:D4:E5:F6",
    "srcIp": "1.2.3.4:34195",
    "destIp": "10.20.30.40:80",
    "protocol": "tcp/ip",
    "priority": "2",
    "classification": "4",
    "blocked": true,
    "message": "SERVER-WEBAPP JBoss JMX console access attempt",
    "signature": "1:21516:9",
    "sigSource": "",
    "ruleId": "meraki:intrusion/snort/GID/1/SID/26267"
  }
]

get_organization_appliance_security_intrusion

Returns all supported intrusion settings for an organization.

API documentation: getOrganizationApplianceSecurityIntrusion

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • OrganizationApplianceSecurityIntrusionResponse

    Successful operation.

Example API response
{
  "allowedRules": [
    {
      "ruleId": "meraki:intrusion/snort/GID/01/SID/688",
      "message": "SQL sa login failed"
    }
  ]
}

get_organization_appliance_traffic_shaping_vpn_exclusions_by_network

Display VPN exclusion rules for MX networks.

API documentation: getOrganizationApplianceTrafficShapingVpnExclusionsByNetwork

Parameters:

  • organization_id (str) –

    Organization ID.

  • per_page (int | None, default: None ) –

    The number of entries per page returned. Acceptable range is 3 - 1000. Default is 50.

  • starting_after (str | None, default: None ) –

    A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • ending_before (str | None, default: None ) –

    A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • network_ids (list[str] | None, default: None ) –

    Optional parameter to filter the results by network IDs.

  • total_pages (int | Literal['all'], default: 'all' ) –

    use with per_page to get total results up to total_pages * per_page; -1 or "all" for all pages.

  • direction (Literal['prev', 'next'], default: 'next' ) –

    direction to paginate, either "next" (default) or "prev" page.

Returns:

  • PaginatedResponse[UpdateNetworkApplianceTrafficShapingVpnExclusionsResponse]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
{
  "items": [
    {
      "networkId": "N_24329156",
      "networkName": "Main Office",
      "custom": [
        {
          "protocol": "tcp",
          "destination": "192.168.3.0/24",
          "port": "8000"
        }
      ],
      "majorApplications": [
        {
          "id": "meraki:vpnExclusion/application/2",
          "name": "Office 365 Sharepoint"
        }
      ]
    }
  ]
}

List the uplink status of every Meraki MX and Z series appliances in the organization.

API documentation: getOrganizationApplianceUplinkStatuses

Parameters:

  • organization_id (str) –

    Organization ID.

  • per_page (int | None, default: None ) –

    The number of entries per page returned. Acceptable range is 3 - 1000. Default is 1000.

  • starting_after (str | None, default: None ) –

    A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • ending_before (str | None, default: None ) –

    A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • network_ids (list[str] | None, default: None ) –

    A list of network IDs. The returned devices will be filtered to only include these networks.

  • serials (list[str] | None, default: None ) –

    A list of serial numbers. The returned devices will be filtered to only include these serials.

  • iccids (list[str] | None, default: None ) –

    A list of ICCIDs. The returned devices will be filtered to only include these ICCIDs.

  • total_pages (int | Literal['all'], default: 'all' ) –

    use with per_page to get total results up to total_pages * per_page; -1 or "all" for all pages.

  • direction (Literal['prev', 'next'], default: 'next' ) –

    direction to paginate, either "next" (default) or "prev" page.

Returns:

  • PaginatedResponse[GetOrganizationApplianceUplinkStatusesResponseItem]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "networkId": "N_24329156",
    "serial": "Q234-ABCD-5678",
    "model": "MX68C",
    "lastReportedAt": "2018-02-11T00:00:00Z",
    "highAvailability": {
      "enabled": true,
      "role": "primary"
    },
    "uplinks": [
      {
        "interface": "wan1",
        "status": "active",
        "ip": "1.2.3.4",
        "gateway": "1.2.3.5",
        "publicIp": "123.123.123.1",
        "primaryDns": "8.8.8.8",
        "secondaryDns": "8.8.4.4",
        "ipAssignedBy": "static"
      }
    ]
  }
]

Fetch uplink NAT settings of each network in the organization.

API documentation: getOrganizationApplianceUplinksNatByNetwork

Parameters:

  • organization_id (str) –

    Organization ID.

  • network_ids (list[str] | None, default: None ) –

    Optional parameter to filter the results by the included set of network IDs.

  • interfaces (list[str] | None, default: None ) –

    Optional parameter to filter the results by the included set of interfaces.

  • per_page (int | None, default: None ) –

    The number of entries per page returned. Acceptable range is 3 - 100000. Default is 1000.

  • starting_after (str | None, default: None ) –

    A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • ending_before (str | None, default: None ) –

    A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • total_pages (int | Literal['all'], default: 'all' ) –

    use with per_page to get total results up to total_pages * per_page; -1 or "all" for all pages.

  • direction (Literal['prev', 'next'], default: 'next' ) –

    direction to paginate, either "next" (default) or "prev" page.

Returns:

  • PaginatedResponse[GetOrganizationApplianceUplinksNatByNetworkResponseItem]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "networkId": "N_123456",
    "uplinks": [
      {
        "interface": "wan1",
        "nat": {
          "enabled": false
        }
      }
    ]
  }
]

Returns an overview of uplink statuses.

API documentation: getOrganizationApplianceUplinksStatusesOverview

Parameters:

  • organization_id (str) –

    Organization ID.

  • network_ids (list[str] | None, default: None ) –

    A list of network IDs. The returned devices will be filtered to only include these networks.

Returns:

  • GetOrganizationApplianceUplinksStatusesOverviewResponse

    Successful operation.

Example API response
{
  "counts": {
    "byStatus": {
      "active": 5,
      "ready": 5,
      "failed": 4,
      "connecting": 2,
      "notConnected": 1
    }
  }
}

Get the sent and received bytes for each uplink of all MX and Z networks within an organization.

API documentation: getOrganizationApplianceUplinksUsageByNetwork

Parameters:

  • organization_id (str) –

    Organization ID.

  • t0 (str | None, default: None ) –

    The beginning of the timespan for the data. The maximum lookback period is 30 days from today.

  • t1 (str | None, default: None ) –

    The end of the timespan for the data. t1 can be a maximum of 14 days after t0.

  • timespan (float | None, default: None ) –

    The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 14 days. The default is 1 day.

Returns:

  • PaginatedResponse[GetOrganizationApplianceUplinksUsageByNetworkResponseItem]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "networkId": "N_24329156",
    "name": "Main Office",
    "byUplink": [
      {
        "serial": "Q234-ABCD-5678",
        "interface": "wan1",
        "sent": 200,
        "received": 400
      }
    ]
  }
]

get_organization_appliance_vpn_site_to_site_ipsec_peers_slas

Get the list of available IPsec SLA policies for an organization.

API documentation: getOrganizationApplianceVpnSiteToSiteIpsecPeersSlas

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • PaginatedResponse[OrganizationApplianceVpnSiteToSiteIpsecPeersSlasResponseItemsItem]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
{
  "items": [
    {
      "id": "12345",
      "name": "sla policy",
      "uri": "http://checkthisendpoint.com",
      "ipsec": {
        "peerIds": [
          "1010",
          "1011"
        ]
      }
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 1,
        "remaining": 0
      }
    }
  }
}

get_organization_appliance_vpn_stats

Show VPN history stat for networks in an organization.

API documentation: getOrganizationApplianceVpnStats

Parameters:

  • organization_id (str) –

    Organization ID.

  • per_page (int | None, default: None ) –

    The number of entries per page returned. Acceptable range is 3 - 300. Default is 300.

  • starting_after (str | None, default: None ) –

    A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • ending_before (str | None, default: None ) –

    A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • network_ids (list[str] | None, default: None ) –

    A list of Meraki network IDs to filter results to contain only specified networks. E.g.: networkIds[]=N_12345678&networkIds[]=L_3456.

  • t0 (str | None, default: None ) –

    The beginning of the timespan for the data. The maximum lookback period is 31 days from today.

  • t1 (str | None, default: None ) –

    The end of the timespan for the data. t1 can be a maximum of 31 days after t0.

  • timespan (float | None, default: None ) –

    The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 1 day.

  • total_pages (int | Literal['all'], default: 'all' ) –

    use with per_page to get total results up to total_pages * per_page; -1 or "all" for all pages.

  • direction (Literal['prev', 'next'], default: 'next' ) –

    direction to paginate, either "next" (default) or "prev" page.

Returns:

  • PaginatedResponse[GetOrganizationApplianceVpnStatsResponseItem]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "networkId": "N_24329156",
    "networkName": "Main Office",
    "merakiVpnPeers": [
      {
        "networkId": "N_12345678",
        "networkName": "San Francisco Office",
        "usageSummary": {
          "receivedInKilobytes": 1234567,
          "sentInKilobytes": 2345678
        },
        "latencySummaries": [
          {
            "senderUplink": "wan1",
            "receiverUplink": "wan1",
            "avgLatencyMs": 15,
            "minLatencyMs": 10,
            "maxLatencyMs": 30
          }
        ],
        "lossPercentageSummaries": [
          {
            "senderUplink": "wan1",
            "receiverUplink": "wan1",
            "avgLossPercentage": 0.0,
            "minLossPercentage": 0.0,
            "maxLossPercentage": 0.1
          }
        ],
        "jitterSummaries": [
          {
            "senderUplink": "wan1",
            "receiverUplink": "wan1",
            "avgJitter": 0.01,
            "minJitter": 0.0,
            "maxJitter": 0.25
          }
        ],
        "mosSummaries": [
          {
            "senderUplink": "wan1",
            "receiverUplink": "wan1",
            "avgMos": 4.1,
            "minMos": 4.0,
            "maxMos": 4.2
          }
        ]
      }
    ]
  }
]

get_organization_appliance_vpn_statuses

Show VPN status for networks in an organization.

API documentation: getOrganizationApplianceVpnStatuses

Parameters:

  • organization_id (str) –

    Organization ID.

  • per_page (int | None, default: None ) –

    The number of entries per page returned. Acceptable range is 3 - 300. Default is 300.

  • starting_after (str | None, default: None ) –

    A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • ending_before (str | None, default: None ) –

    A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • network_ids (list[str] | None, default: None ) –

    A list of Meraki network IDs to filter results to contain only specified networks. E.g.: networkIds[]=N_12345678&networkIds[]=L_3456.

  • total_pages (int | Literal['all'], default: 'all' ) –

    use with per_page to get total results up to total_pages * per_page; -1 or "all" for all pages.

  • direction (Literal['prev', 'next'], default: 'next' ) –

    direction to paginate, either "next" (default) or "prev" page.

Returns:

  • PaginatedResponse[GetOrganizationApplianceVpnStatusesResponseItem]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
[
  {
    "networkId": "N_12345678",
    "networkName": "San Francisco Office",
    "deviceSerial": "Q234-ABCD-1234",
    "deviceStatus": "online",
    "uplinks": [
      {
        "interface": "wan1",
        "publicIp": "1.2.3.4"
      }
    ],
    "vpnMode": "hub",
    "exportedSubnets": [
      {
        "subnet": "192.168.0.0/24",
        "name": "sales-vlan"
      }
    ],
    "merakiVpnPeers": [
      {
        "networkId": "L_1234",
        "networkName": "New York Office",
        "reachability": "reachable",
        "priority": 1
      }
    ],
    "thirdPartyVpnPeers": [
      {
        "name": "Tokyo Office",
        "publicIp": "222.111.222.111",
        "reachability": "reachable"
      }
    ]
  }
]

get_organization_appliance_vpn_third_party_vpn_peers

Return the third party VPN peers for an organization.

API documentation: getOrganizationApplianceVpnThirdPartyVPNPeers

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • OrganizationApplianceVpnThirdPartyVPNPeersResponse

    Successful operation.

Example API response
{
  "peers": [
    {
      "peerId": "1234",
      "name": "Peer Name",
      "publicIp": "123.123.123.1",
      "remoteId": "miles@meraki.com",
      "localId": "myMXId@meraki.com",
      "secret": "secret",
      "privateSubnets": [
        "192.168.1.0/24",
        "192.168.128.0/24"
      ],
      "ipsecPolicies": {
        "ikeCipherAlgo": [
          "tripledes"
        ],
        "ikeAuthAlgo": [
          "sha1"
        ],
        "ikePrfAlgo": [
          "prfsha1"
        ],
        "ikeDiffieHellmanGroup": [
          "group2"
        ],
        "ikeLifetime": 28800,
        "childCipherAlgo": [
          "aes128"
        ],
        "childAuthAlgo": [
          "sha1"
        ],
        "childPfsGroup": [
          "disabled"
        ],
        "childLifetime": 28800
      },
      "slaPolicy": {
        "id": "1234"
      },
      "ipsecPoliciesPreset": "custom",
      "ikeVersion": "1",
      "networkTags": [
        "all"
      ],
      "network": {
        "names": [
          "Network 1",
          "Location 2",
          "Network 3"
        ],
        "ids": [
          "N_1",
          "L_2",
          "N_3"
        ]
      },
      "isRouteBased": true,
      "ebgpNeighbor": {
        "neighborId": 1234,
        "neighborIp": "10.10.10.22",
        "ipVersion": 4,
        "remoteAsNumber": 64343,
        "ebgpHoldTimer": 180,
        "ebgpMultihop": 2,
        "sourceIp": "10.10.10.22",
        "receiveLimit": 100,
        "pathPrepend": [
          1,
          2
        ],
        "multiExitDiscriminator": 1,
        "weight": 10
      },
      "ecmpUplinkConfigs": [
        {
          "id": "7890",
          "wan": "WAN 1",
          "privateSubnets": [
            "169.254.10.0/30"
          ],
          "ebgpNeighbor": {
            "neighborIp": "169.254.10.2",
            "sourceIp": "169.254.10.1"
          }
        }
      ],
      "priorityInGroup": 1,
      "group": {
        "number": 1,
        "failover": {
          "directToInternet": true
        },
        "activeActiveTunnel": true
      }
    }
  ]
}

get_organization_appliance_vpn_vpn_firewall_rules

Return the firewall rules for an organization's site-to-site VPN.

API documentation: getOrganizationApplianceVpnVpnFirewallRules

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • GetNetworkApplianceFirewallCellularFirewallRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "comment": "Allow TCP traffic to subnet with HTTP servers.",
      "policy": "allow",
      "protocol": "tcp",
      "srcPort": "Any",
      "srcCidr": "Any",
      "destPort": "443",
      "destCidr": "192.168.1.0/24",
      "syslogEnabled": false
    }
  ]
}

get_organization_policies_global_group_policies_appliance_vlans_assignments

List appliance VLAN policy assignments.

API documentation: getOrganizationPoliciesGlobalGroupPoliciesApplianceVlansAssignments

Parameters:

  • organization_id (str) –

    Organization ID.

  • assignment_ids (list[str] | None, default: None ) –

    Filter assignments by assignment IDs.

  • policy_ids (list[str] | None, default: None ) –

    Filter assignments by policy IDs.

  • interface_ids (list[str] | None, default: None ) –

    Filter assignments by interface IDs.

  • per_page (int | None, default: None ) –

    The number of entries per page returned. Acceptable range is 3 - 1000. Default is 1000.

  • starting_after (str | None, default: None ) –

    A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • ending_before (str | None, default: None ) –

    A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • total_pages (int | Literal['all'], default: 'all' ) –

    use with per_page to get total results up to total_pages * per_page; -1 or "all" for all pages.

  • direction (Literal['prev', 'next'], default: 'next' ) –

    direction to paginate, either "next" (default) or "prev" page.

Returns:

  • PaginatedResponse[GetOrganizationPoliciesGlobalGroupPoliciesApplianceVlansAssignmentsResponseItemsItem]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
{
  "items": [
    {
      "assignmentId": "assignment_123",
      "policyId": "policy_456",
      "interfaceId": "L_123456789012345678_vlan_200"
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 25,
        "remaining": 15
      }
    }
  }
}

get_organization_policies_global_group_policies_appliance_vlans_assignments_by_vlan

List policies by appliance VLANs.

API documentation: getOrganizationPoliciesGlobalGroupPoliciesApplianceVlansAssignmentsByVlan

Parameters:

  • organization_id (str) –

    Organization ID.

  • search (str | None, default: None ) –

    Search term for filtering policies.

  • vlan_ids (list[str] | None, default: None ) –

    Filter by VLAN IDs.

  • interface_ids (list[str] | None, default: None ) –

    Filter by interface IDs.

  • per_page (int | None, default: None ) –

    The number of entries per page returned. Acceptable range is 3 - 100. Default is 100.

  • starting_after (str | None, default: None ) –

    A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • ending_before (str | None, default: None ) –

    A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.

  • total_pages (int | Literal['all'], default: 'all' ) –

    use with per_page to get total results up to total_pages * per_page; -1 or "all" for all pages.

  • direction (Literal['prev', 'next'], default: 'next' ) –

    direction to paginate, either "next" (default) or "prev" page.

Returns:

  • PaginatedResponse[GetOrganizationPoliciesGlobalGroupPoliciesApplianceVlansAssignmentsByVlanResponseItemsItem]

    Successful operation.

Note

Returns a lazy PaginatedResponse that can be iterated or collected with .collect(). Page metadata is available on .meta and .meta_pages.

Example API response
{
  "items": [
    {
      "network": {
        "id": "L_123456789012345678",
        "name": "Main Office Network"
      },
      "name": "Production VLAN",
      "subnet": "192.168.1.0/24",
      "interfaceId": "1234",
      "vlanId": "100",
      "policy": {
        "id": "456",
        "name": "Production Policy",
        "group": {
          "number": 100
        }
      }
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 25,
        "remaining": 15
      }
    }
  }
}

remove_organization_policies_global_group_policies_appliance_vlans

Remove VLANs from a policy.

API documentation: removeOrganizationPoliciesGlobalGroupPoliciesApplianceVlans

Parameters:

  • organization_id (str) –

    Organization ID.

  • policy (RemoveOrganizationPoliciesGlobalGroupPoliciesApplianceVlansPolicy) –

    Policy to remove VLANs from.

  • vlans (list[RemoveOrganizationPoliciesGlobalGroupPoliciesApplianceVlansVlansItem]) –

    VLANs to remove.

Returns:

  • OrganizationPoliciesGlobalGroupPoliciesApplianceVlansResponse

    Successful operation.

Example API response
{
  "success": true
}

swap_network_appliance_warm_spare

Swap MX primary and warm spare appliances.

API documentation: swapNetworkApplianceWarmSpare

Parameters:

  • network_id (str) –

    Network ID.

Returns:

  • NetworkApplianceWarmSpareResponse

    Successful operation.

Example API response
{
  "enabled": true,
  "primarySerial": "Q234-ABCD-5678",
  "spareSerial": "Q234-ABCD-5678",
  "uplinkMode": "virtual",
  "wan1": {
    "ip": "1.2.3.4",
    "subnet": "192.168.1.0/24"
  },
  "wan2": {
    "ip": "1.2.3.4",
    "subnet": "192.168.1.0/24"
  }
}

update_device_appliance_radio_settings

Update the radio settings of an appliance.

API documentation: updateDeviceApplianceRadioSettings

Parameters:

  • serial (str) –

    Serial.

  • rf_profile_id (str | None, default: None ) –

    The ID of an RF profile to assign to the device. If the value of this parameter is null, the appropriate basic RF profile (indoor or outdoor) will be assigned to the device. Assigning an RF profile will clear ALL manually configured overrides on the device (channel width, channel, power).

  • two_four_ghz_settings (UpdateDeviceApplianceRadioSettingsTwoFourGhzSettings | None, default: None ) –

    Manual radio settings for 2.4 GHz.

  • five_ghz_settings (UpdateDeviceApplianceRadioSettingsFiveGhzSettings | None, default: None ) –

    Manual radio settings for 5 GHz.

Returns:

  • DeviceApplianceRadioSettingsResponse

    Successful operation.

Example API response
{
  "serial": "Q234-ABCD-5678",
  "rfProfileId": "1234",
  "twoFourGhzSettings": {
    "channel": 11,
    "targetPower": 21
  },
  "fiveGhzSettings": {
    "channel": 149,
    "channelWidth": 20,
    "targetPower": 15
  }
}

Update the uplink settings for a secure router or security appliance.

API documentation: updateDeviceApplianceUplinksSettings

Parameters:

  • serial (str) –

    Serial.

  • interfaces (UpdateDeviceApplianceUplinksSettingsInterfaces) –

    Interface settings.

Returns:

  • DeviceApplianceUplinksSettingsResponse

    Successful operation.

Example API response
{
  "interfaces": {
    "wan1": {
      "enabled": true,
      "vlanTagging": {
        "enabled": true,
        "vlanId": 1
      },
      "svis": {
        "ipv4": {
          "assignmentMode": "static",
          "address": "9.10.11.10/16",
          "gateway": "13.14.15.16",
          "nameservers": {
            "addresses": [
              "1.2.3.4"
            ]
          }
        },
        "ipv6": {
          "assignmentMode": "static",
          "address": "1:2:3::4",
          "gateway": "1:2:3::5",
          "nameservers": {
            "addresses": [
              "1001:4860:4860::8888",
              "1001:4860:4860::8844"
            ]
          }
        }
      },
      "pppoe": {
        "enabled": true,
        "authentication": {
          "enabled": true,
          "username": "username"
        }
      }
    },
    "wan2": {
      "enabled": true,
      "vlanTagging": {
        "enabled": true,
        "vlanId": 1
      },
      "svis": {
        "ipv4": {
          "assignmentMode": "static",
          "address": "9.10.11.10/16",
          "gateway": "13.14.15.16",
          "nameservers": {
            "addresses": [
              "1.2.3.4"
            ]
          }
        },
        "ipv6": {
          "assignmentMode": "static",
          "address": "1:2:3::4",
          "gateway": "1:2:3::5",
          "nameservers": {
            "addresses": [
              "1001:4860:4860::8888",
              "1001:4860:4860::8844"
            ]
          }
        }
      },
      "pppoe": {
        "enabled": true,
        "authentication": {
          "enabled": true,
          "username": "username"
        }
      }
    }
  }
}

update_network_appliance_connectivity_monitoring_destinations

Update the connectivity testing destinations for an MX network.

API documentation: updateNetworkApplianceConnectivityMonitoringDestinations

Parameters:

  • network_id (str) –

    Network ID.

  • destinations (list[UpdateNetworkApplianceConnectivityMonitoringDestinationsDestinationsItem] | None, default: None ) –

    The list of connectivity monitoring destinations.

Returns:

  • NetworkApplianceConnectivityMonitoringDestinationsResponse

    Successful operation.

Example API response
{
  "destinations": [
    {
      "ip": "1.2.3.4",
      "description": "Google",
      "default": false
    }
  ]
}

update_network_appliance_content_filtering

Update the content filtering settings for an MX network.

API documentation: updateNetworkApplianceContentFiltering

Parameters:

  • network_id (str) –

    Network ID.

  • allowed_url_patterns (list[str] | None, default: None ) –

    A list of URL patterns that are allowed.

  • blocked_url_patterns (list[str] | None, default: None ) –

    A list of URL patterns that are blocked.

  • blocked_url_categories (list[str] | None, default: None ) –

    A list of URL categories to block.

  • url_category_list_size (UpdateNetworkApplianceContentFilteringUrlCategoryListSize | None, default: None ) –

    URL category list size which is either 'topSites' or 'fullList'.

Returns:

  • NetworkApplianceContentFilteringResponse

    Successful operation.

Example API response
{
  "allowedUrlPatterns": [
    "http://www.example.org",
    "http://help.com.au"
  ],
  "blockedUrlPatterns": [
    "http://www.example.com",
    "http://www.betting.com"
  ],
  "blockedUrlCategories": [
    {
      "id": "meraki:contentFiltering/category/1",
      "name": "Real Estate"
    }
  ],
  "urlCategoryListSize": "topSites"
}

update_network_appliance_devices_redundancy

Update MX warm spare settings.

API documentation: updateNetworkApplianceDevicesRedundancy

Parameters:

  • network_id (str) –

    Network ID.

  • enabled (bool) –

    Enable warm spare.

  • mode (UpdateNetworkApplianceDevicesRedundancyMode | None, default: None ) –

    HA mode (disabled|active-passive|active-active).

  • designations (list[UpdateNetworkApplianceDevicesRedundancyDesignationsItem] | None, default: None ) –

    Ordered warm spare roles.

  • uplink (UpdateNetworkApplianceDevicesRedundancyUplink | None, default: None ) –

    Uplink configuration.

Returns:

  • UpdateNetworkApplianceDevicesRedundancyResponse

    Successful operation.

Example API response
{
  "networkId": "L_12345",
  "name": "some_locale",
  "enabled": true,
  "mode": "active-active",
  "designations": [
    {
      "serial": "Q234-ABCD-5678",
      "priority": 1
    }
  ],
  "uplink": {
    "mode": "virtual",
    "interfaces": [
      {
        "name": "wan1",
        "addresses": [
          {
            "address": "1.2.3.4",
            "subnet": "192.168.1.0/24"
          }
        ]
      }
    ],
    "sharing": {
      "enabled": true,
      "vlanId": "100",
      "byInterface": [
        {
          "name": "wan1",
          "parent": "primary"
        }
      ]
    },
    "loadBalancing": {
      "enabled": true,
      "vlanSelection": {
        "mode": "auto",
        "byDevice": [
          {
            "serial": "Q234-ABCD-5678",
            "vlanIds": [
              1,
              2
            ]
          }
        ]
      }
    }
  }
}

update_network_appliance_firewall_cellular_firewall_rules

Update the cellular firewall rules of an MX network.

API documentation: updateNetworkApplianceFirewallCellularFirewallRules

Parameters:

  • network_id (str) –

    Network ID.

  • rules (list[UpdateNetworkApplianceFirewallCellularFirewallRulesRulesItem] | None, default: None ) –

    An ordered array of the firewall rules (not including the default rule).

Returns:

  • GetNetworkApplianceFirewallCellularFirewallRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "comment": "Allow TCP traffic to subnet with HTTP servers.",
      "policy": "allow",
      "protocol": "tcp",
      "srcPort": "Any",
      "srcCidr": "Any",
      "destPort": "443",
      "destCidr": "192.168.1.0/24",
      "syslogEnabled": false
    }
  ]
}

update_network_appliance_firewall_firewalled_service

Updates the accessibility settings for the given service ('ICMP', 'web', or 'SNMP').

API documentation: updateNetworkApplianceFirewallFirewalledService

Parameters:

  • network_id (str) –

    Network ID.

  • service (str) –

    Service.

  • access (UpdateNetworkApplianceFirewallFirewalledServiceAccess) –

    A string indicating the rule for which IPs are allowed to use the specified service. Acceptable values are "blocked" (no remote IPs can access the service), "restricted" (only allowed IPs can access the service), and "unrestriced" (any remote IP can access the service). This field is required.

  • allowed_ips (list[str] | None, default: None ) –

    An array of allowed CIDRs that can access the service. This field is required if "access" is set to "restricted". Otherwise this field is ignored.

Returns:

  • NetworkApplianceFirewallFirewalledServiceResponse

    Successful operation.

Example API response
{
  "service": "web",
  "access": "restricted",
  "allowedIps": [
    "123.123.123.1"
  ]
}

update_network_appliance_firewall_inbound_cellular_firewall_rules

Update the inbound cellular firewall rules of an MX network.

API documentation: updateNetworkApplianceFirewallInboundCellularFirewallRules

Parameters:

  • network_id (str) –

    Network ID.

  • rules (list[UpdateNetworkApplianceFirewallInboundCellularFirewallRulesRulesItem] | None, default: None ) –

    An ordered array of the firewall rules (not including the default rule).

Returns:

  • GetNetworkApplianceFirewallCellularFirewallRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "comment": "Allow TCP traffic to subnet with HTTP servers.",
      "policy": "allow",
      "protocol": "tcp",
      "srcPort": "Any",
      "srcCidr": "Any",
      "destPort": "443",
      "destCidr": "192.168.1.0/24",
      "syslogEnabled": false
    }
  ]
}

update_network_appliance_firewall_inbound_firewall_rules

Update the inbound firewall rules of an MX network.

API documentation: updateNetworkApplianceFirewallInboundFirewallRules

Parameters:

  • network_id (str) –

    Network ID.

  • rules (list[UpdateNetworkApplianceFirewallInboundFirewallRulesRulesItem] | None, default: None ) –

    An ordered array of the firewall rules (not including the default rule).

  • syslog_default_rule (bool | None, default: None ) –

    Log the special default rule (boolean value - enable only if you've configured a syslog server) (optional).

Returns:

  • NetworkApplianceFirewallInboundFirewallRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "comment": "Allow TCP traffic to subnet with HTTP servers.",
      "policy": "allow",
      "protocol": "tcp",
      "srcPort": "Any",
      "srcCidr": "Any",
      "destPort": "443",
      "destCidr": "192.168.1.0/24",
      "syslogEnabled": false
    }
  ],
  "syslogDefaultRule": false
}

update_network_appliance_firewall_l3_firewall_rules

Update the L3 firewall rules of an MX network.

API documentation: updateNetworkApplianceFirewallL3FirewallRules

Parameters:

  • network_id (str) –

    Network ID.

  • rules (list[UpdateNetworkApplianceFirewallL3FirewallRulesRulesItem] | None, default: None ) –

    An ordered array of the firewall rules (not including the default rule).

  • syslog_default_rule (bool | None, default: None ) –

    Log the special default rule (boolean value - enable only if you've configured a syslog server) (optional).

Returns:

  • GetNetworkApplianceFirewallCellularFirewallRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "comment": "Allow TCP traffic to subnet with HTTP servers.",
      "policy": "allow",
      "protocol": "tcp",
      "srcPort": "Any",
      "srcCidr": "Any",
      "destPort": "443",
      "destCidr": "192.168.1.0/24",
      "syslogEnabled": false
    }
  ]
}

update_network_appliance_firewall_l7_firewall_rules

Update the MX L7 firewall rules for an MX network.

API documentation: updateNetworkApplianceFirewallL7FirewallRules

Parameters:

  • network_id (str) –

    Network ID.

  • rules (list[UpdateNetworkApplianceFirewallL7FirewallRulesRulesItem] | None, default: None ) –

    An ordered array of the MX L7 firewall rules. Each rule is an object with 'policy', 'type', and 'value'. The 'value' shape depends on 'type': object for application/applicationCategory, string for host/port/ipRange, and an array of 2-letter ISO 3166-1 alpha-2 country codes for allowedCountries/blockedCountries. For backward compatibility, request types also accept whitelistedCountries/blacklistedCountries.

Returns:

  • NetworkApplianceFirewallL7FirewallRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "policy": "deny",
      "type": "host",
      "value": "google.com"
    }
  ]
}

update_network_appliance_firewall_multicast_forwarding

Update static multicast forward rules for a network.

API documentation: updateNetworkApplianceFirewallMulticastForwarding

Parameters:

  • network_id (str) –

    Network ID.

  • rules (list[UpdateNetworkApplianceFirewallMulticastForwardingRulesItem]) –

    Static multicast forwarding rules. Pass an empty array to clear all rules.

Returns:

  • UpdateNetworkApplianceFirewallMulticastForwardingResponse

    Successful operation.

Example API response
{
  "network": {
    "id": "N_24329156",
    "name": "Main Office"
  },
  "rules": [
    {
      "description": "test",
      "address": "224.0.0.1",
      "vlanIds": [
        "1"
      ]
    }
  ]
}

update_network_appliance_firewall_one_to_many_nat_rules

Set the 1:Many NAT mapping rules for an MX network.

API documentation: updateNetworkApplianceFirewallOneToManyNatRules

Parameters:

  • network_id (str) –

    Network ID.

  • rules (list[UpdateNetworkApplianceFirewallOneToManyNatRulesRulesItem]) –

    An array of 1:Many nat rules.

Returns:

  • NetworkApplianceFirewallOneToManyNatRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "publicIp": "146.11.11.13",
      "uplink": "internet1",
      "portRules": [
        {
          "name": "Rule 1",
          "protocol": "tcp",
          "publicPort": "9443",
          "localIp": "192.168.128.1",
          "localPort": "443",
          "allowedIps": [
            "any"
          ]
        }
      ]
    }
  ]
}

update_network_appliance_firewall_one_to_one_nat_rules

Set the 1:1 NAT mapping rules for an MX network.

API documentation: updateNetworkApplianceFirewallOneToOneNatRules

Parameters:

  • network_id (str) –

    Network ID.

  • rules (list[UpdateNetworkApplianceFirewallOneToOneNatRulesRulesItem]) –

    An array of 1:1 nat rules.

Returns:

  • NetworkApplianceFirewallOneToOneNatRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "name": "Service behind NAT",
      "publicIp": "146.12.3.33",
      "lanIp": "192.168.128.22",
      "uplink": "internet1",
      "allowedInbound": [
        {
          "protocol": "tcp",
          "destinationPorts": [
            "80"
          ],
          "allowedIps": [
            "10.82.112.0/24",
            "10.82.0.0/16"
          ]
        }
      ]
    }
  ]
}

update_network_appliance_firewall_port_forwarding_rules

Update the port forwarding rules for an MX network.

API documentation: updateNetworkApplianceFirewallPortForwardingRules

Parameters:

  • network_id (str) –

    Network ID.

  • rules (list[UpdateNetworkApplianceFirewallPortForwardingRulesRulesItem]) –

    An array of port forwarding params.

Returns:

  • NetworkApplianceFirewallPortForwardingRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "lanIp": "192.168.128.1",
      "allowedIps": [
        "any"
      ],
      "name": "Description of Port Forwarding Rule",
      "protocol": "tcp",
      "publicPort": "8100-8101",
      "localPort": "442-443",
      "uplink": "both"
    }
  ]
}

update_network_appliance_firewall_settings

Update the firewall settings for this network.

API documentation: updateNetworkApplianceFirewallSettings

Parameters:

  • network_id (str) –

    Network ID.

  • spoofing_protection (UpdateNetworkApplianceFirewallSettingsSpoofingProtection | None, default: None ) –

    Spoofing protection settings.

Returns:

  • NetworkApplianceFirewallSettingsResponse

    Successful operation.

Example API response
{
  "spoofingProtection": {
    "ipSourceGuard": {
      "mode": "block"
    }
  }
}

update_network_appliance_port

Update the per-port VLAN settings for a single secure router or security appliance port.

API documentation: updateNetworkAppliancePort

Parameters:

  • network_id (str) –

    Network ID.

  • port_id (str) –

    Port ID.

  • enabled (bool | None, default: None ) –

    The status of the port.

  • drop_untagged_traffic (bool | None, default: None ) –

    Trunk port can Drop all Untagged traffic. When true, no VLAN is required. Access ports cannot have dropUntaggedTraffic set to true.

  • type_ (str | None, default: None ) –

    The type of the port: 'access' or 'trunk'.

  • vlan (int | None, default: None ) –

    Native VLAN when the port is in Trunk mode. Access VLAN when the port is in Access mode.

  • allowed_vlans (str | None, default: None ) –

    Comma-delimited list of VLAN IDs (e.g. '2,15') for all devices. Secure Routers also support VLAN ranges (e.g. '2-10,15'). Use 'all' to permit all VLANs on the port.

  • access_policy (str | None, default: None ) –

    The name of the policy. Only applicable to Access ports. Valid values are: 'open', '8021x-radius', 'mac-radius', 'hybris-radius' for MX64 or Z3 or any MX supporting the per port authentication feature. Otherwise, 'open' is the only valid value and 'open' is the default value if the field is missing.

Returns:

  • NetworkAppliancePortResponse

    Successful operation.

Example API response
{
  "number": 1,
  "enabled": true,
  "type": "access",
  "dropUntaggedTraffic": false,
  "vlan": 3,
  "allowedVlans": "all",
  "accessPolicy": "open"
}

update_network_appliance_prefixes_delegated_static

Update a static delegated prefix from a network.

API documentation: updateNetworkAppliancePrefixesDelegatedStatic

Parameters:

  • network_id (str) –

    Network ID.

  • static_delegated_prefix_id (str) –

    Static delegated prefix ID.

  • prefix (str | None, default: None ) –

    A static IPv6 prefix.

  • origin (UpdateNetworkAppliancePrefixesDelegatedStaticOrigin | None, default: None ) –

    The origin of the prefix.

  • description (str | None, default: None ) –

    A name or description for the prefix.

Returns:

  • NetworkAppliancePrefixesDelegatedStaticResponse

    Successful operation.

Example API response
{
  "staticDelegatedPrefixId": "1284392014819",
  "prefix": "2001:db8:3c4d:15::/64",
  "origin": {
    "type": "internet",
    "interfaces": [
      "wan1"
    ]
  },
  "description": "Prefix on WAN 1 of Long Island Office network",
  "createdAt": "2018-05-12T00:00:00Z",
  "updatedAt": "2018-05-12T00:00:00Z"
}

update_network_appliance_rf_profile

Updates specified RF profile for this network.

API documentation: updateNetworkApplianceRfProfile

Parameters:

  • network_id (str) –

    Network ID.

  • rf_profile_id (str) –

    Rf profile ID.

  • name (str | None, default: None ) –

    The name of the new profile. Must be unique.

  • two_four_ghz_settings (UpdateNetworkApplianceRfProfileTwoFourGhzSettings | None, default: None ) –

    Settings related to 2.4Ghz band.

  • five_ghz_settings (UpdateNetworkApplianceRfProfileFiveGhzSettings | None, default: None ) –

    Settings related to 5Ghz band.

  • per_ssid_settings (UpdateNetworkApplianceRfProfilePerSsidSettings | None, default: None ) –

    Per-SSID radio settings by number.

Returns:

  • NetworkApplianceRfProfileResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "networkId": "N_24329156",
  "name": "Some Custom RF Profile",
  "twoFourGhzSettings": {
    "minBitrate": 11.0,
    "axEnabled": true
  },
  "fiveGhzSettings": {
    "minBitrate": 12,
    "axEnabled": true
  },
  "perSsidSettings": {
    "1": {
      "bandOperationMode": "dual",
      "bandSteeringEnabled": true
    },
    "2": {
      "bandOperationMode": "dual",
      "bandSteeringEnabled": true
    },
    "3": {
      "bandOperationMode": "dual",
      "bandSteeringEnabled": true
    },
    "4": {
      "bandOperationMode": "dual",
      "bandSteeringEnabled": true
    }
  }
}

update_network_appliance_sdwan_internet_policies

Update SDWAN internet traffic preferences for an MX network.

API documentation: updateNetworkApplianceSdwanInternetPolicies

Parameters:

  • network_id (str) –

    Network ID.

  • wan_traffic_uplink_preferences (list[UpdateNetworkApplianceSdwanInternetPoliciesWanTrafficUplinkPreferencesItem] | None, default: None ) –

    policies with respective traffic filters for an MX network.

Returns:

  • UpdateNetworkApplianceSdwanInternetPoliciesResponse

    Successful operation.

Example API response
{
  "wanTrafficUplinkPreferences": [
    {
      "preferredUplink": "wan1",
      "failOverCriterion": "poorPerformance",
      "performanceClass": {
        "type": "custom",
        "builtinPerformanceClassName": "VoIP",
        "customPerformanceClassId": "123456"
      },
      "trafficFilters": [
        {
          "type": "custom",
          "value": {
            "protocol": "tcp",
            "source": {
              "port": "1-1024",
              "cidr": "192.168.1.0/24",
              "vlan": 10,
              "host": 254
            },
            "destination": {
              "port": "any",
              "cidr": "any",
              "applications": [
                {
                  "id": "meraki:layer7/application/3",
                  "name": "DNS",
                  "type": "major"
                }
              ]
            }
          }
        }
      ]
    }
  ]
}

update_network_appliance_security_intrusion

Set the supported intrusion settings for an MX network.

API documentation: updateNetworkApplianceSecurityIntrusion

Parameters:

  • network_id (str) –

    Network ID.

  • mode (UpdateNetworkApplianceSecurityIntrusionMode | None, default: None ) –

    Set mode to 'disabled'/'detection'/'prevention' (optional - omitting will leave current config unchanged).

  • ids_rulesets (UpdateNetworkApplianceSecurityIntrusionIdsRulesets | None, default: None ) –

    Set the detection ruleset 'connectivity'/'balanced'/'security' (optional - omitting will leave current config unchanged). Default value is 'balanced' if none currently saved.

  • protected_networks (UpdateNetworkApplianceSecurityIntrusionProtectedNetworks | None, default: None ) –

    Set the included/excluded networks from the intrusion engine (optional - omitting will leave current config unchanged). This is available only in 'passthrough' mode.

Returns:

  • UpdateNetworkApplianceSecurityIntrusionResponse

    Successful operation.

Example API response
{
  "mode": "prevention",
  "idsRulesets": "balanced",
  "protectedNetworks": {
    "useDefault": false,
    "includedCidr": [
      "10.0.0.0/8",
      "127.0.0.0/8",
      "169.254.0.0/16",
      "172.16.0.0/12"
    ],
    "excludedCidr": [
      "10.0.0.0/8",
      "127.0.0.0/8"
    ]
  }
}

update_network_appliance_security_malware

Set the supported malware settings for an MX network.

API documentation: updateNetworkApplianceSecurityMalware

Parameters:

  • network_id (str) –

    Network ID.

  • mode (UpdateNetworkApplianceSecurityMalwareMode) –

    Set mode to 'enabled' to enable malware prevention, otherwise 'disabled'.

  • allowed_urls (list[UpdateNetworkApplianceSecurityMalwareAllowedUrlsItem] | None, default: None ) –

    The urls that should be permitted by the malware detection engine. If omitted, the current config will remain unchanged. This is available only if your network supports AMP allow listing.

  • allowed_files (list[UpdateNetworkApplianceSecurityMalwareAllowedFilesItem] | None, default: None ) –

    The sha256 digests of files that should be permitted by the malware detection engine. If omitted, the current config will remain unchanged. This is available only if your network supports AMP allow listing.

Returns:

  • NetworkApplianceSecurityMalwareResponse

    Successful operation.

Example API response
{
  "mode": "enabled",
  "allowedUrls": [
    {
      "url": "help.com.au",
      "comment": "allow help.com.au"
    }
  ],
  "allowedFiles": [
    {
      "sha256": "e82c5f7d75004727e1f3b94426b9a11c8bc4c312a9170ac9a73abace40aef503",
      "comment": "allow ZIP file"
    }
  ]
}

update_network_appliance_settings

Update the appliance settings for a network.

API documentation: updateNetworkApplianceSettings

Parameters:

  • network_id (str) –

    Network ID.

  • client_tracking_method (UpdateNetworkApplianceSettingsClientTrackingMethod | None, default: None ) –

    Client tracking method of a network.

  • deployment_mode (UpdateNetworkApplianceSettingsDeploymentMode | None, default: None ) –

    Deployment mode of a network.

  • dynamic_dns (UpdateNetworkApplianceSettingsDynamicDns | None, default: None ) –

    Dynamic DNS settings for a network.

Returns:

  • NetworkApplianceSettingsResponse

    Successful operation.

Example API response
{
  "clientTrackingMethod": "MAC address",
  "deploymentMode": "routed",
  "dynamicDns": {
    "enabled": true,
    "prefix": "test",
    "url": "test-adfgnnhjea.meraki.com"
  }
}

update_network_appliance_single_lan

Update single LAN configuration.

API documentation: updateNetworkApplianceSingleLan

Parameters:

  • network_id (str) –

    Network ID.

  • subnet (str | None, default: None ) –

    The subnet of the single LAN configuration.

  • appliance_ip (str | None, default: None ) –

    The appliance IP address of the single LAN.

  • ipv6 (UpdateNetworkApplianceSingleLanIpv6 | None, default: None ) –

    IPv6 configuration on the VLAN.

  • mandatory_dhcp (UpdateNetworkApplianceSingleLanMandatoryDhcp | None, default: None ) –

    Mandatory DHCP will enforce that clients connecting to this LAN must use the IP address assigned by the DHCP server. Clients who use a static IP address won't be able to associate. Only available on firmware versions 17.0 and above.

Returns:

  • NetworkApplianceSingleLanResponse

    Successful operation.

Example API response
{
  "subnet": "192.168.1.0/24",
  "applianceIp": "192.168.1.2",
  "mandatoryDhcp": {
    "enabled": true
  },
  "ipv6": {
    "enabled": true,
    "prefixAssignments": [
      {
        "autonomous": false,
        "staticPrefix": "2001:db8:3c4d:15::/64",
        "staticApplianceIp6": "2001:db8:3c4d:15::1",
        "origin": {
          "type": "internet",
          "interfaces": [
            "wan0"
          ]
        }
      }
    ]
  }
}

update_network_appliance_ssid

Update the attributes of an MX SSID.

API documentation: updateNetworkApplianceSsid

Parameters:

  • network_id (str) –

    Network ID.

  • number (str) –

    Number.

  • name (str | None, default: None ) –

    The name of the SSID.

  • enabled (bool | None, default: None ) –

    Whether or not the SSID is enabled.

  • default_vlan_id (int | None, default: None ) –

    The VLAN ID of the VLAN associated to this SSID. This parameter is only valid if the network is in routed mode.

  • auth_mode (UpdateNetworkApplianceSsidAuthMode | None, default: None ) –

    The association control method for the SSID ('open', 'psk', '8021x-meraki' or '8021x-radius').

  • psk (str | None, default: None ) –

    The passkey for the SSID. This param is only valid if the authMode is 'psk'.

  • radius_servers (list[UpdateNetworkApplianceSsidRadiusServersItem] | None, default: None ) –

    The RADIUS 802.1x servers to be used for authentication. This param is only valid if the authMode is '8021x-radius'.

  • encryption_mode (UpdateNetworkApplianceSsidEncryptionMode | None, default: None ) –

    The psk encryption mode for the SSID ('wep' or 'wpa'). This param is only valid if the authMode is 'psk'.

  • wpa_encryption_mode (UpdateNetworkApplianceSsidWpaEncryptionMode | None, default: None ) –

    The types of WPA encryption. ('WPA1 and WPA2', 'WPA2 only', 'WPA3 Transition Mode' or 'WPA3 only'). This param is only valid if (1) the authMode is 'psk' & the encryptionMode is 'wpa' OR (2) the authMode is '8021x-meraki' OR (3) the authMode is '8021x-radius'.

  • visible (bool | None, default: None ) –

    Boolean indicating whether the MX should advertise or hide this SSID.

  • dhcp_enforced_deauthentication (UpdateNetworkApplianceSsidDhcpEnforcedDeauthentication | None, default: None ) –

    DHCP Enforced Deauthentication enables the disassociation of wireless clients in addition to Mandatory DHCP. This param is only valid on firmware versions >= MX 17.0 where the associated LAN has Mandatory DHCP Enabled.

  • dot11w (UpdateNetworkApplianceSsidDot11w | None, default: None ) –

    The current setting for Protected Management Frames (802.11w).

Returns:

  • NetworkApplianceSsidResponse

    Successful operation.

Example API response
{
  "number": 1,
  "name": "My SSID",
  "enabled": true,
  "defaultVlanId": 1,
  "authMode": "8021x-radius",
  "radiusServers": [
    {
      "host": "0.0.0.0",
      "port": 1000
    }
  ],
  "encryptionMode": "wpa",
  "wpaEncryptionMode": "WPA2 only",
  "visible": true
}

update_network_appliance_static_route

Update a static route for an MX or teleworker network.

API documentation: updateNetworkApplianceStaticRoute

Parameters:

  • network_id (str) –

    Network ID.

  • static_route_id (str) –

    Static route ID.

  • name (str | None, default: None ) –

    Name of the route.

  • subnet (str | None, default: None ) –

    Subnet of the route.

  • gateway_ip (str | None, default: None ) –

    Gateway IP address (next hop).

  • gateway_vlan_id (int | None, default: None ) –

    Gateway VLAN ID.

  • enabled (bool | None, default: None ) –

    Whether the route should be enabled or not.

  • fixed_ip_assignments (dict[str, UpdateNetworkApplianceStaticRouteFixedIpAssignmentsValue] | None, default: None ) –

    Fixed DHCP IP assignments on the route.

  • reserved_ip_ranges (list[UpdateNetworkApplianceStaticRouteReservedIpRangesItem] | None, default: None ) –

    DHCP reserved IP ranges.

Returns:

  • NetworkApplianceStaticRouteResponse

    Successful operation.

Example API response
{
  "id": "d7fa4948-7921-4dfa-af6b-ae8b16c20c39",
  "ipVersion": 4,
  "networkId": "N_24329156",
  "enabled": true,
  "name": "My route",
  "subnet": "192.168.1.0/24",
  "gatewayIp": "1.2.3.5",
  "fixedIpAssignments": {
    "22:33:44:55:66:77": {
      "ip": "1.2.3.4",
      "name": "Some client name"
    }
  },
  "reservedIpRanges": [
    {
      "start": "192.168.1.0",
      "end": "192.168.1.1",
      "comment": "A reserved IP range"
    }
  ],
  "gatewayVlanId": 100
}

update_network_appliance_traffic_shaping

Update the traffic shaping settings for an MX network.

API documentation: updateNetworkApplianceTrafficShaping

Parameters:

  • network_id (str) –

    Network ID.

  • global_bandwidth_limits (UpdateNetworkApplianceTrafficShapingGlobalBandwidthLimits) –

    Global per-client bandwidth limit.

Returns:

  • NetworkApplianceTrafficShapingResponse

    Successful operation.

Example API response
{
  "globalBandwidthLimits": {
    "limitUp": 2048,
    "limitDown": 5120
  }
}

update_network_appliance_traffic_shaping_custom_performance_class

Update a custom performance class for an MX network.

API documentation: updateNetworkApplianceTrafficShapingCustomPerformanceClass

Parameters:

  • network_id (str) –

    Network ID.

  • custom_performance_class_id (str) –

    Custom performance class ID.

  • name (str | None, default: None ) –

    Name of the custom performance class.

  • max_latency (int | None, default: None ) –

    Maximum latency in milliseconds.

  • max_jitter (int | None, default: None ) –

    Maximum jitter in milliseconds.

  • max_loss_percentage (int | None, default: None ) –

    Maximum percentage of packet loss.

Returns:

  • NetworkApplianceTrafficShapingCustomPerformanceClassResponse

    Successful operation.

Example API response
{
  "name": "myCustomPerformanceClass",
  "customPerformanceClassId": "123",
  "maxLatency": 100,
  "maxJitter": 100,
  "maxLossPercentage": 5
}

update_network_appliance_traffic_shaping_rules

Update the traffic shaping settings rules for an MX network.

API documentation: updateNetworkApplianceTrafficShapingRules

Parameters:

  • network_id (str) –

    Network ID.

  • default_rules_enabled (bool | None, default: None ) –

    Whether default traffic shaping rules are enabled (true) or disabled (false). There are 4 default rules, which can be seen on your network's traffic shaping page. Note that default rules count against the rule limit of 8.

  • rules (list[UpdateNetworkApplianceTrafficShapingRulesRulesItem] | None, default: None ) –

    An array of traffic shaping rules. Rules are applied in the order that they are specified in. An empty list (or null) means no rules. Note that you are allowed a maximum of 8 rules.

Returns:

  • NetworkApplianceTrafficShapingRulesResponse

    Successful operation.

Example API response
{
  "defaultRulesEnabled": true,
  "rules": [
    {
      "definitions": [
        {
          "type": "host",
          "value": "google.com"
        }
      ],
      "perClientBandwidthLimits": {
        "settings": "custom",
        "bandwidthLimits": {
          "limitUp": 1000000,
          "limitDown": 1000000
        }
      },
      "dscpTagValue": 0,
      "priority": "normal"
    }
  ]
}

Updates the uplink bandwidth settings for your MX network.

API documentation: updateNetworkApplianceTrafficShapingUplinkBandwidth

Parameters:

  • network_id (str) –

    Network ID.

  • bandwidth_limits (UpdateNetworkApplianceTrafficShapingUplinkBandwidthBandwidthLimits | None, default: None ) –

    A mapping of uplinks to their bandwidth settings (be sure to check which uplinks are supported for your network).

Returns:

  • NetworkApplianceTrafficShapingUplinkBandwidthResponse

    Successful operation.

Example API response
{
  "bandwidthLimits": {
    "wan1": {
      "limitUp": 1000000,
      "limitDown": 1000000
    },
    "wan2": {
      "limitUp": 1000000,
      "limitDown": 1000000
    },
    "cellular": {
      "limitUp": 51200,
      "limitDown": 51200
    }
  }
}

Update uplink selection settings for an MX network.

API documentation: updateNetworkApplianceTrafficShapingUplinkSelection

Parameters:

  • network_id (str) –

    Network ID.

  • active_active_auto_vpn_enabled (bool | None, default: None ) –

    Toggle for enabling or disabling active-active AutoVPN.

  • default_uplink (str | None, default: None ) –

    The default uplink. Must be a WAN interface 'wanX'.

  • load_balancing_enabled (bool | None, default: None ) –

    Toggle for enabling or disabling load balancing.

  • failover_and_failback (UpdateNetworkApplianceTrafficShapingUplinkSelectionFailoverAndFailback | None, default: None ) –

    WAN failover and failback behavior.

  • wan_traffic_uplink_preferences (list[UpdateNetworkApplianceTrafficShapingUplinkSelectionWanTrafficUplinkPreferencesItem] | None, default: None ) –

    Array of uplink preference rules for WAN traffic.

  • vpn_traffic_uplink_preferences (list[UpdateNetworkApplianceTrafficShapingUplinkSelectionVpnTrafficUplinkPreferencesItem] | None, default: None ) –

    Array of uplink preference rules for VPN traffic.

Returns:

  • NetworkApplianceTrafficShapingUplinkSelectionResponse

    Successful operation.

Example API response
{
  "activeActiveAutoVpnEnabled": true,
  "defaultUplink": "wan1",
  "loadBalancingEnabled": true,
  "failoverAndFailback": {
    "immediate": {
      "enabled": true
    }
  },
  "wanTrafficUplinkPreferences": [
    {
      "trafficFilters": [
        {
          "type": "custom",
          "value": {
            "protocol": "tcp",
            "source": {
              "port": "1-1024",
              "cidr": "192.168.1.0/24",
              "vlan": 10,
              "host": 254
            },
            "destination": {
              "port": "any",
              "cidr": "any",
              "applications": [
                {
                  "id": "meraki:layer7/application/3",
                  "name": "DNS",
                  "type": "major"
                }
              ]
            }
          }
        }
      ],
      "preferredUplink": "wan1"
    }
  ],
  "vpnTrafficUplinkPreferences": [
    {
      "trafficFilters": [
        {
          "type": "applicationCategory",
          "value": {
            "id": "meraki:layer7/category/1",
            "protocol": "tcp",
            "source": {
              "port": "any",
              "cidr": "192.168.1.0/24",
              "network": "L_23456789",
              "vlan": 20,
              "host": 200
            },
            "destination": {
              "port": "1-1024",
              "cidr": "any",
              "network": "L_12345678",
              "vlan": 10,
              "host": 254,
              "fqdn": "www.google.com"
            }
          }
        }
      ],
      "preferredUplink": "bestForVoIP",
      "failOverCriterion": "poorPerformance",
      "performanceClass": {
        "type": "custom",
        "builtinPerformanceClassName": "VoIP",
        "customPerformanceClassId": "123456"
      }
    }
  ]
}

update_network_appliance_traffic_shaping_vpn_exclusions

Update VPN exclusion rules for an MX network.

API documentation: updateNetworkApplianceTrafficShapingVpnExclusions

Parameters:

  • network_id (str) –

    Network ID.

  • custom (list[UpdateNetworkApplianceTrafficShapingVpnExclusionsCustomItem] | None, default: None ) –

    Custom VPN exclusion rules. Pass an empty array to clear existing rules.

  • major_applications (list[UpdateNetworkApplianceTrafficShapingVpnExclusionsMajorApplicationsItem] | None, default: None ) –

    Major Application based VPN exclusion rules. Pass an empty array to clear existing rules.

Returns:

  • UpdateNetworkApplianceTrafficShapingVpnExclusionsResponse

    Successful operation.

Example API response
{
  "networkId": "N_24329156",
  "networkName": "Main Office",
  "custom": [
    {
      "protocol": "tcp",
      "destination": "192.168.3.0/24",
      "port": "8000"
    }
  ],
  "majorApplications": [
    {
      "id": "meraki:vpnExclusion/application/2",
      "name": "Office 365 Sharepoint"
    }
  ]
}

Update uplink NAT settings of the specified network.

API documentation: updateNetworkApplianceUplinksNat

Parameters:

  • network_id (str) –

    Network ID.

  • uplinks (list[UpdateNetworkApplianceUplinksNatUplinksItem]) –

    Per-uplink NAT exception configuration on the network.

Returns:

  • UpdateNetworkApplianceUplinksNatResponse

    Successful operation.

Example API response
{
  "uplinks": [
    {
      "interface": "wan1",
      "nat": {
        "enabled": false
      }
    }
  ]
}

update_network_appliance_vlan

Update a VLAN.

API documentation: updateNetworkApplianceVlan

Parameters:

  • network_id (str) –

    Network ID.

  • vlan_id (str) –

    Vlan ID.

  • name (str | None, default: None ) –

    The name of the VLAN.

  • subnet (str | None, default: None ) –

    The subnet of the VLAN.

  • appliance_ip (str | None, default: None ) –

    The local IP of the appliance on the VLAN.

  • group_policy_id (str | None, default: None ) –

    The id of the desired group policy to apply to the VLAN.

  • vpn_nat_subnet (str | None, default: None ) –

    The translated VPN subnet if VPN and VPN subnet translation are enabled on the VLAN.

  • dhcp_handling (UpdateNetworkApplianceVlanDhcpHandling | None, default: None ) –

    The appliance's handling of DHCP requests on this VLAN. One of: 'Run a DHCP server', 'Relay DHCP to another server' or 'Do not respond to DHCP requests'.

  • dhcp_relay_server_ips (list[str] | None, default: None ) –

    The IPs (IPv4) of the DHCP servers that DHCP requests should be relayed to. CIDR/subnet notation and hostnames are not supported.

  • dhcp_lease_time (UpdateNetworkApplianceVlanDhcpLeaseTime | None, default: None ) –

    The term of DHCP leases if the appliance is running a DHCP server on this VLAN. One of: '30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week'.

  • dhcp_boot_options_enabled (bool | None, default: None ) –

    Use DHCP boot options specified in other properties.

  • dhcp_boot_next_server (str | None, default: None ) –

    DHCP boot option to direct boot clients to the server to load the boot file from.

  • dhcp_boot_filename (str | None, default: None ) –

    DHCP boot option for boot filename.

  • fixed_ip_assignments (dict[str, Any] | None, default: None ) –

    The DHCP fixed IP assignments on the VLAN. This should be an object that contains mappings from MAC addresses to objects that themselves each contain "ip" and "name" string fields. See the sample request/response for more details.

  • reserved_ip_ranges (list[UpdateNetworkApplianceVlanReservedIpRangesItem] | None, default: None ) –

    The DHCP reserved IP ranges on the VLAN.

  • dns_nameservers (str | None, default: None ) –

    The DNS nameservers used for DHCP responses, either "upstream_dns", "google_dns", "opendns", or a newline seperated string of IP addresses or domain names.

  • dhcp_options (list[UpdateNetworkApplianceVlanDhcpOptionsItem] | None, default: None ) –

    The list of DHCP options that will be included in DHCP responses. Each object in the list should have "code", "type", and "value" properties.

  • template_vlan_type (UpdateNetworkApplianceVlanTemplateVlanType | None, default: None ) –

    Type of subnetting of the VLAN. Applicable only for template network.

  • cidr (str | None, default: None ) –

    CIDR of the pool of subnets. Applicable only for template network. Each network bound to the template will automatically pick a subnet from this pool to build its own VLAN.

  • mask (int | None, default: None ) –

    Mask used for the subnet of all bound to the template networks. Applicable only for template network.

  • ipv6 (UpdateNetworkApplianceVlanIpv6 | None, default: None ) –

    IPv6 configuration on the VLAN.

  • mandatory_dhcp (UpdateNetworkApplianceVlanMandatoryDhcp | None, default: None ) –

    Mandatory DHCP will enforce that clients connecting to this VLAN must use the IP address assigned by the DHCP server. Clients who use a static IP address won't be able to associate. Only available on firmware versions 17.0 and above.

  • vrf (UpdateNetworkApplianceVlanVrf | None, default: None ) –

    VRF configuration on the VLAN.

  • uplinks (list[UpdateNetworkApplianceVlanUplinksItem] | None, default: None ) –

    Per-uplink NAT exception override configuration on the VLAN. Applicable only for networks that support NAT exceptions.

Returns:

  • NetworkApplianceVlanResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "interfaceId": "1284392014819",
  "name": "My VLAN",
  "subnet": "192.168.1.0/24",
  "applianceIp": "192.168.1.2",
  "groupPolicyId": "101",
  "templateVlanType": "same",
  "cidr": "192.168.1.0/24",
  "mask": 28,
  "dhcpRelayServerIps": [
    "192.168.1.0",
    "192.168.128.0"
  ],
  "dhcpHandling": "Run a DHCP server",
  "dhcpLeaseTime": "1 day",
  "dhcpBootOptionsEnabled": false,
  "dhcpBootNextServer": "1.2.3.4",
  "dhcpBootFilename": "sample.file",
  "fixedIpAssignments": {
    "00:11:22:33:44:55": {
      "ip": "1.2.3.4",
      "name": "My favorite IP"
    }
  },
  "reservedIpRanges": [
    {
      "start": "192.168.1.0",
      "end": "192.168.1.1",
      "comment": "A reserved IP range"
    }
  ],
  "dnsNameservers": "google_dns",
  "dhcpOptions": [
    {
      "code": "5",
      "type": "text",
      "value": "five"
    }
  ],
  "vpnNatSubnet": "192.168.1.0/24",
  "mandatoryDhcp": {
    "enabled": true
  },
  "ipv6": {
    "enabled": true,
    "prefixAssignments": [
      {
        "autonomous": false,
        "staticPrefix": "2001:db8:3c4d:15::/64",
        "staticApplianceIp6": "2001:db8:3c4d:15::1",
        "origin": {
          "type": "internet",
          "interfaces": [
            "wan0"
          ]
        }
      }
    ]
  },
  "vrf": {
    "id": "1000",
    "name": "VRF BLUE"
  }
}

update_network_appliance_vlans_settings

Enable/Disable VLANs for the given network.

API documentation: updateNetworkApplianceVlansSettings

Parameters:

  • network_id (str) –

    Network ID.

  • vlans_enabled (bool | None, default: None ) –

    Boolean indicating whether to enable (true) or disable (false) VLANs for the network.

Returns:

  • NetworkApplianceVlansSettingsResponse

    Successful operation.

Example API response
{
  "vlansEnabled": true
}

update_network_appliance_vpn_bgp

Update a Hub BGP Configuration.

API documentation: updateNetworkApplianceVpnBgp

Parameters:

  • network_id (str) –

    Network ID.

  • enabled (bool) –

    Boolean value to enable or disable the BGP configuration. When BGP is enabled, the asNumber (ASN) will be autopopulated with the preconfigured ASN at other Hubs or a default value if there is no ASN configured.

  • as_number (int | None, default: None ) –

    An Autonomous System Number (ASN) is required if you are to run BGP and peer with another BGP Speaker outside of the Auto VPN domain. This ASN will be applied to the entire Auto VPN domain. The entire 4-byte ASN range is supported. So, the ASN must be an integer between 1 and 4294967295. When absent, this field is not updated. If no value exists then it defaults to 64512.

  • ibgp_hold_timer (int | None, default: None ) –

    The iBGP holdtimer in seconds. The iBGP holdtimer must be an integer between 12 and 240. When absent, this field is not updated. If no value exists then it defaults to 240.

  • router_id (str | None, default: None ) –

    The router ID of the appliance.

  • neighbors (list[UpdateNetworkApplianceVpnBgpNeighborsItem] | None, default: None ) –

    List of BGP neighbors. This list replaces the existing set of neighbors. When absent, this field is not updated.

Returns:

  • NetworkApplianceVpnBgpResponse

    Successful operation.

Example API response
{
  "enabled": true,
  "asNumber": 64515,
  "ibgpHoldTimer": 120,
  "routerId": "10.15.10.2",
  "neighbors": [
    {
      "ip": "10.10.10.22",
      "ipv6": {
        "address": "2002::1234:abcd:ffff:c0a8:101"
      },
      "remoteAsNumber": 64343,
      "receiveLimit": 120,
      "allowTransit": true,
      "ebgpHoldTimer": 180,
      "ebgpMultihop": 2,
      "sourceInterface": "wan1",
      "nextHopIp": "1.2.3.4",
      "ttlSecurity": {
        "enabled": false
      },
      "authentication": {
        "password": "abc123"
      },
      "multiExitDiscriminator": 2,
      "pathPrepend": [
        1,
        2
      ],
      "weight": 10,
      "filterIn": [
        "10.0.0.0/8",
        "172.16.0.0/12"
      ],
      "communityOut": [
        "64515:100",
        "NO_EXPORT"
      ]
    }
  ]
}

update_network_appliance_vpn_site_to_site_vpn

Update the site-to-site VPN settings of a network.

API documentation: updateNetworkApplianceVpnSiteToSiteVpn

Parameters:

  • network_id (str) –

    Network ID.

  • mode (UpdateNetworkApplianceVpnSiteToSiteVpnMode) –

    The site-to-site VPN mode. Can be one of 'none', 'spoke' or 'hub'.

  • hubs (list[UpdateNetworkApplianceVpnSiteToSiteVpnHubsItem] | None, default: None ) –

    The list of VPN hubs, in order of preference. In spoke mode, at least 1 hub is required.

  • subnets (list[UpdateNetworkApplianceVpnSiteToSiteVpnSubnetsItem] | None, default: None ) –

    The list of subnets and their VPN presence.

  • subnet (UpdateNetworkApplianceVpnSiteToSiteVpnSubnet | None, default: None ) –

    Configuration of subnet features.

  • host_translations (list[UpdateNetworkApplianceVpnSiteToSiteVpnHostTranslationsItem] | None, default: None ) –

    The list of VPN host translations. Host translations are supported starting from MX firmware version 26.1.2.

Returns:

  • NetworkApplianceVpnSiteToSiteVpnResponse

    Successful operation.

Example API response
{
  "mode": "spoke",
  "hubs": [
    {
      "hubId": "N_4901849",
      "useDefaultRoute": true
    }
  ],
  "subnets": [
    {
      "localSubnet": "192.168.1.0/24",
      "useVpn": true,
      "nat": {
        "enabled": true,
        "remoteSubnet": "192.168.2.0/24"
      }
    }
  ],
  "subnet": {
    "nat": {
      "isAllowed": true
    }
  },
  "hostTranslations": [
    {
      "name": "Host 1",
      "local": {
        "address": "192.168.1.10"
      },
      "remote": {
        "address": "72.168.2.10"
      }
    }
  ]
}

update_network_appliance_warm_spare

Update MX warm spare settings.

API documentation: updateNetworkApplianceWarmSpare

Parameters:

  • network_id (str) –

    Network ID.

  • enabled (bool) –

    Enable warm spare.

  • spare_serial (str | None, default: None ) –

    Serial number of the warm spare appliance.

  • uplink_mode (str | None, default: None ) –

    Uplink mode, either virtual or public.

  • virtual_ip1 (str | None, default: None ) –

    The WAN 1 shared IP.

  • virtual_ip2 (str | None, default: None ) –

    The WAN 2 shared IP.

Returns:

  • NetworkApplianceWarmSpareResponse

    Successful operation.

Example API response
{
  "enabled": true,
  "primarySerial": "Q234-ABCD-5678",
  "spareSerial": "Q234-ABCD-5678",
  "uplinkMode": "virtual",
  "wan1": {
    "ip": "1.2.3.4",
    "subnet": "192.168.1.0/24"
  },
  "wan2": {
    "ip": "1.2.3.4",
    "subnet": "192.168.1.0/24"
  }
}

update_organization_appliance_dns_local_profile

Update a local DNS profile.

API documentation: updateOrganizationApplianceDnsLocalProfile

Parameters:

  • organization_id (str) –

    Organization ID.

  • profile_id (str) –

    Profile ID.

  • name (str) –

    Name of profile.

Returns:

  • OrganizationApplianceDnsLocalProfileResponse

    Successful operation.

Example API response
{
  "profileId": "123456",
  "name": "Default profile"
}

update_organization_appliance_dns_local_record

Updates a local DNS record.

API documentation: updateOrganizationApplianceDnsLocalRecord

Parameters:

  • organization_id (str) –

    Organization ID.

  • record_id (str) –

    Record ID.

  • hostname (str | None, default: None ) –

    Hostname for the DNS record.

  • address (str | None, default: None ) –

    IP for the DNS record.

  • profile (UpdateOrganizationApplianceDnsLocalRecordProfile | None, default: None ) –

    The profile the DNS record is associated with.

Returns:

  • UpdateOrganizationApplianceDnsLocalRecordResponse

    Successful operation.

Example API response
{
  "recordId": "12345",
  "hostname": "www.test.com",
  "address": "10.1.1.0",
  "profile": {
    "id": "1"
  }
}

update_organization_appliance_dns_split_profile

Update a split DNS profile.

API documentation: updateOrganizationApplianceDnsSplitProfile

Parameters:

  • organization_id (str) –

    Organization ID.

  • profile_id (str) –

    Profile ID.

  • name (str | None, default: None ) –

    Name of profile.

  • hostnames (list[str] | None, default: None ) –

    The hostname patterns to match for redirection. For more information on Split DNS hostname pattern formatting, please consult the Split DNS KB.

  • nameservers (UpdateOrganizationApplianceDnsSplitProfileNameservers | None, default: None ) –

    Contains the nameserver information for redirection.

Returns:

  • OrganizationApplianceDnsSplitProfileResponse

    Successful operation.

Example API response
{
  "profileId": "123456",
  "name": "Default profile",
  "hostnames": [
    "*.test1.com",
    "*.test2.com"
  ],
  "nameservers": {
    "addresses": [
      "12.1.10.1"
    ]
  }
}

update_organization_appliance_routing_vrfs_settings

Update the VRF setting for an organization.

API documentation: updateOrganizationApplianceRoutingVrfsSettings

Parameters:

  • organization_id (str) –

    Organization ID.

  • enabled (bool) –

    Boolean indicating whether VRFs are enabled for the organization.

Returns:

  • OrganizationApplianceRoutingVrfsSettingsResponse

    Successful operation.

Example API response
{
  "enabled": false
}

update_organization_appliance_security_intrusion

Sets supported intrusion settings for an organization.

API documentation: updateOrganizationApplianceSecurityIntrusion

Parameters:

  • organization_id (str) –

    Organization ID.

  • allowed_rules (list[UpdateOrganizationApplianceSecurityIntrusionAllowedRulesItem]) –

    Sets a list of specific SNORT signatures to allow.

Returns:

  • OrganizationApplianceSecurityIntrusionResponse

    Successful operation.

Example API response
{
  "allowedRules": [
    {
      "ruleId": "meraki:intrusion/snort/GID/01/SID/688",
      "message": "SQL sa login failed"
    }
  ]
}

update_organization_appliance_vpn_site_to_site_ipsec_peers_slas

Update the IPsec SLA policies for an organization.

API documentation: updateOrganizationApplianceVpnSiteToSiteIpsecPeersSlas

Parameters:

  • organization_id (str) –

    Organization ID.

  • items (list[UpdateOrganizationApplianceVpnSiteToSiteIpsecPeersSlasItemsItem] | None, default: None ) –

    List of IPsec SLA policies.

Returns:

  • OrganizationApplianceVpnSiteToSiteIpsecPeersSlasResponse

    Successful operation.

Example API response
{
  "items": [
    {
      "id": "12345",
      "name": "sla policy",
      "uri": "http://checkthisendpoint.com",
      "ipsec": {
        "peerIds": [
          "1010",
          "1011"
        ]
      }
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 1,
        "remaining": 0
      }
    }
  }
}

update_organization_appliance_vpn_third_party_vpn_peers

Update the third party VPN peers for an organization.

API documentation: updateOrganizationApplianceVpnThirdPartyVPNPeers

Parameters:

  • organization_id (str) –

    Organization ID.

  • peers (list[UpdateOrganizationApplianceVpnThirdPartyVPNPeersPeersItem]) –

    The list of VPN peers.

Returns:

  • OrganizationApplianceVpnThirdPartyVPNPeersResponse

    Successful operation.

Example API response
{
  "peers": [
    {
      "peerId": "1234",
      "name": "Peer Name",
      "publicIp": "123.123.123.1",
      "remoteId": "miles@meraki.com",
      "localId": "myMXId@meraki.com",
      "secret": "secret",
      "privateSubnets": [
        "192.168.1.0/24",
        "192.168.128.0/24"
      ],
      "ipsecPolicies": {
        "ikeCipherAlgo": [
          "tripledes"
        ],
        "ikeAuthAlgo": [
          "sha1"
        ],
        "ikePrfAlgo": [
          "prfsha1"
        ],
        "ikeDiffieHellmanGroup": [
          "group2"
        ],
        "ikeLifetime": 28800,
        "childCipherAlgo": [
          "aes128"
        ],
        "childAuthAlgo": [
          "sha1"
        ],
        "childPfsGroup": [
          "disabled"
        ],
        "childLifetime": 28800
      },
      "slaPolicy": {
        "id": "1234"
      },
      "ipsecPoliciesPreset": "custom",
      "ikeVersion": "1",
      "networkTags": [
        "all"
      ],
      "network": {
        "names": [
          "Network 1",
          "Location 2",
          "Network 3"
        ],
        "ids": [
          "N_1",
          "L_2",
          "N_3"
        ]
      },
      "isRouteBased": true,
      "ebgpNeighbor": {
        "neighborId": 1234,
        "neighborIp": "10.10.10.22",
        "ipVersion": 4,
        "remoteAsNumber": 64343,
        "ebgpHoldTimer": 180,
        "ebgpMultihop": 2,
        "sourceIp": "10.10.10.22",
        "receiveLimit": 100,
        "pathPrepend": [
          1,
          2
        ],
        "multiExitDiscriminator": 1,
        "weight": 10
      },
      "ecmpUplinkConfigs": [
        {
          "id": "7890",
          "wan": "WAN 1",
          "privateSubnets": [
            "169.254.10.0/30"
          ],
          "ebgpNeighbor": {
            "neighborIp": "169.254.10.2",
            "sourceIp": "169.254.10.1"
          }
        }
      ],
      "priorityInGroup": 1,
      "group": {
        "number": 1,
        "failover": {
          "directToInternet": true
        },
        "activeActiveTunnel": true
      }
    }
  ]
}

update_organization_appliance_vpn_vpn_firewall_rules

Update the firewall rules of an organization's site-to-site VPN.

API documentation: updateOrganizationApplianceVpnVpnFirewallRules

Parameters:

  • organization_id (str) –

    Organization ID.

  • rules (list[UpdateOrganizationApplianceVpnVpnFirewallRulesRulesItem] | None, default: None ) –

    An ordered array of the firewall rules (not including the default rule).

  • syslog_default_rule (bool | None, default: None ) –

    Log the special default rule (boolean value - enable only if you've configured a syslog server) (optional).

Returns:

  • GetNetworkApplianceFirewallCellularFirewallRulesResponse

    Successful operation.

Example API response
{
  "rules": [
    {
      "comment": "Allow TCP traffic to subnet with HTTP servers.",
      "policy": "allow",
      "protocol": "tcp",
      "srcPort": "Any",
      "srcCidr": "Any",
      "destPort": "443",
      "destCidr": "192.168.1.0/24",
      "syslogEnabled": false
    }
  ]
}