Skip to content

Organizations

Organizations

Organizations class.

assign_organization_licenses_seats

Assign SM seats to a network.

API documentation: assignOrganizationLicensesSeats

Parameters:

  • organization_id (str) –

    Organization ID.

  • license_id (str) –

    The ID of the SM license to assign seats from.

  • network_id (str) –

    The ID of the SM network to assign the seats to.

  • seat_count (int) –

    The number of seats to assign to the SM network. Must be less than or equal to the total number of seats of the license.

Returns:

  • OrganizationLicensesSeatsResponse

    Successful operation.

Example API response
{
  "resultingLicenses": [
    {
      "id": "1234",
      "licenseType": "SME",
      "licenseKey": "Z21234567890",
      "orderNumber": "4C1234567",
      "deviceSerial": "Q234-ABCD-5678",
      "networkId": "N_24329156",
      "state": "active",
      "seatCount": 25,
      "totalDurationInDays": 425,
      "durationInDays": 365,
      "permanentlyQueuedLicenses": [
        {
          "id": "1234",
          "licenseType": "SME",
          "licenseKey": "Z21234567890",
          "orderNumber": "4C1234567",
          "durationInDays": 60
        }
      ],
      "claimDate": "2019-08-29T12:40:10Z",
      "activationDate": "2019-09-01T15:01:46Z",
      "expirationDate": "2020-10-30T15:01:46Z",
      "headLicenseId": "1234"
    }
  ]
}

assign_organization_policies_global_group_policies_adaptive_policy_groups

Assign adaptive policy groups to a policy.

API documentation: assignOrganizationPoliciesGlobalGroupPoliciesAdaptivePolicyGroups

Parameters:

  • organization_id (str) –

    Organization ID.

  • policy (AssignOrganizationPoliciesGlobalGroupPoliciesAdaptivePolicyGroupsPolicy) –

    Policy to assign adaptive policy groups to.

  • adaptive_policy_groups (list[AssignOrganizationPoliciesGlobalGroupPoliciesAdaptivePolicyGroupsAdaptivePolicyGroupsItem]) –

    Adaptive policy groups to assign.

Returns:

  • OrganizationPoliciesGlobalGroupPoliciesAdaptivePolicyGroupsResponse

    Successful operation.

Example API response
{
  "success": true
}

attach_organization_sase_sites

Attach sites in this organization to Secure Access.

API documentation: attachOrganizationSaseSites

Parameters:

  • organization_id (str) –

    Organization ID.

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

    List of Meraki SD-WAN sites with the associated regions to be attached.

  • callback (AttachOrganizationSaseSitesCallback | None, default: None ) –

    Details for the callback. Please include either an httpServerId OR url and sharedSecret.

Returns:

  • GetOrganizationApiRestProvisioningPipelinesJobsOverviewsByPipelineResponse

    Successful operation.

Example API response
{
  "items": [
    {
      "pipelineId": "1234",
      "operation": {
        "id": "enrollOrganizationSaseSites"
      },
      "status": "active",
      "counts": {
        "jobs": {
          "total": 3,
          "byStatus": {
            "completed": 1,
            "failed": 1,
            "pending": 1
          }
        }
      }
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 100,
        "remaining": 10
      }
    }
  }
}

batch_organization_devices_cellular_data_profiles_assignments_create

Assign devices to a Cellular Data Management Profile in batch.

API documentation: batchOrganizationDevicesCellularDataProfilesAssignmentsCreate

Parameters:

  • organization_id (str) –

    Organization ID.

  • items (list[BatchOrganizationDevicesCellularDataProfilesAssignmentsCreateItemsItem]) –

    List of device-to-profile assignments to create.

Returns:

  • BatchOrganizationDevicesCellularDataProfilesAssignmentsCreateResponse

    Successful operation.

Example API response
{
  "items": [
    {
      "assignmentId": "42",
      "profile": {
        "id": "1234"
      },
      "device": {
        "serial": "Q234-ABCD-5678"
      }
    }
  ]
}

batch_organization_sase_connectors_delete

Delete SSE Connectors by ID.

API documentation: batchOrganizationSaseConnectorsDelete

Parameters:

  • organization_id (str) –

    Organization ID.

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

    List of connectors to delete (maximum 20 items).

Returns:

  • GetOrganizationApiRestProvisioningPipelinesJobsOverviewsByPipelineResponse

    Successful operation.

Example API response
{
  "items": [
    {
      "pipelineId": "1234",
      "operation": {
        "id": "enrollOrganizationSaseSites"
      },
      "status": "active",
      "counts": {
        "jobs": {
          "total": 3,
          "byStatus": {
            "completed": 1,
            "failed": 1,
            "pending": 1
          }
        }
      }
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 100,
        "remaining": 10
      }
    }
  }
}

bulk_organization_devices_cellular_data_profiles_assignments_delete

Unassign devices from a Cellular Data Management Profile in batch.

API documentation: bulkOrganizationDevicesCellularDataProfilesAssignmentsDelete

Parameters:

  • organization_id (str) –

    Organization ID.

  • items (list[BulkOrganizationDevicesCellularDataProfilesAssignmentsDeleteItemsItem]) –

    List of device-to-profile assignments to remove.

Returns:

  • None

    Successful operation.

bulk_organization_devices_packet_capture_captures_create

Perform a packet capture on multiple devices and store in Meraki Cloud.

API documentation: bulkOrganizationDevicesPacketCaptureCapturesCreate

Parameters:

  • organization_id (str) –

    Organization ID.

  • devices (list[BulkOrganizationDevicesPacketCaptureCapturesCreateDevicesItem]) –

    Device details (maximum of 20 devices allowed).

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

    Reason for capture.

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

    Duration of the capture in seconds.

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

    Filter expression for the capture.

  • name (str) –

    Name of packet capture file.

  • advanced (BulkOrganizationDevicesPacketCaptureCapturesCreateAdvanced | None, default: None ) –

    Advanced capture options (optional).

Returns:

  • BulkOrganizationDevicesPacketCaptureCapturesCreateResponse

    Successful operation.

Example API response
{
  "items": [
    {
      "captureId": "1234",
      "network": {
        "id": "N_24329156",
        "name": "Main Office"
      },
      "device": {
        "name": "My AP",
        "serial": "Q234-ABCD-5678"
      },
      "admin": {
        "id": "1234",
        "name": "Miles Meraki"
      },
      "client": {
        "id": "k74272e",
        "mac": "22:33:44:55:66:77"
      },
      "details": [
        {
          "name": "reason",
          "value": "bad_password",
          "productType": "wireless"
        }
      ],
      "name": "file_name",
      "startTs": "2018-02-11T00:00:00.090210Z",
      "ports": "1, 2",
      "status": "new",
      "errorMessage": "Some error message",
      "destination": "upload_to_cloud",
      "process": "manual",
      "file": {
        "size": 1066
      },
      "duration": 60,
      "filterExpression": "(icmp)",
      "counts": {
        "packets": {
          "total": 10
        }
      },
      "interface": "wired"
    }
  ]
}

bulk_organization_devices_packet_capture_captures_delete

BulkDelete packet captures from cloud.

API documentation: bulkOrganizationDevicesPacketCaptureCapturesDelete

Parameters:

  • organization_id (str) –

    Organization ID.

  • capture_ids (list[str]) –

    Delete the packet captures of the specified capture ids.

Returns:

  • None

    Successful operation.

bulk_update_organization_devices_details

Updating device details (currently only used for Catalyst devices).

API documentation: bulkUpdateOrganizationDevicesDetails

Parameters:

  • organization_id (str) –

    Organization ID.

  • serials (list[str]) –

    A list of serials of devices to update.

  • details (list[BulkUpdateOrganizationDevicesDetailsDetailsItem]) –

    An array of details.

Returns:

  • BulkUpdateOrganizationDevicesDetailsResponse

    Successful operation.

Example API response
{
  "serials": [
    "Q234-ABCD-0001",
    "Q234-ABCD-0002",
    "Q234-ABCD-0003"
  ]
}

claim_into_organization

Claim a list of devices, licenses, and/or orders into an organization inventory.

API documentation: claimIntoOrganization

Parameters:

  • organization_id (str) –

    Organization ID.

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

    The numbers of the orders that should be claimed.

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

    The serials of the devices that should be claimed.

  • licenses (list[ClaimIntoOrganizationLicensesItem] | None, default: None ) –

    The licenses that should be claimed.

Returns:

  • ClaimIntoOrganizationResponse

    Successful operation.

Example API response
{
  "orders": [
    "4CXXXXXXX"
  ],
  "serials": [
    "Q234-ABCD-5678"
  ],
  "licenses": [
    {
      "key": "Z2XXXXXXXXXX",
      "mode": "addDevices"
    }
  ]
}

claim_into_organization_inventory

Claim a list of devices, licenses, and/or orders into an organization inventory.

API documentation: claimIntoOrganizationInventory

Parameters:

  • organization_id (str) –

    Organization ID.

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

    The numbers of the orders that should be claimed.

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

    The serials of the devices that should be claimed.

  • licenses (list[ClaimIntoOrganizationInventoryLicensesItem] | None, default: None ) –

    The licenses that should be claimed.

Returns:

  • ClaimIntoOrganizationResponse

    Successful operation.

Example API response
{
  "orders": [
    "4CXXXXXXX"
  ],
  "serials": [
    "Q234-ABCD-5678"
  ],
  "licenses": [
    {
      "key": "Z2XXXXXXXXXX",
      "mode": "addDevices"
    }
  ]
}

claim_organization_inventory_orders

Claim an order by the secure unique order claim number, the order claim id.

API documentation: claimOrganizationInventoryOrders

Parameters:

  • organization_id (str) –

    Organization ID.

  • claim_id (str) –

    The unique order claim id.

  • subscriptions (list[ClaimOrganizationInventoryOrdersSubscriptionsItem] | None, default: None ) –

    The individual subscriptions to claim.

Returns:

  • ClaimOrganizationInventoryOrdersResponse

    Successful operation.

Example API response
{
  "claimId": "ABCDEFG12345",
  "number": "97001888",
  "serials": [
    "1234-ABCD-4567"
  ],
  "subscriptions": [
    {
      "subscriptionId": "1234",
      "name": "My UNX Subscription",
      "description": "Wireless Networking Subscription",
      "startDate": "2020-06-30T00:00:00Z",
      "endDate": "2025-06-30T00:00:00Z",
      "isClaimed": false,
      "counts": {
        "seats": {
          "limit": 1
        }
      }
    }
  ]
}

clone_organization

Create a new organization by cloning the addressed organization.

API documentation: cloneOrganization

Parameters:

  • organization_id (str) –

    Organization ID.

  • name (str) –

    The name of the new organization.

Returns:

  • OrganizationResponse

    Successful operation.

Example API response
{
  "id": "2930418",
  "name": "My organization",
  "url": "https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview",
  "api": {
    "enabled": true
  },
  "licensing": {
    "model": "co-term"
  },
  "cloud": {
    "region": {
      "name": "North America",
      "host": {
        "name": "United States"
      }
    }
  },
  "management": {
    "details": [
      {
        "name": "MSP ID",
        "value": "123456"
      }
    ]
  }
}

combine_organization_networks

Combine multiple networks into a single network.

API documentation: combineOrganizationNetworks

Parameters:

  • organization_id (str) –

    Organization ID.

  • name (str) –

    The name of the combined network.

  • network_ids (list[str]) –

    A list of the network IDs that will be combined. If an ID of a combined network is included in this list, the other networks in the list will be grouped into that network.

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

    A unique identifier which can be used for device enrollment or easy access through the Meraki SM Registration page or the Self Service Portal. Please note that changing this field may cause existing bookmarks to break. All networks that are part of this combined network will have their enrollment string appended by '-network_type'. If left empty, all exisitng enrollment strings will be deleted.

Returns:

  • CombineOrganizationNetworksResponse

    Successful operation.

Example API response
{
  "resultingNetwork": {
    "id": "N_24329156",
    "organizationId": "2930418",
    "name": "Main Office",
    "productTypes": [
      "appliance",
      "switch",
      "wireless"
    ],
    "timeZone": "America/Los_Angeles",
    "tags": [
      "tag1",
      "tag2"
    ],
    "enrollmentString": "my-enrollment-string",
    "url": "https://n1.meraki.com//n//manage/nodes/list",
    "notes": "Additional description of the network",
    "isBoundToConfigTemplate": false
  }
}

create_network_move

Move networks from one organization to another.

API documentation: createNetworkMove

Parameters:

  • organization_id (str) –

    Organization ID.

  • network (CreateNetworkMoveNetwork) –

    Network to be moved.

  • organizations (CreateNetworkMoveOrganizations) –

    Organizations involved in the network move.

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

    If true, simulates the network move and validates the operation without committing changes. The network will remain in the source organization.

Returns:

  • CreateNetworkMoveResponse

    Successful operation.

Example API response
{
  "moveId": "123456",
  "initiator": {
    "admin": {
      "id": "8590064780"
    }
  },
  "organizations": {
    "source": {
      "id": "146307"
    },
    "target": {
      "id": "146308"
    }
  },
  "network": {
    "id": "N_569142402909112097"
  },
  "createdAt": "1970-01-20T15:57:36.000Z",
  "lastUpdatedAt": "1970-01-20T15:57:36.000Z",
  "result": {
    "status": "failed",
    "reason": "Cannot move network: Target organization is invalid or inaccessible."
  }
}

create_organization

Create a new organization.

API documentation: createOrganization

Parameters:

  • name (str) –

    The name of the organization.

  • management (CreateOrganizationManagement | None, default: None ) –

    Information about the organization's management system.

Returns:

  • OrganizationResponse

    Successful operation.

Example API response
{
  "id": "2930418",
  "name": "My organization",
  "url": "https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview",
  "api": {
    "enabled": true
  },
  "licensing": {
    "model": "co-term"
  },
  "cloud": {
    "region": {
      "name": "North America",
      "host": {
        "name": "United States"
      }
    }
  },
  "management": {
    "details": [
      {
        "name": "MSP ID",
        "value": "123456"
      }
    ]
  }
}

create_organization_action_batch

Create an action batch.

API documentation: createOrganizationActionBatch

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Set to true for immediate execution. Set to false if the action should be previewed before executing. This property cannot be unset once it is true. Defaults to false.

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

    Set to true to force the batch to run synchronous. There can be at most 20 actions in synchronous batch. Defaults to false.

  • actions (list[CreateOrganizationActionBatchActionsItem]) –

    A set of changes to make as part of this action (more details).

  • callback (CreateOrganizationActionBatchCallback | None, default: None ) –

    Details for the callback. Please include either an httpServerId OR url and sharedSecret.

Returns:

  • OrganizationActionBatchResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "organizationId": "2930418",
  "confirmed": true,
  "synchronous": false,
  "status": {
    "completed": true,
    "failed": false,
    "errors": [],
    "createdResources": [
      {
        "id": "1284392014819",
        "uri": "/networks/L_XXXXX/groupPolicies/100"
      }
    ]
  },
  "actions": [
    {
      "resource": "/devices/QXXX-XXXX-XXXX/switch/ports/3",
      "operation": "update"
    }
  ],
  "callback": {
    "id": "1284392014819",
    "url": "https://webhook.site/28efa24e-f830-4d9f-a12b-fbb9e5035031",
    "status": "new"
  }
}

create_organization_adaptive_policy_acl

Creates new adaptive policy ACL.

API documentation: createOrganizationAdaptivePolicyAcl

Parameters:

  • organization_id (str) –

    Organization ID.

  • name (str) –

    Name of the adaptive policy ACL.

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

    Description of the adaptive policy ACL.

  • rules (list[CreateOrganizationAdaptivePolicyAclRulesItem]) –

    An ordered array of the adaptive policy ACL rules.

  • ip_version (CreateOrganizationAdaptivePolicyAclIpVersion) –

    IP version of adpative policy ACL. One of: 'any', 'ipv4' or 'ipv6'.

Returns:

  • OrganizationAdaptivePolicyAclResponse

    Successful operation.

Example API response
{
  "aclId": "12345678",
  "name": "Block sensitive web traffic",
  "description": "Blocks sensitive web traffic",
  "ipVersion": "ipv6",
  "rules": [
    {
      "policy": "deny",
      "protocol": "tcp",
      "srcPort": "1,33",
      "dstPort": "22-30",
      "log": true,
      "tcpEstablished": true
    }
  ],
  "createdAt": "2021-05-19T17:08:25Z",
  "updatedAt": "2021-05-19T17:11:54Z"
}

create_organization_adaptive_policy_group

Creates a new adaptive policy group.

API documentation: createOrganizationAdaptivePolicyGroup

Parameters:

  • organization_id (str) –

    Organization ID.

  • name (str) –

    Name of the group.

  • sgt (int) –

    SGT value of the group.

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

    Description of the group (default: "").

  • policy_objects (list[CreateOrganizationAdaptivePolicyGroupPolicyObjectsItem] | None, default: None ) –

    The policy objects that belong to this group; traffic from addresses specified by these policy objects will be tagged with this group's SGT value if no other tagging scheme is being used (each requires one unique attribute) (default: []).

Returns:

  • OrganizationAdaptivePolicyGroupResponse

    Successful operation.

Example API response
{
  "groupId": "1234",
  "name": "Employee Group",
  "sgt": 1000,
  "description": "Group of XYZ Corp Employees",
  "policyObjects": [
    {
      "id": "2345",
      "name": "Example Policy Object"
    }
  ],
  "isDefaultGroup": false,
  "requiredIpMappings": [],
  "createdAt": "2019-06-27T21:34:25.253480Z",
  "updatedAt": "2019-06-27T21:34:25.253480Z"
}

create_organization_adaptive_policy_policy

Add an Adaptive Policy.

API documentation: createOrganizationAdaptivePolicyPolicy

Parameters:

  • organization_id (str) –

    Organization ID.

  • source_group (CreateOrganizationAdaptivePolicyPolicySourceGroup) –

    The source adaptive policy group (requires one unique attribute).

  • destination_group (CreateOrganizationAdaptivePolicyPolicyDestinationGroup) –

    The destination adaptive policy group (requires one unique attribute).

  • acls (list[CreateOrganizationAdaptivePolicyPolicyAclsItem] | None, default: None ) –

    An ordered array of adaptive policy ACLs (each requires one unique attribute) that apply to this policy (default: []).

  • last_entry_rule (CreateOrganizationAdaptivePolicyPolicyLastEntryRule | None, default: None ) –

    The rule to apply if there is no matching ACL (default: "default").

Returns:

  • OrganizationAdaptivePolicyPolicyResponse

    Successful operation.

Example API response
{
  "adaptivePolicyId": "111",
  "sourceGroup": {
    "id": "222",
    "name": "IoT Devices",
    "sgt": 50
  },
  "destinationGroup": {
    "id": "333",
    "name": "IoT Servers",
    "sgt": 51
  },
  "acls": [
    {
      "id": "444",
      "name": "Block web"
    }
  ],
  "lastEntryRule": "allow",
  "createdAt": "2019-06-27T21:34:25.253480Z",
  "updatedAt": "2019-06-27T21:34:25.253480Z"
}

create_organization_admin

Create a new dashboard administrator.

API documentation: createOrganizationAdmin

Parameters:

  • organization_id (str) –

    Organization ID.

  • email (str) –

    The email of the dashboard administrator. This attribute can not be updated.

  • name (str) –

    The name of the dashboard administrator.

  • org_access (CreateOrganizationAdminOrgAccess) –

    The privilege of the dashboard administrator on the organization. Can be one of 'full', 'read-only', 'enterprise' or 'none'.

  • tags (list[CreateOrganizationAdminTagsItem] | None, default: None ) –

    The list of tags that the dashboard administrator has privileges on.

  • networks (list[CreateOrganizationAdminNetworksItem] | None, default: None ) –

    The list of networks that the dashboard administrator has privileges on.

  • authentication_method (CreateOrganizationAdminAuthenticationMethod | None, default: None ) –

    No longer used as of Cisco SecureX end-of-life. Can be one of 'Email'. The default is Email authentication.

Returns:

  • OrganizationAdminResponse

    Successful operation.

Example API response
{
  "id": "212406",
  "name": "Miles Meraki",
  "email": "miles@meraki.com",
  "orgAccess": "none",
  "accountStatus": "ok",
  "twoFactorAuthEnabled": false,
  "hasApiKey": true,
  "lastActive": "2018-02-11T00:00:00Z",
  "tags": [
    {
      "tag": "west",
      "access": "read-only"
    }
  ],
  "networks": [
    {
      "id": "N_24329156",
      "access": "full"
    }
  ],
  "authenticationMethod": "Email"
}

create_organization_alerts_profile

Create an organization-wide alert configuration.

API documentation: createOrganizationAlertsProfile

Parameters:

  • organization_id (str) –

    Organization ID.

  • type_ (CreateOrganizationAlertsProfileType) –

    The alert type.

  • alert_condition (CreateOrganizationAlertsProfileAlertCondition) –

    The conditions that determine if the alert triggers.

  • recipients (CreateOrganizationAlertsProfileRecipients) –

    List of recipients that will recieve the alert.

  • network_tags (list[str]) –

    Networks with these tags will be monitored for the alert.

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

    User supplied description of the alert.

Returns:

  • OrganizationAlertsProfileResponse

    Successful operation.

Example API response
{
  "id": "1284392014819",
  "type": "wanUtilization",
  "enabled": true,
  "alertCondition": {
    "duration": 60,
    "window": 600,
    "bit_rate_bps": 10000,
    "interface": "wan1"
  },
  "recipients": {
    "emails": [
      "admin@example.org"
    ],
    "httpServerIds": [
      "aHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vcGF0aA=="
    ]
  },
  "networkTags": [
    "tag1",
    "tag2"
  ],
  "description": "WAN 1 high utilization"
}

create_organization_branding_policy

Add a new branding policy to an organization.

API documentation: createOrganizationBrandingPolicy

Parameters:

  • organization_id (str) –

    Organization ID.

  • name (str) –

    Name of the Dashboard branding policy.

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

    Boolean indicating whether this policy is enabled.

  • admin_settings (CreateOrganizationBrandingPolicyAdminSettings | None, default: None ) –

    Settings for describing which kinds of admins this policy applies to.

  • help_settings (CreateOrganizationBrandingPolicyHelpSettings | None, default: None ) –

    Settings for describing the modifications to various Help page features. Each property in this object accepts one of 'default or inherit' (do not modify functionality), 'hide' (remove the section from Dashboard), or 'show' (always show the section on Dashboard). Some properties in this object also accept custom HTML used to replace the section on Dashboard; see the documentation for each property to see the allowed values. Each property defaults to 'default or inherit' when not provided.

  • custom_logo (CreateOrganizationBrandingPolicyCustomLogo | None, default: None ) –

    Properties describing the custom logo attached to the branding policy.

Returns:

  • OrganizationBrandingPolicyResponse

    Successful operation.

Example API response
{
  "name": "My Branding Policy",
  "enabled": true,
  "adminSettings": {
    "appliesTo": "All admins of networks...",
    "values": [
      "N_1234",
      "L_5678"
    ]
  },
  "helpSettings": {
    "helpTab": "show",
    "getHelpSubtab": "default or inherit",
    "communitySubtab": "show",
    "casesSubtab": "hide",
    "dataProtectionRequestsSubtab": "default or inherit",
    "getHelpSubtabKnowledgeBaseSearch": "<h1>Some custom HTML content</h1>",
    "universalSearchKnowledgeBaseSearch": "hide",
    "ciscoMerakiProductDocumentation": "show",
    "supportContactInfo": "show",
    "newFeaturesSubtab": "show",
    "firewallInfoSubtab": "hide",
    "apiDocsSubtab": "default or inherit",
    "hardwareReplacementsSubtab": "hide",
    "smForums": "hide",
    "helpWidget": "hide"
  },
  "customLogo": {
    "enabled": true,
    "image": {
      "preview": {
        "url": "https://meraki-na.s3.amazonaws.com/org-assets/my-image.png",
        "expiresAt": "2022-04-06T06:19:27-07:00"
      }
    }
  }
}

create_organization_config_template

Create a new configuration template.

API documentation: createOrganizationConfigTemplate

Parameters:

  • organization_id (str) –

    Organization ID.

  • name (str) –

    The name of the configuration template.

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

    The timezone of the configuration template. For a list of allowed timezones, please see the 'TZ' column in the table in this article. Not applicable if copying from existing network or template.

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

    The ID of the network or config template to copy configuration from.

Returns:

  • OrganizationConfigTemplateResponse

    Successful operation.

Example API response
{
  "id": "N_24329156",
  "name": "My config template",
  "productTypes": [
    "appliance",
    "switch",
    "wireless"
  ],
  "timeZone": "America/Los_Angeles"
}

create_organization_devices_cellular_data_profile

Add a cellular data management profile to this organization.

API documentation: createOrganizationDevicesCellularDataProfile

Parameters:

  • organization_id (str) –

    Organization ID.

  • name (str) –

    Name of the profile to be added. This must be unique.

  • description (str) –

    Description of the profile to be added.

  • rules (list[CreateOrganizationDevicesCellularDataProfileRulesItem]) –

    The rules associated with this profile. At least one rule and no more than two rules may be defined for a profile.

Returns:

  • OrganizationDevicesCellularDataProfileResponse

    Successful operation.

Example API response
{
  "profileId": "42",
  "lastUpdatedAt": "2023-08-21T00:00:00Z",
  "name": "some unique profile name",
  "description": "some description",
  "rules": [
    {
      "ruleId": "43",
      "slot": "sim1",
      "uplink": {
        "priority": 1,
        "isPreferred": true
      },
      "cap": {
        "value": 42,
        "threshold": 0.9,
        "term": {
          "resets": "monthly",
          "starts": {
            "hourOfDay": 12,
            "dayOfWeek": "mon",
            "dayOfMonth": 2
          }
        }
      },
      "actions": [
        {
          "type": "failover"
        }
      ]
    }
  ]
}

create_organization_devices_controller_migration

Migrate devices to another controller or management mode.

API documentation: createOrganizationDevicesControllerMigration

Parameters:

  • organization_id (str) –

    Organization ID.

  • serials (list[str]) –

    A list of Meraki Serials to migrate.

  • target (CreateOrganizationDevicesControllerMigrationTarget) –

    The controller or management mode to which the devices will be migrated.

Returns:

  • CreateOrganizationDevicesControllerMigrationResponse

    Successful operation.

Example API response
[
  {
    "serial": "QXYZ-DEFG-HIJK",
    "target": "wirelessController",
    "createdAt": "2020-10-21T02:00:00Z",
    "migratedAt": "2020-10-21T03:00:00Z"
  }
]

create_organization_devices_packet_capture_capture

Perform a packet capture on a device and store in Meraki Cloud.

API documentation: createOrganizationDevicesPacketCaptureCapture

Parameters:

  • organization_id (str) –

    Organization ID.

  • serials (list[str]) –

    The serial(s) of the device(s).

  • name (str) –

    Name of packet capture file.

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

    Output type of packet capture file. Possible values: text, pcap, cloudshark, or upload_to_cloud.

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

    Destination of packet capture file. Possible values: [upload_to_cloud].

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

    Ports of packet capture file, comma-separated.

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

    Reason for taking the packet capture.

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

    Duration in seconds of packet capture.

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

    Filter expression for packet capture.

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

    Interface of the device.

  • advanced (CreateOrganizationDevicesPacketCaptureCaptureAdvanced | None, default: None ) –

    Advanced filters for IOSXE devices (supported for Campus Gateway devices only).

Returns:

  • OrganizationDevicesPacketCaptureCaptureResponse

    Successful operation.

Example API response
{
  "captureId": "1234",
  "network": {
    "id": "N_24329156",
    "name": "Main Office"
  },
  "device": {
    "name": "My AP",
    "serial": "Q234-ABCD-5678"
  },
  "admin": {
    "id": "1234",
    "name": "Miles Meraki"
  },
  "client": {
    "id": "k74272e",
    "mac": "22:33:44:55:66:77"
  },
  "details": [
    {
      "name": "reason",
      "value": "bad_password",
      "productType": "wireless"
    }
  ],
  "name": "file_name",
  "startTs": "2018-02-11T00:00:00.090210Z",
  "ports": "1, 2",
  "status": "new",
  "errorMessage": "Some error message",
  "destination": "upload_to_cloud",
  "process": "manual",
  "file": {
    "size": 1066
  },
  "duration": 60,
  "filterExpression": "(icmp)",
  "counts": {
    "packets": {
      "total": 10
    }
  },
  "interface": "wired"
}

create_organization_devices_packet_capture_schedule

Create a schedule for packet capture.

API documentation: createOrganizationDevicesPacketCaptureSchedule

Parameters:

  • organization_id (str) –

    Organization ID.

  • devices (list[CreateOrganizationDevicesPacketCaptureScheduleDevicesItem]) –

    device details.

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

    Name of the packet capture file.

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

    Reason for capture.

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

    Duration of the capture in seconds.

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

    Filter expression for the capture.

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

    Enable or disable the schedule.

  • schedule (CreateOrganizationDevicesPacketCaptureScheduleSchedule | None, default: None ) –

    Schedule details.

Returns:

  • OrganizationDevicesPacketCaptureScheduleResponse

    Successful operation.

Example API response
{
  "scheduleId": "1234",
  "devices": [
    {
      "device": {
        "serial": "Q234-ABCD-5678",
        "switchports": "1-3, 9",
        "interface": "GigabitEthernet1/0/1"
      }
    }
  ],
  "name": "pcap_file_name",
  "admin": {
    "id": "1234",
    "name": "Miles Meraki"
  },
  "notes": "capture reason",
  "duration": 60,
  "filterExpression": "(icmp)",
  "createdAt": "2018-02-11T00:00:00.090210Z",
  "updatedAt": "2018-02-11T00:00:00.090210Z",
  "captureCount": 2,
  "lastCaptureId": "1234",
  "enabled": true,
  "priority": 1,
  "schedule": {
    "name": "schedule_name",
    "startTs": "2018-02-11T00:00:00.090210Z",
    "endTs": "2018-02-11T00:00:00.090210Z",
    "frequency": "hour",
    "weekdays": [
      "Monday",
      "Tuesday"
    ],
    "recurrence": 1,
    "nextCaptureTs": "2018-02-11T00:00:00.090210Z"
  },
  "warnings": [
    "This schedule conflicts with the schedule Test Schedule at the time 2025-01-28T18:25:06Z"
  ]
}

create_organization_early_access_features_opt_in

Create a new early access feature opt-in for an organization.

API documentation: createOrganizationEarlyAccessFeaturesOptIn

Parameters:

  • organization_id (str) –

    Organization ID.

  • short_name (str) –

    Short name of the early access feature.

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

    A list of network IDs to apply the opt-in to.

Returns:

  • GetOrganizationEarlyAccessFeaturesOptInsResponse

    Successful operation.

Example API response
{
  "id": "1",
  "shortName": "has_new_feature",
  "limitScopeToNetworks": [
    {
      "id": "L_1234",
      "name": "My Network"
    }
  ],
  "optOutEligibility": {
    "eligible": false,
    "reason": "Please remove devices of type XYZ from your organization",
    "help": {
      "label": "Read more",
      "url": "http://meraki.com/my_help"
    }
  },
  "createdAt": "2022-05-01T04:07:15Z"
}

create_organization_inventory_devices_swaps_bulk

Swap the devices identified by devices.old with a devices.new, then perform the :afterAction on the devices.old.

API documentation: createOrganizationInventoryDevicesSwapsBulk

Parameters:

  • organization_id (str) –

    Organization ID.

  • swaps (list[CreateOrganizationInventoryDevicesSwapsBulkSwapsItem]) –

    List of replacments to perform.

Returns:

  • OrganizationInventoryDevicesSwapsBulkResponse

    Successful operation.

Example API response
{
  "jobId": "1284392014819",
  "swaps": [
    {
      "id": "1284392014819",
      "devices": {
        "old": {
          "mac": "00:11:22:33:44:55",
          "serial": "Q234-ABCD-5678",
          "model": "MR34",
          "name": "My AP"
        },
        "new": {
          "mac": "00:11:22:33:44:55",
          "serial": "Q234-ABCD-5678",
          "model": "MR34",
          "name": "My AP"
        }
      },
      "status": "complete",
      "afterAction": "remove from network",
      "createdAt": "2023-04-24T12:40:11Z",
      "completedAt": "2023-04-24T12:40:12Z",
      "errors": []
    }
  ]
}

create_organization_network

Create a network.

API documentation: createOrganizationNetwork

Parameters:

  • organization_id (str) –

    Organization ID.

  • name (str) –

    The name of the new network.

  • product_types (CreateOrganizationNetworkProductTypes) –

    The product type(s) of the new network. If more than one type is included, the network will be a combined network.

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

    A list of tags to be applied to the network.

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

    The timezone of the network. For a list of allowed timezones, please see the 'TZ' column in the table in this article..

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

    The ID of the network to copy configuration from. Other provided parameters will override the copied configuration, except type which must match this network's type exactly.

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

    Add any notes or additional information about this network here.

Returns:

  • CreateOrganizationNetworkResponse

    Successful operation.

Example API response
{
  "id": "N_24329156",
  "organizationId": "2930418",
  "name": "Main Office",
  "productTypes": [
    "appliance",
    "switch",
    "wireless"
  ],
  "timeZone": "America/Los_Angeles",
  "tags": [
    "tag1",
    "tag2"
  ],
  "enrollmentString": "my-enrollment-string",
  "url": "https://n1.meraki.com//n//manage/nodes/list",
  "notes": "Additional description of the network",
  "isBoundToConfigTemplate": false
}

create_organization_policies_global_firewall_ruleset

Create an Organization-Wide Policy Firewall Ruleset.

API documentation: createOrganizationPoliciesGlobalFirewallRuleset

Parameters:

  • organization_id (str) –

    Organization ID.

  • name (str) –

    Name of the firewall ruleset.

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

    Description of the firewall ruleset.

Returns:

  • OrganizationPoliciesGlobalFirewallRulesetResponse

    Successful operation.

Example API response
{
  "rulesetId": "123",
  "name": "Block Social Media",
  "description": "Block all Social Media",
  "createdAt": "2021-01-01T00:00:00Z",
  "lastUpdatedAt": "2021-01-01T00:00:00Z"
}

create_organization_policies_global_firewall_rulesets_rule

Create an Organization-Wide Policy Firewall Rule.

API documentation: createOrganizationPoliciesGlobalFirewallRulesetsRule

Parameters:

  • organization_id (str) –

    Organization ID.

  • name (str) –

    Name of the firewall rule.

  • ruleset_id (str) –

    Firewall ruleset ID to associate the rule with.

  • policy (CreateOrganizationPoliciesGlobalFirewallRulesetsRulePolicy) –

    Rule policy - allow or deny traffic.

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

    Whether the rule is enabled.

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

    Rule priority (lower numbers = higher priority).

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

    Description of the firewall rule.

  • sources (CreateOrganizationPoliciesGlobalFirewallRulesetsRuleSources) –

    Source traffic criteria. Each source or destination bloc is capped separately per rule at 100 total segment values. The count is segments_values_count: the sum of all values across every segment type in that bloc. Ports use a separate cap of 100.

  • destinations (CreateOrganizationPoliciesGlobalFirewallRulesetsRuleDestinations) –

    Destination traffic criteria. Each source or destination bloc is capped separately per rule at 100 total segment values. The count is segments_values_count: the sum of all values across every segment type in that bloc. Ports use a separate cap of 100.

Returns:

  • OrganizationPoliciesGlobalFirewallRulesetsRuleResponse

    Successful operation.

Example API response
{
  "ruleId": "123",
  "name": "Allow developers",
  "rulesetId": "32",
  "policy": "deny",
  "enabled": true,
  "priority": 100,
  "description": "This is rule 1",
  "sources": {
    "matchCriteria": [
      "addressRanges",
      "ports",
      "policyObjects",
      "policyObjectGroups",
      "applianceVlans"
    ],
    "criteria": {
      "addressRanges": [
        "1.1.1.1",
        "2.2.2.2"
      ],
      "ports": [
        "22",
        "42-46"
      ],
      "policyObjects": [
        {
          "id": "23"
        }
      ],
      "policyObjectGroups": [
        {
          "id": "45"
        }
      ],
      "applianceVlans": [
        {
          "interfaceId": "L_123456789012345678_vlan_200"
        }
      ],
      "siteSpecificVlans": [
        {
          "id": 100,
          "address": {
            "offsets": {
              "ipv4": 25,
              "ipv6": "0:ff:fe01:0"
            }
          }
        }
      ]
    }
  },
  "destinations": {
    "matchCriteria": [
      "addressRanges",
      "services",
      "applicationCategories",
      "applications",
      "policyObjects",
      "policyObjectGroups",
      "applianceVlans"
    ],
    "criteria": {
      "addressRanges": [
        "1.1.1.1",
        "2.2.2.2"
      ],
      "ports": [
        "22",
        "42-46"
      ],
      "services": [
        {
          "protocol": "tcp",
          "ports": [
            "80",
            "443"
          ]
        }
      ],
      "applicationCategories": [
        {
          "id": "meraki:layer7/category/24"
        }
      ],
      "applications": [
        {
          "id": "meraki:layer7/application/5",
          "name": "Advertising.com"
        }
      ],
      "policyObjects": [
        {
          "id": "23"
        }
      ],
      "policyObjectGroups": [
        {
          "id": "45"
        }
      ],
      "applianceVlans": [
        {
          "interfaceId": "L_123456789012345678_vlan_200"
        }
      ],
      "countries": [
        {
          "code": "US"
        }
      ],
      "fqdns": [
        "*.example.com"
      ],
      "siteSpecificVlans": [
        {
          "id": 100,
          "address": {
            "offsets": {
              "ipv4": 25,
              "ipv6": "0:ff:fe01:0"
            }
          }
        }
      ]
    }
  },
  "createdAt": "2021-01-01T00:00:00Z",
  "lastUpdatedAt": "2021-01-01T00:00:00Z"
}

create_organization_policies_global_group_policies_firewall_rulesets_assignment

Create an Organization-Wide Policy Ruleset Assignment.

API documentation: createOrganizationPoliciesGlobalGroupPoliciesFirewallRulesetsAssignment

Parameters:

  • organization_id (str) –

    Organization ID.

  • ruleset_id (str) –

    ID of the ruleset to assign.

  • policy_id (str) –

    ID of the policy to assign the ruleset to.

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

    Priority of the ruleset assignment (lower numbers = higher priority).

Returns:

  • OrganizationPoliciesGlobalGroupPoliciesFirewallRulesetsAssignmentResponse

    Successful operation.

Example API response
{
  "assignmentId": "123",
  "rulesetId": "456",
  "policyId": "789",
  "priority": 1,
  "createdAt": "2021-01-01T00:00:00Z",
  "lastUpdatedAt": "2021-01-01T00:00:00Z"
}

create_organization_policies_global_group_policy

Create an Organization-Wide Policy.

API documentation: createOrganizationPoliciesGlobalGroupPolicy

Parameters:

  • organization_id (str) –

    Organization ID.

  • name (str) –

    Name of the policy.

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

    Description of the policy.

Returns:

  • OrganizationPoliciesGlobalGroupPolicyResponse

    Successful operation.

Example API response
{
  "policyId": "123",
  "name": "My policy",
  "description": "My policy description",
  "group": {
    "number": 100
  },
  "createdAt": "2021-01-01T00:00:00Z",
  "lastUpdatedAt": "2021-01-01T00:00:00Z"
}

create_organization_policy_object

Creates a new Policy Object.

API documentation: createOrganizationPolicyObject

Parameters:

  • organization_id (str) –

    Organization ID.

  • name (str) –

    Name of a policy object, unique within the organization (alphanumeric, space, dash, or underscore characters only).

  • category (str) –

    Category of a policy object (one of: adaptivePolicy, network).

  • type_ (str) –

    Type of a policy object (one of: adaptivePolicyIpv4Cidr, cidr, fqdn, ipAndMask).

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

    CIDR Value of a policy object (e.g. 10.11.12.1/24").

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

    Fully qualified domain name of policy object (e.g. "example.com").

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

    Mask of a policy object (e.g. "255.255.0.0").

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

    IP Address of a policy object (e.g. "1.2.3.4").

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

    The IDs of policy object groups the policy object belongs to.

Returns:

  • OrganizationPolicyObjectResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "name": "Web Servers - Datacenter 10",
  "category": "network",
  "type": "cidr",
  "cidr": "10.0.0.0/24",
  "createdAt": "2018-05-12T00:00:00Z",
  "updatedAt": "2018-05-12T00:00:00Z",
  "groupIds": [
    "8"
  ],
  "networkIds": [
    "L_12345",
    "N_123456"
  ]
}

create_organization_policy_objects_group

Creates a new Policy Object Group.

API documentation: createOrganizationPolicyObjectsGroup

Parameters:

  • organization_id (str) –

    Organization ID.

  • name (str) –

    A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only).

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

    Category of a policy object group (one of: NetworkObjectGroup, GeoLocationGroup, PortObjectGroup, ApplicationGroup).

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

    A list of Policy Object ID's that this NetworkObjectGroup should be associated to (note: these ID's will replace the existing associated Policy Objects).

Returns:

  • OrganizationPolicyObjectsGroupResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "name": "Web Servers - Datacenter 10",
  "category": "NetworkObjectGroup",
  "createdAt": "2018-05-12T00:00:00Z",
  "updatedAt": "2018-05-12T00:00:00Z",
  "objectIds": [
    100
  ],
  "networkIds": [
    "L_12345",
    "N_123456"
  ]
}

create_organization_saml_idp

Create a SAML IdP for your organization.

API documentation: createOrganizationSamlIdp

Parameters:

  • organization_id (str) –

    Organization ID.

  • x509cert_sha1_fingerprint (str) –

    Fingerprint (SHA1) of the SAML certificate provided by your Identity Provider (IdP). This will be used for encryption / validation.

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

    Dashboard will redirect users to this URL to log in again when their sessions expire.

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

    Dashboard will redirect users to this URL when they sign out.

Returns:

  • GetOrganizationSamlIdpsResponse

    Successful operation.

Example API response
[
  {
    "idpId": "1284392014819",
    "consumerUrl": "https://n7.meraki.com/saml/login/XXX",
    "visionConsumerUrl": "https://n7.meraki.com/saml/login/XXX?appTarget=MerakiVision",
    "x509certSha1Fingerprint": "00:11:22:33:44:55:66:77:88:99:00:11:22:33:44:55:66:77:88:99",
    "ssoLoginUrl": "https://onelogin.com/trust/saml2/http-post/sso/3de5f942-e7b8-4cb9-94e3-85828111158b",
    "sloLogoutUrl": "https://onelogin.com/trust/saml2/http-redirect/slo/4155000"
  }
]

create_organization_saml_role

Create a SAML role.

API documentation: createOrganizationSamlRole

Parameters:

  • organization_id (str) –

    Organization ID.

  • role (str) –

    The role of the SAML administrator.

  • org_access (str) –

    The privilege of the SAML administrator on the organization. Can be one of 'none', 'read-only', 'full' or 'enterprise' or a custom role in the format custom-role:ID:NAME.

  • tags (list[CreateOrganizationSamlRoleTagsItem] | None, default: None ) –

    The list of tags that the SAML administrator has privileges on.

  • networks (list[CreateOrganizationSamlRoleNetworksItem] | None, default: None ) –

    The list of networks that the SAML administrator has privileges on.

Returns:

  • OrganizationSamlRoleResponse

    Successful operation.

Example API response
{
  "id": "1284392014819",
  "role": "myrole",
  "orgAccess": "none",
  "networks": [
    {
      "id": "N_24329156",
      "access": "full"
    }
  ],
  "tags": [
    {
      "tag": "west",
      "access": "read-only"
    }
  ],
  "camera": [
    {
      "orgWide": true,
      "access": "viewAndExport"
    }
  ]
}

create_organization_sase_integration

Create a new Secure Access integration.

API documentation: createOrganizationSaseIntegration

Parameters:

  • organization_id (str) –

    Organization ID.

  • api (CreateOrganizationSaseIntegrationApi) –

    API credentials.

Returns:

  • OrganizationSaseIntegrationResponse

    Successful operation.

Example API response
{
  "integrated": {
    "by": {
      "admin": {
        "name": "John Doe"
      }
    },
    "at": "2025-04-01T12:00:00Z"
  },
  "lastUsedAt": "2025-04-01T12:00:00Z",
  "external": {
    "organization": {
      "id": "1234567890"
    }
  },
  "status": "active"
}

create_organization_splash_theme

Create a Splash Theme.

API documentation: createOrganizationSplashTheme

Parameters:

  • organization_id (str) –

    Organization ID.

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

    theme name.

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

    base theme id.

Returns:

  • CreateOrganizationSplashThemeResponse

    Successful operation.

Example API response
{
  "id": "482367494044dbbb1d2cc8579d967cef5b4ce59f",
  "name": "My Custom Splash Theme",
  "isSystemTheme": false,
  "themeAssets": [
    {
      "id": "1284392014819",
      "name": "continue.html"
    }
  ]
}

create_organization_splash_theme_asset

Create a Splash Theme Asset.

API documentation: createOrganizationSplashThemeAsset

Parameters:

  • organization_id (str) –

    Organization ID.

  • theme_identifier (str) –

    Theme identifier.

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

    File name. Will overwrite files with same name.

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

    a file containing the asset content.

Returns:

  • GetOrganizationSplashAssetResponse

    Successful operation.

Example API response
{
  "id": "1284392014819",
  "name": "continue.html",
  "fileData": "PGh0bWw+PC9odG1sPg==\n"
}

delete_organization

Delete an organization.

API documentation: deleteOrganization

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • None

    Successful operation.

delete_organization_action_batch

Delete an action batch.

API documentation: deleteOrganizationActionBatch

Parameters:

  • organization_id (str) –

    Organization ID.

  • action_batch_id (str) –

    Action batch ID.

Returns:

  • None

    Successful operation.

delete_organization_adaptive_policy_acl

Deletes the specified adaptive policy ACL.

API documentation: deleteOrganizationAdaptivePolicyAcl

Parameters:

  • organization_id (str) –

    Organization ID.

  • acl_id (str) –

    Acl ID.

Returns:

  • None

    Successful operation.

delete_organization_adaptive_policy_group

Deletes the specified adaptive policy group and any associated policies and references.

API documentation: deleteOrganizationAdaptivePolicyGroup

Parameters:

  • organization_id (str) –

    Organization ID.

  • id (str) –

    ID.

Returns:

  • None

    Successful operation.

delete_organization_adaptive_policy_policy

Delete an Adaptive Policy.

API documentation: deleteOrganizationAdaptivePolicyPolicy

Parameters:

  • organization_id (str) –

    Organization ID.

  • id (str) –

    ID.

Returns:

  • None

    Successful operation.

delete_organization_admin

Revoke all access for a dashboard administrator within this organization.

API documentation: deleteOrganizationAdmin

Parameters:

  • organization_id (str) –

    Organization ID.

  • admin_id (str) –

    Admin ID.

Returns:

  • None

    Successful operation.

delete_organization_alerts_profile

Removes an organization-wide alert config.

API documentation: deleteOrganizationAlertsProfile

Parameters:

  • organization_id (str) –

    Organization ID.

  • alert_config_id (str) –

    Alert config ID.

Returns:

  • None

    Successful operation.

delete_organization_branding_policy

Delete a branding policy.

API documentation: deleteOrganizationBrandingPolicy

Parameters:

  • organization_id (str) –

    Organization ID.

  • branding_policy_id (str) –

    Branding policy ID.

Returns:

  • None

    Successful operation.

delete_organization_config_template

Remove a configuration template.

API documentation: deleteOrganizationConfigTemplate

Parameters:

  • organization_id (str) –

    Organization ID.

  • config_template_id (str) –

    Config template ID.

Returns:

  • None

    Successful operation.

delete_organization_devices_cellular_data_profile

Delete a cellular data management profile from this organization.

API documentation: deleteOrganizationDevicesCellularDataProfile

Parameters:

  • organization_id (str) –

    Organization ID.

  • profile_id (str) –

    Profile ID.

Returns:

  • None

    Successful operation.

delete_organization_devices_packet_capture_capture

Delete a single packet capture from cloud using captureId.

API documentation: deleteOrganizationDevicesPacketCaptureCapture

Parameters:

  • organization_id (str) –

    Organization ID.

  • capture_id (str) –

    Capture ID.

Returns:

  • None

    Successful operation.

delete_organization_devices_packet_capture_schedule

Delete schedule from cloud.

API documentation: deleteOrganizationDevicesPacketCaptureSchedule

Parameters:

  • organization_id (str) –

    Organization ID.

  • schedule_id (str) –

    Schedule ID.

Returns:

  • None

    Successful operation.

delete_organization_early_access_features_opt_in

Delete an early access feature opt-in.

API documentation: deleteOrganizationEarlyAccessFeaturesOptIn

Parameters:

  • organization_id (str) –

    Organization ID.

  • opt_in_id (str) –

    Opt in ID.

Returns:

  • None

    Successful operation.

delete_organization_policies_global_firewall_ruleset

Delete an Organization-Wide Policy Firewall Ruleset.

API documentation: deleteOrganizationPoliciesGlobalFirewallRuleset

Parameters:

  • organization_id (str) –

    Organization ID.

  • ruleset_id (str) –

    Ruleset ID.

Returns:

  • None

    Successful operation.

delete_organization_policies_global_firewall_rulesets_rule

Delete an Organization-Wide Policy Firewall Rule.

API documentation: deleteOrganizationPoliciesGlobalFirewallRulesetsRule

Parameters:

  • organization_id (str) –

    Organization ID.

  • rule_id (str) –

    Rule ID.

Returns:

  • None

    Successful operation.

delete_organization_policies_global_group_policies_firewall_rulesets_assignment

Delete an Organization-Wide Policy Ruleset Assignment.

API documentation: deleteOrganizationPoliciesGlobalGroupPoliciesFirewallRulesetsAssignment

Parameters:

  • organization_id (str) –

    Organization ID.

  • assignment_id (str) –

    Assignment ID.

Returns:

  • None

    Successful operation.

delete_organization_policies_global_group_policy

Delete an Organization-Wide Policy.

API documentation: deleteOrganizationPoliciesGlobalGroupPolicy

Parameters:

  • organization_id (str) –

    Organization ID.

  • policy_id (str) –

    Policy ID.

Returns:

  • None

    Successful operation.

delete_organization_policy_object

Deletes a Policy Object.

API documentation: deleteOrganizationPolicyObject

Parameters:

  • organization_id (str) –

    Organization ID.

  • policy_object_id (str) –

    Policy object ID.

Returns:

  • None

    Successful operation.

delete_organization_policy_objects_group

Deletes a Policy Object Group.

API documentation: deleteOrganizationPolicyObjectsGroup

Parameters:

  • organization_id (str) –

    Organization ID.

  • policy_object_group_id (str) –

    Policy object group ID.

Returns:

  • None

    Successful operation.

delete_organization_saml_idp

Remove a SAML IdP in your organization.

API documentation: deleteOrganizationSamlIdp

Parameters:

  • organization_id (str) –

    Organization ID.

  • idp_id (str) –

    Idp ID.

Returns:

  • None

    Successful operation.

delete_organization_saml_role

Remove a SAML role.

API documentation: deleteOrganizationSamlRole

Parameters:

  • organization_id (str) –

    Organization ID.

  • saml_role_id (str) –

    Saml role ID.

Returns:

  • None

    Successful operation.

delete_organization_sase_integration

Remove a Secure Access integration.

API documentation: deleteOrganizationSaseIntegration

Parameters:

  • organization_id (str) –

    Organization ID.

  • integration_id (str) –

    Integration ID.

Returns:

  • None

    Successful operation.

delete_organization_splash_asset

Delete a Splash Theme Asset.

API documentation: deleteOrganizationSplashAsset

Parameters:

  • organization_id (str) –

    Organization ID.

  • id (str) –

    ID.

Returns:

  • None

    Successful operation.

delete_organization_splash_theme

Delete a Splash Theme.

API documentation: deleteOrganizationSplashTheme

Parameters:

  • organization_id (str) –

    Organization ID.

  • id (str) –

    ID.

Returns:

  • None

    Successful operation.

detach_organization_sase_sites

Detach sites in this organization from Secure Access.

API documentation: detachOrganizationSaseSites

Parameters:

  • organization_id (str) –

    Organization ID.

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

    List of Secure Access sites to be detached.

  • callback (DetachOrganizationSaseSitesCallback | None, default: None ) –

    Details for the callback. Please include either an httpServerId OR url and sharedSecret.

Returns:

  • None

    Successful operation.

Example API response
{
  "items": [
    {
      "pipelineId": "1234",
      "operation": {
        "id": "enrollOrganizationSaseSites"
      },
      "status": "active",
      "counts": {
        "jobs": {
          "total": 3,
          "byStatus": {
            "completed": 1,
            "failed": 1,
            "pending": 1
          }
        }
      }
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 100,
        "remaining": 10
      }
    }
  }
}

disable_organization_integrations_xdr_networks

Disable XDR on networks.

API documentation: disableOrganizationIntegrationsXdrNetworks

Parameters:

  • organization_id (str) –

    Organization ID.

  • networks (list[DisableOrganizationIntegrationsXdrNetworksNetworksItem]) –

    List containing the network ID and the product type to disable XDR on.

Returns:

  • OrganizationIntegrationsXdrNetworksResponse

    Successful operation.

Example API response
{
  "networks": [
    {
      "networkId": "N_1234567",
      "productTypes": [
        "appliance"
      ],
      "name": "Test network",
      "enabled": false,
      "isEligible": true
    }
  ]
}

dismiss_organization_assurance_alerts

Dismiss health alerts.

API documentation: dismissOrganizationAssuranceAlerts

Parameters:

  • organization_id (str) –

    Organization ID.

  • alert_ids (list[str]) –

    Array of alert IDs to dismiss.

Returns:

  • None

    Successful operation.

enable_organization_integrations_xdr_networks

Enable XDR on networks.

API documentation: enableOrganizationIntegrationsXdrNetworks

Parameters:

  • organization_id (str) –

    Organization ID.

  • networks (list[EnableOrganizationIntegrationsXdrNetworksNetworksItem]) –

    List containing the network ID and the product type to enable XDR on.

Returns:

  • OrganizationIntegrationsXdrNetworksResponse

    Successful operation.

Example API response
{
  "networks": [
    {
      "networkId": "N_1234567",
      "productTypes": [
        "appliance"
      ],
      "name": "Test network",
      "enabled": true,
      "isEligible": true
    }
  ]
}

generate_organization_devices_packet_capture_capture_download_url

Get presigned download URL for given packet capture id.

API documentation: generateOrganizationDevicesPacketCaptureCaptureDownloadUrl

Parameters:

  • organization_id (str) –

    Organization ID.

  • capture_id (str) –

    Capture ID.

Returns:

  • GenerateOrganizationDevicesPacketCaptureCaptureDownloadUrlResponse

    Successful operation.

Example API response
{
  "captureId": "1234",
  "downloadUrl": "example.com",
  "url": "example.com"
}

get_network_moves

Return a list of network move operations in the organization.

API documentation: getNetworkMoves

Parameters:

  • organization_id (str) –

    Organization ID.

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

    The number of entries per page returned. Acceptable range is 10 - 100. 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.

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

    Array of network move operation IDs to include. If not specified, all network moves will be returned.

  • 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:

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": [
    {
      "moveId": "123456",
      "initiator": {
        "admin": {
          "id": "8590064780"
        }
      },
      "organizations": {
        "source": {
          "id": "146307"
        },
        "target": {
          "id": "146308"
        }
      },
      "network": {
        "id": "N_569142402909112097"
      },
      "createdAt": "1970-01-20T15:57:36.000Z",
      "lastUpdatedAt": "1970-01-20T15:57:36.000Z",
      "result": {
        "status": "failed",
        "reason": "Cannot move network: Target organization is invalid or inaccessible."
      }
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 42,
        "remaining": 12
      }
    }
  }
}

get_organization

Return an organization.

API documentation: getOrganization

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • OrganizationResponse

    Successful operation.

Example API response
{
  "id": "2930418",
  "name": "My organization",
  "url": "https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview",
  "api": {
    "enabled": true
  },
  "licensing": {
    "model": "co-term"
  },
  "cloud": {
    "region": {
      "name": "North America",
      "host": {
        "name": "United States"
      }
    }
  },
  "management": {
    "details": [
      {
        "name": "MSP ID",
        "value": "123456"
      }
    ]
  }
}

get_organization_action_batch

Return an action batch.

API documentation: getOrganizationActionBatch

Parameters:

  • organization_id (str) –

    Organization ID.

  • action_batch_id (str) –

    Action batch ID.

Returns:

  • OrganizationActionBatchResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "organizationId": "2930418",
  "confirmed": true,
  "synchronous": false,
  "status": {
    "completed": true,
    "failed": false,
    "errors": [],
    "createdResources": [
      {
        "id": "1284392014819",
        "uri": "/networks/L_XXXXX/groupPolicies/100"
      }
    ]
  },
  "actions": [
    {
      "resource": "/devices/QXXX-XXXX-XXXX/switch/ports/3",
      "operation": "update"
    }
  ],
  "callback": {
    "id": "1284392014819",
    "url": "https://webhook.site/28efa24e-f830-4d9f-a12b-fbb9e5035031",
    "status": "new"
  }
}

get_organization_action_batches

Return the list of action batches in the organization.

API documentation: getOrganizationActionBatches

Parameters:

  • organization_id (str) –

    Organization ID.

  • status (GetOrganizationActionBatchesStatus | None, default: None ) –

    Filter batches by status. Valid types are pending, completed, and failed.

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",
    "organizationId": "2930418",
    "confirmed": true,
    "synchronous": false,
    "status": {
      "completed": true,
      "failed": false,
      "errors": [],
      "createdResources": [
        {
          "id": "1284392014819",
          "uri": "/networks/L_XXXXX/groupPolicies/100"
        }
      ]
    },
    "actions": [
      {
        "resource": "/devices/QXXX-XXXX-XXXX/switch/ports/3",
        "operation": "update"
      }
    ]
  }
]

get_organization_adaptive_policy_acl

Returns the adaptive policy ACL information.

API documentation: getOrganizationAdaptivePolicyAcl

Parameters:

  • organization_id (str) –

    Organization ID.

  • acl_id (str) –

    Acl ID.

Returns:

  • OrganizationAdaptivePolicyAclResponse

    Successful operation.

Example API response
{
  "aclId": "12345678",
  "name": "Block sensitive web traffic",
  "description": "Blocks sensitive web traffic",
  "ipVersion": "ipv6",
  "rules": [
    {
      "policy": "deny",
      "protocol": "tcp",
      "srcPort": "1,33",
      "dstPort": "22-30",
      "log": true,
      "tcpEstablished": true
    }
  ],
  "createdAt": "2021-05-19T17:08:25Z",
  "updatedAt": "2021-05-19T17:11:54Z"
}

get_organization_adaptive_policy_acls

List adaptive policy ACLs in a organization.

API documentation: getOrganizationAdaptivePolicyAcls

Parameters:

  • organization_id (str) –

    Organization 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
[
  {
    "aclId": "12345678",
    "name": "Block sensitive web traffic",
    "description": "Blocks sensitive web traffic",
    "ipVersion": "ipv6",
    "rules": [
      {
        "policy": "deny",
        "protocol": "tcp",
        "srcPort": "1,33",
        "dstPort": "22-30",
        "log": true,
        "tcpEstablished": true
      }
    ],
    "createdAt": "2021-05-19T17:08:25Z",
    "updatedAt": "2021-05-19T17:11:54Z"
  }
]

get_organization_adaptive_policy_group

Returns an adaptive policy group.

API documentation: getOrganizationAdaptivePolicyGroup

Parameters:

  • organization_id (str) –

    Organization ID.

  • id (str) –

    ID.

Returns:

  • OrganizationAdaptivePolicyGroupResponse

    Successful operation.

Example API response
{
  "groupId": "1234",
  "name": "Employee Group",
  "sgt": 1000,
  "description": "Group of XYZ Corp Employees",
  "policyObjects": [
    {
      "id": "2345",
      "name": "Example Policy Object"
    }
  ],
  "isDefaultGroup": false,
  "requiredIpMappings": [],
  "createdAt": "2019-06-27T21:34:25.253480Z",
  "updatedAt": "2019-06-27T21:34:25.253480Z"
}

get_organization_adaptive_policy_groups

List adaptive policy groups in a organization.

API documentation: getOrganizationAdaptivePolicyGroups

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • PaginatedResponse[OrganizationAdaptivePolicyGroupResponse]

    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
[
  {
    "groupId": "1234",
    "name": "Employee Group",
    "sgt": 1000,
    "description": "Group of XYZ Corp Employees",
    "policyObjects": [
      {
        "id": "2345",
        "name": "Example Policy Object"
      }
    ],
    "isDefaultGroup": false,
    "requiredIpMappings": [],
    "createdAt": "2019-06-27T21:34:25.253480Z",
    "updatedAt": "2019-06-27T21:34:25.253480Z"
  }
]

get_organization_adaptive_policy_overview

Returns adaptive policy aggregate statistics for an organization.

API documentation: getOrganizationAdaptivePolicyOverview

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • GetOrganizationAdaptivePolicyOverviewResponse

    Successful operation.

Example API response
{
  "counts": {
    "groups": 10,
    "customGroups": 8,
    "customAcls": 12,
    "policies": 100,
    "denyPolicies": 30,
    "allowPolicies": 70,
    "policyObjects": 13
  },
  "limits": {
    "customGroups": 60,
    "rulesInAnAcl": 16,
    "aclsInAPolicy": 7,
    "policyObjects": 8000
  }
}

get_organization_adaptive_policy_policies

List adaptive policies in an organization.

API documentation: getOrganizationAdaptivePolicyPolicies

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • PaginatedResponse[OrganizationAdaptivePolicyPolicyResponse]

    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
[
  {
    "adaptivePolicyId": "111",
    "sourceGroup": {
      "id": "222",
      "name": "IoT Devices",
      "sgt": 50
    },
    "destinationGroup": {
      "id": "333",
      "name": "IoT Servers",
      "sgt": 51
    },
    "acls": [
      {
        "id": "444",
        "name": "Block web"
      }
    ],
    "lastEntryRule": "allow",
    "createdAt": "2019-06-27T21:34:25.253480Z",
    "updatedAt": "2019-06-27T21:34:25.253480Z"
  }
]

get_organization_adaptive_policy_policy

Return an adaptive policy.

API documentation: getOrganizationAdaptivePolicyPolicy

Parameters:

  • organization_id (str) –

    Organization ID.

  • id (str) –

    ID.

Returns:

  • OrganizationAdaptivePolicyPolicyResponse

    Successful operation.

Example API response
{
  "adaptivePolicyId": "111",
  "sourceGroup": {
    "id": "222",
    "name": "IoT Devices",
    "sgt": 50
  },
  "destinationGroup": {
    "id": "333",
    "name": "IoT Servers",
    "sgt": 51
  },
  "acls": [
    {
      "id": "444",
      "name": "Block web"
    }
  ],
  "lastEntryRule": "allow",
  "createdAt": "2019-06-27T21:34:25.253480Z",
  "updatedAt": "2019-06-27T21:34:25.253480Z"
}

get_organization_adaptive_policy_settings

Returns global adaptive policy settings in an organization.

API documentation: getOrganizationAdaptivePolicySettings

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • OrganizationAdaptivePolicySettingsResponse

    Successful operation.

Example API response
{
  "enabledNetworks": [
    "L_11111111",
    "L_22222222",
    "N_33333333",
    "L_44444444"
  ]
}

get_organization_admins

List the dashboard administrators in this organization.

API documentation: getOrganizationAdmins

Parameters:

  • organization_id (str) –

    Organization ID.

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

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

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": "212406",
    "name": "Miles Meraki",
    "email": "miles@meraki.com",
    "orgAccess": "none",
    "accountStatus": "ok",
    "twoFactorAuthEnabled": false,
    "hasApiKey": true,
    "lastActive": "2018-02-11T00:00:00Z",
    "tags": [
      {
        "tag": "west",
        "access": "read-only"
      }
    ],
    "networks": [
      {
        "id": "N_24329156",
        "access": "full"
      }
    ],
    "authenticationMethod": "Email"
  }
]

get_organization_alerts_profiles

List all organization-wide alert configurations.

API documentation: getOrganizationAlertsProfiles

Parameters:

  • organization_id (str) –

    Organization 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": "1284392014819",
    "type": "wanUtilization",
    "enabled": true,
    "alertCondition": {
      "duration": 60,
      "window": 600,
      "bit_rate_bps": 10000,
      "interface": "wan1"
    },
    "recipients": {
      "emails": [
        "admin@example.org"
      ],
      "httpServerIds": [
        "aHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vcGF0aA=="
      ]
    },
    "networkTags": [
      "tag1",
      "tag2"
    ],
    "description": "WAN 1 high utilization"
  }
]

get_organization_api_requests

List the API requests made by an organization.

API documentation: getOrganizationApiRequests

Parameters:

  • organization_id (str) –

    Organization ID.

  • 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 31 days.

  • 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.

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

    Filter the results by the ID of the admin who made the API requests.

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

    Filter the results by the path of the API requests.

  • method (GetOrganizationApiRequestsMethod | None, default: None ) –

    Filter the results by the method of the API requests (must be 'GET', 'PUT', 'POST' or 'DELETE').

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

    Filter the results by the response code of the API requests.

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

    Filter the results by the IP address of the originating API request.

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

    Filter the results by the user agent string of the API request.

  • version (GetOrganizationApiRequestsVersion | None, default: None ) –

    Filter the results by the API version of the API request.

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

    Filter the results by one or more operation IDs for the API request.

  • 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[GetOrganizationApiRequestsResponseItem]

    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
[
  {
    "adminId": "212406",
    "method": "GET",
    "host": "server.example.com",
    "path": "/api/v1/organizations/12345/apiRequests",
    "queryString": "timespan=604800",
    "userAgent": "PostmanRuntime/7.6.0",
    "ts": "2018-02-11T00:00:00.090210Z",
    "responseCode": 200,
    "sourceIp": "123.123.123.1",
    "version": 1,
    "operationId": "getOrganizationApiRequests",
    "client": {
      "id": "0hoXjtjX6C-Nk4Nr6kEbCJJFRmIgycaG1HBE572hlIc",
      "type": "oauth"
    }
  }
]

get_organization_api_requests_overview

Return an aggregated overview of API requests data.

API documentation: getOrganizationApiRequestsOverview

Parameters:

  • organization_id (str) –

    Organization ID.

  • 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 31 days.

Returns:

  • GetOrganizationApiRequestsOverviewResponse

    Successful operation.

Example API response
{
  "responseCodeCounts": {
    "200": 500,
    "201": 100,
    "202": 20,
    "203": 50,
    "204": 75,
    "205": 0,
    "206": 0,
    "207": 0,
    "208": 0,
    "226": 0,
    "300": 0,
    "301": 60,
    "302": 0,
    "303": 0,
    "304": 0,
    "305": 0,
    "306": 0,
    "307": 0,
    "308": 0,
    "400": 20,
    "401": 0,
    "402": 32,
    "403": 0,
    "404": 55,
    "405": 0,
    "406": 0,
    "407": 0,
    "408": 0,
    "409": 0,
    "410": 0,
    "411": 0,
    "412": 0,
    "413": 0,
    "414": 0,
    "415": 0,
    "416": 0,
    "417": 0,
    "421": 0,
    "422": 0,
    "423": 0,
    "424": 0,
    "425": 0,
    "426": 0,
    "428": 0,
    "429": 0,
    "431": 0,
    "451": 0,
    "500": 3
  }
}

get_organization_api_requests_overview_response_codes_by_interval

Tracks organizations' API requests by response code across a given time period.

API documentation: getOrganizationApiRequestsOverviewResponseCodesByInterval

Parameters:

  • organization_id (str) –

    Organization ID.

  • 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 31 days. If interval is provided, the timespan will be autocalculated.

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

    The time interval in seconds for returned data. The valid intervals are: 120, 3600, 14400, 21600. The default is 21600. Interval is calculated if time params are provided.

  • version (GetOrganizationApiRequestsOverviewResponseCodesByIntervalVersion | None, default: None ) –

    Filter by API version of the endpoint. Allowable values are: [0, 1].

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

    Filter by operation ID of the endpoint.

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

    Filter by source IP that made the API request.

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

    Filter by admin ID of user that made the API request.

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

    Filter by user agent string for API request. This will filter by a complete or partial match.

Returns:

  • PaginatedResponse[GetOrganizationApiRequestsOverviewResponseCodesByIntervalResponseItem]

    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
[
  {
    "startTs": "2018-02-11T00:00:00Z",
    "endTs": "2018-05-12T00:00:00Z",
    "counts": [
      {
        "code": 200,
        "count": 198938
      }
    ]
  }
]

get_organization_api_rest_provisioning_pipelines_jobs

List pipeline jobs, with optional status filtering.

API documentation: getOrganizationApiRestProvisioningPipelinesJobs

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 10.

  • 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.

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

    Pipeline IDs to retrieve jobs for.

  • status (GetOrganizationApiRestProvisioningPipelinesJobsStatus | None, default: None ) –

    If provided, filters jobs by status.

  • 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[GetOrganizationApiRestProvisioningPipelinesJobsResponseItemsItem]

    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": [
    {
      "pipeline": {
        "id": "1234"
      },
      "jobId": "456",
      "operation": {
        "name": "enroll wired site"
      },
      "status": "complete",
      "errors": [
        {
          "message": "Failed to enroll site"
        }
      ],
      "details": [
        {
          "name": "networkId",
          "value": "N_123"
        }
      ]
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 100,
        "remaining": 10
      }
    }
  }
}

get_organization_api_rest_provisioning_pipelines_jobs_overviews_by_pipeline

Retrieves pipeline overviews with aggregated job status counts.

API documentation: getOrganizationApiRestProvisioningPipelinesJobsOverviewsByPipeline

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Pipeline IDs to retrieve overviews for.

Returns:

  • PaginatedResponse[GetOrganizationApiRestProvisioningPipelinesJobsOverviewsByPipelineResponseItemsItem]

    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": [
    {
      "pipelineId": "1234",
      "operation": {
        "id": "enrollOrganizationSaseSites"
      },
      "status": "active",
      "counts": {
        "jobs": {
          "total": 3,
          "byStatus": {
            "completed": 1,
            "failed": 1,
            "pending": 1
          }
        }
      }
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 100,
        "remaining": 10
      }
    }
  }
}

get_organization_assurance_alert

Return a singular Health Alert by its id.

API documentation: getOrganizationAssuranceAlert

Parameters:

  • organization_id (str) –

    Organization ID.

  • id (str) –

    ID.

Returns:

  • GetOrganizationAssuranceAlertResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "categoryType": "connectivity",
  "network": {
    "name": "Network 2",
    "id": "L_1020981",
    "url": "https://n1.meraki.com//n//manage/nodes/list"
  },
  "startedAt": "2022-04-01T15:48:57Z",
  "resolvedAt": "2022-04-02T15:48:57Z",
  "dismissedAt": "2022-04-02T15:48:57Z",
  "deviceType": "MS",
  "type": "crc_errors_error",
  "title": "CRC errors detected",
  "description": "Very high proportion of CRC errors on port id",
  "severity": "warning",
  "scope": {
    "devices": [
      {
        "url": "https://n237.meraki.com/MS-PM-First-Floo/n/_5kUKaTd/manage/nodes/new_list/7911238",
        "name": "Device 1",
        "order": 0,
        "productType": "switch",
        "serial": "Q2QP-5VYM-YM8H",
        "mac": "aa:bb:cd:dd",
        "imei": "353593090031649",
        "lldp": {
          "port": "33"
        }
      }
    ]
  }
}

get_organization_assurance_alerts

Return all health alerts for an organization.

API documentation: getOrganizationAssuranceAlerts

Parameters:

  • organization_id (str) –

    Organization ID.

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

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

  • 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 (GetOrganizationAssuranceAlertsSortOrder | None, default: None ) –

    Sorted order of entries. Order options are 'ascending' and 'descending'. Default is 'ascending'.

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

    Optional parameter to filter alerts by network ids.

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

    Optional parameter to filter by severity type.

  • types (GetOrganizationAssuranceAlertsTypes | None, default: None ) –

    Optional parameter to filter by alert type.

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

    Optional parameter to filter by starting timestamp.

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

    Optional parameter to filter by end timestamp.

  • category (GetOrganizationAssuranceAlertsCategory | None, default: None ) –

    Optional parameter to filter by category.

  • sort_by (GetOrganizationAssuranceAlertsSortBy | None, default: None ) –

    Optional parameter to set column to sort by.

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

    Optional parameter to filter by primary device serial.

  • device_types (GetOrganizationAssuranceAlertsDeviceTypes | None, default: None ) –

    Optional parameter to filter by device types.

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

    Optional parameter to filter by device tags.

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

    Optional parameter to filter by active alerts defaults to true.

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

    Optional parameter to filter by dismissed alerts defaults to false.

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

    Optional parameter to filter by resolved alerts defaults to false.

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

    When set to true the api will only return connectivity alerts for a given device if that device is in an offline state. This only applies to devices. This is ignored when resolved is true. Example: If a Switch has a VLan Mismatch and is Unreachable. only the Unreachable alert will be returned. Defaults to false.

  • 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:

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",
    "categoryType": "connectivity",
    "network": {
      "name": "Network 2",
      "id": "L_1020981",
      "url": "https://n1.meraki.com//n//manage/nodes/list"
    },
    "startedAt": "2022-04-01T15:48:57Z",
    "resolvedAt": "2022-04-02T15:48:57Z",
    "dismissedAt": "2022-04-02T15:48:57Z",
    "deviceType": "MS",
    "type": "crc_errors_error",
    "title": "CRC errors detected",
    "description": "Very high proportion of CRC errors on port id",
    "severity": "warning",
    "scope": {
      "devices": [
        {
          "url": "https://n237.meraki.com/MS-PM-First-Floo/n/_5kUKaTd/manage/nodes/new_list/7911238",
          "name": "Device 1",
          "order": 0,
          "productType": "switch",
          "serial": "Q2QP-5VYM-YM8H",
          "mac": "aa:bb:cd:dd",
          "imei": "353593090031649",
          "lldp": {
            "port": "33"
          }
        }
      ]
    }
  }
]

get_organization_assurance_alerts_overview

Return overview of active health alerts for an organization.

API documentation: getOrganizationAssuranceAlertsOverview

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Optional parameter to filter alerts overview by network ids.

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

    Optional parameter to filter alerts overview by severity type.

  • types (GetOrganizationAssuranceAlertsOverviewTypes | None, default: None ) –

    Optional parameter to filter by alert type.

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

    Optional parameter to filter by starting timestamp.

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

    Optional parameter to filter by end timestamp.

  • category (GetOrganizationAssuranceAlertsOverviewCategory | None, default: None ) –

    Optional parameter to filter by category.

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

    Optional parameter to filter by primary device serial.

  • device_types (GetOrganizationAssuranceAlertsOverviewDeviceTypes | None, default: None ) –

    Optional parameter to filter by device types.

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

    Optional parameter to filter by device tags.

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

    Optional parameter to filter by active alerts defaults to true.

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

    Optional parameter to filter by dismissed alerts defaults to false.

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

    Optional parameter to filter by resolved alerts defaults to false.

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

    When set to true the api will only return connectivity alerts for a given device if that device is in an offline state. This only applies to devices. This is ignored when resolved is true. Example: If a Switch has a VLan Mismatch and is Unreachable. only the Unreachable alert will be returned. Defaults to false.

Returns:

  • GetOrganizationAssuranceAlertsOverviewResponse

    Successful operation.

Example API response
{
  "counts": {
    "total": 14,
    "bySeverity": [
      {
        "type": "critical",
        "count": 1
      }
    ]
  }
}

get_organization_assurance_alerts_overview_by_network

Return a Summary of Alerts grouped by network and severity.

API documentation: getOrganizationAssuranceAlertsOverviewByNetwork

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.

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

    Sorted order of entries. Order options are 'ascending' and 'descending'. Default is 'ascending'.

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

    Optional parameter to filter alerts overview by network id.

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

    Optional parameter to filter alerts overview by severity type.

  • types (GetOrganizationAssuranceAlertsOverviewByNetworkTypes | None, default: None ) –

    Optional parameter to filter by alert type.

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

    Optional parameter to filter by starting timestamp.

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

    Optional parameter to filter by end timestamp.

  • category (GetOrganizationAssuranceAlertsOverviewByNetworkCategory | None, default: None ) –

    Optional parameter to filter by category.

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

    Optional parameter to filter by primary device serial.

  • device_types (GetOrganizationAssuranceAlertsOverviewByNetworkDeviceTypes | None, default: None ) –

    Optional parameter to filter by device types.

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

    Optional parameter to filter by device tags.

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

    Optional parameter to filter by active alerts defaults to true.

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

    Optional parameter to filter by dismissed alerts defaults to false.

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

    Optional parameter to filter by resolved alerts defaults to false.

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

    When set to true the api will only return connectivity alerts for a given device if that device is in an offline state. This only applies to devices. This is ignored when resolved is true. Example: If a Switch has a VLan Mismatch and is Unreachable. only the Unreachable alert will be returned. Defaults to false.

  • 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[GetOrganizationAssuranceAlertsOverviewByNetworkResponseItemsItem]

    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": "L_30618",
      "networkName": "s01797.us",
      "alertCount": 3,
      "lastAlertedAt": "2022-04-01T15:48:57Z",
      "severityCounts": [
        {
          "type": "warning",
          "count": 3
        }
      ]
    }
  ],
  "meta": {
    "counts": {
      "items": 2
    }
  }
}

get_organization_assurance_alerts_overview_by_type

Return a Summary of Alerts grouped by type and severity.

API documentation: getOrganizationAssuranceAlertsOverviewByType

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.

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

    Sorted order of entries. Order options are 'ascending' and 'descending'. Default is 'ascending'.

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

    Optional parameter to filter alerts overview by network ids.

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

    Optional parameter to filter alerts overview by severity type.

  • types (GetOrganizationAssuranceAlertsOverviewByTypeTypes | None, default: None ) –

    Optional parameter to filter by alert type.

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

    Optional parameter to filter by starting timestamp.

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

    Optional parameter to filter by end timestamp.

  • category (GetOrganizationAssuranceAlertsOverviewByTypeCategory | None, default: None ) –

    Optional parameter to filter by category.

  • sort_by (GetOrganizationAssuranceAlertsOverviewByTypeSortBy | None, default: None ) –

    Optional parameter to set column to sort by.

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

    Optional parameter to filter by primary device serial.

  • device_types (GetOrganizationAssuranceAlertsOverviewByTypeDeviceTypes | None, default: None ) –

    Optional parameter to filter by device types.

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

    Optional parameter to filter by device tags.

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

    Optional parameter to filter by active alerts defaults to true.

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

    Optional parameter to filter by dismissed alerts defaults to false.

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

    Optional parameter to filter by resolved alerts defaults to false.

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

    Include grouped device tags for each alert type in the response.

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

    Include affected networks for each alert type in the response.

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

    When set to true the api will only return connectivity alerts for a given device if that device is in an offline state. This only applies to devices. This is ignored when resolved is true. Example: If a Switch has a VLan Mismatch and is Unreachable. only the Unreachable alert will be returned. Defaults to false.

  • 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[GetOrganizationAssuranceAlertsOverviewByTypeResponseItemsItem]

    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": [
    {
      "type": "vlan_mismatch",
      "categoryType": "configuration",
      "severity": "warning",
      "lastAlertedAt": "2022-04-01T15:48:57Z",
      "lastResolvedAt": "2022-04-01T16:48:57Z",
      "count": 3,
      "networkCount": 2,
      "deviceTypes": [
        "MS"
      ],
      "deviceTags": [
        "core",
        "distribution"
      ],
      "networks": [
        {
          "id": "N_123",
          "name": "Branch 1"
        }
      ]
    }
  ],
  "meta": {
    "counts": {
      "items": 4
    }
  }
}

get_organization_assurance_alerts_overview_historical

Returns historical health alert overviews.

API documentation: getOrganizationAssuranceAlertsOverviewHistorical

Parameters:

  • organization_id (str) –

    Organization ID.

  • segment_duration (int) –

    Amount of time in seconds for each segment in the returned dataset.

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

    Optional parameter to filter alerts overview by network ids.

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

    Optional parameter to filter alerts overview by severity type.

  • types (GetOrganizationAssuranceAlertsOverviewHistoricalTypes | None, default: None ) –

    Optional parameter to filter by alert type.

  • ts_start (str) –

    Parameter to define starting timestamp of historical totals.

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

    Optional parameter to filter by end timestamp defaults to the current time.

  • category (GetOrganizationAssuranceAlertsOverviewHistoricalCategory | None, default: None ) –

    Optional parameter to filter by category.

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

    Optional parameter to filter by primary device serial.

  • device_types (GetOrganizationAssuranceAlertsOverviewHistoricalDeviceTypes | None, default: None ) –

    Optional parameter to filter by device types.

Returns:

  • PaginatedResponse[GetOrganizationAssuranceAlertsOverviewHistoricalResponseItemsItem]

    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": [
    {
      "segmentStart": "2018-02-11T00:00:00Z",
      "totals": {
        "informational": 1,
        "warning": 1,
        "critical": 1
      },
      "byAlertType": [
        {
          "type": "vlan_mismatch",
          "informational": 1,
          "warning": 1,
          "critical": 1
        }
      ]
    }
  ],
  "meta": {
    "counts": {
      "items": 4
    }
  }
}

get_organization_assurance_alerts_taxonomy_categories

Return a list of Category Types.

API documentation: getOrganizationAssuranceAlertsTaxonomyCategories

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • PaginatedResponse[GetOrganizationAssuranceAlertsTaxonomyCategoriesResponseItem]

    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
[
  {
    "type": "connectivity",
    "title": "Connectivity"
  }
]

get_organization_assurance_alerts_taxonomy_types

Return a list of alert types.

API documentation: getOrganizationAssuranceAlertsTaxonomyTypes

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • PaginatedResponse[GetOrganizationAssuranceAlertsTaxonomyTypesResponseItem]

    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
[
  {
    "type": "unreachable",
    "title": "Unreachable device",
    "categoryType": "connectivity",
    "severities": [
      {
        "type": "critical"
      }
    ],
    "deviceTypes": [
      "Campus Gateway",
      "Catalyst AP",
      "Catalyst Controller",
      "Catalyst Switch",
      "MG",
      "MR",
      "MS",
      "MT",
      "MV",
      "MX",
      "VMX",
      "Z"
    ]
  }
]

get_organization_branding_policies

List the branding policies of an organization.

API documentation: getOrganizationBrandingPolicies

Parameters:

  • organization_id (str) –

    Organization 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
[
  {
    "name": "My Branding Policy",
    "enabled": true,
    "adminSettings": {
      "appliesTo": "All admins of networks...",
      "values": [
        "N_1234",
        "L_5678"
      ]
    },
    "helpSettings": {
      "helpTab": "show",
      "getHelpSubtab": "default or inherit",
      "communitySubtab": "show",
      "casesSubtab": "hide",
      "dataProtectionRequestsSubtab": "default or inherit",
      "getHelpSubtabKnowledgeBaseSearch": "<h1>Some custom HTML content</h1>",
      "universalSearchKnowledgeBaseSearch": "hide",
      "ciscoMerakiProductDocumentation": "show",
      "supportContactInfo": "show",
      "newFeaturesSubtab": "show",
      "firewallInfoSubtab": "hide",
      "apiDocsSubtab": "default or inherit",
      "hardwareReplacementsSubtab": "hide",
      "smForums": "hide",
      "helpWidget": "hide"
    },
    "customLogo": {
      "enabled": true,
      "image": {
        "preview": {
          "url": "https://meraki-na.s3.amazonaws.com/org-assets/my-image.png",
          "expiresAt": "2022-04-06T06:19:27-07:00"
        }
      }
    }
  }
]

get_organization_branding_policies_priorities

Return the branding policy IDs of an organization in priority order.

API documentation: getOrganizationBrandingPoliciesPriorities

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • OrganizationBrandingPoliciesPrioritiesResponse

    Successful operation.

Example API response
{
  "brandingPolicyIds": [
    "123",
    "456",
    "789"
  ]
}

get_organization_branding_policy

Return a branding policy.

API documentation: getOrganizationBrandingPolicy

Parameters:

  • organization_id (str) –

    Organization ID.

  • branding_policy_id (str) –

    Branding policy ID.

Returns:

  • OrganizationBrandingPolicyResponse

    Successful operation.

Example API response
{
  "name": "My Branding Policy",
  "enabled": true,
  "adminSettings": {
    "appliesTo": "All admins of networks...",
    "values": [
      "N_1234",
      "L_5678"
    ]
  },
  "helpSettings": {
    "helpTab": "show",
    "getHelpSubtab": "default or inherit",
    "communitySubtab": "show",
    "casesSubtab": "hide",
    "dataProtectionRequestsSubtab": "default or inherit",
    "getHelpSubtabKnowledgeBaseSearch": "<h1>Some custom HTML content</h1>",
    "universalSearchKnowledgeBaseSearch": "hide",
    "ciscoMerakiProductDocumentation": "show",
    "supportContactInfo": "show",
    "newFeaturesSubtab": "show",
    "firewallInfoSubtab": "hide",
    "apiDocsSubtab": "default or inherit",
    "hardwareReplacementsSubtab": "hide",
    "smForums": "hide",
    "helpWidget": "hide"
  },
  "customLogo": {
    "enabled": true,
    "image": {
      "preview": {
        "url": "https://meraki-na.s3.amazonaws.com/org-assets/my-image.png",
        "expiresAt": "2022-04-06T06:19:27-07:00"
      }
    }
  }
}

get_organization_clients_bandwidth_usage_history

Return data usage (in megabits per second) over time for all clients in the given organization within a given time range.

API documentation: getOrganizationClientsBandwidthUsageHistory

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Match result to an exact network tag.

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

    Match result to an exact device tag.

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

    Filter results by ssid name.

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

    Filter results by usage uplink.

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

    The beginning of the timespan for the data.

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

    The end of the timespan for the data. t1 can be a maximum of 186 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 186 days. The default is 1 day.

Returns:

  • PaginatedResponse[GetOrganizationClientsBandwidthUsageHistoryResponseItem]

    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": "2021-06-20T01:00:00.000Z",
    "total": 345,
    "upstream": 60,
    "downstream": 285
  }
]

get_organization_clients_overview

Return summary information around client data usage (in kb) across the given organization.

API documentation: getOrganizationClientsOverview

Parameters:

  • organization_id (str) –

    Organization ID.

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

    The beginning of the timespan for the data.

  • 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.

Returns:

  • GetOrganizationClientsOverviewResponse

    Successful operation.

Example API response
{
  "usage": {
    "overall": {
      "total": 18000.0,
      "downstream": 10000.0,
      "upstream": 8000.0
    },
    "average": 1.37
  },
  "counts": {
    "total": 20
  }
}

Return the client details in an organization.

API documentation: getOrganizationClientsSearch

Parameters:

  • organization_id (str) –

    Organization ID.

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

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

  • 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.

  • mac (str) –

    The MAC address of the client. Required.

  • 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[GetOrganizationClientsSearchResponseRecordsItem]

    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
{
  "clientId": "k74272e",
  "mac": "22:33:44:55:66:77",
  "manufacturer": "Apple",
  "records": [
    {
      "network": {
        "id": "N_24329156",
        "organizationId": "2930418",
        "name": "Main Office",
        "productTypes": [
          "appliance",
          "switch",
          "wireless"
        ],
        "timeZone": "America/Los_Angeles",
        "tags": [
          "tag1",
          "tag2"
        ],
        "enrollmentString": "my-enrollment-string",
        "url": "https://n1.meraki.com//n//manage/nodes/list",
        "notes": "Additional description of the network",
        "isBoundToConfigTemplate": false
      },
      "ip": "1.2.3.4",
      "ip6": "2001:db8:3c4d:15::1",
      "description": "Miles's phone",
      "firstSeen": 1518365681,
      "lastSeen": 1526087474,
      "os": "iOS",
      "user": "milesmeraki",
      "vlan": "100",
      "ssid": "My SSID",
      "switchport": "My switch port",
      "wirelessCapabilities": "802.11b - 2.4 GHz",
      "smInstalled": true,
      "recentDeviceMac": "22:33:44:55:66:77",
      "clientVpnConnections": [
        {
          "remoteIp": "1.2.3.4",
          "connectedAt": 1522613355,
          "disconnectedAt": 1522613360
        }
      ],
      "lldp": [
        [
          "System name",
          "Some system name"
        ],
        [
          "System description",
          "Some system description"
        ],
        [
          "Port ID",
          "1"
        ],
        [
          "Chassis ID",
          "00:18:0a:00:00:00"
        ],
        [
          "Port description",
          "eth0"
        ],
        [
          "System capabilities",
          "Two-port MAC Relay"
        ]
      ],
      "cdp": [
        [
          "System name",
          "Some system name"
        ],
        [
          "System description",
          "Some system description"
        ],
        [
          "Port ID",
          "1"
        ],
        [
          "Chassis ID",
          "00:18:0a:00:00:00"
        ],
        [
          "Port description",
          "eth0"
        ],
        [
          "System capabilities",
          "Two-port MAC Relay"
        ]
      ],
      "status": "Online"
    }
  ]
}

get_organization_config_template

Return a single configuration template.

API documentation: getOrganizationConfigTemplate

Parameters:

  • organization_id (str) –

    Organization ID.

  • config_template_id (str) –

    Config template ID.

Returns:

  • OrganizationConfigTemplateResponse

    Successful operation.

Example API response
{
  "id": "N_24329156",
  "name": "My config template",
  "productTypes": [
    "appliance",
    "switch",
    "wireless"
  ],
  "timeZone": "America/Los_Angeles"
}

get_organization_config_templates

List the configuration templates for this organization.

API documentation: getOrganizationConfigTemplates

Parameters:

  • organization_id (str) –

    Organization 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": "N_24329156",
    "name": "My config template",
    "productTypes": [
      "appliance",
      "switch",
      "wireless"
    ],
    "timeZone": "America/Los_Angeles"
  }
]

get_organization_configuration_changes

View the Change Log for your organization.

API documentation: getOrganizationConfigurationChanges

Parameters:

  • organization_id (str) –

    Organization 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 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 365 days.

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

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

  • 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_id (str | None, default: None ) –

    Filters on the given network.

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

    Filters on the given Admin.

  • 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: 'prev' ) –

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

Returns:

  • PaginatedResponse[GetOrganizationConfigurationChangesResponseItem]

    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",
    "adminName": "Miles Meraki",
    "adminEmail": "miles@meraki.com",
    "adminId": "212406",
    "networkName": "Main Office",
    "networkId": "N_24329156",
    "networkUrl": "https://n1.meraki.com//n//manage/nodes/list",
    "ssidName": "My SSID",
    "ssidNumber": 1,
    "page": "via API",
    "label": "PUT /api/v1/organizations/2930418",
    "oldValue": "{\"id\":\"2930418\",\"name\":\"My organization\",\"url\":\"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\"}",
    "newValue": "{\"id\":\"2930418\",\"name\":\"My organization changed\",\"url\":\"https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview\"}",
    "client": {
      "id": "0hoXjtjX6C-Nk4Nr6kEbCJJFRmIgycaG1HBE572hlIc",
      "type": "oauth"
    }
  }
]

get_organization_devices

List the devices in an organization that have been assigned to a network.

API documentation: getOrganizationDevices

Parameters:

  • organization_id (str) –

    Organization ID.

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

    The number of entries per page returned. Acceptable range is 3 - 5000. 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.

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

    Filter results by whether or not the device's configuration has been updated after the given timestamp.

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

    Optional parameter to filter devices by network.

  • product_types (GetOrganizationDevicesProductTypes | None, default: None ) –

    Optional parameter to filter devices by product type. Valid types are wireless, appliance, switch, systemsManager, camera, cellularGateway, sensor, wirelessController, campusGateway, and secureConnect.

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

    Optional parameter to filter devices by tags.

  • tags_filter_type (GetOrganizationDevicesTagsFilterType | None, default: None ) –

    Optional parameter of value 'withAnyTags' or 'withAllTags' to indicate whether to return networks which contain ANY or ALL of the included tags. If no type is included, 'withAnyTags' will be selected.

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

    Optional parameter to filter devices by name. All returned devices will have a name that contains the search term or is an exact match.

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

    Optional parameter to filter devices by MAC address. All returned devices will have a MAC address that contains the search term or is an exact match.

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

    Optional parameter to filter devices by serial number. All returned devices will have a serial number that contains the search term or is an exact match.

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

    Optional parameter to filter devices by model. All returned devices will have a model that contains the search term or is an exact match.

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

    Optional parameter to filter devices by one or more MAC addresses. All returned devices will have a MAC address that is an exact match.

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

    Optional parameter to filter devices by one or more serial numbers. All returned devices will have a serial number that is an exact match.

  • sensor_metrics (GetOrganizationDevicesSensorMetrics | None, default: None ) –

    Optional parameter to filter devices by the metrics that they provide. Only applies to sensor devices.

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

    Optional parameter to filter devices by the alert profiles that are bound to them. Only applies to sensor devices.

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

    Optional parameter to filter devices by one or more models. All returned devices will have a model that is an exact match.

  • 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:

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": "My AP",
    "lat": 37.4180951010362,
    "lng": -122.098531723022,
    "address": "1600 Pennsylvania Ave",
    "notes": "My AP's note",
    "tags": [
      "recently-added"
    ],
    "networkId": "N_24329156",
    "serial": "Q234-ABCD-5678",
    "model": "MR34",
    "imei": "123456789000000",
    "mac": "00:11:22:33:44:55",
    "lanIp": "1.2.3.4",
    "firmware": "wireless-25-14",
    "productType": "wireless",
    "details": [
      {
        "name": "Catalyst serial",
        "value": "123ABC"
      }
    ]
  }
]

get_organization_devices_availabilities

List the availability information for devices in an organization.

API documentation: getOrganizationDevicesAvailabilities

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 device availabilities by network ID. This filter uses multiple exact matches.

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

    Optional parameter to filter device availabilities by device product types. This filter uses multiple exact matches. Valid types are wireless, appliance, switch, camera, cellularGateway, sensor, wirelessController, and campusGateway.

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

    Optional parameter to filter device availabilities by device serial numbers. This filter uses multiple exact matches.

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

    An optional parameter to filter devices by tags. The filtering is case-sensitive. If tags are included, 'tagsFilterType' should also be included (see below). This filter uses multiple exact matches.

  • tags_filter_type (GetOrganizationDevicesAvailabilitiesTagsFilterType | None, default: None ) –

    An optional parameter of value 'withAnyTags' or 'withAllTags' to indicate whether to return devices which contain ANY or ALL of the included tags. If no type is included, 'withAnyTags' will be selected.

  • statuses (GetOrganizationDevicesAvailabilitiesStatuses | None, default: None ) –

    Optional parameter to filter device availabilities by device status. This filter uses multiple exact matches.

  • 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[GetOrganizationDevicesAvailabilitiesResponseItem]

    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
[
  {
    "mac": "00:11:22:33:44:55",
    "name": "My AP",
    "network": {
      "id": "N_24329156"
    },
    "productType": "switch",
    "serial": "Q234-ABCD-5678",
    "status": "online",
    "tags": [
      "tag1",
      "tag2"
    ]
  }
]

get_organization_devices_availabilities_change_history

List the availability history information for devices in an organization.

API documentation: getOrganizationDevicesAvailabilitiesChangeHistory

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.

  • 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.

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

    Optional parameter to filter device availabilities history by device serial numbers.

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

    Optional parameter to filter device availabilities history by device product types.

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

    Optional parameter to filter device availabilities history by network IDs.

  • statuses (GetOrganizationDevicesAvailabilitiesChangeHistoryStatuses | None, default: None ) –

    Optional parameter to filter device availabilities history by device statuses.

  • 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[GetOrganizationDevicesAvailabilitiesChangeHistoryResponseItem]

    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",
    "device": {
      "serial": "Q234-ABCD-5678",
      "name": "My AP",
      "productType": "wireless",
      "model": "MR34"
    },
    "details": {
      "old": [
        {
          "name": "status",
          "value": "online"
        }
      ],
      "new": [
        {
          "name": "status",
          "value": "offline"
        }
      ]
    },
    "network": {
      "id": "N_24329156",
      "name": "Main Office",
      "url": "https://n1.meraki.com//n//manage/nodes/list",
      "tags": [
        "tag1",
        "tag2"
      ]
    }
  }
]

get_organization_devices_cellular_data_devices

List devices eligible for Cellular Data Management profile assignment in this organization.

API documentation: getOrganizationDevicesCellularDataDevices

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Whether to include devices that have already been assigned to a Cellular Data Management Profile.

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

    List of device serials to force-include in the response when the devices would otherwise be filtered out. This override is primarily useful for keeping selected devices visible while paging through results. Maximum 1000 serials.

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

    List of device serials to force-exclude from the response when the devices would otherwise be returned. This override is primarily useful for hiding selected devices while paging through results. Maximum 1000 serials.

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

    List of Cellular Data Management Profile IDs to include in the results. Maximum 1000 profile IDs.

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

    List of Cellular Data Management Profile IDs to exclude from the results. Maximum 1000 profile IDs.

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

    List of device types to filter by. Maximum 1000 device types.

  • slots (GetOrganizationDevicesCellularDataDevicesSlots | None, default: None ) –

    List of SIM slot types that devices must support. Accepted values are sim1, sim2, and esim. Maximum 3 slots.

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

    Name of the device to filter by (partial matches allowed).

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

    List of device serials to filter by. Maximum 1000 serials.

  • 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.

  • 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[GetOrganizationDevicesCellularDataDevicesResponseItemsItem]

    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": [
    {
      "serial": "Q234-ABCD-5678",
      "name": "Some device name",
      "url": "https://n1.meraki.com/Some-Network/n/AbCdEf/manage/nodes/new_list/1234",
      "model": "mg52e",
      "software": {
        "currentVersion": {
          "shortName": "MG 26.1.120"
        }
      },
      "modems": [
        {
          "index": 0,
          "sims": [
            {
              "slot": "esim",
              "type": "esim",
              "active": true
            }
          ]
        }
      ],
      "profile": {
        "assigned": true,
        "id": "SOME_1234",
        "name": "Some profile name"
      },
      "network": {
        "name": "Some network name",
        "id": "SOME_1234"
      }
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 1,
        "remaining": 0
      }
    }
  }
}

get_organization_devices_cellular_data_profiles

List cellular data management profiles in this organization.

API documentation: getOrganizationDevicesCellularDataProfiles

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Optional parameter to filter the results by Data Management Profile ID.

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

    Devices to find Cellular Data Management Profiles for.

  • 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.

  • 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[GetOrganizationDevicesCellularDataProfilesResponseItemsItem]

    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": [
    {
      "profileId": "42",
      "lastUpdatedAt": "2023-08-21T00:00:00Z",
      "name": "some unique profile name",
      "description": "some description",
      "counts": {
        "devices": {
          "assigned": 3
        }
      },
      "rules": [
        {
          "ruleId": "42",
          "slot": "sim1",
          "uplink": {
            "priority": 1,
            "isPreferred": true
          },
          "cap": {
            "value": 1234,
            "threshold": 0.92,
            "term": {
              "resets": "monthly",
              "starts": {
                "hourOfDay": 12,
                "dayOfWeek": "wed",
                "dayOfMonth": 4
              }
            }
          },
          "actions": [
            {
              "type": "failover"
            }
          ]
        }
      ]
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 420,
        "remaining": 42
      }
    }
  }
}

get_organization_devices_cellular_data_profiles_assignments

List Cellular Data Management Profile assignments in this organization.

API documentation: getOrganizationDevicesCellularDataProfilesAssignments

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Optional parameter to find assignments by Profile IDs. Maximum 1000 profile IDs.

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

    Optional parameter to find assignments by Device Serials. Maximum 1000 serials.

  • 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.

  • 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[GetOrganizationDevicesCellularDataProfilesAssignmentsResponseItemsItem]

    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": "42",
      "profile": {
        "id": "1234"
      },
      "device": {
        "serial": "Q234-ABCD-5678"
      }
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 1,
        "remaining": 0
      }
    }
  }
}

get_organization_devices_cellular_data_usage_by_device

List current cellular data usage for devices in this organization.

API documentation: getOrganizationDevicesCellularDataUsageByDevice

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Filter the results by device serials. Maximum 1000 serials.

  • 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.

  • 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[GetOrganizationDevicesCellularDataUsageByDeviceResponseItemsItem]

    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": [
    {
      "serial": "Q234-ABCD-5678",
      "bySlot": [
        {
          "slot": "esim",
          "isActive": true,
          "total": "12345",
          "lastUpdatedAt": "2024-01-01T12:00:00Z",
          "startTs": "2024-01-01T00:00:00Z",
          "endTs": "2024-01-31T23:59:59Z",
          "limit": "1024"
        }
      ]
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 1,
        "remaining": 0
      }
    }
  }
}

get_organization_devices_cellular_data_usage_history_by_device_by_interval

List historical cellular data usage grouped by device and interval in this organization.

API documentation: getOrganizationDevicesCellularDataUsageHistoryByDeviceByInterval

Parameters:

  • organization_id (str) –

    Organization ID.

  • serials (list[str]) –

    Required parameter to filter the results by device serials. Maximum 10 serials.

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

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

  • 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.

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

    The beginning of the timespan for the data. The maximum lookback period is 366 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. If interval is provided, the timespan will be autocalculated.

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

    The time interval in seconds for returned data. The valid intervals are: 300, 1200, 14400, 86400. The default is 86400. Interval is calculated if time params are provided.

  • 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[GetOrganizationDevicesCellularDataUsageHistoryByDeviceByIntervalResponseItemsItem]

    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": [
    {
      "serial": "Q234-ABCD-5678",
      "intervals": [
        {
          "startTs": "2018-02-11T00:00:00.090210Z",
          "endTs": "2018-02-11T00:00:00.090210Z",
          "usage": {
            "total": 1234,
            "bySim": [
              {
                "name": "sim1",
                "total": 1004
              }
            ]
          }
        }
      ]
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 1,
        "remaining": 0
      }
    }
  }
}

get_organization_devices_cellular_geolocations

List the latest cellular geolocation telemetry for devices in an organization.

API documentation: getOrganizationDevicesCellularGeolocations

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Optional parameter to filter the results by device serials. Maximum 1000 serials.

  • 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.

  • 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[GetOrganizationDevicesCellularGeolocationsResponseItemsItem]

    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": [
    {
      "serial": "Q234-ABCD-5678",
      "geolocation": {
        "enabled": true,
        "latitude": 37.7749,
        "longitude": -122.4194,
        "lastReportedAt": "2023-03-15T12:34:56Z"
      }
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 420,
        "remaining": 42
      }
    }
  }
}

List the latest cellular uplink signal information for devices in an organization.

API documentation: getOrganizationDevicesCellularUplinksBandsByDevice

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Optional parameter to filter the results by device serials. Maximum 1000 serials.

  • 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.

  • 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[GetOrganizationDevicesCellularUplinksBandsByDeviceResponseItemsItem]

    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": [
    {
      "serial": "Q234-ABCD-5678",
      "bySlot": [
        {
          "slot": "sim1",
          "bySignalType": [
            {
              "type": "LTE",
              "masked": [
                "2",
                "4",
                "12"
              ],
              "enabled": [
                "8",
                "10"
              ],
              "supported": [
                "2",
                "4",
                "8",
                "10",
                "12"
              ]
            }
          ]
        }
      ]
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 420,
        "remaining": 42
      }
    }
  }
}

List the latest cellular tower information for devices in an organization.

API documentation: getOrganizationDevicesCellularUplinksTowersByDevice

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Optional parameter to filter the results by device serials. Maximum 1000 serials.

  • 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.

  • 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[GetOrganizationDevicesCellularUplinksTowersByDeviceResponseItemsItem]

    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": [
    {
      "serial": "Q234-ABCD-5678",
      "connection": {
        "cell": {
          "id": "1234567890"
        },
        "tac": "3F2A"
      }
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 420,
        "remaining": 42
      }
    }
  }
}

get_organization_devices_controller_migrations

Retrieve device migration statuses in an organization.

API documentation: getOrganizationDevicesControllerMigrations

Parameters:

  • organization_id (str) –

    Organization ID.

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

    A list of Meraki Serials for which to retrieve migrations.

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

    Filter device migrations by network IDs.

  • target (GetOrganizationDevicesControllerMigrationsTarget | None, default: None ) –

    Filter device migrations by target destination.

  • 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.

  • 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[GetOrganizationDevicesControllerMigrationsResponseItemsItem]

    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": [
    {
      "serial": "QXYZ-DEFG-HIJK",
      "target": "wirelessController",
      "createdAt": "2020-10-21T02:00:00Z",
      "migratedAt": "2020-10-21T03:00:00Z"
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 10,
        "remaining": 0
      }
    }
  }
}

get_organization_devices_overview_by_model

Lists the count for each device model.

API documentation: getOrganizationDevicesOverviewByModel

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Optional parameter to filter devices by one or more models. All returned devices will have a model that is an exact match.

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

    Optional parameter to filter devices by networkId.

  • product_types (GetOrganizationDevicesOverviewByModelProductTypes | None, default: None ) –

    Optional parameter to filter device by device product types. This filter uses multiple exact matches.

Returns:

  • GetOrganizationDevicesOverviewByModelResponse

    Successful operation.

Example API response
{
  "counts": [
    {
      "model": "MR34",
      "total": 1
    }
  ]
}

get_organization_devices_packet_capture_captures

List Packet Captures.

API documentation: getOrganizationDevicesPacketCaptureCaptures

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Return the packet captures of the specified capture ids.

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

    Return the packet captures of the specified network(s).

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

    Return the packet captures of the specified device(s).

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

    Return the packet captures of the specified process.

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

    Return the packet captures of the specified capture status.

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

    Return the packet captures matching the specified name.

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

    Return the packet captures matching the specified client macs.

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

    Return the packet captures matching the specified notes.

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

    Return the packet captures matching the specified device name.

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

    Return the packet captures matching the admin name.

  • 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 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 365 days.

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

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

  • 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 (GetOrganizationDevicesPacketCaptureCapturesSortOrder | None, default: None ) –

    Sorted order of entries. Order options are 'ascending' and 'descending'. Default is 'descending'.

  • 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[OrganizationDevicesPacketCaptureCaptureResponse]

    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": [
    {
      "captureId": "1234",
      "network": {
        "id": "N_24329156",
        "name": "Main Office"
      },
      "device": {
        "name": "My AP",
        "serial": "Q234-ABCD-5678"
      },
      "admin": {
        "id": "1234",
        "name": "Miles Meraki"
      },
      "client": {
        "id": "k74272e",
        "mac": "22:33:44:55:66:77"
      },
      "details": [
        {
          "name": "reason",
          "value": "bad_password",
          "productType": "wireless"
        }
      ],
      "name": "file_name",
      "startTs": "2018-02-11T00:00:00.090210Z",
      "ports": "1, 2",
      "status": "new",
      "errorMessage": "Some error message",
      "destination": "upload_to_cloud",
      "process": "manual",
      "file": {
        "size": 1066
      },
      "duration": 60,
      "filterExpression": "(icmp)",
      "counts": {
        "packets": {
          "total": 10
        }
      },
      "interface": "wired"
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 100,
        "remaining": 100
      }
    }
  }
}

get_organization_devices_packet_capture_schedules

List the Packet Capture Schedules.

API documentation: getOrganizationDevicesPacketCaptureSchedules

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Return the packet captures schedules of the specified packet capture schedule ids.

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

    Return the scheduled packet captures of the specified network(s).

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

    Return the scheduled packet captures of the specified device(s).

Returns:

  • PaginatedResponse[OrganizationDevicesPacketCaptureScheduleResponse]

    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": [
    {
      "scheduleId": "1234",
      "devices": [
        {
          "device": {
            "serial": "Q234-ABCD-5678",
            "switchports": "1-3, 9",
            "interface": "GigabitEthernet1/0/1"
          }
        }
      ],
      "name": "pcap_file_name",
      "admin": {
        "id": "1234",
        "name": "Miles Meraki"
      },
      "notes": "capture reason",
      "duration": 60,
      "filterExpression": "(icmp)",
      "createdAt": "2018-02-11T00:00:00.090210Z",
      "updatedAt": "2018-02-11T00:00:00.090210Z",
      "captureCount": 2,
      "lastCaptureId": "1234",
      "enabled": true,
      "priority": 1,
      "schedule": {
        "name": "schedule_name",
        "startTs": "2018-02-11T00:00:00.090210Z",
        "endTs": "2018-02-11T00:00:00.090210Z",
        "frequency": "hour",
        "weekdays": [
          "Monday",
          "Tuesday"
        ],
        "recurrence": 1,
        "nextCaptureTs": "2018-02-11T00:00:00.090210Z"
      },
      "warnings": [
        "This schedule conflicts with the schedule Test Schedule at the time 2025-01-28T18:25:06Z"
      ]
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 100
      }
    }
  }
}

get_organization_devices_power_modules_statuses_by_device

List the most recent status information for power modules in rackmount MX and MS devices that support them.

API documentation: getOrganizationDevicesPowerModulesStatusesByDevice

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 device availabilities by network ID. This filter uses multiple exact matches.

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

    Optional parameter to filter device availabilities by device product types. This filter uses multiple exact matches.

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

    Optional parameter to filter device availabilities by device serial numbers. This filter uses multiple exact matches.

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

    An optional parameter to filter devices by tags. The filtering is case-sensitive. If tags are included, 'tagsFilterType' should also be included (see below). This filter uses multiple exact matches.

  • tags_filter_type (GetOrganizationDevicesPowerModulesStatusesByDeviceTagsFilterType | None, default: None ) –

    An optional parameter of value 'withAnyTags' or 'withAllTags' to indicate whether to return devices which contain ANY or ALL of the included tags. If no type is included, 'withAnyTags' will be selected.

  • 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[GetOrganizationDevicesPowerModulesStatusesByDeviceResponseItem]

    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
[
  {
    "mac": "00:11:22:33:44:55",
    "name": "My AP",
    "network": {
      "id": "N_24329156"
    },
    "productType": "switch",
    "serial": "Q234-ABCD-5678",
    "tags": [
      "tag1",
      "tag2"
    ],
    "slots": [
      {
        "number": 1,
        "serial": "Q234-ABCD-5678",
        "model": "PWR-C5-125WAC",
        "status": "not connected"
      }
    ]
  }
]

get_organization_devices_provisioning_statuses

List the provisioning statuses information for devices in an organization.

API documentation: getOrganizationDevicesProvisioningStatuses

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 device by network ID. This filter uses multiple exact matches.

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

    Optional parameter to filter device by device product types. This filter uses multiple exact matches.

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

    Optional parameter to filter device by device serial numbers. This filter uses multiple exact matches.

  • status (GetOrganizationDevicesProvisioningStatusesStatus | None, default: None ) –

    An optional parameter to filter devices by the provisioning status. Accepted statuses: unprovisioned, incomplete, complete.

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

    An optional parameter to filter devices by tags. The filtering is case-sensitive. If tags are included, 'tagsFilterType' should also be included (see below). This filter uses multiple exact matches.

  • tags_filter_type (GetOrganizationDevicesProvisioningStatusesTagsFilterType | None, default: None ) –

    An optional parameter of value 'withAnyTags' or 'withAllTags' to indicate whether to return devices which contain ANY or ALL of the included tags. If no type is included, 'withAnyTags' will be selected.

  • 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[GetOrganizationDevicesProvisioningStatusesResponseItem]

    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
[
  {
    "mac": "00:11:22:33:44:55",
    "name": "My AP",
    "network": {
      "id": "N_24329156"
    },
    "productType": "switch",
    "serial": "Q234-ABCD-5678",
    "status": "complete",
    "tags": [
      "tag1",
      "tag2"
    ]
  }
]

get_organization_devices_statuses

List the status of every Meraki device in the organization.

API documentation: getOrganizationDevicesStatuses

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 devices by network ids.

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

    Optional parameter to filter devices by serials.

  • statuses (GetOrganizationDevicesStatusesStatuses | None, default: None ) –

    Optional parameter to filter devices by statuses. Valid statuses are ["online", "alerting", "offline", "dormant"].

  • product_types (GetOrganizationDevicesStatusesProductTypes | None, default: None ) –

    An optional parameter to filter device statuses by product type. Valid types are wireless, appliance, switch, systemsManager, camera, cellularGateway, sensor, wirelessController, campusGateway, and secureConnect.

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

    Optional parameter to filter devices by models.

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

    An optional parameter to filter devices by tags. The filtering is case-sensitive. If tags are included, 'tagsFilterType' should also be included (see below).

  • tags_filter_type (GetOrganizationDevicesStatusesTagsFilterType | None, default: None ) –

    An optional parameter of value 'withAnyTags' or 'withAllTags' to indicate whether to return devices which contain ANY or ALL of the included tags. If no type is included, 'withAnyTags' will be selected.

  • 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[GetOrganizationDevicesStatusesResponseItem]

    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": "My AP",
    "serial": "Q234-ABCD-5678",
    "mac": "00:11:22:33:44:55",
    "publicIp": "123.123.123.1",
    "networkId": "N_24329156",
    "status": "online",
    "lastReportedAt": "2018-02-11T00:00:00.090210Z",
    "lanIp": "1.2.3.4",
    "gateway": "1.2.3.5",
    "ipType": "dhcp",
    "primaryDns": "8.8.8.8",
    "secondaryDns": "8.8.4.4",
    "productType": "wireless",
    "components": {
      "powerSupplies": [
        {
          "slot": 1,
          "serial": "QABC-1234-5678",
          "model": "PWR-MS320-1025WAC",
          "status": "powering",
          "poe": {
            "unit": "watts",
            "maximum": 740
          }
        }
      ]
    },
    "model": "MR34",
    "tags": [
      "tag1",
      "tag2"
    ]
  }
]

get_organization_devices_statuses_overview

Return an overview of current device statuses.

API documentation: getOrganizationDevicesStatusesOverview

Parameters:

  • organization_id (str) –

    Organization ID.

  • product_types (GetOrganizationDevicesStatusesOverviewProductTypes | None, default: None ) –

    An optional parameter to filter device statuses by product type. Valid types are wireless, appliance, switch, systemsManager, camera, cellularGateway, sensor, wirelessController, campusGateway, and secureConnect.

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

    An optional parameter to filter device statuses by network.

Returns:

  • GetOrganizationDevicesStatusesOverviewResponse

    Successful operation.

Example API response
{
  "counts": {
    "byStatus": {
      "online": 5,
      "alerting": 4,
      "offline": 2,
      "dormant": 1
    }
  }
}

get_organization_devices_system_memory_usage_history_by_interval

Return the memory utilization history in kB for devices in the organization.

API documentation: getOrganizationDevicesSystemMemoryUsageHistoryByInterval

Parameters:

  • organization_id (str) –

    Organization ID.

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

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

  • 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.

  • 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 2 hours. If interval is provided, the timespan will be autocalculated.

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

    The time interval in seconds for returned data. The valid intervals are: 300, 1200, 3600, 14400. The default is 300. Interval is calculated if time params are provided.

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

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

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

    Optional parameter to filter device availabilities history by device serial numbers.

  • product_types (GetOrganizationDevicesSystemMemoryUsageHistoryByIntervalProductTypes | None, default: None ) –

    Optional parameter to filter device statuses by product type. Valid types are wireless, appliance, switch, systemsManager, camera, cellularGateway, sensor, wirelessController, campusGateway, and secureConnect.

  • 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[GetOrganizationDevicesSystemMemoryUsageHistoryByIntervalResponseItemsItem]

    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": [
    {
      "serial": "Q234-ABCD-0001",
      "model": "MS",
      "name": "My switch",
      "mac": "00:11:22:33:44:55",
      "tags": [
        "tag1",
        "tag2"
      ],
      "provisioned": 300,
      "used": {
        "median": 100
      },
      "free": {
        "median": 150
      },
      "network": {
        "id": "N_24329156",
        "name": "Main Office",
        "tags": [
          "tag1",
          "tag2"
        ]
      },
      "intervals": [
        {
          "startTs": "2018-02-11T00:00:00.090210Z",
          "endTs": "2018-02-11T00:00:00.090210Z",
          "memory": {
            "used": {
              "minimum": 50,
              "maximum": 150,
              "median": 100,
              "percentages": {
                "maximum": 60
              }
            },
            "free": {
              "minimum": 100,
              "maximum": 200,
              "median": 150
            }
          }
        }
      ]
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 4,
        "remaining": 2
      }
    }
  }
}

List the current uplink addresses for devices in an organization.

API documentation: getOrganizationDevicesUplinksAddressesByDevice

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 device uplinks by network ID. This filter uses multiple exact matches.

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

    Optional parameter to filter device uplinks by device product types. This filter uses multiple exact matches.

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

    Optional parameter to filter device availabilities by device serial numbers. This filter uses multiple exact matches.

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

    An optional parameter to filter devices by tags. The filtering is case-sensitive. If tags are included, 'tagsFilterType' should also be included (see below). This filter uses multiple exact matches.

  • tags_filter_type (GetOrganizationDevicesUplinksAddressesByDeviceTagsFilterType | None, default: None ) –

    An optional parameter of value 'withAnyTags' or 'withAllTags' to indicate whether to return devices which contain ANY or ALL of the included tags. If no type is included, 'withAnyTags' will be selected.

  • 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[GetOrganizationDevicesUplinksAddressesByDeviceResponseItem]

    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
[
  {
    "mac": "00:11:22:33:44:55",
    "name": "My AP",
    "network": {
      "id": "N_24329156"
    },
    "productType": "switch",
    "serial": "Q234-ABCD-5678",
    "tags": [
      "tag1",
      "tag2"
    ],
    "uplinks": [
      {
        "interface": "wan1",
        "addresses": [
          {
            "protocol": "ipv6",
            "assignmentMode": "static",
            "address": "2001:db8:c15:c0:d0c::101:ca75",
            "gateway": "fe80:db8:c15:c0:d0c::10ca:1d02",
            "nameservers": {
              "addresses": [
                "8.8.8.8"
              ]
            },
            "public": {
              "address": "2001:db8:c15:c0:d0c:15e:15e:bab1"
            },
            "vlan": {
              "id": "1"
            }
          }
        ]
      }
    ]
  }
]

Return the uplink loss and latency for every MX in the organization from at latest 2 minutes ago.

API documentation: getOrganizationDevicesUplinksLossAndLatency

Parameters:

  • organization_id (str) –

    Organization ID.

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

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

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

    The end of the timespan for the data. t1 can be a maximum of 5 minutes after t0. The latest possible time that t1 can be is 2 minutes into the past.

  • 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 5 minutes. The default is 5 minutes.

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

    Optional filter for a specific WAN uplink. Valid uplinks are wan1, wan2, wan3, cellular. Default will return all uplinks.

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

    Optional filter for a specific destination IP. Default will return all destination IPs.

Returns:

  • PaginatedResponse[GetOrganizationDevicesUplinksLossAndLatencyResponseItem]

    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",
    "uplink": "wan1",
    "ip": "1.2.3.4",
    "timeSeries": [
      {
        "ts": "2019-01-31T18:46:13Z",
        "lossPercent": 5.3,
        "latencyMs": 194.9
      }
    ]
  }
]

get_organization_early_access_features

List the available early access features for organization.

API documentation: getOrganizationEarlyAccessFeatures

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • PaginatedResponse[GetOrganizationEarlyAccessFeaturesResponseItem]

    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
[
  {
    "shortName": "has_new_feature",
    "name": "New Feature Beta",
    "descriptions": {
      "short": "New Feature Beta",
      "long": "New Feature Beta long description. consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
    },
    "topic": "Dashboard",
    "isOrgScopedOnly": true,
    "documentationLink": "https://documentation.meraki.com/",
    "supportLink": "https://community.meraki.com/",
    "privacyLink": "https://meraki.com/privacy"
  }
]

get_organization_early_access_features_opt_in

Show an early access feature opt-in for an organization.

API documentation: getOrganizationEarlyAccessFeaturesOptIn

Parameters:

  • organization_id (str) –

    Organization ID.

  • opt_in_id (str) –

    Opt in ID.

Returns:

  • GetOrganizationEarlyAccessFeaturesOptInsResponse

    Successful operation.

Example API response
{
  "id": "1",
  "shortName": "has_new_feature",
  "limitScopeToNetworks": [
    {
      "id": "L_1234",
      "name": "My Network"
    }
  ],
  "optOutEligibility": {
    "eligible": false,
    "reason": "Please remove devices of type XYZ from your organization",
    "help": {
      "label": "Read more",
      "url": "http://meraki.com/my_help"
    }
  },
  "createdAt": "2022-05-01T04:07:15Z"
}

get_organization_early_access_features_opt_ins

List the early access feature opt-ins for an organization.

API documentation: getOrganizationEarlyAccessFeaturesOptIns

Parameters:

  • organization_id (str) –

    Organization 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": "1",
  "shortName": "has_new_feature",
  "limitScopeToNetworks": [
    {
      "id": "L_1234",
      "name": "My Network"
    }
  ],
  "optOutEligibility": {
    "eligible": false,
    "reason": "Please remove devices of type XYZ from your organization",
    "help": {
      "label": "Read more",
      "url": "http://meraki.com/my_help"
    }
  },
  "createdAt": "2022-05-01T04:07:15Z"
}

get_organization_firmware_upgrades

Get firmware upgrade information for an organization.

API documentation: getOrganizationFirmwareUpgrades

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.

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

    Optional parameter to filter the upgrade by status.

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

    Optional parameter to filter the upgrade by product type.

  • 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[GetOrganizationFirmwareUpgradesResponseItem]

    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
[
  {
    "upgradeId": "1234",
    "upgradeBatchId": "5678",
    "network": {
      "id": "L_1738",
      "name": "Minions"
    },
    "status": "Completed",
    "time": "2022-11-01T00:00:00Z",
    "completedAt": "2020-11-05 15:50:05 UTC",
    "productTypes": "wireless",
    "toVersion": {
      "id": "2888",
      "shortName": "MR 11.2.1",
      "firmware": "wireless-11-2-1",
      "releaseType": "stable",
      "releaseDate": "2022-03-17T17:22:52Z"
    },
    "fromVersion": {
      "id": "2887",
      "shortName": "MR 11.2.1",
      "firmware": "wireless-11-2-1",
      "releaseType": "stable",
      "releaseDate": "2022-03-17T17:22:52Z"
    }
  }
]

get_organization_firmware_upgrades_by_device

Get firmware upgrade status for the filtered devices.

API documentation: getOrganizationFirmwareUpgradesByDevice

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 by network.

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

    Optional parameter to filter by serial number. All returned devices will have a serial number that is an exact match.

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

    Optional parameter to filter by one or more MAC addresses belonging to devices. All devices returned belong to MAC addresses that are an exact match.

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

    Optional parameter to filter by firmware upgrade batch ids.

  • upgrade_statuses (GetOrganizationFirmwareUpgradesByDeviceUpgradeStatuses | None, default: None ) –

    Optional parameter to filter by firmware upgrade statuses.

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

    Optional parameter to filter to only current or pending upgrade statuses.

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

    Optional parameter to limit the number of upgrade statuses returned per device. If omitted, a value of 5 is used.

  • 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[GetOrganizationFirmwareUpgradesByDeviceResponseItem]

    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
[
  {
    "serial": "Q234-ABCD-5678",
    "name": "My switch",
    "deviceStatus": "completed",
    "checkinFinishedAt": "2025-06-26T13:22:52Z",
    "checkinStartedAt": "2025-06-26T12:22:52Z",
    "detailedStatus": "upgrade-complete",
    "downloadFinishedAt": "2025-06-26T15:22:52Z",
    "downloadStartedAt": "2025-06-26T14:22:52Z",
    "downloadStatus": "complete",
    "installFinishedAt": "2025-06-26T17:22:52Z",
    "installStartedAt": "2025-06-26T16:22:52Z",
    "installStatus": "complete",
    "verifyFinishedAt": "2025-06-26T19:22:52Z",
    "verifyStartedAt": "2025-06-26T18:22:52Z",
    "verifyStatus": "complete",
    "upgrade": {
      "time": "2018-02-11T00:00:00.090210Z",
      "fromVersion": {
        "id": "1234",
        "shortName": "MS 16.7",
        "releaseDate": "2018-02-11T00:00:00.090210Z"
      },
      "toVersion": {
        "id": "1234",
        "shortName": "MS 16.7.1",
        "releaseDate": "2018-02-11T00:00:00.090210Z"
      },
      "status": "Completed",
      "id": "1234",
      "upgradeBatchId": "1234",
      "staged": {
        "group": {
          "id": "1234"
        }
      }
    }
  }
]

get_organization_floor_plans_auto_locate_devices

List auto locate details for each device in your organization.

API documentation: getOrganizationFloorPlansAutoLocateDevices

Parameters:

  • organization_id (str) –

    Organization ID.

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

    The number of entries per page returned. Acceptable range is 3 - 10000. 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 devices by one or more network IDs.

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

    Optional parameter to filter devices by one or more floorplan 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[GetOrganizationFloorPlansAutoLocateDevicesResponseItem]

    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": [
      {
        "name": "My AP",
        "serial": "Q234-ABCD-5678",
        "mac": "00:11:22:33:44:55",
        "model": "MR34",
        "tags": [
          "tag1",
          "tag2"
        ],
        "status": "online",
        "network": {
          "id": "N_24329156"
        },
        "floorPlan": {
          "id": "g_2176982374",
          "name": "My floor plan"
        },
        "lat": 37.4180951010362,
        "lng": -122.098531723022,
        "autoLocate": {
          "lat": 13.23454243,
          "lng": 18.12938123
        },
        "type": "user",
        "isAnchor": true
      }
    ],
    "meta": {
      "counts": {
        "items": {
          "total": 50,
          "remaining": 100
        }
      }
    }
  }
]

get_organization_floor_plans_auto_locate_statuses

List the status of auto locate for each floorplan in your organization.

API documentation: getOrganizationFloorPlansAutoLocateStatuses

Parameters:

  • organization_id (str) –

    Organization ID.

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

    The number of entries per page returned. Acceptable range is 3 - 10000. 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 floorplans by one or more network IDs.

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

    Optional parameter to filter floorplans by one or more floorplan 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[GetOrganizationFloorPlansAutoLocateStatusesResponseItem]

    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"
        },
        "floorPlanId": "g_2176982374",
        "name": "My Floorplan",
        "counts": {
          "devices": {
            "total": 120
          }
        },
        "jobs": [
          {
            "id": "1234",
            "status": "error",
            "scheduledAt": "2018-02-11T00:00:00Z",
            "completed": {
              "percentage": 50
            },
            "ranging": {
              "status": "in progress",
              "completed": {
                "percentage": 24
              }
            },
            "gnss": {
              "status": "in progress",
              "completed": {
                "percentage": 4
              }
            },
            "errors": [
              {
                "source": "ranging",
                "type": "missing anchors"
              }
            ]
          }
        ]
      }
    ],
    "meta": {
      "counts": {
        "items": {
          "total": 50,
          "remaining": 100
        }
      }
    }
  }
]

get_organization_integrations_deployable

Provides a list of integrations that can be enabled for an Organization.

API documentation: getOrganizationIntegrationsDeployable

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • PaginatedResponse[GetOrganizationIntegrationsDeployableResponseItemsItem]

    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": [
    {
      "type": "Catalyst SD-WAN",
      "name": "Catalyst SD-WAN",
      "provider": "Cisco",
      "tags": [
        "SD-WAN"
      ],
      "shortDescription": "Connect to a Catalyst SD-WAN overlay to enable simple SD-WAN interconnects.",
      "isDeployable": true,
      "releaseType": "Beta",
      "logoUrl": "https://example.com",
      "redirectUrl": "https://example.com",
      "isCiscoProduct": true
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 100,
        "remaining": 10
      }
    }
  }
}

get_organization_integrations_deployed

Provides a list of integrations enabled for an Organization.

API documentation: getOrganizationIntegrationsDeployed

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • PaginatedResponse[GetOrganizationIntegrationsDeployedResponseItemsItem]

    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": "98765",
      "type": "OAuth",
      "name": "OAuth Application",
      "provider": "partner",
      "tags": [
        "Wayfinding",
        "OAuth"
      ]
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 100,
        "remaining": 10
      }
    }
  }
}

get_organization_integrations_xdr_networks

Returns the networks in the organization that have XDR enabled.

API documentation: getOrganizationIntegrationsXdrNetworks

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Optional parameter to filter the results by network IDs.

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

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

  • 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[GetOrganizationIntegrationsXdrNetworksResponseItemsItem]

    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_1234567",
      "productTypes": [
        "appliance"
      ],
      "name": "Test network",
      "enabled": true,
      "isEligible": true
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 10,
        "remaining": 0
      }
    }
  }
}

get_organization_inventory_device

Return a single device from the inventory of an organization.

API documentation: getOrganizationInventoryDevice

Parameters:

  • organization_id (str) –

    Organization ID.

  • serial (str) –

    Serial.

Returns:

  • GetOrganizationInventoryDeviceResponse

    Successful operation.

Example API response
{
  "mac": "00:11:22:33:44:55",
  "serial": "Q234-ABCD-5678",
  "name": "My AP",
  "model": "MR34",
  "sku": "MR34-HW",
  "networkId": "N_24329156",
  "orderNumber": "4C1234567",
  "claimedAt": "2018-02-11T00:00:00.090210Z",
  "licenseExpirationDate": "2020-05-02T10:52:44.012345Z",
  "tags": [
    "tag1",
    "tag2"
  ],
  "productType": "wireless",
  "countryCode": "US",
  "details": [
    {
      "name": "Catalyst serial",
      "value": "FOC2234432B"
    }
  ],
  "eox": {
    "status": "endOfSale",
    "endOfSaleAt": "2031-07-29T02:00:00Z",
    "endOfSupportAt": "2032-07-29T02:00:00Z"
  }
}

get_organization_inventory_devices

Return the device inventory for an organization.

API documentation: getOrganizationInventoryDevices

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.

  • used_state (GetOrganizationInventoryDevicesUsedState | None, default: None ) –

    Filter results by used or unused inventory. Accepted values are 'used' or 'unused'.

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

    Search for devices in inventory based on serial number, mac address, or model.

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

    Search for devices in inventory based on mac addresses.

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

    Search for devices in inventory based on network ids. Use explicit 'null' value to get available devices only.

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

    Search for devices in inventory based on serials.

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

    Search for devices in inventory based on model.

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

    Search for devices in inventory based on order numbers.

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

    Filter devices by tags. The filtering is case-sensitive. If tags are included, 'tagsFilterType' should also be included (see below).

  • tags_filter_type (GetOrganizationInventoryDevicesTagsFilterType | None, default: None ) –

    To use with 'tags' parameter, to filter devices which contain ANY or ALL given tags. Accepted values are 'withAnyTags' or 'withAllTags', default is 'withAnyTags'.

  • product_types (GetOrganizationInventoryDevicesProductTypes | None, default: None ) –

    Filter devices by product type. Accepted values are appliance, camera, campusGateway, cellularGateway, secureConnect, sensor, switch, systemsManager, wireless, and wirelessController.

  • eox_statuses (GetOrganizationInventoryDevicesEoxStatuses | None, default: None ) –

    Filter devices by EoX status. Accepted values are 'endOfSale', 'endOfSupport', 'nearEndOfSupport', or 'null'. Use 'null' to filter for devices with no EOX data. Supports multiple values for multi-select filtering.

  • 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[GetOrganizationInventoryDevicesResponseItem]

    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
[
  {
    "mac": "00:11:22:33:44:55",
    "serial": "Q234-ABCD-5678",
    "name": "My AP",
    "model": "MR34",
    "sku": "MR34-HW",
    "networkId": "N_24329156",
    "orderNumber": "4C1234567",
    "claimedAt": "2018-02-11T00:00:00.090210Z",
    "licenseExpirationDate": "2020-05-02T10:52:44.012345Z",
    "tags": [
      "tag1",
      "tag2"
    ],
    "productType": "wireless",
    "countryCode": "US",
    "details": [
      {
        "name": "Catalyst serial",
        "value": "FOC2234432B"
      }
    ],
    "eox": {
      "status": "endOfSale",
      "endOfSaleAt": "2031-07-29T02:00:00Z",
      "endOfSupportAt": "2032-07-29T02:00:00Z"
    }
  }
]

get_organization_inventory_devices_eox_overview

Fetch the EOX summary for an organization, including counts of devices that are end-of-sale, end-of-support, and end-of-support-soon.

API documentation: getOrganizationInventoryDevicesEoxOverview

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • GetOrganizationInventoryDevicesEoxOverviewResponse

    Successful operation.

Example API response
{
  "counts": {
    "byStatus": {
      "endOfSale": {
        "total": 5
      },
      "endOfSupport": {
        "total": 3
      },
      "nearEndOfSupport": {
        "total": 7
      }
    }
  }
}

get_organization_inventory_devices_swaps_bulk

List of device swaps for a given request ID ({id}).

API documentation: getOrganizationInventoryDevicesSwapsBulk

Parameters:

  • organization_id (str) –

    Organization ID.

  • id (str) –

    ID.

Returns:

  • OrganizationInventoryDevicesSwapsBulkResponse

    Successful operation.

Example API response
{
  "jobId": "1284392014819",
  "swaps": [
    {
      "id": "1284392014819",
      "devices": {
        "old": {
          "mac": "00:11:22:33:44:55",
          "serial": "Q234-ABCD-5678",
          "model": "MR34",
          "name": "My AP"
        },
        "new": {
          "mac": "00:11:22:33:44:55",
          "serial": "Q234-ABCD-5678",
          "model": "MR34",
          "name": "My AP"
        }
      },
      "status": "complete",
      "afterAction": "remove from network",
      "createdAt": "2023-04-24T12:40:11Z",
      "completedAt": "2023-04-24T12:40:12Z",
      "errors": []
    }
  ]
}

get_organization_license

Display a license.

API documentation: getOrganizationLicense

Parameters:

  • organization_id (str) –

    Organization ID.

  • license_id (str) –

    License ID.

Returns:

  • OrganizationLicenseResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "licenseType": "MX64-ENT",
  "licenseKey": "Z21234567890",
  "orderNumber": "4C1234567",
  "deviceSerial": "Q234-ABCD-5678",
  "networkId": "N_24329156",
  "state": "active",
  "seatCount": 25,
  "totalDurationInDays": 425,
  "durationInDays": 365,
  "permanentlyQueuedLicenses": [
    {
      "id": "1234",
      "licenseType": "MX64-ENT",
      "licenseKey": "Z21234567890",
      "orderNumber": "4C1234567",
      "durationInDays": 60
    }
  ],
  "claimDate": "2019-08-29T12:40:10Z",
  "activationDate": "2019-09-01T15:01:46Z",
  "expirationDate": "2020-10-30T15:01:46Z",
  "headLicenseId": "1234"
}

get_organization_licenses

List the licenses for an organization.

API documentation: getOrganizationLicenses

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.

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

    Filter the licenses to those assigned to a particular device. Returned in the same order that they are queued to the device.

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

    Filter the licenses to those assigned in a particular network.

  • state (GetOrganizationLicensesState | None, default: None ) –

    Filter the licenses to those in a particular state. Can be one of 'active', 'expired', 'expiring', 'recentlyQueued', 'unused' or 'unusedActive'.

  • 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:

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",
    "licenseType": "MX64-ENT",
    "licenseKey": "Z21234567890",
    "orderNumber": "4C1234567",
    "deviceSerial": "Q234-ABCD-5678",
    "networkId": "N_24329156",
    "state": "active",
    "seatCount": 25,
    "totalDurationInDays": 425,
    "durationInDays": 365,
    "permanentlyQueuedLicenses": [
      {
        "id": "1234",
        "licenseType": "MX64-ENT",
        "licenseKey": "Z21234567890",
        "orderNumber": "4C1234567",
        "durationInDays": 60
      }
    ],
    "claimDate": "2019-08-29T12:40:10Z",
    "activationDate": "2019-09-01T15:01:46Z",
    "expirationDate": "2020-10-30T15:01:46Z",
    "headLicenseId": "1234"
  }
]

get_organization_licenses_overview

Return an overview of the license state for an organization.

API documentation: getOrganizationLicensesOverview

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • GetOrganizationLicensesOverviewResponse

    Successful operation.

Example API response
{
  "status": "OK",
  "expirationDate": "Feb 8, 2020 UTC",
  "licensedDeviceCounts": {
    "MS": 100
  },
  "licenseCount": 20,
  "states": {
    "active": {
      "count": 10
    },
    "expired": {
      "count": 2
    },
    "expiring": {
      "count": 3,
      "critical": {
        "thresholdInDays": 14,
        "expiringCount": 1
      },
      "warning": {
        "thresholdInDays": 90,
        "expiringCount": 2
      }
    },
    "recentlyQueued": {
      "count": 0
    },
    "unused": {
      "count": 2,
      "soonestActivation": {
        "activationDate": "2020-10-30",
        "toActivateCount": 1
      }
    },
    "unusedActive": {
      "count": 3,
      "oldestActivation": {
        "activationDate": "2019-09-01",
        "activeCount": 2
      }
    }
  },
  "licenseTypes": [
    {
      "licenseType": "ENT",
      "counts": {
        "unassigned": 2
      }
    }
  ],
  "systemsManager": {
    "counts": {
      "totalSeats": 50,
      "activeSeats": 10,
      "unassignedSeats": 20,
      "orgwideEnrolledDevices": 10
    }
  }
}

get_organization_login_security

Returns the login security settings for an organization.

API documentation: getOrganizationLoginSecurity

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • OrganizationLoginSecurityResponse

    Successful operation.

Example API response
{
  "enforcePasswordExpiration": true,
  "passwordExpirationDays": 90,
  "enforceDifferentPasswords": true,
  "numDifferentPasswords": 3,
  "enforceStrongPasswords": true,
  "minimumPasswordLength": 12,
  "enforceAccountLockout": true,
  "accountLockoutAttempts": 3,
  "enforceIdleTimeout": true,
  "idleTimeoutMinutes": 30,
  "enforceTwoFactorAuth": true,
  "enforceLoginIpRanges": true,
  "loginIpRanges": [
    "192.195.83.1",
    "192.195.83.255"
  ],
  "apiAuthentication": {
    "ipRestrictionsForKeys": {
      "enabled": true,
      "ranges": [
        "192.195.83.1",
        "192.168.33.33"
      ]
    }
  }
}

get_organization_networks

List the networks that the user has privileges on in an organization.

API documentation: getOrganizationNetworks

Parameters:

  • organization_id (str) –

    Organization ID.

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

    An optional parameter that is the ID of a config template. Will return all networks bound to that template.

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

    An optional parameter to filter config template bound networks. If configTemplateId is set, this cannot be false.

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

    An optional parameter to filter networks by tags. The filtering is case-sensitive. If tags are included, 'tagsFilterType' should also be included (see below).

  • tags_filter_type (GetOrganizationNetworksTagsFilterType | None, default: None ) –

    An optional parameter of value 'withAnyTags' or 'withAllTags' to indicate whether to return networks which contain ANY or ALL of the included tags. If no type is included, 'withAnyTags' will be selected.

  • product_types (GetOrganizationNetworksProductTypes | None, default: None ) –

    An optional parameter to filter networks by product type. Results will have at least one of the included product types.

  • 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:

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": "N_24329156",
    "organizationId": "2930418",
    "name": "Main Office",
    "productTypes": [
      "appliance",
      "switch",
      "wireless"
    ],
    "timeZone": "America/Los_Angeles",
    "tags": [
      "tag1",
      "tag2"
    ],
    "enrollmentString": "my-enrollment-string",
    "url": "https://n1.meraki.com//n//manage/nodes/list",
    "notes": "Additional description of the network",
    "isBoundToConfigTemplate": false
  }
]

get_organization_openapi_spec

Return the OpenAPI Specification of the organization's API documentation in JSON.

API documentation: getOrganizationOpenapiSpec

Parameters:

  • organization_id (str) –

    Organization ID.

  • version (GetOrganizationOpenapiSpecVersion | None, default: None ) –

    OpenAPI Specification version to return. Default is 2.

Returns:

  • DictResponse

    Successful operation.

Example API response
{
  "openapi": "3.0.1",
  "info": {
    "version": "v1",
    "title": "Meraki Dashboard API",
    "description": "This collection of API calls provides an easy way to manage and monitor Cisco Meraki networks at scale"
  },
  "paths": {
    "/organizations": {
      "get": {
        "description": "List the organizations that the user has privileges on",
        "operationId": "getOrganizations",
        "responses": {
          "200": {
            "description": "Successful operation",
            "examples": {
              "application/json": [
                {
                  "id": "2930418",
                  "name": "My organization"
                }
              ]
            }
          }
        }
      }
    }
  }
}

get_organization_policies_assignments_by_client

Get policies for all clients with policies.

API documentation: getOrganizationPoliciesAssignmentsByClient

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.

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

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

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

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

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

    Include provisioned clients that have not associated to the network. Default: false.

  • network_ids (list[str]) –

    Network Ids (minimum: 1, maximum: 30).

  • 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[GetOrganizationPoliciesAssignmentsByClientResponseItem]

    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": "Miles's phone",
    "clientId": "k74272e",
    "mac": "22:33:44:55:66:77",
    "networkId": "N_24329156",
    "assigned": [
      {
        "name": "My group policy",
        "type": "Group",
        "id": "102",
        "limitTo": [
          {
            "appliance": false,
            "ssids": [
              {
                "number": 1
              }
            ]
          }
        ]
      }
    ]
  }
]

get_organization_policies_global_firewall_application_categories

List application categories with their associated applications.

API documentation: getOrganizationPoliciesGlobalFirewallApplicationCategories

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • PaginatedResponse[GetOrganizationPoliciesGlobalFirewallApplicationCategoriesResponseItem]

    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
[
  {
    "id": "meraki:layer7/category/1",
    "name": "Email",
    "applications": [
      {
        "id": "meraki:layer7/application/4",
        "name": "Gmail",
        "nbar": {
          "mappings": [
            {
              "id": 1658
            }
          ]
        }
      }
    ]
  }
]

get_organization_policies_global_firewall_rulesets

List Organization-Wide Policy Firewall Rulesets.

API documentation: getOrganizationPoliciesGlobalFirewallRulesets

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Filter rulesets by IDs.

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

    Filter rulesets by name (partial match, case-insensitive). If multiple instances are provided, only the last one is used.

  • 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[OrganizationPoliciesGlobalFirewallRulesetResponse]

    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": [
    {
      "rulesetId": "123",
      "name": "Block Social Media",
      "description": "Block all Social Media",
      "createdAt": "2021-01-01T00:00:00Z",
      "lastUpdatedAt": "2021-01-01T00:00:00Z"
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 12,
        "remaining": 2
      }
    }
  }
}

get_organization_policies_global_firewall_rulesets_rules

List Organization-Wide Policy Firewall Rules.

API documentation: getOrganizationPoliciesGlobalFirewallRulesetsRules

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Filter rules by firewall ruleset IDs.

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

    Filter rules by rule 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[OrganizationPoliciesGlobalFirewallRulesetsRuleResponse]

    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": [
    {
      "ruleId": "123",
      "name": "Allow developers",
      "rulesetId": "32",
      "policy": "deny",
      "enabled": true,
      "priority": 100,
      "description": "This is rule 1",
      "sources": {
        "matchCriteria": [
          "addressRanges",
          "ports",
          "policyObjects",
          "policyObjectGroups",
          "applianceVlans"
        ],
        "criteria": {
          "addressRanges": [
            "1.1.1.1",
            "2.2.2.2"
          ],
          "ports": [
            "22",
            "42-46"
          ],
          "policyObjects": [
            {
              "id": "23"
            }
          ],
          "policyObjectGroups": [
            {
              "id": "45"
            }
          ],
          "applianceVlans": [
            {
              "interfaceId": "L_123456789012345678_vlan_200"
            }
          ],
          "siteSpecificVlans": [
            {
              "id": 100,
              "address": {
                "offsets": {
                  "ipv4": 25,
                  "ipv6": "0:ff:fe01:0"
                }
              }
            }
          ]
        }
      },
      "destinations": {
        "matchCriteria": [
          "addressRanges",
          "services",
          "applicationCategories",
          "applications",
          "policyObjects",
          "policyObjectGroups",
          "applianceVlans"
        ],
        "criteria": {
          "addressRanges": [
            "1.1.1.1",
            "2.2.2.2"
          ],
          "ports": [
            "22",
            "42-46"
          ],
          "services": [
            {
              "protocol": "tcp",
              "ports": [
                "80",
                "443"
              ]
            }
          ],
          "applicationCategories": [
            {
              "id": "meraki:layer7/category/24"
            }
          ],
          "applications": [
            {
              "id": "meraki:layer7/application/5",
              "name": "Advertising.com"
            }
          ],
          "policyObjects": [
            {
              "id": "23"
            }
          ],
          "policyObjectGroups": [
            {
              "id": "45"
            }
          ],
          "applianceVlans": [
            {
              "interfaceId": "L_123456789012345678_vlan_200"
            }
          ],
          "countries": [
            {
              "code": "US"
            }
          ],
          "fqdns": [
            "*.example.com"
          ],
          "siteSpecificVlans": [
            {
              "id": 100,
              "address": {
                "offsets": {
                  "ipv4": 25,
                  "ipv6": "0:ff:fe01:0"
                }
              }
            }
          ]
        }
      },
      "createdAt": "2021-01-01T00:00:00Z",
      "lastUpdatedAt": "2021-01-01T00:00:00Z"
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 25,
        "remaining": 15
      }
    }
  }
}

get_organization_policies_global_group_policies

List Organization-Wide Policies.

API documentation: getOrganizationPoliciesGlobalGroupPolicies

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Filter policies by name (partial match, case-insensitive). If multiple instances are provided, only the last one is used.

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

    Filter policies by 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[OrganizationPoliciesGlobalGroupPolicyResponse]

    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": [
    {
      "policyId": "123",
      "name": "My policy",
      "description": "My policy description",
      "group": {
        "number": 100
      },
      "createdAt": "2021-01-01T00:00:00Z",
      "lastUpdatedAt": "2021-01-01T00:00:00Z"
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 12,
        "remaining": 2
      }
    }
  }
}

get_organization_policies_global_group_policies_adaptive_policy_groups_assignments

List adaptive policy group assignments.

API documentation: getOrganizationPoliciesGlobalGroupPoliciesAdaptivePolicyGroupsAssignments

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.

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

    Filter assignments by adaptive policy group 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[GetOrganizationPoliciesGlobalGroupPoliciesAdaptivePolicyGroupsAssignmentsResponseItemsItem]

    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",
      "adaptivePolicyGroupId": "1234"
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 25,
        "remaining": 15
      }
    }
  }
}

get_organization_policies_global_group_policies_firewall_rulesets_assignments

List Organization-Wide Policy Ruleset Assignments.

API documentation: getOrganizationPoliciesGlobalGroupPoliciesFirewallRulesetsAssignments

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Filter assignments by ruleset IDs.

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

    Filter assignments by policy IDs.

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

    Filter assignments by assignment 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[OrganizationPoliciesGlobalGroupPoliciesFirewallRulesetsAssignmentResponse]

    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": "123",
      "rulesetId": "456",
      "policyId": "789",
      "priority": 1,
      "createdAt": "2021-01-01T00:00:00Z",
      "lastUpdatedAt": "2021-01-01T00:00:00Z"
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 15,
        "remaining": 5
      }
    }
  }
}

get_organization_policy_object

Shows details of a Policy Object.

API documentation: getOrganizationPolicyObject

Parameters:

  • organization_id (str) –

    Organization ID.

  • policy_object_id (str) –

    Policy object ID.

Returns:

  • OrganizationPolicyObjectResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "name": "Web Servers - Datacenter 10",
  "category": "network",
  "type": "cidr",
  "cidr": "10.0.0.0/24",
  "createdAt": "2018-05-12T00:00:00Z",
  "updatedAt": "2018-05-12T00:00:00Z",
  "groupIds": [
    "8"
  ],
  "networkIds": [
    "L_12345",
    "N_123456"
  ]
}

get_organization_policy_objects

Lists Policy Objects belonging to the organization.

API documentation: getOrganizationPolicyObjects

Parameters:

  • organization_id (str) –

    Organization ID.

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

    The number of entries per page returned. Acceptable range is 10 - 5000. Default is 5000.

  • 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:

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",
    "name": "Web Servers - Datacenter 10",
    "category": "network",
    "type": "cidr",
    "cidr": "10.0.0.0/24",
    "createdAt": "2018-05-12T00:00:00Z",
    "updatedAt": "2018-05-12T00:00:00Z",
    "groupIds": [
      "8"
    ],
    "networkIds": [
      "L_12345",
      "N_123456"
    ]
  }
]

get_organization_policy_objects_group

Shows details of a Policy Object Group.

API documentation: getOrganizationPolicyObjectsGroup

Parameters:

  • organization_id (str) –

    Organization ID.

  • policy_object_group_id (str) –

    Policy object group ID.

Returns:

  • OrganizationPolicyObjectsGroupResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "name": "Web Servers - Datacenter 10",
  "category": "NetworkObjectGroup",
  "createdAt": "2018-05-12T00:00:00Z",
  "updatedAt": "2018-05-12T00:00:00Z",
  "objectIds": [
    100
  ],
  "networkIds": [
    "L_12345",
    "N_123456"
  ]
}

get_organization_policy_objects_groups

Lists Policy Object Groups belonging to the organization.

API documentation: getOrganizationPolicyObjectsGroups

Parameters:

  • organization_id (str) –

    Organization ID.

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

    The number of entries per page returned. Acceptable range is 10 - 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[OrganizationPolicyObjectsGroupResponse]

    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
[
  {
    "id": "1234",
    "name": "Web Servers - Datacenter 10",
    "category": "NetworkObjectGroup",
    "createdAt": "2018-05-12T00:00:00Z",
    "updatedAt": "2018-05-12T00:00:00Z",
    "objectIds": [
      100
    ],
    "networkIds": [
      "L_12345",
      "N_123456"
    ]
  }
]

get_organization_saml

Returns the SAML SSO enabled settings for an organization.

API documentation: getOrganizationSaml

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • OrganizationSamlResponse

    Successful operation.

Example API response
{
  "enabled": true,
  "spInitiated": {
    "subdomain": "example_subdomain",
    "idpId": "uu3H_bx28Nnd"
  }
}

get_organization_saml_idp

Get a SAML IdP from your organization.

API documentation: getOrganizationSamlIdp

Parameters:

  • organization_id (str) –

    Organization ID.

  • idp_id (str) –

    Idp ID.

Returns:

  • GetOrganizationSamlIdpResponse

    Successful operation.

Example API response
{
  "idpId": "1284392014819",
  "consumerUrl": "https://n7.meraki.com/saml/login/XXX",
  "visionConsumerUrl": "https://n7.meraki.com/saml/login/XXX?appTarget=MerakiVision",
  "x509certSha1Fingerprint": "00:11:22:33:44:55:66:77:88:99:00:11:22:33:44:55:66:77:88:99",
  "ssoLoginUrl": "https://onelogin.com/trust/saml2/http-post/sso/3de5f942-e7b8-4cb9-94e3-85828111158b",
  "sloLogoutUrl": "https://onelogin.com/trust/saml2/http-redirect/slo/4155000"
}

get_organization_saml_idps

List the SAML IdPs in your organization.

API documentation: getOrganizationSamlIdps

Parameters:

  • organization_id (str) –

    Organization 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
[
  {
    "idpId": "1284392014819",
    "consumerUrl": "https://n7.meraki.com/saml/login/XXX",
    "visionConsumerUrl": "https://n7.meraki.com/saml/login/XXX?appTarget=MerakiVision",
    "x509certSha1Fingerprint": "00:11:22:33:44:55:66:77:88:99:00:11:22:33:44:55:66:77:88:99",
    "ssoLoginUrl": "https://onelogin.com/trust/saml2/http-post/sso/3de5f942-e7b8-4cb9-94e3-85828111158b",
    "sloLogoutUrl": "https://onelogin.com/trust/saml2/http-redirect/slo/4155000"
  }
]

get_organization_saml_role

Return a SAML role.

API documentation: getOrganizationSamlRole

Parameters:

  • organization_id (str) –

    Organization ID.

  • saml_role_id (str) –

    Saml role ID.

Returns:

  • OrganizationSamlRoleResponse

    Successful operation.

Example API response
{
  "id": "1284392014819",
  "role": "myrole",
  "orgAccess": "none",
  "networks": [
    {
      "id": "N_24329156",
      "access": "full"
    }
  ],
  "tags": [
    {
      "tag": "west",
      "access": "read-only"
    }
  ],
  "camera": [
    {
      "orgWide": true,
      "access": "viewAndExport"
    }
  ]
}

get_organization_saml_roles

List the SAML roles for this organization.

API documentation: getOrganizationSamlRoles

Parameters:

  • organization_id (str) –

    Organization 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": "1284392014819",
    "role": "myrole",
    "orgAccess": "none",
    "networks": [
      {
        "id": "N_24329156",
        "access": "full"
      }
    ],
    "tags": [
      {
        "tag": "west",
        "access": "read-only"
      }
    ],
    "camera": [
      {
        "orgWide": true,
        "access": "viewAndExport"
      }
    ]
  }
]

get_organization_sase_connectors

List SSE Connectors for an organization.

API documentation: getOrganizationSaseConnectors

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • PaginatedResponse[GetOrganizationSaseConnectorsResponseItemsItem]

    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": "123",
      "name": "us-west-1-connector",
      "region": {
        "name": "US West Coast",
        "slug": "us-west-1"
      },
      "state": "deployed",
      "counts": {
        "sitesConnected": {
          "total": 5
        }
      }
    }
  ]
}

get_organization_sase_integration

Get details of a Secure Access integration.

API documentation: getOrganizationSaseIntegration

Parameters:

  • organization_id (str) –

    Organization ID.

  • integration_id (str) –

    Integration ID.

Returns:

  • OrganizationSaseIntegrationResponse

    Successful operation.

Example API response
{
  "integrated": {
    "by": {
      "admin": {
        "name": "John Doe"
      }
    },
    "at": "2025-04-01T12:00:00Z"
  },
  "lastUsedAt": "2025-04-01T12:00:00Z",
  "external": {
    "organization": {
      "id": "1234567890"
    }
  },
  "status": "active"
}

get_organization_sase_networks_eligible

List of MX networks or templates that can be enrolled into Secure Access.

API documentation: getOrganizationSaseNetworksEligible

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 5.

  • 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.

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

    If provided, filters results by network name.

  • 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[GetOrganizationSaseNetworksEligibleResponseItemsItem]

    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_123",
      "type": "Meraki spoke",
      "name": "London Office",
      "region": {
        "name": "US East"
      },
      "device": {
        "primary": {
          "model": "MX95"
        }
      },
      "address": {
        "street": "123 Main St"
      },
      "vpn": {
        "type": "hub"
      },
      "routing": {
        "defaultRoute": {
          "enabled": true
        }
      }
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 1,
        "remaining": 0
      }
    }
  }
}

get_organization_sase_regions

List regions.

API documentation: getOrganizationSaseRegions

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • PaginatedResponse[GetOrganizationSaseRegionsResponseItemsItem]

    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": [
    {
      "connector": {
        "id": "123"
      },
      "type": "Cloud Native Head End",
      "name": "US West",
      "slug": "us-west-1"
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 1,
        "remaining": 0
      }
    }
  }
}

get_organization_sase_sites

List of enrolled SASE sites in this organization.

API documentation: getOrganizationSaseSites

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 10.

  • 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.

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

    If provided, filters results by search string.

  • status (GetOrganizationSaseSitesStatus | None, default: None ) –

    If provided, filters results by site status label (e.g., 'good').

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

    If provided, returns only the site matching this ID.

  • 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[GetOrganizationSaseSitesResponseItemsItem]

    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": [
    {
      "siteId": "1234",
      "network": {
        "id": "N_123"
      },
      "type": "Meraki spoke",
      "name": "London Office",
      "region": {
        "slug": "us-east-1"
      },
      "model": "MX95",
      "address": {
        "street": "123 Main St"
      },
      "vpn": {
        "type": "spoke"
      },
      "routing": {
        "defaultRoute": {
          "enabled": true
        }
      },
      "devices": {
        "primary": {
          "name": "cc:03:d9:01:00:0a",
          "model": "MX95"
        },
        "spare": {
          "name": "cc:03:d9:01:00:0b",
          "model": "MX95"
        }
      },
      "subnets": [
        {
          "subnet": "192.168.100.0/24"
        }
      ],
      "url": "https://n123.meraki.com/London-Office/n/cEF-pd"
    }
  ],
  "meta": {
    "counts": {
      "items": {
        "total": 1,
        "remaining": 0
      }
    }
  }
}

get_organization_sase_sites_connectivity_history_by_site

Get the connectivity history of SASE sites in this organization.

API documentation: getOrganizationSaseSitesConnectivityHistoryBySite

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Array of site IDs to fetch connectivity status data (maximum 100 values).

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

    Timespan for the status data (e.g., '-2hours').

Returns:

  • PaginatedResponse[GetOrganizationSaseSitesConnectivityHistoryBySiteResponseItemsItem]

    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": [
    {
      "siteId": "123",
      "name": "Frontizo Network 1",
      "history": [
        {
          "status": "good",
          "timestamp": "2022-11-08T00:00:00Z"
        }
      ],
      "devices": {
        "primary": {
          "id": "234",
          "history": [
            {
              "status": "good",
              "timestamp": "2022-11-08T00:00:00Z"
            }
          ]
        },
        "spare": {
          "id": "345",
          "history": [
            {
              "status": "bad tunnel",
              "timestamp": "2022-11-08T00:15:00Z"
            }
          ]
        }
      }
    }
  ]
}

get_organization_sase_sites_connectivity_overview

List high-level SASE site statuses (healthy, degraded, offline).

API documentation: getOrganizationSaseSitesConnectivityOverview

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • GetOrganizationSaseSitesConnectivityOverviewResponse

    Successful operation.

Example API response
{
  "counts": {
    "byStatus": {
      "healthy": {
        "total": 3
      },
      "degraded": {
        "total": 3
      },
      "offline": {
        "total": 3
      }
    },
    "total": 9
  }
}

get_organization_snmp

Return the SNMP settings for an organization.

API documentation: getOrganizationSnmp

Parameters:

  • organization_id (str) –

    Organization ID.

Returns:

  • OrganizationSnmpResponse

    Successful operation.

Example API response
{
  "v2cEnabled": false,
  "v2CommunityString": "o/ABCDEF",
  "v3Enabled": true,
  "v3User": "o/ABCDEF",
  "v3AuthMode": "SHA",
  "v3PrivMode": "AES128",
  "peerIps": [
    "123.123.123.1"
  ],
  "hostname": "snmp.meraki.com",
  "port": 443
}

get_organization_splash_asset

Get a Splash Theme Asset.

API documentation: getOrganizationSplashAsset

Parameters:

  • organization_id (str) –

    Organization ID.

  • id (str) –

    ID.

Returns:

  • GetOrganizationSplashAssetResponse

    Successful operation.

Example API response
{
  "id": "1284392014819",
  "name": "continue.html",
  "fileData": "PGh0bWw+PC9odG1sPg==\n"
}

get_organization_splash_themes

List Splash Themes.

API documentation: getOrganizationSplashThemes

Parameters:

  • organization_id (str) –

    Organization 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": "482367494044dbbb1d2cc8579d967cef5b4ce59f",
    "name": "My Custom Splash Theme",
    "isSystemTheme": false,
    "themeAssets": [
      {
        "id": "1284392014819",
        "name": "continue.html"
      }
    ]
  }
]

get_organization_summary_top_appliances_by_utilization

Return the top 10 appliances sorted by utilization over given time range.

API documentation: getOrganizationSummaryTopAppliancesByUtilization

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Match result to an exact network tag.

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

    Match result to an exact device tag.

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

    Set number of desired results to return. Default is 10. Maximum is 50.

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

    Filter results by ssid name.

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

    Filter results by usage uplink.

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

    The beginning of the timespan for the data.

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

    The end of the timespan for the data. t1 can be a maximum of 186 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 25 minutes and be less than or equal to 186 days. The default is 1 day.

Returns:

  • PaginatedResponse[GetOrganizationSummaryTopAppliancesByUtilizationResponseItem]

    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
[
  {
    "network": {
      "name": "Main Office",
      "id": "N_24329156"
    },
    "name": "My appliance",
    "mac": "00:11:22:33:44:55",
    "serial": "Q234-ABCD-5678",
    "model": "MX",
    "utilization": {
      "average": {
        "percentage": 7.3
      }
    }
  }
]

get_organization_summary_top_applications_by_usage

Return the top applications sorted by data usage over given time range.

API documentation: getOrganizationSummaryTopApplicationsByUsage

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Match result to an exact network tag.

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

    Match result to an exact device tag.

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

    Match result to an exact network id.

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

    Set number of desired results to return. Default is 10. Maximum is 50.

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

    Filter results by ssid name.

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

    Filter results by usage uplink.

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

    The beginning of the timespan for the data.

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

    The end of the timespan for the data. t1 can be a maximum of 186 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 25 minutes and be less than or equal to 186 days. The default is 1 day.

Returns:

  • PaginatedResponse[GetOrganizationSummaryTopApplicationsByUsageResponseItem]

    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
[
  {
    "application": "sample name",
    "total": 18000.0,
    "downstream": 10000.0,
    "upstream": 8000.0,
    "percentage": 80.223456789
  }
]

get_organization_summary_top_applications_categories_by_usage

Return the top application categories sorted by data usage over given time range.

API documentation: getOrganizationSummaryTopApplicationsCategoriesByUsage

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Match result to an exact network tag.

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

    Match result to an exact device tag.

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

    Match result to an exact network id.

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

    Set number of desired results to return. Default is 10. Maximum is 50.

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

    Filter results by ssid name.

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

    Filter results by usage uplink.

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

    The beginning of the timespan for the data.

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

    The end of the timespan for the data. t1 can be a maximum of 186 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 25 minutes and be less than or equal to 186 days. The default is 1 day.

Returns:

  • PaginatedResponse[GetOrganizationSummaryTopApplicationsCategoriesByUsageResponseItem]

    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
[
  {
    "category": "other",
    "total": 18000.0,
    "downstream": 10000.0,
    "upstream": 8000.0,
    "percentage": 80.223456789
  }
]

get_organization_summary_top_clients_by_usage

Return metrics for organization's top 10 clients by data usage (in mb) over given time range.

API documentation: getOrganizationSummaryTopClientsByUsage

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Match result to an exact network tag.

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

    Match result to an exact device tag.

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

    Set number of desired results to return. Default is 10. Maximum is 50.

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

    Filter results by ssid name.

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

    Filter results by usage uplink.

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

    The beginning of the timespan for the data.

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

    The end of the timespan for the data. t1 can be a maximum of 186 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 8 hours and be less than or equal to 186 days. The default is 1 day.

Returns:

  • PaginatedResponse[GetOrganizationSummaryTopClientsByUsageResponseItem]

    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": "Office Switch",
    "mac": "22:33:44:55:66:77",
    "id": "k74272e",
    "network": {
      "name": "Main Office",
      "id": "N_24329156"
    },
    "usage": {
      "total": 18000.0,
      "upstream": 8000.0,
      "downstream": 10000.0,
      "percentage": 80.2
    }
  }
]

get_organization_summary_top_clients_manufacturers_by_usage

Return metrics for organization's top clients by data usage (in mb) over given time range, grouped by manufacturer.

API documentation: getOrganizationSummaryTopClientsManufacturersByUsage

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Match result to an exact network tag.

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

    Match result to an exact device tag.

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

    Set number of desired results to return. Default is 10. Maximum is 50.

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

    Filter results by ssid name.

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

    Filter results by usage uplink.

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

    The beginning of the timespan for the data.

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

    The end of the timespan for the data. t1 can be a maximum of 186 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 186 days. The default is 1 day.

Returns:

  • PaginatedResponse[GetOrganizationSummaryTopClientsManufacturersByUsageResponseItem]

    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": "Manufacturer Name",
    "clients": {
      "counts": {
        "total": 3
      }
    },
    "usage": {
      "total": 9000.0,
      "upstream": 1000.0,
      "downstream": 8000.0
    }
  }
]

get_organization_summary_top_devices_by_usage

Return metrics for organization's top 10 devices sorted by data usage over given time range.

API documentation: getOrganizationSummaryTopDevicesByUsage

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Match result to an exact network tag.

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

    Match result to an exact device tag.

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

    Set number of desired results to return. Default is 10. Maximum is 50.

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

    Filter results by ssid name.

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

    Filter results by usage uplink.

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

    The beginning of the timespan for the data.

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

    The end of the timespan for the data. t1 can be a maximum of 186 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 8 hours and be less than or equal to 186 days. The default is 1 day.

Returns:

  • PaginatedResponse[GetOrganizationSummaryTopDevicesByUsageResponseItem]

    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": "My AP",
    "model": "MR34",
    "serial": "Q234-ABCD-5678",
    "mac": "00:11:22:33:44:55",
    "productType": "switch",
    "network": {
      "name": "Main Office",
      "id": "N_24329156"
    },
    "usage": {
      "total": 18000.111,
      "percentage": 80.223456789
    },
    "clients": {
      "counts": {
        "total": 4
      }
    }
  }
]

get_organization_summary_top_devices_models_by_usage

Return metrics for organization's top 10 device models sorted by data usage over given time range.

API documentation: getOrganizationSummaryTopDevicesModelsByUsage

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Match result to an exact network tag.

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

    Match result to an exact device tag.

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

    Set number of desired results to return. Default is 10. Maximum is 50.

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

    Filter results by ssid name.

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

    Filter results by usage uplink.

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

    The beginning of the timespan for the data.

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

    The end of the timespan for the data. t1 can be a maximum of 186 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 8 hours and be less than or equal to 186 days. The default is 1 day.

Returns:

  • PaginatedResponse[GetOrganizationSummaryTopDevicesModelsByUsageResponseItem]

    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
[
  {
    "model": "MR34",
    "count": 2,
    "usage": {
      "total": 2000.0,
      "average": 1000.0
    }
  }
]

get_organization_summary_top_networks_by_status

List the client and status overview information for the networks in an organization.

API documentation: getOrganizationSummaryTopNetworksByStatus

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Match result to an exact network tag.

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

    Match result to an exact device tag.

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

    Set number of desired results to return. Default is 10. Maximum is 50.

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

    Filter results by ssid name.

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

    Filter results by usage uplink.

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

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

  • 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[GetOrganizationSummaryTopNetworksByStatusResponseItem]

    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",
    "url": "https://n1.meraki.com//n//manage/nodes/list",
    "tags": [
      "tag1",
      "tag2"
    ],
    "group": {
      "id": "1284392014819"
    },
    "clients": {
      "counts": {
        "total": 72
      },
      "usage": {
        "upstream": 3732658.44,
        "downstream": 983732658.87
      }
    },
    "statuses": {
      "overall": "online",
      "byProductType": [
        {
          "productType": "wireless",
          "counts": {
            "online": 2,
            "offline": 1,
            "alerting": 0,
            "dormant": 3
          }
        }
      ]
    },
    "devices": {
      "byProductType": [
        {
          "productType": "wireless",
          "url": "https://n1.meraki.com//n//manage/nodes/new_list/000000000000"
        }
      ]
    },
    "productTypes": [
      "appliance",
      "switch",
      "wireless"
    ]
  }
]

get_organization_summary_top_ssids_by_usage

Return metrics for organization's top 10 ssids by data usage over given time range.

API documentation: getOrganizationSummaryTopSsidsByUsage

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Match result to an exact network tag.

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

    Match result to an exact device tag.

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

    Set number of desired results to return. Default is 10. Maximum is 50.

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

    Filter results by ssid name.

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

    Filter results by usage uplink.

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

    The beginning of the timespan for the data.

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

    The end of the timespan for the data. t1 can be a maximum of 186 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 8 hours and be less than or equal to 186 days. The default is 1 day.

Returns:

  • PaginatedResponse[GetOrganizationSummaryTopSsidsByUsageResponseItem]

    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": "My SSID",
    "usage": {
      "total": 18000.0,
      "downstream": 10000.0,
      "upstream": 8000.0,
      "percentage": 80.223456789
    },
    "clients": {
      "counts": {
        "total": 4
      }
    }
  }
]

get_organization_summary_top_switches_by_energy_usage

Return metrics for organization's top 10 switches by energy usage over given time range.

API documentation: getOrganizationSummaryTopSwitchesByEnergyUsage

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Match result to an exact network tag.

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

    Match result to an exact device tag.

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

    Set number of desired results to return. Default is 10. Maximum is 50.

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

    Filter results by ssid name.

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

    Filter results by usage uplink.

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

    The beginning of the timespan for the data.

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

    The end of the timespan for the data. t1 can be a maximum of 186 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 25 minutes and be less than or equal to 186 days. The default is 1 day.

Returns:

  • PaginatedResponse[GetOrganizationSummaryTopSwitchesByEnergyUsageResponseItem]

    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
[
  {
    "network": {
      "name": "Main Office",
      "id": "N_24329156"
    },
    "name": "My switch",
    "mac": "00:11:22:33:44:55",
    "model": "MS",
    "usage": {
      "total": 800.021
    }
  }
]

List the uplink status of every Meraki MX, MG and Z series devices in the organization.

API documentation: getOrganizationUplinksStatuses

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[GetOrganizationUplinksStatusesResponseItem]

    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",
        "provider": "at&t",
        "signalStat": {
          "rsrp": "-120",
          "rsrq": "-13"
        },
        "mcc": "123",
        "mnc": "123",
        "roaming": {
          "status": "home"
        },
        "connectionType": "4g",
        "apn": "internet",
        "dns1": "111.111.111.111",
        "dns2": "222.222.222.222",
        "signalType": "4G",
        "mtu": 1500,
        "iccid": "123456789",
        "imsi": "123456789012345",
        "msisdn": "123456789012345"
      }
    ]
  }
]

get_organization_webhooks_alert_types

Return a list of alert types to be used with managing webhook alerts.

API documentation: getOrganizationWebhooksAlertTypes

Parameters:

  • organization_id (str) –

    Organization ID.

  • product_type (GetOrganizationWebhooksAlertTypesProductType | None, default: None ) –

    Filter sample alerts to a specific product type.

Returns:

  • PaginatedResponse[GetOrganizationWebhooksAlertTypesResponse]

    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
{
  "alertTypeId": "stopped_reporting",
  "alertType": "APs went down",
  "example": {
    "version": "0.1",
    "sharedSecret": "secret",
    "sentAt": "2018-02-11T00:00:00.090210Z",
    "alertId": "0000000000000000",
    "alertLevel": "warning",
    "occurredAt": "2018-02-11T00:00:00.090210Z",
    "organizationId": "2930418",
    "organizationName": "My organization",
    "organizationUrl": "https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview",
    "deviceSerial": "Q234-ABCD-5678",
    "deviceMac": "00:11:22:33:44:55",
    "deviceName": "My AP",
    "deviceUrl": "https://n1.meraki.com//n//manage/nodes/new_list/000000000000",
    "deviceTags": [
      "tag1",
      "tag2"
    ],
    "deviceModel": "MR34",
    "networkId": "N_24329156",
    "networkName": "Main Office",
    "networkUrl": "https://n1.meraki.com//n//manage/nodes/list",
    "enrollmentString": "my-enrollment-string",
    "notes": "Additional description of the network",
    "productTypes": [
      "appliance",
      "switch",
      "wireless"
    ],
    "encryptedId": "6GREra"
  }
}

get_organization_webhooks_callbacks_status

Return the status of an API callback.

API documentation: getOrganizationWebhooksCallbacksStatus

Parameters:

  • organization_id (str) –

    Organization ID.

  • callback_id (str) –

    Callback ID.

Returns:

  • GetOrganizationWebhooksCallbacksStatusResponse

    Successful operation.

Example API response
{
  "callbackId": "1284392014819",
  "status": "completed",
  "errors": [
    "Callback failed"
  ],
  "createdBy": {
    "adminId": "212406"
  },
  "webhook": {
    "url": "https://webhook.site/28efa24e-f830-4d9f-a12b-fbb9e5035031",
    "httpServer": {
      "id": "aHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vd2ViaG9va3M="
    },
    "payloadTemplate": {
      "id": "wpt_2100"
    },
    "sentAt": "2018-02-11T00:00:00.090210Z"
  }
}

get_organization_webhooks_logs

Return the log of webhook POSTs sent.

API documentation: getOrganizationWebhooksLogs

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 30 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 30 days. The default is 1 day.

  • 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.

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

    The URL the webhook was sent to.

  • 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[GetOrganizationWebhooksLogsResponseItem]

    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
[
  {
    "alertType": "Settings changed",
    "loggedAt": "2019-01-01T13:37:28.423456Z",
    "networkId": "N_24329156",
    "organizationId": "2930418",
    "responseCode": 200,
    "responseDuration": 244,
    "sentAt": "2019-01-01T13:37:28.123456Z",
    "url": "https://www.example.com/path"
  }
]

get_organizations

List the organizations that the user has privileges on.

API documentation: getOrganizations

Parameters:

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

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

  • 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:

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": "2930418",
    "name": "My organization",
    "url": "https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview",
    "api": {
      "enabled": true
    },
    "licensing": {
      "model": "co-term"
    },
    "cloud": {
      "region": {
        "name": "North America",
        "host": {
          "name": "United States"
        }
      }
    },
    "management": {
      "details": [
        {
          "name": "MSP ID",
          "value": "123456"
        }
      ]
    }
  }
]

move_organization_licenses

Move licenses to another organization.

API documentation: moveOrganizationLicenses

Parameters:

  • organization_id (str) –

    Organization ID.

  • dest_organization_id (str) –

    The ID of the organization to move the licenses to.

  • license_ids (list[str]) –

    A list of IDs of licenses to move to the new organization.

Returns:

  • MoveOrganizationLicensesResponse

    Successful operation.

Example API response
{
  "destOrganizationId": "2930418",
  "licenseIds": [
    "123",
    "456"
  ]
}

move_organization_licenses_seats

Move SM seats to another organization.

API documentation: moveOrganizationLicensesSeats

Parameters:

  • organization_id (str) –

    Organization ID.

  • dest_organization_id (str) –

    The ID of the organization to move the SM seats to.

  • license_id (str) –

    The ID of the SM license to move the seats from.

  • seat_count (int) –

    The number of seats to move to the new organization. Must be less than or equal to the total number of seats of the license.

Returns:

  • MoveOrganizationLicensesSeatsResponse

    Successful operation.

Example API response
{
  "destOrganizationId": "2930418",
  "licenseId": "1234",
  "seatCount": 20
}

preview_organization_inventory_orders

Preview the results and status of an order claim by the secure order id.

API documentation: previewOrganizationInventoryOrders

Parameters:

  • organization_id (str) –

    Organization ID.

  • claim_id (str) –

    The unique order claim id.

Returns:

  • PreviewOrganizationInventoryOrdersResponse

    Successful operation.

Example API response
{
  "claimId": "ABCD1EFGH4IJ",
  "resolution": {
    "submissionStrategy": "sync_order_claim",
    "supportsSubscriptionSelection": true,
    "claimableShippedDeviceCount": 5
  },
  "number": "97001888",
  "shipping": {
    "shipments": [
      {
        "shippedAt": "2024-06-30T00:00:00Z",
        "number": 1,
        "devices": [
          {
            "quantity": 5,
            "sku": "MR70-HW",
            "description": "Meraki MR70 Cloud Managed AP"
          }
        ]
      }
    ],
    "pending": {
      "devices": [
        {
          "quantity": 1,
          "sku": "MR70-HW",
          "description": "Meraki MX90 Cloud Managed Security Appliance"
        }
      ]
    }
  },
  "subscriptions": [
    {
      "subscriptionId": "1234",
      "name": "My UNX Subscription",
      "description": "Wireless Networking Subscription",
      "startDate": "2020-06-30T00:00:00Z",
      "endDate": "2025-06-30T00:00:00Z",
      "isClaimed": false,
      "counts": {
        "seats": {
          "limit": 1
        }
      }
    }
  ]
}

release_from_organization_inventory

Release a list of claimed devices from an organization.

API documentation: releaseFromOrganizationInventory

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Serials of the devices that should be released.

Returns:

  • ReleaseFromOrganizationInventoryResponse

    Successful operation.

Example API response
{
  "serials": [
    "Q234-ABCD-5678"
  ]
}

remove_organization_policies_global_group_policies_adaptive_policy_groups

Remove adaptive policy groups from a policy.

API documentation: removeOrganizationPoliciesGlobalGroupPoliciesAdaptivePolicyGroups

Parameters:

  • organization_id (str) –

    Organization ID.

  • policy (RemoveOrganizationPoliciesGlobalGroupPoliciesAdaptivePolicyGroupsPolicy) –

    Policy to remove adaptive policy groups from.

  • adaptive_policy_groups (list[RemoveOrganizationPoliciesGlobalGroupPoliciesAdaptivePolicyGroupsAdaptivePolicyGroupsItem]) –

    Adaptive policy groups to remove.

Returns:

  • OrganizationPoliciesGlobalGroupPoliciesAdaptivePolicyGroupsResponse

    Successful operation.

Example API response
{
  "success": true
}

renew_organization_licenses_seats

Renew SM seats of a license.

API documentation: renewOrganizationLicensesSeats

Parameters:

  • organization_id (str) –

    Organization ID.

  • license_id_to_renew (str) –

    The ID of the SM license to renew. This license must already be assigned to an SM network.

  • unused_license_id (str) –

    The SM license to use to renew the seats on 'licenseIdToRenew'. This license must have at least as many seats available as there are seats on 'licenseIdToRenew'.

Returns:

  • OrganizationLicensesSeatsResponse

    Successful operation.

Example API response
{
  "resultingLicenses": [
    {
      "id": "1234",
      "licenseType": "SME",
      "licenseKey": "Z21234567890",
      "orderNumber": "4C1234567",
      "deviceSerial": "Q234-ABCD-5678",
      "networkId": "N_24329156",
      "state": "active",
      "seatCount": 25,
      "totalDurationInDays": 425,
      "durationInDays": 365,
      "permanentlyQueuedLicenses": [
        {
          "id": "1234",
          "licenseType": "SME",
          "licenseKey": "Z21234567890",
          "orderNumber": "4C1234567",
          "durationInDays": 60
        }
      ],
      "claimDate": "2019-08-29T12:40:10Z",
      "activationDate": "2019-09-01T15:01:46Z",
      "expirationDate": "2020-10-30T15:01:46Z",
      "headLicenseId": "1234"
    }
  ]
}

reorder_organization_devices_packet_capture_schedules

Bulk update priorities of pcap schedules.

API documentation: reorderOrganizationDevicesPacketCaptureSchedules

Parameters:

  • organization_id (str) –

    Organization ID.

  • order (list[ReorderOrganizationDevicesPacketCaptureSchedulesOrderItem]) –

    Array of schedule IDs and their priorities to reorder.

Returns:

  • ReorderOrganizationDevicesPacketCaptureSchedulesResponse

    Successful operation.

Example API response
{
  "updatedPriorities": [
    {
      "scheduleId": "1234",
      "priority": 1
    }
  ]
}

restore_organization_assurance_alerts

Restore health alerts from dismissed.

API documentation: restoreOrganizationAssuranceAlerts

Parameters:

  • organization_id (str) –

    Organization ID.

  • alert_ids (list[str]) –

    Array of alert IDs to restore.

Returns:

  • None

    Successful operation.

stop_organization_devices_packet_capture_capture

Stop a specific packet capture (not supported for Catalyst devices).

API documentation: stopOrganizationDevicesPacketCaptureCapture

Parameters:

  • organization_id (str) –

    Organization ID.

  • capture_id (str) –

    Capture ID.

  • serials (list[str]) –

    The serial(s) of the device(s) to stop the capture on.

Returns:

  • OrganizationDevicesPacketCaptureCaptureResponse

    Successful operation.

Example API response
{
  "captureId": "1234",
  "network": {
    "id": "N_24329156",
    "name": "Main Office"
  },
  "device": {
    "name": "My AP",
    "serial": "Q234-ABCD-5678"
  },
  "admin": {
    "id": "1234",
    "name": "Miles Meraki"
  },
  "client": {
    "id": "k74272e",
    "mac": "22:33:44:55:66:77"
  },
  "details": [
    {
      "name": "reason",
      "value": "bad_password",
      "productType": "wireless"
    }
  ],
  "name": "file_name",
  "startTs": "2018-02-11T00:00:00.090210Z",
  "ports": "1, 2",
  "status": "new",
  "errorMessage": "Some error message",
  "destination": "upload_to_cloud",
  "process": "manual",
  "file": {
    "size": 1066
  },
  "duration": 60,
  "filterExpression": "(icmp)",
  "counts": {
    "packets": {
      "total": 10
    }
  },
  "interface": "wired"
}

update_organization

Update an organization.

API documentation: updateOrganization

Parameters:

  • organization_id (str) –

    Organization ID.

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

    The name of the organization.

  • management (UpdateOrganizationManagement | None, default: None ) –

    Information about the organization's management system.

  • api (UpdateOrganizationApi | None, default: None ) –

    API-specific settings.

Returns:

  • OrganizationResponse

    Successful operation.

Example API response
{
  "id": "2930418",
  "name": "My organization",
  "url": "https://dashboard.meraki.com/o/VjjsAd/manage/organization/overview",
  "api": {
    "enabled": true
  },
  "licensing": {
    "model": "co-term"
  },
  "cloud": {
    "region": {
      "name": "North America",
      "host": {
        "name": "United States"
      }
    }
  },
  "management": {
    "details": [
      {
        "name": "MSP ID",
        "value": "123456"
      }
    ]
  }
}

update_organization_action_batch

Update an action batch.

API documentation: updateOrganizationActionBatch

Parameters:

  • organization_id (str) –

    Organization ID.

  • action_batch_id (str) –

    Action batch ID.

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

    A boolean representing whether or not the batch has been confirmed. This property cannot be unset once it is true.

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

    Set to true to force the batch to run synchronous. There can be at most 20 actions in synchronous batch.

Returns:

  • UpdateOrganizationActionBatchResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "organizationId": "2930418",
  "confirmed": true,
  "synchronous": false,
  "status": {
    "completed": true,
    "failed": false,
    "errors": [],
    "createdResources": [
      {
        "id": "1284392014819",
        "uri": "/networks/L_XXXXX/groupPolicies/100"
      }
    ]
  },
  "actions": [
    {
      "resource": "/devices/QXXX-XXXX-XXXX/switch/ports/3",
      "operation": "update"
    }
  ]
}

update_organization_adaptive_policy_acl

Updates an adaptive policy ACL.

API documentation: updateOrganizationAdaptivePolicyAcl

Parameters:

  • organization_id (str) –

    Organization ID.

  • acl_id (str) –

    Acl ID.

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

    Name of the adaptive policy ACL.

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

    Description of the adaptive policy ACL.

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

    An ordered array of the adaptive policy ACL rules. An empty array will clear the rules.

  • ip_version (UpdateOrganizationAdaptivePolicyAclIpVersion | None, default: None ) –

    IP version of adpative policy ACL. One of: 'any', 'ipv4' or 'ipv6'.

Returns:

  • OrganizationAdaptivePolicyAclResponse

    Successful operation.

Example API response
{
  "aclId": "12345678",
  "name": "Block sensitive web traffic",
  "description": "Blocks sensitive web traffic",
  "ipVersion": "ipv6",
  "rules": [
    {
      "policy": "deny",
      "protocol": "tcp",
      "srcPort": "1,33",
      "dstPort": "22-30",
      "log": true,
      "tcpEstablished": true
    }
  ],
  "createdAt": "2021-05-19T17:08:25Z",
  "updatedAt": "2021-05-19T17:11:54Z"
}

update_organization_adaptive_policy_group

Updates an adaptive policy group.

API documentation: updateOrganizationAdaptivePolicyGroup

Parameters:

  • organization_id (str) –

    Organization ID.

  • id (str) –

    ID.

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

    Name of the group.

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

    SGT value of the group.

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

    Description of the group.

  • policy_objects (list[UpdateOrganizationAdaptivePolicyGroupPolicyObjectsItem] | None, default: None ) –

    The policy objects that belong to this group; traffic from addresses specified by these policy objects will be tagged with this group's SGT value if no other tagging scheme is being used (each requires one unique attribute).

Returns:

  • OrganizationAdaptivePolicyGroupResponse

    Successful operation.

Example API response
{
  "groupId": "1234",
  "name": "Employee Group",
  "sgt": 1000,
  "description": "Group of XYZ Corp Employees",
  "policyObjects": [
    {
      "id": "2345",
      "name": "Example Policy Object"
    }
  ],
  "isDefaultGroup": false,
  "requiredIpMappings": [],
  "createdAt": "2019-06-27T21:34:25.253480Z",
  "updatedAt": "2019-06-27T21:34:25.253480Z"
}

update_organization_adaptive_policy_policy

Update an Adaptive Policy.

API documentation: updateOrganizationAdaptivePolicyPolicy

Parameters:

  • organization_id (str) –

    Organization ID.

  • id (str) –

    ID.

  • source_group (UpdateOrganizationAdaptivePolicyPolicySourceGroup | None, default: None ) –

    The source adaptive policy group (requires one unique attribute).

  • destination_group (UpdateOrganizationAdaptivePolicyPolicyDestinationGroup | None, default: None ) –

    The destination adaptive policy group (requires one unique attribute).

  • acls (list[UpdateOrganizationAdaptivePolicyPolicyAclsItem] | None, default: None ) –

    An ordered array of adaptive policy ACLs (each requires one unique attribute) that apply to this policy.

  • last_entry_rule (UpdateOrganizationAdaptivePolicyPolicyLastEntryRule | None, default: None ) –

    The rule to apply if there is no matching ACL.

Returns:

  • OrganizationAdaptivePolicyPolicyResponse

    Successful operation.

Example API response
{
  "adaptivePolicyId": "111",
  "sourceGroup": {
    "id": "222",
    "name": "IoT Devices",
    "sgt": 50
  },
  "destinationGroup": {
    "id": "333",
    "name": "IoT Servers",
    "sgt": 51
  },
  "acls": [
    {
      "id": "444",
      "name": "Block web"
    }
  ],
  "lastEntryRule": "allow",
  "createdAt": "2019-06-27T21:34:25.253480Z",
  "updatedAt": "2019-06-27T21:34:25.253480Z"
}

update_organization_adaptive_policy_settings

Update global adaptive policy settings.

API documentation: updateOrganizationAdaptivePolicySettings

Parameters:

  • organization_id (str) –

    Organization ID.

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

    List of network IDs with adaptive policy enabled.

Returns:

  • OrganizationAdaptivePolicySettingsResponse

    Successful operation.

Example API response
{
  "enabledNetworks": [
    "L_11111111",
    "L_22222222",
    "N_33333333",
    "L_44444444"
  ]
}

update_organization_admin

Update an administrator.

API documentation: updateOrganizationAdmin

Parameters:

  • organization_id (str) –

    Organization ID.

  • admin_id (str) –

    Admin ID.

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

    The name of the dashboard administrator.

  • org_access (UpdateOrganizationAdminOrgAccess | None, default: None ) –

    The privilege of the dashboard administrator on the organization. Can be one of 'full', 'read-only', 'enterprise' or 'none'.

  • tags (list[UpdateOrganizationAdminTagsItem] | None, default: None ) –

    The list of tags that the dashboard administrator has privileges on.

  • networks (list[UpdateOrganizationAdminNetworksItem] | None, default: None ) –

    The list of networks that the dashboard administrator has privileges on.

Returns:

  • OrganizationAdminResponse

    Successful operation.

Example API response
{
  "id": "212406",
  "name": "Miles Meraki",
  "email": "miles@meraki.com",
  "orgAccess": "none",
  "accountStatus": "ok",
  "twoFactorAuthEnabled": false,
  "hasApiKey": true,
  "lastActive": "2018-02-11T00:00:00Z",
  "tags": [
    {
      "tag": "west",
      "access": "read-only"
    }
  ],
  "networks": [
    {
      "id": "N_24329156",
      "access": "full"
    }
  ],
  "authenticationMethod": "Email"
}

update_organization_alerts_profile

Update an organization-wide alert config.

API documentation: updateOrganizationAlertsProfile

Parameters:

  • organization_id (str) –

    Organization ID.

  • alert_config_id (str) –

    Alert config ID.

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

    Is the alert config enabled.

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

    The alert type.

  • alert_condition (UpdateOrganizationAlertsProfileAlertCondition | None, default: None ) –

    The conditions that determine if the alert triggers.

  • recipients (UpdateOrganizationAlertsProfileRecipients | None, default: None ) –

    List of recipients that will recieve the alert.

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

    Networks with these tags will be monitored for the alert.

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

    User supplied description of the alert.

Returns:

  • OrganizationAlertsProfileResponse

    Successful operation.

Example API response
{
  "id": "1284392014819",
  "type": "wanUtilization",
  "enabled": true,
  "alertCondition": {
    "duration": 60,
    "window": 600,
    "bit_rate_bps": 10000,
    "interface": "wan1"
  },
  "recipients": {
    "emails": [
      "admin@example.org"
    ],
    "httpServerIds": [
      "aHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vcGF0aA=="
    ]
  },
  "networkTags": [
    "tag1",
    "tag2"
  ],
  "description": "WAN 1 high utilization"
}

update_organization_branding_policies_priorities

Update the priority ordering of an organization's branding policies.

API documentation: updateOrganizationBrandingPoliciesPriorities

Parameters:

  • organization_id (str) –

    Organization ID.

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

    An ordered list of branding policy IDs that determines the priority order of how to apply the policies.

Returns:

  • OrganizationBrandingPoliciesPrioritiesResponse

    Successful operation.

Example API response
{
  "brandingPolicyIds": [
    "123",
    "456",
    "789"
  ]
}

update_organization_branding_policy

Update a branding policy.

API documentation: updateOrganizationBrandingPolicy

Parameters:

  • organization_id (str) –

    Organization ID.

  • branding_policy_id (str) –

    Branding policy ID.

  • name (str) –

    Name of the Dashboard branding policy.

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

    Boolean indicating whether this policy is enabled.

  • admin_settings (UpdateOrganizationBrandingPolicyAdminSettings | None, default: None ) –

    Settings for describing which kinds of admins this policy applies to.

  • help_settings (UpdateOrganizationBrandingPolicyHelpSettings | None, default: None ) –

    Settings for describing the modifications to various Help page features. Each property in this object accepts one of 'default or inherit' (do not modify functionality), 'hide' (remove the section from Dashboard), or 'show' (always show the section on Dashboard). Some properties in this object also accept custom HTML used to replace the section on Dashboard; see the documentation for each property to see the allowed values.

  • custom_logo (UpdateOrganizationBrandingPolicyCustomLogo | None, default: None ) –

    Properties describing the custom logo attached to the branding policy.

Returns:

  • OrganizationBrandingPolicyResponse

    Successful operation.

Example API response
{
  "name": "My Branding Policy",
  "enabled": true,
  "adminSettings": {
    "appliesTo": "All admins of networks...",
    "values": [
      "N_1234",
      "L_5678"
    ]
  },
  "helpSettings": {
    "helpTab": "show",
    "getHelpSubtab": "default or inherit",
    "communitySubtab": "show",
    "casesSubtab": "hide",
    "dataProtectionRequestsSubtab": "default or inherit",
    "getHelpSubtabKnowledgeBaseSearch": "<h1>Some custom HTML content</h1>",
    "universalSearchKnowledgeBaseSearch": "hide",
    "ciscoMerakiProductDocumentation": "show",
    "supportContactInfo": "show",
    "newFeaturesSubtab": "show",
    "firewallInfoSubtab": "hide",
    "apiDocsSubtab": "default or inherit",
    "hardwareReplacementsSubtab": "hide",
    "smForums": "hide",
    "helpWidget": "hide"
  },
  "customLogo": {
    "enabled": true,
    "image": {
      "preview": {
        "url": "https://meraki-na.s3.amazonaws.com/org-assets/my-image.png",
        "expiresAt": "2022-04-06T06:19:27-07:00"
      }
    }
  }
}

update_organization_config_template

Update a configuration template.

API documentation: updateOrganizationConfigTemplate

Parameters:

  • organization_id (str) –

    Organization ID.

  • config_template_id (str) –

    Config template ID.

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

    The name of the configuration template.

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

    The timezone of the configuration template. For a list of allowed timezones, please see the 'TZ' column in the table in this article..

Returns:

  • OrganizationConfigTemplateResponse

    Successful operation.

Example API response
{
  "id": "N_24329156",
  "name": "My config template",
  "productTypes": [
    "appliance",
    "switch",
    "wireless"
  ],
  "timeZone": "America/Los_Angeles"
}

update_organization_devices_cellular_data_profile

Update a Cellular Data Management Profile.

API documentation: updateOrganizationDevicesCellularDataProfile

Parameters:

  • organization_id (str) –

    Organization ID.

  • profile_id (str) –

    Profile ID.

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

    New description of the profile.

  • rules (list[UpdateOrganizationDevicesCellularDataProfileRulesItem]) –

    The rules associated with this profile. At least one rule and no more than two rules may be defined for a profile.

Returns:

  • OrganizationDevicesCellularDataProfileResponse

    Successful operation.

Example API response
{
  "profileId": "42",
  "lastUpdatedAt": "2023-08-21T00:00:00Z",
  "name": "some unique profile name",
  "description": "some description",
  "rules": [
    {
      "ruleId": "42",
      "slot": "sim1",
      "uplink": {
        "priority": 1,
        "isPreferred": true
      },
      "cap": {
        "value": 42,
        "threshold": 0.9,
        "term": {
          "resets": "monthly",
          "starts": {
            "hourOfDay": 12,
            "dayOfWeek": "mon",
            "dayOfMonth": 2
          }
        }
      },
      "actions": [
        {
          "type": "failover"
        }
      ]
    }
  ]
}

update_organization_devices_packet_capture_schedule

Update a schedule for packet capture.

API documentation: updateOrganizationDevicesPacketCaptureSchedule

Parameters:

  • organization_id (str) –

    Organization ID.

  • schedule_id (str) –

    Schedule ID.

  • devices (list[UpdateOrganizationDevicesPacketCaptureScheduleDevicesItem]) –

    device details.

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

    Name of the packet capture file.

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

    Reason for capture.

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

    Duration of the capture in seconds.

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

    Filter expression for the capture.

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

    Enable or disable the schedule.

  • schedule (UpdateOrganizationDevicesPacketCaptureScheduleSchedule | None, default: None ) –

    Schedule details.

Returns:

  • OrganizationDevicesPacketCaptureScheduleResponse

    Successful operation.

Example API response
{
  "scheduleId": "1234",
  "devices": [
    {
      "device": {
        "serial": "Q234-ABCD-5678",
        "switchports": "1-3, 9",
        "interface": "GigabitEthernet1/0/1"
      }
    }
  ],
  "name": "pcap_file_name",
  "admin": {
    "id": "1234",
    "name": "Miles Meraki"
  },
  "notes": "capture reason",
  "duration": 60,
  "filterExpression": "(icmp)",
  "createdAt": "2018-02-11T00:00:00.090210Z",
  "updatedAt": "2018-02-11T00:00:00.090210Z",
  "captureCount": 2,
  "lastCaptureId": "1234",
  "enabled": true,
  "priority": 1,
  "schedule": {
    "name": "schedule_name",
    "startTs": "2018-02-11T00:00:00.090210Z",
    "endTs": "2018-02-11T00:00:00.090210Z",
    "frequency": "hour",
    "weekdays": [
      "Monday",
      "Tuesday"
    ],
    "recurrence": 1,
    "nextCaptureTs": "2018-02-11T00:00:00.090210Z"
  },
  "warnings": [
    "This schedule conflicts with the schedule Test Schedule at the time 2025-01-28T18:25:06Z"
  ]
}

update_organization_early_access_features_opt_in

Update an early access feature opt-in for an organization.

API documentation: updateOrganizationEarlyAccessFeaturesOptIn

Parameters:

  • organization_id (str) –

    Organization ID.

  • opt_in_id (str) –

    Opt in ID.

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

    A list of network IDs to apply the opt-in to.

Returns:

  • GetOrganizationEarlyAccessFeaturesOptInsResponse

    Successful operation.

Example API response
{
  "id": "1",
  "shortName": "has_new_feature",
  "limitScopeToNetworks": [
    {
      "id": "L_1234",
      "name": "My Network"
    }
  ],
  "optOutEligibility": {
    "eligible": false,
    "reason": "Please remove devices of type XYZ from your organization",
    "help": {
      "label": "Read more",
      "url": "http://meraki.com/my_help"
    }
  },
  "createdAt": "2022-05-01T04:07:15Z"
}

update_organization_license

Update a license.

API documentation: updateOrganizationLicense

Parameters:

  • organization_id (str) –

    Organization ID.

  • license_id (str) –

    License ID.

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

    The serial number of the device to assign this license to. Set this to null to unassign the license. If a different license is already active on the device, this parameter will control queueing/dequeuing this license.

Returns:

  • OrganizationLicenseResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "licenseType": "MX64-ENT",
  "licenseKey": "Z21234567890",
  "orderNumber": "4C1234567",
  "deviceSerial": "Q234-ABCD-5678",
  "networkId": "N_24329156",
  "state": "active",
  "seatCount": 25,
  "totalDurationInDays": 425,
  "durationInDays": 365,
  "permanentlyQueuedLicenses": [
    {
      "id": "1234",
      "licenseType": "MX64-ENT",
      "licenseKey": "Z21234567890",
      "orderNumber": "4C1234567",
      "durationInDays": 60
    }
  ],
  "claimDate": "2019-08-29T12:40:10Z",
  "activationDate": "2019-09-01T15:01:46Z",
  "expirationDate": "2020-10-30T15:01:46Z",
  "headLicenseId": "1234"
}

update_organization_login_security

Update the login security settings for an organization.

API documentation: updateOrganizationLoginSecurity

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Boolean indicating whether users are forced to change their password every X number of days.

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

    Number of days after which users will be forced to change their password.

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

    Boolean indicating whether users, when setting a new password, are forced to choose a new password that is different from any past passwords.

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

    Number of recent passwords that new password must be distinct from.

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

    Deprecated. Values of 'false' are always ignored.

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

    Minimum number of characters required in admins' passwords.

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

    Boolean indicating whether users' Dashboard accounts will be locked out after a specified number of consecutive failed login attempts.

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

    Number of consecutive failed login attempts after which users' accounts will be locked.

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

    Boolean indicating whether users will be logged out after being idle for the specified number of minutes.

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

    Number of minutes users can remain idle before being logged out of their accounts.

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

    Boolean indicating whether users in this organization will be required to use an extra verification code when logging in to Dashboard. This code will be sent to their mobile phone via SMS, or can be generated by the authenticator application.

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

    Boolean indicating whether organization will restrict access to Dashboard (including the API) from certain IP addresses.

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

    List of acceptable IP ranges. Entries can be single IP addresses, IP address ranges, and CIDR subnets.

  • api_authentication (UpdateOrganizationLoginSecurityApiAuthentication | None, default: None ) –

    Details for indicating whether organization will restrict access to API (but not Dashboard) to certain IP addresses.

Returns:

  • OrganizationLoginSecurityResponse

    Successful operation.

Example API response
{
  "enforcePasswordExpiration": true,
  "passwordExpirationDays": 90,
  "enforceDifferentPasswords": true,
  "numDifferentPasswords": 3,
  "enforceStrongPasswords": true,
  "minimumPasswordLength": 12,
  "enforceAccountLockout": true,
  "accountLockoutAttempts": 3,
  "enforceIdleTimeout": true,
  "idleTimeoutMinutes": 30,
  "enforceTwoFactorAuth": true,
  "enforceLoginIpRanges": true,
  "loginIpRanges": [
    "192.195.83.1",
    "192.195.83.255"
  ],
  "apiAuthentication": {
    "ipRestrictionsForKeys": {
      "enabled": true,
      "ranges": [
        "192.195.83.1",
        "192.168.33.33"
      ]
    }
  }
}

update_organization_policies_global_firewall_ruleset

Update an Organization-Wide Policy Firewall Ruleset.

API documentation: updateOrganizationPoliciesGlobalFirewallRuleset

Parameters:

  • organization_id (str) –

    Organization ID.

  • ruleset_id (str) –

    Ruleset ID.

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

    Name of the firewall ruleset.

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

    Description of the firewall ruleset.

Returns:

  • OrganizationPoliciesGlobalFirewallRulesetResponse

    Successful operation.

Example API response
{
  "rulesetId": "123",
  "name": "Block Social Media",
  "description": "Block all Social Media",
  "createdAt": "2021-01-01T00:00:00Z",
  "lastUpdatedAt": "2021-01-01T00:00:00Z"
}

update_organization_policies_global_firewall_rulesets_rule

Update an Organization-Wide Policy Firewall Rule.

API documentation: updateOrganizationPoliciesGlobalFirewallRulesetsRule

Parameters:

  • organization_id (str) –

    Organization ID.

  • rule_id (str) –

    Rule ID.

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

    Name of the firewall rule.

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

    Firewall ruleset ID to associate the rule with.

  • policy (UpdateOrganizationPoliciesGlobalFirewallRulesetsRulePolicy | None, default: None ) –

    Rule policy - allow or deny traffic.

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

    Whether the rule is enabled.

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

    Rule priority (lower numbers = higher priority).

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

    Description of the firewall rule.

  • sources (UpdateOrganizationPoliciesGlobalFirewallRulesetsRuleSources | None, default: None ) –

    Source traffic criteria. Each source or destination bloc is capped separately per rule at 100 total segment values. The count is segments_values_count: the sum of all values across every segment type in that bloc. Ports use a separate cap of 100.

  • destinations (UpdateOrganizationPoliciesGlobalFirewallRulesetsRuleDestinations | None, default: None ) –

    Destination traffic criteria. Each source or destination bloc is capped separately per rule at 100 total segment values. The count is segments_values_count: the sum of all values across every segment type in that bloc. Ports use a separate cap of 100.

Returns:

  • OrganizationPoliciesGlobalFirewallRulesetsRuleResponse

    Successful operation.

Example API response
{
  "ruleId": "123",
  "name": "Allow developers",
  "rulesetId": "32",
  "policy": "deny",
  "enabled": true,
  "priority": 100,
  "description": "This is rule 1",
  "sources": {
    "matchCriteria": [
      "addressRanges",
      "ports",
      "policyObjects",
      "policyObjectGroups",
      "applianceVlans"
    ],
    "criteria": {
      "addressRanges": [
        "1.1.1.1",
        "2.2.2.2"
      ],
      "ports": [
        "22",
        "42-46"
      ],
      "policyObjects": [
        {
          "id": "23"
        }
      ],
      "policyObjectGroups": [
        {
          "id": "45"
        }
      ],
      "applianceVlans": [
        {
          "interfaceId": "L_123456789012345678_vlan_200"
        }
      ],
      "siteSpecificVlans": [
        {
          "id": 100,
          "address": {
            "offsets": {
              "ipv4": 25,
              "ipv6": "0:ff:fe01:0"
            }
          }
        }
      ]
    }
  },
  "destinations": {
    "matchCriteria": [
      "addressRanges",
      "services",
      "applicationCategories",
      "applications",
      "policyObjects",
      "policyObjectGroups",
      "applianceVlans"
    ],
    "criteria": {
      "addressRanges": [
        "1.1.1.1",
        "2.2.2.2"
      ],
      "ports": [
        "22",
        "42-46"
      ],
      "services": [
        {
          "protocol": "tcp",
          "ports": [
            "80",
            "443"
          ]
        }
      ],
      "applicationCategories": [
        {
          "id": "meraki:layer7/category/24"
        }
      ],
      "applications": [
        {
          "id": "meraki:layer7/application/5",
          "name": "Advertising.com"
        }
      ],
      "policyObjects": [
        {
          "id": "23"
        }
      ],
      "policyObjectGroups": [
        {
          "id": "45"
        }
      ],
      "applianceVlans": [
        {
          "interfaceId": "L_123456789012345678_vlan_200"
        }
      ],
      "countries": [
        {
          "code": "US"
        }
      ],
      "fqdns": [
        "*.example.com"
      ],
      "siteSpecificVlans": [
        {
          "id": 100,
          "address": {
            "offsets": {
              "ipv4": 25,
              "ipv6": "0:ff:fe01:0"
            }
          }
        }
      ]
    }
  },
  "createdAt": "2021-01-01T00:00:00Z",
  "lastUpdatedAt": "2021-01-01T00:00:00Z"
}

update_organization_policies_global_group_policies_firewall_rulesets_assignment

Update an Organization-Wide Policy Ruleset Assignment.

API documentation: updateOrganizationPoliciesGlobalGroupPoliciesFirewallRulesetsAssignment

Parameters:

  • organization_id (str) –

    Organization ID.

  • assignment_id (str) –

    Assignment ID.

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

    ID of the ruleset to assign.

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

    ID of the policy to assign the ruleset to.

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

    Priority of the ruleset assignment (lower numbers = higher priority).

Returns:

  • OrganizationPoliciesGlobalGroupPoliciesFirewallRulesetsAssignmentResponse

    Successful operation.

Example API response
{
  "assignmentId": "123",
  "rulesetId": "456",
  "policyId": "789",
  "priority": 1,
  "createdAt": "2021-01-01T00:00:00Z",
  "lastUpdatedAt": "2021-01-01T00:00:00Z"
}

update_organization_policies_global_group_policy

Update an Organization-Wide Policy.

API documentation: updateOrganizationPoliciesGlobalGroupPolicy

Parameters:

  • organization_id (str) –

    Organization ID.

  • policy_id (str) –

    Policy ID.

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

    Name of the policy.

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

    Description of the policy.

Returns:

  • OrganizationPoliciesGlobalGroupPolicyResponse

    Successful operation.

Example API response
{
  "policyId": "123",
  "name": "My policy",
  "description": "My policy description",
  "group": {
    "number": 100
  },
  "createdAt": "2021-01-01T00:00:00Z",
  "lastUpdatedAt": "2021-01-01T00:00:00Z"
}

update_organization_policy_object

Updates a Policy Object.

API documentation: updateOrganizationPolicyObject

Parameters:

  • organization_id (str) –

    Organization ID.

  • policy_object_id (str) –

    Policy object ID.

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

    Name of a policy object, unique within the organization (alphanumeric, space, dash, or underscore characters only).

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

    CIDR Value of a policy object (e.g. 10.11.12.1/24").

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

    Fully qualified domain name of policy object (e.g. "example.com").

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

    Mask of a policy object (e.g. "255.255.0.0").

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

    IP Address of a policy object (e.g. "1.2.3.4").

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

    The IDs of policy object groups the policy object belongs to.

Returns:

  • OrganizationPolicyObjectResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "name": "Web Servers - Datacenter 10",
  "category": "network",
  "type": "cidr",
  "cidr": "10.0.0.0/24",
  "createdAt": "2018-05-12T00:00:00Z",
  "updatedAt": "2018-05-12T00:00:00Z",
  "groupIds": [
    "8"
  ],
  "networkIds": [
    "L_12345",
    "N_123456"
  ]
}

update_organization_policy_objects_group

Updates a Policy Object Group.

API documentation: updateOrganizationPolicyObjectsGroup

Parameters:

  • organization_id (str) –

    Organization ID.

  • policy_object_group_id (str) –

    Policy object group ID.

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

    A name for the group of network addresses, unique within the organization (alphanumeric, space, dash, or underscore characters only).

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

    A list of Policy Object ID's that this NetworkObjectGroup should be associated to (note: these ID's will replace the existing associated Policy Objects).

Returns:

  • OrganizationPolicyObjectsGroupResponse

    Successful operation.

Example API response
{
  "id": "1234",
  "name": "Web Servers - Datacenter 10",
  "category": "NetworkObjectGroup",
  "createdAt": "2018-05-12T00:00:00Z",
  "updatedAt": "2018-05-12T00:00:00Z",
  "objectIds": [
    100
  ],
  "networkIds": [
    "L_12345",
    "N_123456"
  ]
}

update_organization_saml

Updates the SAML SSO enabled settings for an organization.

API documentation: updateOrganizationSaml

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Boolean for updating SAML SSO enabled settings.

  • sp_initiated (UpdateOrganizationSamlSpInitiated | None, default: None ) –

    SP-Initiated SSO settings.

Returns:

  • OrganizationSamlResponse

    Successful operation.

Example API response
{
  "enabled": true,
  "spInitiated": {
    "subdomain": "example_subdomain",
    "idpId": "uu3H_bx28Nnd"
  }
}

update_organization_saml_idp

Update a SAML IdP in your organization.

API documentation: updateOrganizationSamlIdp

Parameters:

  • organization_id (str) –

    Organization ID.

  • idp_id (str) –

    Idp ID.

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

    Fingerprint (SHA1) of the SAML certificate provided by your Identity Provider (IdP). This will be used for encryption / validation.

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

    Dashboard will redirect users to this URL to log in again when their sessions expire.

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

    Dashboard will redirect users to this URL when they sign out.

Returns:

  • GetOrganizationSamlIdpsResponse

    Successful operation.

Example API response
[
  {
    "idpId": "1284392014819",
    "consumerUrl": "https://n7.meraki.com/saml/login/XXX",
    "visionConsumerUrl": "https://n7.meraki.com/saml/login/XXX?appTarget=MerakiVision",
    "x509certSha1Fingerprint": "00:11:22:33:44:55:66:77:88:99:00:11:22:33:44:55:66:77:88:99",
    "ssoLoginUrl": "https://onelogin.com/trust/saml2/http-post/sso/3de5f942-e7b8-4cb9-94e3-85828111158b",
    "sloLogoutUrl": "https://onelogin.com/trust/saml2/http-redirect/slo/4155000"
  }
]

update_organization_saml_role

Update a SAML role.

API documentation: updateOrganizationSamlRole

Parameters:

  • organization_id (str) –

    Organization ID.

  • saml_role_id (str) –

    Saml role ID.

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

    The role of the SAML administrator.

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

    The privilege of the SAML administrator on the organization. Can be one of 'none', 'read-only', 'full' or 'enterprise' or a custom role in the format custom-role:ID:NAME.

  • tags (list[UpdateOrganizationSamlRoleTagsItem] | None, default: None ) –

    The list of tags that the SAML administrator has privileges on.

  • networks (list[UpdateOrganizationSamlRoleNetworksItem] | None, default: None ) –

    The list of networks that the SAML administrator has privileges on.

Returns:

  • OrganizationSamlRoleResponse

    Successful operation.

Example API response
{
  "id": "1284392014819",
  "role": "myrole",
  "orgAccess": "none",
  "networks": [
    {
      "id": "N_24329156",
      "access": "full"
    }
  ],
  "tags": [
    {
      "tag": "west",
      "access": "read-only"
    }
  ],
  "camera": [
    {
      "orgWide": true,
      "access": "viewAndExport"
    }
  ]
}

update_organization_sase_site

Update the configuration for a site.

API documentation: updateOrganizationSaseSite

Parameters:

  • organization_id (str) –

    Organization ID.

  • site_id (str) –

    Site ID.

  • routing (UpdateOrganizationSaseSiteRouting | None, default: None ) –

    Routing configuration for the site.

Returns:

  • UpdateOrganizationSaseSiteResponse

    Successful operation.

Example API response
{
  "siteId": "1234",
  "network": {
    "id": "N_123"
  },
  "type": "Meraki spoke",
  "name": "London Office",
  "region": {
    "slug": "us-east-1"
  },
  "model": "MX95",
  "address": {
    "street": "123 Main St"
  },
  "vpn": {
    "type": "spoke"
  },
  "routing": {
    "defaultRoute": {
      "enabled": true
    }
  }
}

update_organization_snmp

Update the SNMP settings for an organization.

API documentation: updateOrganizationSnmp

Parameters:

  • organization_id (str) –

    Organization ID.

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

    Boolean indicating whether SNMP version 2c is enabled for the organization.

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

    Boolean indicating whether SNMP version 3 is enabled for the organization.

  • v3_auth_mode (UpdateOrganizationSnmpV3AuthMode | None, default: None ) –

    The SNMP version 3 authentication mode. Can be either 'MD5' or 'SHA'.

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

    The SNMP version 3 authentication password. Must be at least 8 characters if specified.

  • v3_priv_mode (UpdateOrganizationSnmpV3PrivMode | None, default: None ) –

    The SNMP version 3 privacy mode. Can be either 'DES' or 'AES128'.

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

    The SNMP version 3 privacy password. Must be at least 8 characters if specified.

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

    The list of IPv4 addresses that are allowed to access the SNMP server.

Returns:

  • OrganizationSnmpResponse

    Successful operation.

Example API response
{
  "v2cEnabled": false,
  "v2CommunityString": "o/ABCDEF",
  "v3Enabled": true,
  "v3User": "o/ABCDEF",
  "v3AuthMode": "SHA",
  "v3PrivMode": "AES128",
  "peerIps": [
    "123.123.123.1"
  ],
  "hostname": "snmp.meraki.com",
  "port": 443
}