diff --git a/docs/generation-report.md b/docs/generation-report.md index 9ac9cbf..d186ba8 100644 --- a/docs/generation-report.md +++ b/docs/generation-report.md @@ -1,5 +1,11 @@ # Generation Report +## 2026-11-11 | Library v4.7.0b1 | API 1.76.0-beta.1 + + +No Python keyword parameter conflicts detected. + + ## 2026-11-04 | Library v4.7.0b0 | API 1.76.0-beta.0 diff --git a/meraki/__init__.py b/meraki/__init__.py index de4b8ca..bfcb7b2 100644 --- a/meraki/__init__.py +++ b/meraki/__init__.py @@ -57,7 +57,7 @@ from meraki.exceptions import APIError, APIKeyError, APIResponseError, AsyncAPIError from meraki.rest_session import RestSession -__api_version__ = "1.76.0-beta.0" +__api_version__ = "1.76.0-beta.1" __all__ = [ "APIError", diff --git a/meraki/_version.py b/meraki/_version.py index e298ca1..91ca231 100644 --- a/meraki/_version.py +++ b/meraki/_version.py @@ -1 +1 @@ -__version__ = "4.7.0b0" +__version__ = "4.7.0b1" diff --git a/meraki/aio/api/appliance.py b/meraki/aio/api/appliance.py index 24cda20..0b5608b 100644 --- a/meraki/aio/api/appliance.py +++ b/meraki/aio/api/appliance.py @@ -6321,7 +6321,7 @@ def getOrganizationApplianceVpnSiteToSiteHubsVrfs(self, organizationId: str, tot - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 500. Default is 50. - startingAfter (string): 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. - endingBefore (string): 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. - - networkIds (array): Optional parameter to filter source-to-hub mappings by source network IDs. + - networkIds (array): Optional parameter to filter source-to-hub mappings by source network IDs. Maximum 100 network IDs. """ kwargs.update(locals()) diff --git a/meraki/aio/api/assistant.py b/meraki/aio/api/assistant.py index b88f9a2..91120cc 100644 --- a/meraki/aio/api/assistant.py +++ b/meraki/aio/api/assistant.py @@ -6,53 +6,6 @@ def __init__(self, session): super().__init__() self._session = session - def createAdministeredAssistantChatCompletion(self, **kwargs): - """ - **Create a synchronous AI assistant chat completion for user-wide threads** - https://developer.cisco.com/meraki/api-v1/#!create-administered-assistant-chat-completion - - - query (string): Simple text question or instruction to send to the AI assistant. Provide either 'query' for text-only requests or 'content' for multi-modal input. - - content (array): List of multi-modal content blocks. Use instead of 'query' to send text or images. Maximum 8 parts and 4 total images. Each image must be at most 10 MiB decoded. - - threadId (string): Existing persisted thread ID to continue synchronously. If omitted, the request is handled as a one-off invocation and the response will not include a reusable thread ID. - - platform (string): Platform identifier. Defaults to MERAKI when omitted. Values are matched case-insensitively. - - language (string): Optional language override. Defaults to the user's preferred language. - - country (string): Optional country override. Defaults to the user's country. - """ - - kwargs.update(locals()) - - if "platform" in kwargs: - options = ["DIGITAL_TWIN", "DNAC", "MERAKI"] - assert kwargs["platform"] in options, ( - f'''"platform" cannot be "{kwargs["platform"]}", & must be set to one of: {options}''' - ) - - metadata = { - "tags": ["assistant", "configure", "chat", "completions"], - "operation": "createAdministeredAssistantChatCompletion", - } - resource = "/administered/assistant/chat/completions" - - body_params = [ - "query", - "content", - "threadId", - "platform", - "language", - "country", - ] - payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} - - if self._session._validate_kwargs: - all_params = [] + body_params - invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] - if invalid and self._session._logger: - self._session._logger.warning( - f"createAdministeredAssistantChatCompletion: ignoring unrecognized kwargs: {invalid}" - ) - - return self._session.post(metadata, resource, payload) - def getAdministeredAssistantChatThreads(self, total_pages=1, direction="next", **kwargs): """ **List all active user-wide conversation threads for the authenticated user.** @@ -302,74 +255,6 @@ def getAdministeredAssistantChatThreadMessage(self, threadId: str, messageId: st return self._session.get(metadata, resource) - def getOrganizationAssistantCapabilities(self, organizationId: str): - """ - **List the AI assistant's available capabilities and agents for this organization.** - https://developer.cisco.com/meraki/api-v1/#!get-organization-assistant-capabilities - - - organizationId (string): Organization ID - """ - - metadata = { - "tags": ["assistant", "configure", "capabilities"], - "operation": "getOrganizationAssistantCapabilities", - } - organizationId = urllib.parse.quote(str(organizationId), safe="") - resource = f"/organizations/{organizationId}/assistant/capabilities" - - return self._session.get(metadata, resource) - - def createOrganizationAssistantChatCompletion(self, organizationId: str, **kwargs): - """ - **Create a synchronous AI assistant chat completion** - https://developer.cisco.com/meraki/api-v1/#!create-organization-assistant-chat-completion - - - organizationId (string): Organization ID - - query (string): Simple text question or instruction to send to the AI assistant. Provide either 'query' for text-only requests or 'content' for multi-modal input. - - content (array): List of multi-modal content blocks. Use instead of 'query' to send text or images. Maximum 8 parts and 4 total images. Each image must be at most 10 MiB decoded. - - threadId (string): Existing persisted thread ID to continue synchronously. If omitted, the request is handled as a one-off invocation and the response will not include a reusable thread ID. - - networkId (string): Optional network ID to scope the query to a specific network. Defaults to the user's last visited network. - - platform (string): Platform identifier. Defaults to MERAKI when omitted. Values are matched case-insensitively. - - language (string): Optional language override. Defaults to the user's preferred language. - - country (string): Optional country override. Defaults to the user's country. - """ - - kwargs.update(locals()) - - if "platform" in kwargs: - options = ["DIGITAL_TWIN", "DNAC", "MERAKI"] - assert kwargs["platform"] in options, ( - f'''"platform" cannot be "{kwargs["platform"]}", & must be set to one of: {options}''' - ) - - metadata = { - "tags": ["assistant", "configure", "chat", "completions"], - "operation": "createOrganizationAssistantChatCompletion", - } - organizationId = urllib.parse.quote(str(organizationId), safe="") - resource = f"/organizations/{organizationId}/assistant/chat/completions" - - body_params = [ - "query", - "content", - "threadId", - "networkId", - "platform", - "language", - "country", - ] - payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} - - if self._session._validate_kwargs: - all_params = [] + body_params - invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] - if invalid and self._session._logger: - self._session._logger.warning( - f"createOrganizationAssistantChatCompletion: ignoring unrecognized kwargs: {invalid}" - ) - - return self._session.post(metadata, resource, payload) - def getOrganizationAssistantChatThreads(self, organizationId: str, total_pages=1, direction="next", **kwargs): """ **List all active conversation threads for the authenticated user.** diff --git a/meraki/aio/api/devices.py b/meraki/aio/api/devices.py index 8af5385..9ce0e1c 100644 --- a/meraki/aio/api/devices.py +++ b/meraki/aio/api/devices.py @@ -1002,6 +1002,90 @@ def getDeviceLiveToolsPowerUsage(self, serial: str, jobId: str): return self._session.get(metadata, resource) + def createDeviceLiveToolsReadFile(self, serial: str, **kwargs): + """ + **Enqueue a job to read a file from the device** + https://developer.cisco.com/meraki/api-v1/#!create-device-live-tools-read-file + + - serial (string): Serial + - command (string): Allowlisted command to execute. Defaults to cat when filePath is provided. + - filePath (string): Allowlisted file or directory path used by cat, grep, head, ls, and wc -l. + - clickHandler (string): Allowlisted read-only Click handler used by click_read. + - args (string): Optional Click handler parameter used by click_read. + - filter (string): Optional case-insensitive literal output filter; required for grep. + - lines (integer): Maximum lines returned by head. Defaults to 10. + - flags (string): Optional flags for grep (-i) or ls (-ltrahs). + - operation (string): Compatibility read operation. Supported values are fileRead and clickRead. + - path (string): Compatibility file path or Click handler path. + - param (string): Optional Click handler parameter for clickRead operations. + - maxBytes (integer): Optional maximum response bytes to return. + - timeoutMs (integer): Optional device request timeout in milliseconds. + - allowRestricted (boolean): Must be true when requesting a restricted path such as /storage/config. + - purpose (string): Optional caller-supplied purpose for the read request. + - callback (object): Details for the callback. Please include either an httpServerId OR url and sharedSecret + """ + + kwargs.update(locals()) + + if "command" in kwargs: + options = ["cat", "click_read", "grep", "head", "ls", "wc -l"] + assert kwargs["command"] in options, ( + f'''"command" cannot be "{kwargs["command"]}", & must be set to one of: {options}''' + ) + + metadata = { + "tags": ["devices", "liveTools", "readFile"], + "operation": "createDeviceLiveToolsReadFile", + } + serial = urllib.parse.quote(str(serial), safe="") + resource = f"/devices/{serial}/liveTools/readFile" + + body_params = [ + "command", + "filePath", + "clickHandler", + "args", + "filter", + "lines", + "flags", + "operation", + "path", + "param", + "maxBytes", + "timeoutMs", + "allowRestricted", + "purpose", + "callback", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + + if self._session._validate_kwargs: + all_params = [] + body_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning(f"createDeviceLiveToolsReadFile: ignoring unrecognized kwargs: {invalid}") + + return self._session.post(metadata, resource, payload) + + def getDeviceLiveToolsReadFile(self, serial: str, readFileId: str): + """ + **Return a read file live tool job.** + https://developer.cisco.com/meraki/api-v1/#!get-device-live-tools-read-file + + - serial (string): Serial + - readFileId (string): Read file ID + """ + + metadata = { + "tags": ["devices", "liveTools", "readFile"], + "operation": "getDeviceLiveToolsReadFile", + } + serial = urllib.parse.quote(str(serial), safe="") + readFileId = urllib.parse.quote(str(readFileId), safe="") + resource = f"/devices/{serial}/liveTools/readFile/{readFileId}" + + return self._session.get(metadata, resource) + def createDeviceLiveToolsReboot(self, serial: str, **kwargs): """ **Enqueue a job to reboot a device** diff --git a/meraki/aio/api/organizations.py b/meraki/aio/api/organizations.py index e8f2430..271756e 100644 --- a/meraki/aio/api/organizations.py +++ b/meraki/aio/api/organizations.py @@ -6313,6 +6313,714 @@ def getOrganizationDevicesCertificates(self, organizationId: str, total_pages=1, return self._session.get_pages(metadata, resource, params, total_pages, direction) + def getOrganizationDevicesCliProfiles(self, organizationId: str, total_pages=1, direction="next", **kwargs): + """ + **List CLI profiles** + https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-cli-profiles + + - organizationId (string): Organization ID + - total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages + - direction (string): direction to paginate, either "next" (default) or "prev" page + - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 100. Default is 50. + - startingAfter (string): 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. + - endingBefore (string): 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. + - profileIds (array): Optional parameter to filter CLI profiles by ID. This filter uses multiple exact matches. Maximum 100 profile IDs. + - name (string): Optional parameter to filter CLI profiles by name. Performs a case-insensitive partial match. + - networkIds (array): Optional parameter to filter CLI profiles by network ID. This filter uses multiple exact matches. Maximum 100 network IDs. + - sortBy (string): Field to sort results by. Defaults to 'name'. + - sortOrder (string): Sort order. Defaults to 'asc'. + """ + + kwargs.update(locals()) + + if "sortBy" in kwargs: + options = ["name"] + assert kwargs["sortBy"] in options, ( + f'''"sortBy" cannot be "{kwargs["sortBy"]}", & must be set to one of: {options}''' + ) + if "sortOrder" in kwargs: + options = ["asc", "desc"] + assert kwargs["sortOrder"] in options, ( + f'''"sortOrder" cannot be "{kwargs["sortOrder"]}", & must be set to one of: {options}''' + ) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles"], + "operation": "getOrganizationDevicesCliProfiles", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles" + + query_params = [ + "perPage", + "startingAfter", + "endingBefore", + "profileIds", + "name", + "networkIds", + "sortBy", + "sortOrder", + ] + params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params} + + array_params = [ + "profileIds", + "networkIds", + ] + for k, v in kwargs.items(): + if k.strip() in array_params: + params[f"{k.strip()}[]"] = kwargs[f"{k}"] + params.pop(k.strip()) + + if self._session._validate_kwargs: + all_params = query_params + array_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning(f"getOrganizationDevicesCliProfiles: ignoring unrecognized kwargs: {invalid}") + + return self._session.get_pages(metadata, resource, params, total_pages, direction) + + def createOrganizationDevicesCliProfile(self, organizationId: str, name: str, **kwargs): + """ + **Create a CLI profile** + https://developer.cisco.com/meraki/api-v1/#!create-organization-devices-cli-profile + + - organizationId (string): Organization ID + - name (string): The name of the CLI profile + - cliTemplate (string): CLI template + - removalCliTemplate (string): CLI template used to remove the profile configuration + - description (string): The description of the CLI profile + - scheduledAt (string): Date time to deploy the profile at, or null for immediate deployment + - variables (array): CLI profile template variables. Maximum 100 variables per profile. Each variable supports up to 3 validation rules. + """ + + kwargs.update(locals()) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles"], + "operation": "createOrganizationDevicesCliProfile", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles" + + body_params = [ + "name", + "cliTemplate", + "removalCliTemplate", + "description", + "scheduledAt", + "variables", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + + if self._session._validate_kwargs: + all_params = [] + body_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning(f"createOrganizationDevicesCliProfile: ignoring unrecognized kwargs: {invalid}") + + return self._session.post(metadata, resource, payload) + + def getOrganizationDevicesCliProfilesNetworksAssignments(self, organizationId: str, **kwargs): + """ + **Fetch the CLI profile network assignments in the organization** + https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-cli-profiles-networks-assignments + + - organizationId (string): Organization ID + - profileIds (array): Optional parameter to filter the results by profile IDs + - networkIds (array): Optional parameter to filter the results by network IDs + """ + + kwargs.update(locals()) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "networks", "assignments"], + "operation": "getOrganizationDevicesCliProfilesNetworksAssignments", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/networks/assignments" + + query_params = [ + "profileIds", + "networkIds", + ] + params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params} + + array_params = [ + "profileIds", + "networkIds", + ] + for k, v in kwargs.items(): + if k.strip() in array_params: + params[f"{k.strip()}[]"] = kwargs[f"{k}"] + params.pop(k.strip()) + + if self._session._validate_kwargs: + all_params = query_params + array_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"getOrganizationDevicesCliProfilesNetworksAssignments: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.get(metadata, resource, params) + + def createOrganizationDevicesCliProfilesNetworksAssignmentsBatchCreate(self, organizationId: str, items: list, **kwargs): + """ + **Assign networks to CLI profiles in an organization in batch.** + https://developer.cisco.com/meraki/api-v1/#!create-organization-devices-cli-profiles-networks-assignments-batch-create + + - organizationId (string): Organization ID + - items (array): List containing the network ID, device tag and Profile ID + """ + + kwargs = locals() + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "networks", "assignments", "batchCreate"], + "operation": "createOrganizationDevicesCliProfilesNetworksAssignmentsBatchCreate", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/networks/assignments/batchCreate" + + body_params = [ + "items", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + + if self._session._validate_kwargs: + all_params = [] + body_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"createOrganizationDevicesCliProfilesNetworksAssignmentsBatchCreate: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.post(metadata, resource, payload) + + def createOrganizationDevicesCliProfilesNetworksAssignmentsBulkDelete(self, organizationId: str, items: list, **kwargs): + """ + **Unassign networks from CLI profiles in an organization in batch.** + https://developer.cisco.com/meraki/api-v1/#!create-organization-devices-cli-profiles-networks-assignments-bulk-delete + + - organizationId (string): Organization ID + - items (array): List containing the network ID, device tag and Profile ID + """ + + kwargs = locals() + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "networks", "assignments", "bulkDelete"], + "operation": "createOrganizationDevicesCliProfilesNetworksAssignmentsBulkDelete", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/networks/assignments/bulkDelete" + + body_params = [ + "items", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + + if self._session._validate_kwargs: + all_params = [] + body_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"createOrganizationDevicesCliProfilesNetworksAssignmentsBulkDelete: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.post(metadata, resource, payload) + + def getOrganizationDevicesCliProfilesOverviews(self, organizationId: str, total_pages=1, direction="next", **kwargs): + """ + **List CLI profile overviews for an organization** + https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-cli-profiles-overviews + + - organizationId (string): Organization ID + - total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages + - direction (string): direction to paginate, either "next" (default) or "prev" page + - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 100. Default is 50. + - startingAfter (string): 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. + - endingBefore (string): 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. + - profileIds (array): Optional parameter to filter CLI profiles by ID. This filter uses multiple exact matches. Maximum 100 profile IDs. + - search (string): Optional parameter to filter CLI profiles by name or assigned device tag. Case insensitive substring match. + - hasDraft (boolean): When true, only profiles with unpublished draft changes are returned. Omit or set false to return all profiles. + - sortBy (string): Column to sort results by. Defaults to 'name'. + - sortOrder (string): Sort direction. One of 'asc' or 'desc'. Defaults to 'asc'. + """ + + kwargs.update(locals()) + + if "sortBy" in kwargs: + options = ["appliedToNetworks", "devicesAssigned", "name", "status", "variables"] + assert kwargs["sortBy"] in options, ( + f'''"sortBy" cannot be "{kwargs["sortBy"]}", & must be set to one of: {options}''' + ) + if "sortOrder" in kwargs: + options = ["asc", "desc"] + assert kwargs["sortOrder"] in options, ( + f'''"sortOrder" cannot be "{kwargs["sortOrder"]}", & must be set to one of: {options}''' + ) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "overviews"], + "operation": "getOrganizationDevicesCliProfilesOverviews", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/overviews" + + query_params = [ + "perPage", + "startingAfter", + "endingBefore", + "profileIds", + "search", + "hasDraft", + "sortBy", + "sortOrder", + ] + params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params} + + array_params = [ + "profileIds", + ] + for k, v in kwargs.items(): + if k.strip() in array_params: + params[f"{k.strip()}[]"] = kwargs[f"{k}"] + params.pop(k.strip()) + + if self._session._validate_kwargs: + all_params = query_params + array_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"getOrganizationDevicesCliProfilesOverviews: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.get_pages(metadata, resource, params, total_pages, direction) + + def getOrganizationDevicesCliProfilesProvisioningHistory( + self, organizationId: str, total_pages=1, direction="next", **kwargs + ): + """ + **List terminal command-line interface (CLI) profile provisioning history for devices in an organization** + https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-cli-profiles-provisioning-history + + - organizationId (string): Organization ID + - total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages + - direction (string): direction to paginate, either "next" (default) or "prev" page + - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 100. Default is 10. + - startingAfter (string): 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. + - endingBefore (string): 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. + - serials (array): Optional parameter to filter by one device serial number using an exact match. Rather than deviceSerials[], this parameter intentionally follows the standard serials[] index-filter convention and matches the nested device.serial identity in each response item. If omitted, the response contains provisioning history events for all devices in the organization. An unknown serial or a serial outside the organization returns 200 OK with an empty items array; 404 indicates that the caller cannot access the organization-scoped operation. Maximum 1 serial. + """ + + kwargs.update(locals()) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "provisioning", "history"], + "operation": "getOrganizationDevicesCliProfilesProvisioningHistory", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/provisioning/history" + + query_params = [ + "perPage", + "startingAfter", + "endingBefore", + "serials", + ] + params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params} + + array_params = [ + "serials", + ] + for k, v in kwargs.items(): + if k.strip() in array_params: + params[f"{k.strip()}[]"] = kwargs[f"{k}"] + params.pop(k.strip()) + + if self._session._validate_kwargs: + all_params = query_params + array_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"getOrganizationDevicesCliProfilesProvisioningHistory: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.get_pages(metadata, resource, params, total_pages, direction) + + def getOrganizationDevicesCliProfilesProvisioningStatusesByDevice( + self, organizationId: str, total_pages=1, direction="next", **kwargs + ): + """ + **List the provisioning statuses of devices for CLI profiles in an organization** + https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-cli-profiles-provisioning-statuses-by-device + + - organizationId (string): Organization ID + - total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages + - direction (string): direction to paginate, either "next" (default) or "prev" page + - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 100. Default is 50. + - startingAfter (string): 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. + - endingBefore (string): 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. + - profileIds (array): Optional parameter to filter by CLI profile IDs. This filter uses multiple exact matches. Maximum 100 profile IDs. + - networkIds (array): Optional parameter to filter by network IDs. This filter uses multiple exact matches. Maximum 100 network IDs. + - serials (array): Optional parameter to filter by device serial numbers. This filter uses multiple exact matches. Maximum 100 serials. + - statuses (array): Optional parameter to filter by provisioning statuses. This filter uses multiple exact matches. Maximum one value per supported status. + - name (string): Optional parameter to filter by device display name. If a device name is blank, its serial is used for matching. Performs a case-insensitive partial match. + - search (string): Optional parameter to search by device display name, serial, provisioning status, network name, or updatedAt timestamp. Performs a case-insensitive partial match. + - sortBy (string): Field to sort results by. Defaults to 'name'. + - sortOrder (string): Sort order. Defaults to 'asc'. + """ + + kwargs.update(locals()) + + if "sortBy" in kwargs: + options = ["name", "network", "serial", "status", "updatedAt"] + assert kwargs["sortBy"] in options, ( + f'''"sortBy" cannot be "{kwargs["sortBy"]}", & must be set to one of: {options}''' + ) + if "sortOrder" in kwargs: + options = ["asc", "desc"] + assert kwargs["sortOrder"] in options, ( + f'''"sortOrder" cannot be "{kwargs["sortOrder"]}", & must be set to one of: {options}''' + ) + + metadata = { + "tags": ["organizations", "monitor", "devices", "cli", "profiles", "provisioning", "statuses", "byDevice"], + "operation": "getOrganizationDevicesCliProfilesProvisioningStatusesByDevice", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/provisioning/statuses/byDevice" + + query_params = [ + "perPage", + "startingAfter", + "endingBefore", + "profileIds", + "networkIds", + "serials", + "statuses", + "name", + "search", + "sortBy", + "sortOrder", + ] + params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params} + + array_params = [ + "profileIds", + "networkIds", + "serials", + "statuses", + ] + for k, v in kwargs.items(): + if k.strip() in array_params: + params[f"{k.strip()}[]"] = kwargs[f"{k}"] + params.pop(k.strip()) + + if self._session._validate_kwargs: + all_params = query_params + array_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"getOrganizationDevicesCliProfilesProvisioningStatusesByDevice: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.get_pages(metadata, resource, params, total_pages, direction) + + def getOrganizationDevicesCliProfilesVariablesAssignments(self, organizationId: str, **kwargs): + """ + **List CLI profile variable value assignments for devices in an organization** + https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-cli-profiles-variables-assignments + + - organizationId (string): Organization ID + - profileIds (array): Filter by CLI profile IDs + - serials (array): Filter by device serials using multiple exact matches (OR). Different filters combine with AND. A switch stack matches any member serial and returns one item with all members. + - networkIds (array): Filter by network IDs + - deviceTags (array): Filter by device tags used in CLI profile assignments + """ + + kwargs.update(locals()) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "variables", "assignments"], + "operation": "getOrganizationDevicesCliProfilesVariablesAssignments", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/variables/assignments" + + query_params = [ + "profileIds", + "serials", + "networkIds", + "deviceTags", + ] + params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params} + + array_params = [ + "profileIds", + "serials", + "networkIds", + "deviceTags", + ] + for k, v in kwargs.items(): + if k.strip() in array_params: + params[f"{k.strip()}[]"] = kwargs[f"{k}"] + params.pop(k.strip()) + + if self._session._validate_kwargs: + all_params = query_params + array_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"getOrganizationDevicesCliProfilesVariablesAssignments: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.get(metadata, resource, params) + + def batchOrganizationDevicesCliProfilesVariablesAssign(self, organizationId: str, items: list, **kwargs): + """ + **Synchronously assign or clear CLI profile variable values for devices in an organization** + https://developer.cisco.com/meraki/api-v1/#!batch-organization-devices-cli-profiles-variables-assign + + - organizationId (string): Organization ID + - items (array): Variable assignment operations to apply. Maximum 100 items. + """ + + kwargs = locals() + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "variables"], + "operation": "batchOrganizationDevicesCliProfilesVariablesAssign", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/variables/batchAssign" + + body_params = [ + "items", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + + if self._session._validate_kwargs: + all_params = [] + body_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"batchOrganizationDevicesCliProfilesVariablesAssign: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.post(metadata, resource, payload) + + def getOrganizationDevicesCliProfilesVersions(self, organizationId: str, total_pages=1, direction="next", **kwargs): + """ + **Returns published CLI profile versions, ordered by version number from highest to lowest** + https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-cli-profiles-versions + + - organizationId (string): Organization ID + - total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages + - direction (string): direction to paginate, either "next" (default) or "prev" page + - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 20. Default is 10. + - startingAfter (string): 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. + - endingBefore (string): 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. + - sortOrder (string): Sorted order of entries. Order options are 'descending'. Default is 'descending'. + - profileIds (array): Optional parameter to filter by exact CLI profile IDs. Maximum 100 IDs. + - versionIds (array): Optional parameter to filter by exact CLI profile version IDs. Maximum 100 IDs. + """ + + kwargs.update(locals()) + + if "sortOrder" in kwargs: + options = ["descending"] + assert kwargs["sortOrder"] in options, ( + f'''"sortOrder" cannot be "{kwargs["sortOrder"]}", & must be set to one of: {options}''' + ) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "versions"], + "operation": "getOrganizationDevicesCliProfilesVersions", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/versions" + + query_params = [ + "perPage", + "startingAfter", + "endingBefore", + "sortOrder", + "profileIds", + "versionIds", + ] + params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params} + + array_params = [ + "profileIds", + "versionIds", + ] + for k, v in kwargs.items(): + if k.strip() in array_params: + params[f"{k.strip()}[]"] = kwargs[f"{k}"] + params.pop(k.strip()) + + if self._session._validate_kwargs: + all_params = query_params + array_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"getOrganizationDevicesCliProfilesVersions: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.get_pages(metadata, resource, params, total_pages, direction) + + def updateOrganizationDevicesCliProfilesVersion(self, organizationId: str, versionId: str, **kwargs): + """ + **Favorite or unfavorite a published CLI profile version** + https://developer.cisco.com/meraki/api-v1/#!update-organization-devices-cli-profiles-version + + - organizationId (string): Organization ID + - versionId (string): Version ID + - favorite (object): Favorite state for the CLI profile version + """ + + kwargs.update(locals()) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "versions"], + "operation": "updateOrganizationDevicesCliProfilesVersion", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + versionId = urllib.parse.quote(str(versionId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/versions/{versionId}" + + body_params = [ + "favorite", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + + if self._session._validate_kwargs: + all_params = [] + body_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"updateOrganizationDevicesCliProfilesVersion: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.put(metadata, resource, payload) + + def updateOrganizationDevicesCliProfile(self, organizationId: str, cliProfileId: str, name: str, **kwargs): + """ + **Update a CLI profile** + https://developer.cisco.com/meraki/api-v1/#!update-organization-devices-cli-profile + + - organizationId (string): Organization ID + - cliProfileId (string): Cli profile ID + - name (string): The name of the CLI profile + - description (string): The description of the CLI profile + - cliTemplate (string): CLI template + - removalCliTemplate (string): CLI template used to remove the profile configuration + - scheduledAt (string): Date time to deploy the profile at, or null for immediate deployment + - variables (array): CLI profile template variables. Maximum 100 variables per profile. Each variable supports up to 3 validation rules. + """ + + kwargs.update(locals()) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles"], + "operation": "updateOrganizationDevicesCliProfile", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + cliProfileId = urllib.parse.quote(str(cliProfileId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/{cliProfileId}" + + body_params = [ + "name", + "description", + "cliTemplate", + "removalCliTemplate", + "scheduledAt", + "variables", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + + if self._session._validate_kwargs: + all_params = [] + body_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning(f"updateOrganizationDevicesCliProfile: ignoring unrecognized kwargs: {invalid}") + + return self._session.put(metadata, resource, payload) + + def deleteOrganizationDevicesCliProfile(self, organizationId: str, cliProfileId: str, **kwargs): + """ + **Delete a CLI profile** + https://developer.cisco.com/meraki/api-v1/#!delete-organization-devices-cli-profile + + - organizationId (string): Organization ID + - cliProfileId (string): Cli profile ID + - force (boolean): If true, delete the profile even when its device configuration could not be removed. Residual device configuration must be removed manually. + """ + + kwargs.update(locals()) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles"], + "operation": "deleteOrganizationDevicesCliProfile", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + cliProfileId = urllib.parse.quote(str(cliProfileId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/{cliProfileId}" + + query_params = [ + "force", + ] + params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params} + + if self._session._validate_kwargs: + all_params = query_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning(f"deleteOrganizationDevicesCliProfile: ignoring unrecognized kwargs: {invalid}") + + return self._session.delete(metadata, resource, params) + + def discardOrganizationDevicesCliProfileDraft(self, organizationId: str, cliProfileId: str): + """ + **Synchronously discard the current CLI profile draft** + https://developer.cisco.com/meraki/api-v1/#!discard-organization-devices-cli-profile-draft + + - organizationId (string): Organization ID + - cliProfileId (string): Cli profile ID + """ + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles"], + "operation": "discardOrganizationDevicesCliProfileDraft", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + cliProfileId = urllib.parse.quote(str(cliProfileId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/{cliProfileId}/draft" + + return self._session.delete(metadata, resource) + + def publishOrganizationDevicesCliProfileDraft(self, organizationId: str, cliProfileId: str): + """ + **Synchronously publish the current CLI profile draft** + https://developer.cisco.com/meraki/api-v1/#!publish-organization-devices-cli-profile-draft + + - organizationId (string): Organization ID + - cliProfileId (string): Cli profile ID + """ + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "draft"], + "operation": "publishOrganizationDevicesCliProfileDraft", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + cliProfileId = urllib.parse.quote(str(cliProfileId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/{cliProfileId}/draft/publish" + + return self._session.post(metadata, resource) + def createOrganizationDevicesControllerMigration(self, organizationId: str, serials: list, target: str, **kwargs): """ **Migrate devices to another controller or management mode** @@ -10021,7 +10729,7 @@ def onboardAutovpnSites(self, organizationId: str, **kwargs): https://developer.cisco.com/meraki/api-v1/#!onboard-autovpn-sites - organizationId (string): Organization ID - - spokes (array): Optional spoke networks and their desired MCN regions. Omit this field to perform hub-only onboarding. + - spokes (array): Optional spoke networks and their desired MCF regions. Omit this field to perform hub-only onboarding. """ kwargs.update(locals()) @@ -10279,8 +10987,10 @@ def listEventLogs(self, organizationId: str, total_pages=1, direction="next", ** - regionId (array): Restricts results to exact Multicloud Fabric region UUIDs; repeat to OR values. - regionName (array): Restricts results to exact, case-sensitive provider region names; repeat to OR values. - - userId (array): Restricts results to exact opaque identity-provider subject IDs; repeat to OR values. - - userEmail (array): Restricts results to exact, case-sensitive actor email snapshots; repeat to OR values. + - userId (array): Restricts results to exact, case-sensitive recorded actor IDs. Repeat to + match any supplied ID; IDs remain strings, including leading zeros. + Use values from the `user` facet. Omission adds no user-ID restriction; + events without a recorded ID do not match a supplied ID. - groupId (array): Restricts results to exact event-source-supplied logical-action correlation IDs; repeat to OR values. - search (string): Case-insensitive free-text search across event details. The input is @@ -10317,7 +11027,6 @@ def listEventLogs(self, organizationId: str, total_pages=1, direction="next", ** "regionId", "regionName", "userId", - "userEmail", "groupId", "search", "perPage", @@ -10340,7 +11049,6 @@ def listEventLogs(self, organizationId: str, total_pages=1, direction="next", ** "regionId", "regionName", "userId", - "userEmail", "groupId", ] for k, v in kwargs.items(): @@ -10430,8 +11138,10 @@ def getEventLogFacets(self, organizationId: str, **kwargs): - regionId (array): Restricts results to exact Multicloud Fabric region UUIDs; repeat to OR values. - regionName (array): Restricts results to exact, case-sensitive provider region names; repeat to OR values. - - userId (array): Restricts results to exact opaque identity-provider subject IDs; repeat to OR values. - - userEmail (array): Restricts results to exact, case-sensitive actor email snapshots; repeat to OR values. + - userId (array): Restricts results to exact, case-sensitive recorded actor IDs. Repeat to + match any supplied ID; IDs remain strings, including leading zeros. + Use values from the `user` facet. Omission adds no user-ID restriction; + events without a recorded ID do not match a supplied ID. - groupId (array): Restricts results to exact event-source-supplied logical-action correlation IDs; repeat to OR values. - search (string): Case-insensitive free-text search across event details. The input is @@ -10466,7 +11176,6 @@ def getEventLogFacets(self, organizationId: str, **kwargs): "regionId", "regionName", "userId", - "userEmail", "groupId", "search", ] @@ -10487,7 +11196,6 @@ def getEventLogFacets(self, organizationId: str, **kwargs): "regionId", "regionName", "userId", - "userEmail", "groupId", ] for k, v in kwargs.items(): @@ -10576,8 +11284,10 @@ def getEventLogHistogram(self, organizationId: str, **kwargs): - regionId (array): Restricts results to exact Multicloud Fabric region UUIDs; repeat to OR values. - regionName (array): Restricts results to exact, case-sensitive provider region names; repeat to OR values. - - userId (array): Restricts results to exact opaque identity-provider subject IDs; repeat to OR values. - - userEmail (array): Restricts results to exact, case-sensitive actor email snapshots; repeat to OR values. + - userId (array): Restricts results to exact, case-sensitive recorded actor IDs. Repeat to + match any supplied ID; IDs remain strings, including leading zeros. + Use values from the `user` facet. Omission adds no user-ID restriction; + events without a recorded ID do not match a supplied ID. - groupId (array): Restricts results to exact event-source-supplied logical-action correlation IDs; repeat to OR values. - search (string): Case-insensitive free-text search across event details. The input is @@ -10612,7 +11322,6 @@ def getEventLogHistogram(self, organizationId: str, **kwargs): "regionId", "regionName", "userId", - "userEmail", "groupId", "search", ] @@ -10633,7 +11342,6 @@ def getEventLogHistogram(self, organizationId: str, **kwargs): "regionId", "regionName", "userId", - "userEmail", "groupId", ] for k, v in kwargs.items(): diff --git a/meraki/aio/api/switch.py b/meraki/aio/api/switch.py index 5f6e1dd..9f18000 100644 --- a/meraki/aio/api/switch.py +++ b/meraki/aio/api/switch.py @@ -919,6 +919,7 @@ def createNetworkSwitchAccessPolicy( - radiusGroupAttribute (string): Acceptable values are `""` for None, or `"11"` for Group Policies ACL - hostMode (string): Choose the Host Mode for the access policy. - accessPolicyType (string): Access Type of the policy. Automatically 'Hybrid authentication' when hostMode is 'Multi-Domain'. + - authenticationMethod (string): Authentication method of the policy. - increaseAccessSpeed (boolean): Enabling this option will make switches execute 802.1X and MAC-bypass authentication simultaneously so that clients authenticate faster. Only required when accessPolicyType is 'Hybrid Authentication. - guestVlanId (integer): ID for the guest VLAN allow unauthorized devices access to limited network resources - dot1x (object): 802.1x Settings @@ -941,6 +942,11 @@ def createNetworkSwitchAccessPolicy( assert kwargs["accessPolicyType"] in options, ( f'''"accessPolicyType" cannot be "{kwargs["accessPolicyType"]}", & must be set to one of: {options}''' ) + if "authenticationMethod" in kwargs and kwargs["authenticationMethod"] is not None: + options = ["Meraki authentication", "NAC", "my RADIUS server"] + assert kwargs["authenticationMethod"] in options, ( + f'''"authenticationMethod" cannot be "{kwargs["authenticationMethod"]}", & must be set to one of: {options}''' + ) metadata = { "tags": ["switch", "configure", "accessPolicies"], @@ -961,6 +967,7 @@ def createNetworkSwitchAccessPolicy( "radiusGroupAttribute", "hostMode", "accessPolicyType", + "authenticationMethod", "increaseAccessSpeed", "guestVlanId", "dot1x", @@ -1017,6 +1024,7 @@ def updateNetworkSwitchAccessPolicy(self, networkId: str, accessPolicyNumber: st - radiusGroupAttribute (string): Acceptable values are `""` for None, or `"11"` for Group Policies ACL - hostMode (string): Choose the Host Mode for the access policy. - accessPolicyType (string): Access Type of the policy. Automatically 'Hybrid authentication' when hostMode is 'Multi-Domain'. + - authenticationMethod (string): Authentication method of the policy. - increaseAccessSpeed (boolean): Enabling this option will make switches execute 802.1X and MAC-bypass authentication simultaneously so that clients authenticate faster. Only required when accessPolicyType is 'Hybrid Authentication. - guestVlanId (integer): ID for the guest VLAN allow unauthorized devices access to limited network resources - dot1x (object): 802.1x Settings @@ -1039,6 +1047,11 @@ def updateNetworkSwitchAccessPolicy(self, networkId: str, accessPolicyNumber: st assert kwargs["accessPolicyType"] in options, ( f'''"accessPolicyType" cannot be "{kwargs["accessPolicyType"]}", & must be set to one of: {options}''' ) + if "authenticationMethod" in kwargs and kwargs["authenticationMethod"] is not None: + options = ["Meraki authentication", "NAC", "my RADIUS server"] + assert kwargs["authenticationMethod"] in options, ( + f'''"authenticationMethod" cannot be "{kwargs["authenticationMethod"]}", & must be set to one of: {options}''' + ) metadata = { "tags": ["switch", "configure", "accessPolicies"], @@ -1060,6 +1073,7 @@ def updateNetworkSwitchAccessPolicy(self, networkId: str, accessPolicyNumber: st "radiusGroupAttribute", "hostMode", "accessPolicyType", + "authenticationMethod", "increaseAccessSpeed", "guestVlanId", "dot1x", diff --git a/meraki/aio/api/users.py b/meraki/aio/api/users.py index 9c4babc..d159955 100644 --- a/meraki/aio/api/users.py +++ b/meraki/aio/api/users.py @@ -535,6 +535,7 @@ def createOrganizationIamUsersIdpsUser(self, organizationId: str, accountType: s - email (string): An email address identified with the user. - password (string): The password for the user account. - sendPassword (boolean): If true, sends an email with the password to the user. + - attributes (object): Profile attributes for an 802.1X user. """ kwargs.update(locals()) @@ -558,6 +559,7 @@ def createOrganizationIamUsersIdpsUser(self, organizationId: str, accountType: s "password", "sendPassword", "accountType", + "attributes", ] payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} diff --git a/meraki/aio/api/wireless.py b/meraki/aio/api/wireless.py index e06e6fd..2b72bb0 100644 --- a/meraki/aio/api/wireless.py +++ b/meraki/aio/api/wireless.py @@ -4407,8 +4407,8 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetwork( - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -4420,7 +4420,7 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetwork( kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "channelAvailability", "byNetwork"], + "tags": ["wireless", "monitor", "experience", "channelAvailability", "byNetwork"], "operation": "getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetwork", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -4473,8 +4473,8 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByBand - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -4486,7 +4486,7 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByBand kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "channelAvailability", "byNetwork", "byBand"], + "tags": ["wireless", "monitor", "experience", "channelAvailability", "byNetwork", "byBand"], "operation": "getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByBand", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -4539,12 +4539,12 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClie - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. - - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 10000. Default is 1000. + - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 10000. Default is 10000. - startingAfter (string): 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. - endingBefore (string): 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. """ @@ -4552,7 +4552,7 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClie kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "channelAvailability", "byNetwork", "byClient"], + "tags": ["wireless", "monitor", "experience", "channelAvailability", "byNetwork", "byClient"], "operation": "getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClient", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -4605,8 +4605,8 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClie - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -4618,7 +4618,7 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClie kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "channelAvailability", "byNetwork", "byClientOs"], + "tags": ["wireless", "monitor", "experience", "channelAvailability", "byNetwork", "byClientOs"], "operation": "getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClientOs", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -4671,8 +4671,8 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClie - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -4684,7 +4684,7 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClie kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "channelAvailability", "byNetwork", "byClientType"], + "tags": ["wireless", "monitor", "experience", "channelAvailability", "byNetwork", "byClientType"], "operation": "getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClientType", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -4737,8 +4737,8 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByDevi - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -4750,7 +4750,7 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByDevi kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "channelAvailability", "byNetwork", "byDevice"], + "tags": ["wireless", "monitor", "experience", "channelAvailability", "byNetwork", "byDevice"], "operation": "getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByDevice", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -4803,8 +4803,8 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByInte - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 14 days. The default is 2 hours. If interval is provided, the timespan will be autocalculated. @@ -4871,8 +4871,8 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkBySsid - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -4884,7 +4884,7 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkBySsid kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "channelAvailability", "byNetwork", "bySsid"], + "tags": ["wireless", "monitor", "experience", "channelAvailability", "byNetwork", "bySsid"], "operation": "getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkBySsid", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -4937,8 +4937,8 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityInsightsByNetwo - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - insights (string): Source used to compute insights. Defaults to dashboard. - contributor (string): Contributor for which to retrieve insights. If not specified, returns overall insights. - subContributor (string): Sub-contributor for which to retrieve insights. If not specified, returns all sub contributor insights. @@ -4964,7 +4964,7 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityInsightsByNetwo ) metadata = { - "tags": ["wireless", "configure", "experience", "channelAvailability", "insights", "byNetwork"], + "tags": ["wireless", "monitor", "experience", "channelAvailability", "insights", "byNetwork"], "operation": "getOrganizationAssuranceWirelessExperienceChannelAvailabilityInsightsByNetwork", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5115,7 +5115,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageByNetwork( kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "coverage", "byNetwork"], + "tags": ["wireless", "monitor", "experience", "coverage", "byNetwork"], "operation": "getOrganizationAssuranceWirelessExperienceCoverageByNetwork", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5181,7 +5181,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageByNetworkByBand( kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "coverage", "byNetwork", "byBand"], + "tags": ["wireless", "monitor", "experience", "coverage", "byNetwork", "byBand"], "operation": "getOrganizationAssuranceWirelessExperienceCoverageByNetworkByBand", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5239,7 +5239,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageByNetworkByClient( - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. - - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 10000. Default is 1000. + - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 10000. Default is 10000. - startingAfter (string): 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. - endingBefore (string): 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. """ @@ -5247,7 +5247,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageByNetworkByClient( kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "coverage", "byNetwork", "byClient"], + "tags": ["wireless", "monitor", "experience", "coverage", "byNetwork", "byClient"], "operation": "getOrganizationAssuranceWirelessExperienceCoverageByNetworkByClient", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5313,7 +5313,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageByNetworkByClientOs( kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "coverage", "byNetwork", "byClientOs"], + "tags": ["wireless", "monitor", "experience", "coverage", "byNetwork", "byClientOs"], "operation": "getOrganizationAssuranceWirelessExperienceCoverageByNetworkByClientOs", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5379,7 +5379,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageByNetworkByClientType( kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "coverage", "byNetwork", "byClientType"], + "tags": ["wireless", "monitor", "experience", "coverage", "byNetwork", "byClientType"], "operation": "getOrganizationAssuranceWirelessExperienceCoverageByNetworkByClientType", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5445,7 +5445,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageByNetworkByDevice( kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "coverage", "byNetwork", "byDevice"], + "tags": ["wireless", "monitor", "experience", "coverage", "byNetwork", "byDevice"], "operation": "getOrganizationAssuranceWirelessExperienceCoverageByNetworkByDevice", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5579,7 +5579,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageByNetworkBySsid( kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "coverage", "byNetwork", "bySsid"], + "tags": ["wireless", "monitor", "experience", "coverage", "byNetwork", "bySsid"], "operation": "getOrganizationAssuranceWirelessExperienceCoverageByNetworkBySsid", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5659,7 +5659,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageInsightsByNetwork( ) metadata = { - "tags": ["wireless", "configure", "experience", "coverage", "insights", "byNetwork"], + "tags": ["wireless", "monitor", "experience", "coverage", "insights", "byNetwork"], "operation": "getOrganizationAssuranceWirelessExperienceCoverageInsightsByNetwork", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5968,7 +5968,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByBa - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -5980,7 +5980,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByBa kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "successfulConnections", "byNetwork", "byBand"], + "tags": ["wireless", "monitor", "experience", "successfulConnections", "byNetwork", "byBand"], "operation": "getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByBand", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -6034,7 +6034,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByCl - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -6046,7 +6046,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByCl kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "successfulConnections", "byNetwork", "byClient"], + "tags": ["wireless", "monitor", "experience", "successfulConnections", "byNetwork", "byClient"], "operation": "getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByClient", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -6100,7 +6100,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByCl - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -6112,7 +6112,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByCl kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "successfulConnections", "byNetwork", "byClientOs"], + "tags": ["wireless", "monitor", "experience", "successfulConnections", "byNetwork", "byClientOs"], "operation": "getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByClientOs", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -6166,7 +6166,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByCl - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -6178,7 +6178,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByCl kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "successfulConnections", "byNetwork", "byClientType"], + "tags": ["wireless", "monitor", "experience", "successfulConnections", "byNetwork", "byClientType"], "operation": "getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByClientType", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -6234,7 +6234,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByDe - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -6246,7 +6246,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByDe kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "successfulConnections", "byNetwork", "byDevice"], + "tags": ["wireless", "monitor", "experience", "successfulConnections", "byNetwork", "byDevice"], "operation": "getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByDevice", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -6291,7 +6291,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByIn self, organizationId: str, total_pages=1, direction="next", **kwargs ): """ - **Time-series of wireless connection successes and failures by network.** + **Returns successful and failed wireless connection counts by network for each time interval** https://developer.cisco.com/meraki/api-v1/#!get-organization-assurance-wireless-experience-successful-connections-by-network-by-interval - organizationId (string): Organization ID @@ -6300,7 +6300,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByIn - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 14 days. The default is 2 hours. If interval is provided, the timespan will be autocalculated. @@ -6368,7 +6368,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkBySe - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -6380,7 +6380,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkBySe kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "successfulConnections", "byNetwork", "byServer"], + "tags": ["wireless", "monitor", "experience", "successfulConnections", "byNetwork", "byServer"], "operation": "getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByServer", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -6434,7 +6434,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkBySs - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -6446,7 +6446,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkBySs kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "successfulConnections", "byNetwork", "bySsid"], + "tags": ["wireless", "monitor", "experience", "successfulConnections", "byNetwork", "bySsid"], "operation": "getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkBySsid", } organizationId = urllib.parse.quote(str(organizationId), safe="") diff --git a/meraki/api/appliance.py b/meraki/api/appliance.py index 0bb5001..e9a0173 100644 --- a/meraki/api/appliance.py +++ b/meraki/api/appliance.py @@ -6321,7 +6321,7 @@ def getOrganizationApplianceVpnSiteToSiteHubsVrfs(self, organizationId: str, tot - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 500. Default is 50. - startingAfter (string): 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. - endingBefore (string): 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. - - networkIds (array): Optional parameter to filter source-to-hub mappings by source network IDs. + - networkIds (array): Optional parameter to filter source-to-hub mappings by source network IDs. Maximum 100 network IDs. """ kwargs.update(locals()) diff --git a/meraki/api/assistant.py b/meraki/api/assistant.py index b005c65..3b7d891 100644 --- a/meraki/api/assistant.py +++ b/meraki/api/assistant.py @@ -6,53 +6,6 @@ def __init__(self, session): super().__init__() self._session = session - def createAdministeredAssistantChatCompletion(self, **kwargs): - """ - **Create a synchronous AI assistant chat completion for user-wide threads** - https://developer.cisco.com/meraki/api-v1/#!create-administered-assistant-chat-completion - - - query (string): Simple text question or instruction to send to the AI assistant. Provide either 'query' for text-only requests or 'content' for multi-modal input. - - content (array): List of multi-modal content blocks. Use instead of 'query' to send text or images. Maximum 8 parts and 4 total images. Each image must be at most 10 MiB decoded. - - threadId (string): Existing persisted thread ID to continue synchronously. If omitted, the request is handled as a one-off invocation and the response will not include a reusable thread ID. - - platform (string): Platform identifier. Defaults to MERAKI when omitted. Values are matched case-insensitively. - - language (string): Optional language override. Defaults to the user's preferred language. - - country (string): Optional country override. Defaults to the user's country. - """ - - kwargs.update(locals()) - - if "platform" in kwargs: - options = ["DIGITAL_TWIN", "DNAC", "MERAKI"] - assert kwargs["platform"] in options, ( - f'''"platform" cannot be "{kwargs["platform"]}", & must be set to one of: {options}''' - ) - - metadata = { - "tags": ["assistant", "configure", "chat", "completions"], - "operation": "createAdministeredAssistantChatCompletion", - } - resource = "/administered/assistant/chat/completions" - - body_params = [ - "query", - "content", - "threadId", - "platform", - "language", - "country", - ] - payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} - - if self._session._validate_kwargs: - all_params = [] + body_params - invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] - if invalid and self._session._logger: - self._session._logger.warning( - f"createAdministeredAssistantChatCompletion: ignoring unrecognized kwargs: {invalid}" - ) - - return self._session.post(metadata, resource, payload) - def getAdministeredAssistantChatThreads(self, total_pages=1, direction="next", **kwargs): """ **List all active user-wide conversation threads for the authenticated user.** @@ -302,74 +255,6 @@ def getAdministeredAssistantChatThreadMessage(self, threadId: str, messageId: st return self._session.get(metadata, resource) - def getOrganizationAssistantCapabilities(self, organizationId: str): - """ - **List the AI assistant's available capabilities and agents for this organization.** - https://developer.cisco.com/meraki/api-v1/#!get-organization-assistant-capabilities - - - organizationId (string): Organization ID - """ - - metadata = { - "tags": ["assistant", "configure", "capabilities"], - "operation": "getOrganizationAssistantCapabilities", - } - organizationId = urllib.parse.quote(str(organizationId), safe="") - resource = f"/organizations/{organizationId}/assistant/capabilities" - - return self._session.get(metadata, resource) - - def createOrganizationAssistantChatCompletion(self, organizationId: str, **kwargs): - """ - **Create a synchronous AI assistant chat completion** - https://developer.cisco.com/meraki/api-v1/#!create-organization-assistant-chat-completion - - - organizationId (string): Organization ID - - query (string): Simple text question or instruction to send to the AI assistant. Provide either 'query' for text-only requests or 'content' for multi-modal input. - - content (array): List of multi-modal content blocks. Use instead of 'query' to send text or images. Maximum 8 parts and 4 total images. Each image must be at most 10 MiB decoded. - - threadId (string): Existing persisted thread ID to continue synchronously. If omitted, the request is handled as a one-off invocation and the response will not include a reusable thread ID. - - networkId (string): Optional network ID to scope the query to a specific network. Defaults to the user's last visited network. - - platform (string): Platform identifier. Defaults to MERAKI when omitted. Values are matched case-insensitively. - - language (string): Optional language override. Defaults to the user's preferred language. - - country (string): Optional country override. Defaults to the user's country. - """ - - kwargs.update(locals()) - - if "platform" in kwargs: - options = ["DIGITAL_TWIN", "DNAC", "MERAKI"] - assert kwargs["platform"] in options, ( - f'''"platform" cannot be "{kwargs["platform"]}", & must be set to one of: {options}''' - ) - - metadata = { - "tags": ["assistant", "configure", "chat", "completions"], - "operation": "createOrganizationAssistantChatCompletion", - } - organizationId = urllib.parse.quote(str(organizationId), safe="") - resource = f"/organizations/{organizationId}/assistant/chat/completions" - - body_params = [ - "query", - "content", - "threadId", - "networkId", - "platform", - "language", - "country", - ] - payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} - - if self._session._validate_kwargs: - all_params = [] + body_params - invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] - if invalid and self._session._logger: - self._session._logger.warning( - f"createOrganizationAssistantChatCompletion: ignoring unrecognized kwargs: {invalid}" - ) - - return self._session.post(metadata, resource, payload) - def getOrganizationAssistantChatThreads(self, organizationId: str, total_pages=1, direction="next", **kwargs): """ **List all active conversation threads for the authenticated user.** diff --git a/meraki/api/batch/appliance.py b/meraki/api/batch/appliance.py index 836c5ca..37aaab0 100644 --- a/meraki/api/batch/appliance.py +++ b/meraki/api/batch/appliance.py @@ -228,6 +228,43 @@ def updateNetworkApplianceConnectivityMonitoringDestinations(self, networkId: st } return action + def updateNetworkApplianceContentFiltering(self, networkId: str, **kwargs): + """ + **Update the content filtering settings for an MX network** + https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-content-filtering + + - networkId (string): Network ID + - allowedUrlPatterns (array): A list of URL patterns that are allowed + - blockedUrlPatterns (array): A list of URL patterns that are blocked + - blockedUrlCategories (array): A list of URL categories to block + - urlCategoryListSize (string): URL category list size which is either 'topSites' or 'fullList' + """ + + kwargs.update(locals()) + + if "urlCategoryListSize" in kwargs: + options = ["fullList", "topSites"] + assert kwargs["urlCategoryListSize"] in options, ( + f'''"urlCategoryListSize" cannot be "{kwargs["urlCategoryListSize"]}", & must be set to one of: {options}''' + ) + + networkId = urllib.parse.quote(networkId, safe="") + resource = f"/networks/{networkId}/appliance/contentFiltering" + + body_params = [ + "allowedUrlPatterns", + "blockedUrlPatterns", + "blockedUrlCategories", + "urlCategoryListSize", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + action = { + "resource": resource, + "operation": "update", + "body": payload, + } + return action + def updateNetworkApplianceDevicesRedundancy(self, networkId: str, enabled: bool, **kwargs): """ **Update MX warm spare settings** @@ -774,6 +811,46 @@ def updateNetworkApplianceSecurityHttpsInspection(self, networkId: str, enabled: } return action + def updateNetworkApplianceSecurityIntrusion(self, networkId: str, **kwargs): + """ + **Set the supported intrusion settings for an MX network** + https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-security-intrusion + + - networkId (string): Network ID + - mode (string): Set mode to 'disabled'/'detection'/'prevention' (optional - omitting will leave current config unchanged) + - idsRulesets (string): Set the detection ruleset 'connectivity'/'balanced'/'security' (optional - omitting will leave current config unchanged). Default value is 'balanced' if none currently saved + - policy (object): Set a custom intrusion policy by id (optional - omitting will leave current config unchanged) + - protectedNetworks (object): Set the included/excluded networks from the intrusion engine (optional - omitting will leave current config unchanged). This is available only in 'passthrough' mode + """ + + kwargs.update(locals()) + + if "mode" in kwargs: + options = ["detection", "disabled", "prevention"] + assert kwargs["mode"] in options, f'''"mode" cannot be "{kwargs["mode"]}", & must be set to one of: {options}''' + if "idsRulesets" in kwargs: + options = ["balanced", "connectivity", "security"] + assert kwargs["idsRulesets"] in options, ( + f'''"idsRulesets" cannot be "{kwargs["idsRulesets"]}", & must be set to one of: {options}''' + ) + + networkId = urllib.parse.quote(networkId, safe="") + resource = f"/networks/{networkId}/appliance/security/intrusion" + + body_params = [ + "mode", + "idsRulesets", + "policy", + "protectedNetworks", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + action = { + "resource": resource, + "operation": "update", + "body": payload, + } + return action + def updateNetworkApplianceSettings(self, networkId: str, **kwargs): """ **Update the appliance settings for a network** @@ -910,6 +987,31 @@ def updateNetworkApplianceSsid(self, networkId: str, number: str, **kwargs): } return action + def updateNetworkApplianceTrafficShaping(self, networkId: str, globalBandwidthLimits: dict, **kwargs): + """ + **Update the traffic shaping settings for an MX network** + https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-traffic-shaping + + - networkId (string): Network ID + - globalBandwidthLimits (object): Global per-client bandwidth limit + """ + + kwargs = locals() + + networkId = urllib.parse.quote(networkId, safe="") + resource = f"/networks/{networkId}/appliance/trafficShaping" + + body_params = [ + "globalBandwidthLimits", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + action = { + "resource": resource, + "operation": "update", + "body": payload, + } + return action + def createNetworkApplianceTrafficShapingCustomPerformanceClass(self, networkId: str, name: str, **kwargs): """ **Add a custom performance class for an MX network** diff --git a/meraki/api/batch/organizations.py b/meraki/api/batch/organizations.py index f7e530e..d0f9b94 100644 --- a/meraki/api/batch/organizations.py +++ b/meraki/api/batch/organizations.py @@ -1309,6 +1309,204 @@ def deleteOrganizationDevicesCellularDataProfile(self, organizationId: str, prof } return action + def createOrganizationDevicesCliProfile(self, organizationId: str, name: str, **kwargs): + """ + **Create a CLI profile** + https://developer.cisco.com/meraki/api-v1/#!create-organization-devices-cli-profile + + - organizationId (string): Organization ID + - name (string): The name of the CLI profile + - cliTemplate (string): CLI template + - removalCliTemplate (string): CLI template used to remove the profile configuration + - description (string): The description of the CLI profile + - scheduledAt (string): Date time to deploy the profile at, or null for immediate deployment + - variables (array): CLI profile template variables. Maximum 100 variables per profile. Each variable supports up to 3 validation rules. + """ + + kwargs.update(locals()) + + organizationId = urllib.parse.quote(organizationId, safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles" + + body_params = [ + "name", + "cliTemplate", + "removalCliTemplate", + "description", + "scheduledAt", + "variables", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + action = { + "resource": resource, + "operation": "profiles/actions/create", + "body": payload, + } + return action + + def createOrganizationDevicesCliProfilesNetworksAssignmentsBatchCreate(self, organizationId: str, items: list, **kwargs): + """ + **Assign networks to CLI profiles in an organization in batch.** + https://developer.cisco.com/meraki/api-v1/#!create-organization-devices-cli-profiles-networks-assignments-batch-create + + - organizationId (string): Organization ID + - items (array): List containing the network ID, device tag and Profile ID + """ + + kwargs = locals() + + organizationId = urllib.parse.quote(organizationId, safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/networks/assignments/batchCreate" + + body_params = [ + "items", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + action = { + "resource": resource, + "operation": "batch_create", + "body": payload, + } + return action + + def createOrganizationDevicesCliProfilesNetworksAssignmentsBulkDelete(self, organizationId: str, items: list, **kwargs): + """ + **Unassign networks from CLI profiles in an organization in batch.** + https://developer.cisco.com/meraki/api-v1/#!create-organization-devices-cli-profiles-networks-assignments-bulk-delete + + - organizationId (string): Organization ID + - items (array): List containing the network ID, device tag and Profile ID + """ + + kwargs = locals() + + organizationId = urllib.parse.quote(organizationId, safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/networks/assignments/bulkDelete" + + body_params = [ + "items", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + action = { + "resource": resource, + "operation": "bulk_delete", + "body": payload, + } + return action + + def batchOrganizationDevicesCliProfilesVariablesAssign(self, organizationId: str, items: list, **kwargs): + """ + **Synchronously assign or clear CLI profile variable values for devices in an organization. Identify each assignment by profile ID and device serial. Only submitted variables are updated; omitted variables remain unchanged. The request is atomic: validation errors reject the entire request without saving values. Identical duplicate assignments to the same variable are combined; conflicting values reject the request. Responses include all variables from the active profile version. Read-only response metadata is ignored in requests. Repeating the same assignment preserves stored values when the target devices remain unchanged. + + For switch stacks, any current member serial identifies the stack. Submitted variables are saved to every current member. At least one member must match the profile's assignment tags. Membership is determined when the request is processed. Omitted variables can retain existing differences between members.** + https://developer.cisco.com/meraki/api-v1/#!batch-organization-devices-cli-profiles-variables-assign + + - organizationId (string): Organization ID + - items (array): Variable assignment operations to apply. Maximum 100 items. + """ + + kwargs = locals() + + organizationId = urllib.parse.quote(organizationId, safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/variables/batchAssign" + + body_params = [ + "items", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + action = { + "resource": resource, + "operation": "batch_assign", + "body": payload, + } + return action + + def updateOrganizationDevicesCliProfilesVersion(self, organizationId: str, versionId: str, **kwargs): + """ + **Favorite or unfavorite a published CLI profile version. This operation does not modify the version content or publication timestamp.** + https://developer.cisco.com/meraki/api-v1/#!update-organization-devices-cli-profiles-version + + - organizationId (string): Organization ID + - versionId (string): Version ID + - favorite (object): Favorite state for the CLI profile version + """ + + kwargs.update(locals()) + + organizationId = urllib.parse.quote(organizationId, safe="") + versionId = urllib.parse.quote(versionId, safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/versions/{versionId}" + + body_params = [ + "favorite", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + action = { + "resource": resource, + "operation": "update", + "body": payload, + } + return action + + def updateOrganizationDevicesCliProfile(self, organizationId: str, cliProfileId: str, name: str, **kwargs): + """ + **Update a CLI profile** + https://developer.cisco.com/meraki/api-v1/#!update-organization-devices-cli-profile + + - organizationId (string): Organization ID + - cliProfileId (string): Cli profile ID + - name (string): The name of the CLI profile + - description (string): The description of the CLI profile + - cliTemplate (string): CLI template + - removalCliTemplate (string): CLI template used to remove the profile configuration + - scheduledAt (string): Date time to deploy the profile at, or null for immediate deployment + - variables (array): CLI profile template variables. Maximum 100 variables per profile. Each variable supports up to 3 validation rules. + """ + + kwargs.update(locals()) + + organizationId = urllib.parse.quote(organizationId, safe="") + cliProfileId = urllib.parse.quote(cliProfileId, safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/{cliProfileId}" + + body_params = [ + "name", + "description", + "cliTemplate", + "removalCliTemplate", + "scheduledAt", + "variables", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + action = { + "resource": resource, + "operation": "profiles/actions/update", + "body": payload, + } + return action + + def deleteOrganizationDevicesCliProfile(self, organizationId: str, cliProfileId: str, **kwargs): + """ + **Delete a CLI profile. If the profile has assignments, this operation starts asynchronous removal of its device configuration. The profile is deleted automatically after all removals succeed.** + https://developer.cisco.com/meraki/api-v1/#!delete-organization-devices-cli-profile + + - organizationId (string): Organization ID + - cliProfileId (string): Cli profile ID + - force (boolean): If true, delete the profile even when its device configuration could not be removed. Residual device configuration must be removed manually. + """ + + kwargs.update(locals()) + + organizationId = urllib.parse.quote(organizationId, safe="") + cliProfileId = urllib.parse.quote(cliProfileId, safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/{cliProfileId}" + + action = { + "resource": resource, + "operation": "destroy", + } + return action + def createOrganizationDevicesControllerMigration(self, organizationId: str, serials: list, target: str, **kwargs): """ **Migrate devices to another controller or management mode** @@ -2154,7 +2352,7 @@ def onboardAutovpnSites(self, organizationId: str, **kwargs): https://developer.cisco.com/meraki/api-v1/#!onboard-autovpn-sites - organizationId (string): Organization ID - - spokes (array): Optional spoke networks and their desired MCN regions. Omit this field to perform hub-only onboarding. + - spokes (array): Optional spoke networks and their desired MCF regions. Omit this field to perform hub-only onboarding. """ kwargs.update(locals()) diff --git a/meraki/api/batch/switch.py b/meraki/api/batch/switch.py index 8e9ca8b..9844e29 100644 --- a/meraki/api/batch/switch.py +++ b/meraki/api/batch/switch.py @@ -546,6 +546,7 @@ def createNetworkSwitchAccessPolicy( - radiusGroupAttribute (string): Acceptable values are `""` for None, or `"11"` for Group Policies ACL - hostMode (string): Choose the Host Mode for the access policy. - accessPolicyType (string): Access Type of the policy. Automatically 'Hybrid authentication' when hostMode is 'Multi-Domain'. + - authenticationMethod (string): Authentication method of the policy. - increaseAccessSpeed (boolean): Enabling this option will make switches execute 802.1X and MAC-bypass authentication simultaneously so that clients authenticate faster. Only required when accessPolicyType is 'Hybrid Authentication. - guestVlanId (integer): ID for the guest VLAN allow unauthorized devices access to limited network resources - dot1x (object): 802.1x Settings @@ -568,6 +569,11 @@ def createNetworkSwitchAccessPolicy( assert kwargs["accessPolicyType"] in options, ( f'''"accessPolicyType" cannot be "{kwargs["accessPolicyType"]}", & must be set to one of: {options}''' ) + if "authenticationMethod" in kwargs and kwargs["authenticationMethod"] is not None: + options = ["Meraki authentication", "NAC", "my RADIUS server"] + assert kwargs["authenticationMethod"] in options, ( + f'''"authenticationMethod" cannot be "{kwargs["authenticationMethod"]}", & must be set to one of: {options}''' + ) networkId = urllib.parse.quote(networkId, safe="") resource = f"/networks/{networkId}/switch/accessPolicies" @@ -584,6 +590,7 @@ def createNetworkSwitchAccessPolicy( "radiusGroupAttribute", "hostMode", "accessPolicyType", + "authenticationMethod", "increaseAccessSpeed", "guestVlanId", "dot1x", @@ -619,6 +626,7 @@ def updateNetworkSwitchAccessPolicy(self, networkId: str, accessPolicyNumber: st - radiusGroupAttribute (string): Acceptable values are `""` for None, or `"11"` for Group Policies ACL - hostMode (string): Choose the Host Mode for the access policy. - accessPolicyType (string): Access Type of the policy. Automatically 'Hybrid authentication' when hostMode is 'Multi-Domain'. + - authenticationMethod (string): Authentication method of the policy. - increaseAccessSpeed (boolean): Enabling this option will make switches execute 802.1X and MAC-bypass authentication simultaneously so that clients authenticate faster. Only required when accessPolicyType is 'Hybrid Authentication. - guestVlanId (integer): ID for the guest VLAN allow unauthorized devices access to limited network resources - dot1x (object): 802.1x Settings @@ -641,6 +649,11 @@ def updateNetworkSwitchAccessPolicy(self, networkId: str, accessPolicyNumber: st assert kwargs["accessPolicyType"] in options, ( f'''"accessPolicyType" cannot be "{kwargs["accessPolicyType"]}", & must be set to one of: {options}''' ) + if "authenticationMethod" in kwargs and kwargs["authenticationMethod"] is not None: + options = ["Meraki authentication", "NAC", "my RADIUS server"] + assert kwargs["authenticationMethod"] in options, ( + f'''"authenticationMethod" cannot be "{kwargs["authenticationMethod"]}", & must be set to one of: {options}''' + ) networkId = urllib.parse.quote(networkId, safe="") accessPolicyNumber = urllib.parse.quote(accessPolicyNumber, safe="") @@ -658,6 +671,7 @@ def updateNetworkSwitchAccessPolicy(self, networkId: str, accessPolicyNumber: st "radiusGroupAttribute", "hostMode", "accessPolicyType", + "authenticationMethod", "increaseAccessSpeed", "guestVlanId", "dot1x", diff --git a/meraki/api/batch/users.py b/meraki/api/batch/users.py index c52606a..e9882b0 100644 --- a/meraki/api/batch/users.py +++ b/meraki/api/batch/users.py @@ -199,6 +199,7 @@ def createOrganizationIamUsersIdpsUser(self, organizationId: str, accountType: s - email (string): An email address identified with the user. - password (string): The password for the user account. - sendPassword (boolean): If true, sends an email with the password to the user. + - attributes (object): Profile attributes for an 802.1X user. """ kwargs.update(locals()) @@ -218,6 +219,7 @@ def createOrganizationIamUsersIdpsUser(self, organizationId: str, accountType: s "password", "sendPassword", "accountType", + "attributes", ] payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} action = { diff --git a/meraki/api/devices.py b/meraki/api/devices.py index 45ce4b5..00e8855 100644 --- a/meraki/api/devices.py +++ b/meraki/api/devices.py @@ -1002,6 +1002,90 @@ def getDeviceLiveToolsPowerUsage(self, serial: str, jobId: str): return self._session.get(metadata, resource) + def createDeviceLiveToolsReadFile(self, serial: str, **kwargs): + """ + **Enqueue a job to read a file from the device** + https://developer.cisco.com/meraki/api-v1/#!create-device-live-tools-read-file + + - serial (string): Serial + - command (string): Allowlisted command to execute. Defaults to cat when filePath is provided. + - filePath (string): Allowlisted file or directory path used by cat, grep, head, ls, and wc -l. + - clickHandler (string): Allowlisted read-only Click handler used by click_read. + - args (string): Optional Click handler parameter used by click_read. + - filter (string): Optional case-insensitive literal output filter; required for grep. + - lines (integer): Maximum lines returned by head. Defaults to 10. + - flags (string): Optional flags for grep (-i) or ls (-ltrahs). + - operation (string): Compatibility read operation. Supported values are fileRead and clickRead. + - path (string): Compatibility file path or Click handler path. + - param (string): Optional Click handler parameter for clickRead operations. + - maxBytes (integer): Optional maximum response bytes to return. + - timeoutMs (integer): Optional device request timeout in milliseconds. + - allowRestricted (boolean): Must be true when requesting a restricted path such as /storage/config. + - purpose (string): Optional caller-supplied purpose for the read request. + - callback (object): Details for the callback. Please include either an httpServerId OR url and sharedSecret + """ + + kwargs.update(locals()) + + if "command" in kwargs: + options = ["cat", "click_read", "grep", "head", "ls", "wc -l"] + assert kwargs["command"] in options, ( + f'''"command" cannot be "{kwargs["command"]}", & must be set to one of: {options}''' + ) + + metadata = { + "tags": ["devices", "liveTools", "readFile"], + "operation": "createDeviceLiveToolsReadFile", + } + serial = urllib.parse.quote(str(serial), safe="") + resource = f"/devices/{serial}/liveTools/readFile" + + body_params = [ + "command", + "filePath", + "clickHandler", + "args", + "filter", + "lines", + "flags", + "operation", + "path", + "param", + "maxBytes", + "timeoutMs", + "allowRestricted", + "purpose", + "callback", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + + if self._session._validate_kwargs: + all_params = [] + body_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning(f"createDeviceLiveToolsReadFile: ignoring unrecognized kwargs: {invalid}") + + return self._session.post(metadata, resource, payload) + + def getDeviceLiveToolsReadFile(self, serial: str, readFileId: str): + """ + **Return a read file live tool job.** + https://developer.cisco.com/meraki/api-v1/#!get-device-live-tools-read-file + + - serial (string): Serial + - readFileId (string): Read file ID + """ + + metadata = { + "tags": ["devices", "liveTools", "readFile"], + "operation": "getDeviceLiveToolsReadFile", + } + serial = urllib.parse.quote(str(serial), safe="") + readFileId = urllib.parse.quote(str(readFileId), safe="") + resource = f"/devices/{serial}/liveTools/readFile/{readFileId}" + + return self._session.get(metadata, resource) + def createDeviceLiveToolsReboot(self, serial: str, **kwargs): """ **Enqueue a job to reboot a device** diff --git a/meraki/api/organizations.py b/meraki/api/organizations.py index b29046d..9d856b9 100644 --- a/meraki/api/organizations.py +++ b/meraki/api/organizations.py @@ -6313,6 +6313,714 @@ def getOrganizationDevicesCertificates(self, organizationId: str, total_pages=1, return self._session.get_pages(metadata, resource, params, total_pages, direction) + def getOrganizationDevicesCliProfiles(self, organizationId: str, total_pages=1, direction="next", **kwargs): + """ + **List CLI profiles** + https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-cli-profiles + + - organizationId (string): Organization ID + - total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages + - direction (string): direction to paginate, either "next" (default) or "prev" page + - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 100. Default is 50. + - startingAfter (string): 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. + - endingBefore (string): 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. + - profileIds (array): Optional parameter to filter CLI profiles by ID. This filter uses multiple exact matches. Maximum 100 profile IDs. + - name (string): Optional parameter to filter CLI profiles by name. Performs a case-insensitive partial match. + - networkIds (array): Optional parameter to filter CLI profiles by network ID. This filter uses multiple exact matches. Maximum 100 network IDs. + - sortBy (string): Field to sort results by. Defaults to 'name'. + - sortOrder (string): Sort order. Defaults to 'asc'. + """ + + kwargs.update(locals()) + + if "sortBy" in kwargs: + options = ["name"] + assert kwargs["sortBy"] in options, ( + f'''"sortBy" cannot be "{kwargs["sortBy"]}", & must be set to one of: {options}''' + ) + if "sortOrder" in kwargs: + options = ["asc", "desc"] + assert kwargs["sortOrder"] in options, ( + f'''"sortOrder" cannot be "{kwargs["sortOrder"]}", & must be set to one of: {options}''' + ) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles"], + "operation": "getOrganizationDevicesCliProfiles", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles" + + query_params = [ + "perPage", + "startingAfter", + "endingBefore", + "profileIds", + "name", + "networkIds", + "sortBy", + "sortOrder", + ] + params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params} + + array_params = [ + "profileIds", + "networkIds", + ] + for k, v in kwargs.items(): + if k.strip() in array_params: + params[f"{k.strip()}[]"] = kwargs[f"{k}"] + params.pop(k.strip()) + + if self._session._validate_kwargs: + all_params = query_params + array_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning(f"getOrganizationDevicesCliProfiles: ignoring unrecognized kwargs: {invalid}") + + return self._session.get_pages(metadata, resource, params, total_pages, direction) + + def createOrganizationDevicesCliProfile(self, organizationId: str, name: str, **kwargs): + """ + **Create a CLI profile** + https://developer.cisco.com/meraki/api-v1/#!create-organization-devices-cli-profile + + - organizationId (string): Organization ID + - name (string): The name of the CLI profile + - cliTemplate (string): CLI template + - removalCliTemplate (string): CLI template used to remove the profile configuration + - description (string): The description of the CLI profile + - scheduledAt (string): Date time to deploy the profile at, or null for immediate deployment + - variables (array): CLI profile template variables. Maximum 100 variables per profile. Each variable supports up to 3 validation rules. + """ + + kwargs.update(locals()) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles"], + "operation": "createOrganizationDevicesCliProfile", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles" + + body_params = [ + "name", + "cliTemplate", + "removalCliTemplate", + "description", + "scheduledAt", + "variables", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + + if self._session._validate_kwargs: + all_params = [] + body_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning(f"createOrganizationDevicesCliProfile: ignoring unrecognized kwargs: {invalid}") + + return self._session.post(metadata, resource, payload) + + def getOrganizationDevicesCliProfilesNetworksAssignments(self, organizationId: str, **kwargs): + """ + **Fetch the CLI profile network assignments in the organization** + https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-cli-profiles-networks-assignments + + - organizationId (string): Organization ID + - profileIds (array): Optional parameter to filter the results by profile IDs + - networkIds (array): Optional parameter to filter the results by network IDs + """ + + kwargs.update(locals()) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "networks", "assignments"], + "operation": "getOrganizationDevicesCliProfilesNetworksAssignments", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/networks/assignments" + + query_params = [ + "profileIds", + "networkIds", + ] + params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params} + + array_params = [ + "profileIds", + "networkIds", + ] + for k, v in kwargs.items(): + if k.strip() in array_params: + params[f"{k.strip()}[]"] = kwargs[f"{k}"] + params.pop(k.strip()) + + if self._session._validate_kwargs: + all_params = query_params + array_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"getOrganizationDevicesCliProfilesNetworksAssignments: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.get(metadata, resource, params) + + def createOrganizationDevicesCliProfilesNetworksAssignmentsBatchCreate(self, organizationId: str, items: list, **kwargs): + """ + **Assign networks to CLI profiles in an organization in batch.** + https://developer.cisco.com/meraki/api-v1/#!create-organization-devices-cli-profiles-networks-assignments-batch-create + + - organizationId (string): Organization ID + - items (array): List containing the network ID, device tag and Profile ID + """ + + kwargs = locals() + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "networks", "assignments", "batchCreate"], + "operation": "createOrganizationDevicesCliProfilesNetworksAssignmentsBatchCreate", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/networks/assignments/batchCreate" + + body_params = [ + "items", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + + if self._session._validate_kwargs: + all_params = [] + body_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"createOrganizationDevicesCliProfilesNetworksAssignmentsBatchCreate: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.post(metadata, resource, payload) + + def createOrganizationDevicesCliProfilesNetworksAssignmentsBulkDelete(self, organizationId: str, items: list, **kwargs): + """ + **Unassign networks from CLI profiles in an organization in batch.** + https://developer.cisco.com/meraki/api-v1/#!create-organization-devices-cli-profiles-networks-assignments-bulk-delete + + - organizationId (string): Organization ID + - items (array): List containing the network ID, device tag and Profile ID + """ + + kwargs = locals() + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "networks", "assignments", "bulkDelete"], + "operation": "createOrganizationDevicesCliProfilesNetworksAssignmentsBulkDelete", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/networks/assignments/bulkDelete" + + body_params = [ + "items", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + + if self._session._validate_kwargs: + all_params = [] + body_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"createOrganizationDevicesCliProfilesNetworksAssignmentsBulkDelete: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.post(metadata, resource, payload) + + def getOrganizationDevicesCliProfilesOverviews(self, organizationId: str, total_pages=1, direction="next", **kwargs): + """ + **List CLI profile overviews for an organization** + https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-cli-profiles-overviews + + - organizationId (string): Organization ID + - total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages + - direction (string): direction to paginate, either "next" (default) or "prev" page + - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 100. Default is 50. + - startingAfter (string): 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. + - endingBefore (string): 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. + - profileIds (array): Optional parameter to filter CLI profiles by ID. This filter uses multiple exact matches. Maximum 100 profile IDs. + - search (string): Optional parameter to filter CLI profiles by name or assigned device tag. Case insensitive substring match. + - hasDraft (boolean): When true, only profiles with unpublished draft changes are returned. Omit or set false to return all profiles. + - sortBy (string): Column to sort results by. Defaults to 'name'. + - sortOrder (string): Sort direction. One of 'asc' or 'desc'. Defaults to 'asc'. + """ + + kwargs.update(locals()) + + if "sortBy" in kwargs: + options = ["appliedToNetworks", "devicesAssigned", "name", "status", "variables"] + assert kwargs["sortBy"] in options, ( + f'''"sortBy" cannot be "{kwargs["sortBy"]}", & must be set to one of: {options}''' + ) + if "sortOrder" in kwargs: + options = ["asc", "desc"] + assert kwargs["sortOrder"] in options, ( + f'''"sortOrder" cannot be "{kwargs["sortOrder"]}", & must be set to one of: {options}''' + ) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "overviews"], + "operation": "getOrganizationDevicesCliProfilesOverviews", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/overviews" + + query_params = [ + "perPage", + "startingAfter", + "endingBefore", + "profileIds", + "search", + "hasDraft", + "sortBy", + "sortOrder", + ] + params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params} + + array_params = [ + "profileIds", + ] + for k, v in kwargs.items(): + if k.strip() in array_params: + params[f"{k.strip()}[]"] = kwargs[f"{k}"] + params.pop(k.strip()) + + if self._session._validate_kwargs: + all_params = query_params + array_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"getOrganizationDevicesCliProfilesOverviews: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.get_pages(metadata, resource, params, total_pages, direction) + + def getOrganizationDevicesCliProfilesProvisioningHistory( + self, organizationId: str, total_pages=1, direction="next", **kwargs + ): + """ + **List terminal command-line interface (CLI) profile provisioning history for devices in an organization** + https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-cli-profiles-provisioning-history + + - organizationId (string): Organization ID + - total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages + - direction (string): direction to paginate, either "next" (default) or "prev" page + - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 100. Default is 10. + - startingAfter (string): 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. + - endingBefore (string): 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. + - serials (array): Optional parameter to filter by one device serial number using an exact match. Rather than deviceSerials[], this parameter intentionally follows the standard serials[] index-filter convention and matches the nested device.serial identity in each response item. If omitted, the response contains provisioning history events for all devices in the organization. An unknown serial or a serial outside the organization returns 200 OK with an empty items array; 404 indicates that the caller cannot access the organization-scoped operation. Maximum 1 serial. + """ + + kwargs.update(locals()) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "provisioning", "history"], + "operation": "getOrganizationDevicesCliProfilesProvisioningHistory", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/provisioning/history" + + query_params = [ + "perPage", + "startingAfter", + "endingBefore", + "serials", + ] + params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params} + + array_params = [ + "serials", + ] + for k, v in kwargs.items(): + if k.strip() in array_params: + params[f"{k.strip()}[]"] = kwargs[f"{k}"] + params.pop(k.strip()) + + if self._session._validate_kwargs: + all_params = query_params + array_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"getOrganizationDevicesCliProfilesProvisioningHistory: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.get_pages(metadata, resource, params, total_pages, direction) + + def getOrganizationDevicesCliProfilesProvisioningStatusesByDevice( + self, organizationId: str, total_pages=1, direction="next", **kwargs + ): + """ + **List the provisioning statuses of devices for CLI profiles in an organization** + https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-cli-profiles-provisioning-statuses-by-device + + - organizationId (string): Organization ID + - total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages + - direction (string): direction to paginate, either "next" (default) or "prev" page + - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 100. Default is 50. + - startingAfter (string): 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. + - endingBefore (string): 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. + - profileIds (array): Optional parameter to filter by CLI profile IDs. This filter uses multiple exact matches. Maximum 100 profile IDs. + - networkIds (array): Optional parameter to filter by network IDs. This filter uses multiple exact matches. Maximum 100 network IDs. + - serials (array): Optional parameter to filter by device serial numbers. This filter uses multiple exact matches. Maximum 100 serials. + - statuses (array): Optional parameter to filter by provisioning statuses. This filter uses multiple exact matches. Maximum one value per supported status. + - name (string): Optional parameter to filter by device display name. If a device name is blank, its serial is used for matching. Performs a case-insensitive partial match. + - search (string): Optional parameter to search by device display name, serial, provisioning status, network name, or updatedAt timestamp. Performs a case-insensitive partial match. + - sortBy (string): Field to sort results by. Defaults to 'name'. + - sortOrder (string): Sort order. Defaults to 'asc'. + """ + + kwargs.update(locals()) + + if "sortBy" in kwargs: + options = ["name", "network", "serial", "status", "updatedAt"] + assert kwargs["sortBy"] in options, ( + f'''"sortBy" cannot be "{kwargs["sortBy"]}", & must be set to one of: {options}''' + ) + if "sortOrder" in kwargs: + options = ["asc", "desc"] + assert kwargs["sortOrder"] in options, ( + f'''"sortOrder" cannot be "{kwargs["sortOrder"]}", & must be set to one of: {options}''' + ) + + metadata = { + "tags": ["organizations", "monitor", "devices", "cli", "profiles", "provisioning", "statuses", "byDevice"], + "operation": "getOrganizationDevicesCliProfilesProvisioningStatusesByDevice", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/provisioning/statuses/byDevice" + + query_params = [ + "perPage", + "startingAfter", + "endingBefore", + "profileIds", + "networkIds", + "serials", + "statuses", + "name", + "search", + "sortBy", + "sortOrder", + ] + params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params} + + array_params = [ + "profileIds", + "networkIds", + "serials", + "statuses", + ] + for k, v in kwargs.items(): + if k.strip() in array_params: + params[f"{k.strip()}[]"] = kwargs[f"{k}"] + params.pop(k.strip()) + + if self._session._validate_kwargs: + all_params = query_params + array_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"getOrganizationDevicesCliProfilesProvisioningStatusesByDevice: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.get_pages(metadata, resource, params, total_pages, direction) + + def getOrganizationDevicesCliProfilesVariablesAssignments(self, organizationId: str, **kwargs): + """ + **List CLI profile variable value assignments for devices in an organization** + https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-cli-profiles-variables-assignments + + - organizationId (string): Organization ID + - profileIds (array): Filter by CLI profile IDs + - serials (array): Filter by device serials using multiple exact matches (OR). Different filters combine with AND. A switch stack matches any member serial and returns one item with all members. + - networkIds (array): Filter by network IDs + - deviceTags (array): Filter by device tags used in CLI profile assignments + """ + + kwargs.update(locals()) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "variables", "assignments"], + "operation": "getOrganizationDevicesCliProfilesVariablesAssignments", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/variables/assignments" + + query_params = [ + "profileIds", + "serials", + "networkIds", + "deviceTags", + ] + params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params} + + array_params = [ + "profileIds", + "serials", + "networkIds", + "deviceTags", + ] + for k, v in kwargs.items(): + if k.strip() in array_params: + params[f"{k.strip()}[]"] = kwargs[f"{k}"] + params.pop(k.strip()) + + if self._session._validate_kwargs: + all_params = query_params + array_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"getOrganizationDevicesCliProfilesVariablesAssignments: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.get(metadata, resource, params) + + def batchOrganizationDevicesCliProfilesVariablesAssign(self, organizationId: str, items: list, **kwargs): + """ + **Synchronously assign or clear CLI profile variable values for devices in an organization** + https://developer.cisco.com/meraki/api-v1/#!batch-organization-devices-cli-profiles-variables-assign + + - organizationId (string): Organization ID + - items (array): Variable assignment operations to apply. Maximum 100 items. + """ + + kwargs = locals() + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "variables"], + "operation": "batchOrganizationDevicesCliProfilesVariablesAssign", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/variables/batchAssign" + + body_params = [ + "items", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + + if self._session._validate_kwargs: + all_params = [] + body_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"batchOrganizationDevicesCliProfilesVariablesAssign: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.post(metadata, resource, payload) + + def getOrganizationDevicesCliProfilesVersions(self, organizationId: str, total_pages=1, direction="next", **kwargs): + """ + **Returns published CLI profile versions, ordered by version number from highest to lowest** + https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-cli-profiles-versions + + - organizationId (string): Organization ID + - total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages + - direction (string): direction to paginate, either "next" (default) or "prev" page + - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 20. Default is 10. + - startingAfter (string): 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. + - endingBefore (string): 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. + - sortOrder (string): Sorted order of entries. Order options are 'descending'. Default is 'descending'. + - profileIds (array): Optional parameter to filter by exact CLI profile IDs. Maximum 100 IDs. + - versionIds (array): Optional parameter to filter by exact CLI profile version IDs. Maximum 100 IDs. + """ + + kwargs.update(locals()) + + if "sortOrder" in kwargs: + options = ["descending"] + assert kwargs["sortOrder"] in options, ( + f'''"sortOrder" cannot be "{kwargs["sortOrder"]}", & must be set to one of: {options}''' + ) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "versions"], + "operation": "getOrganizationDevicesCliProfilesVersions", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/versions" + + query_params = [ + "perPage", + "startingAfter", + "endingBefore", + "sortOrder", + "profileIds", + "versionIds", + ] + params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params} + + array_params = [ + "profileIds", + "versionIds", + ] + for k, v in kwargs.items(): + if k.strip() in array_params: + params[f"{k.strip()}[]"] = kwargs[f"{k}"] + params.pop(k.strip()) + + if self._session._validate_kwargs: + all_params = query_params + array_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"getOrganizationDevicesCliProfilesVersions: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.get_pages(metadata, resource, params, total_pages, direction) + + def updateOrganizationDevicesCliProfilesVersion(self, organizationId: str, versionId: str, **kwargs): + """ + **Favorite or unfavorite a published CLI profile version** + https://developer.cisco.com/meraki/api-v1/#!update-organization-devices-cli-profiles-version + + - organizationId (string): Organization ID + - versionId (string): Version ID + - favorite (object): Favorite state for the CLI profile version + """ + + kwargs.update(locals()) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "versions"], + "operation": "updateOrganizationDevicesCliProfilesVersion", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + versionId = urllib.parse.quote(str(versionId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/versions/{versionId}" + + body_params = [ + "favorite", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + + if self._session._validate_kwargs: + all_params = [] + body_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning( + f"updateOrganizationDevicesCliProfilesVersion: ignoring unrecognized kwargs: {invalid}" + ) + + return self._session.put(metadata, resource, payload) + + def updateOrganizationDevicesCliProfile(self, organizationId: str, cliProfileId: str, name: str, **kwargs): + """ + **Update a CLI profile** + https://developer.cisco.com/meraki/api-v1/#!update-organization-devices-cli-profile + + - organizationId (string): Organization ID + - cliProfileId (string): Cli profile ID + - name (string): The name of the CLI profile + - description (string): The description of the CLI profile + - cliTemplate (string): CLI template + - removalCliTemplate (string): CLI template used to remove the profile configuration + - scheduledAt (string): Date time to deploy the profile at, or null for immediate deployment + - variables (array): CLI profile template variables. Maximum 100 variables per profile. Each variable supports up to 3 validation rules. + """ + + kwargs.update(locals()) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles"], + "operation": "updateOrganizationDevicesCliProfile", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + cliProfileId = urllib.parse.quote(str(cliProfileId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/{cliProfileId}" + + body_params = [ + "name", + "description", + "cliTemplate", + "removalCliTemplate", + "scheduledAt", + "variables", + ] + payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} + + if self._session._validate_kwargs: + all_params = [] + body_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning(f"updateOrganizationDevicesCliProfile: ignoring unrecognized kwargs: {invalid}") + + return self._session.put(metadata, resource, payload) + + def deleteOrganizationDevicesCliProfile(self, organizationId: str, cliProfileId: str, **kwargs): + """ + **Delete a CLI profile** + https://developer.cisco.com/meraki/api-v1/#!delete-organization-devices-cli-profile + + - organizationId (string): Organization ID + - cliProfileId (string): Cli profile ID + - force (boolean): If true, delete the profile even when its device configuration could not be removed. Residual device configuration must be removed manually. + """ + + kwargs.update(locals()) + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles"], + "operation": "deleteOrganizationDevicesCliProfile", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + cliProfileId = urllib.parse.quote(str(cliProfileId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/{cliProfileId}" + + query_params = [ + "force", + ] + params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params} + + if self._session._validate_kwargs: + all_params = query_params + invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"] + if invalid and self._session._logger: + self._session._logger.warning(f"deleteOrganizationDevicesCliProfile: ignoring unrecognized kwargs: {invalid}") + + return self._session.delete(metadata, resource, params) + + def discardOrganizationDevicesCliProfileDraft(self, organizationId: str, cliProfileId: str): + """ + **Synchronously discard the current CLI profile draft** + https://developer.cisco.com/meraki/api-v1/#!discard-organization-devices-cli-profile-draft + + - organizationId (string): Organization ID + - cliProfileId (string): Cli profile ID + """ + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles"], + "operation": "discardOrganizationDevicesCliProfileDraft", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + cliProfileId = urllib.parse.quote(str(cliProfileId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/{cliProfileId}/draft" + + return self._session.delete(metadata, resource) + + def publishOrganizationDevicesCliProfileDraft(self, organizationId: str, cliProfileId: str): + """ + **Synchronously publish the current CLI profile draft** + https://developer.cisco.com/meraki/api-v1/#!publish-organization-devices-cli-profile-draft + + - organizationId (string): Organization ID + - cliProfileId (string): Cli profile ID + """ + + metadata = { + "tags": ["organizations", "configure", "devices", "cli", "profiles", "draft"], + "operation": "publishOrganizationDevicesCliProfileDraft", + } + organizationId = urllib.parse.quote(str(organizationId), safe="") + cliProfileId = urllib.parse.quote(str(cliProfileId), safe="") + resource = f"/organizations/{organizationId}/devices/cli/profiles/{cliProfileId}/draft/publish" + + return self._session.post(metadata, resource) + def createOrganizationDevicesControllerMigration(self, organizationId: str, serials: list, target: str, **kwargs): """ **Migrate devices to another controller or management mode** @@ -10021,7 +10729,7 @@ def onboardAutovpnSites(self, organizationId: str, **kwargs): https://developer.cisco.com/meraki/api-v1/#!onboard-autovpn-sites - organizationId (string): Organization ID - - spokes (array): Optional spoke networks and their desired MCN regions. Omit this field to perform hub-only onboarding. + - spokes (array): Optional spoke networks and their desired MCF regions. Omit this field to perform hub-only onboarding. """ kwargs.update(locals()) @@ -10279,8 +10987,10 @@ def listEventLogs(self, organizationId: str, total_pages=1, direction="next", ** - regionId (array): Restricts results to exact Multicloud Fabric region UUIDs; repeat to OR values. - regionName (array): Restricts results to exact, case-sensitive provider region names; repeat to OR values. - - userId (array): Restricts results to exact opaque identity-provider subject IDs; repeat to OR values. - - userEmail (array): Restricts results to exact, case-sensitive actor email snapshots; repeat to OR values. + - userId (array): Restricts results to exact, case-sensitive recorded actor IDs. Repeat to + match any supplied ID; IDs remain strings, including leading zeros. + Use values from the `user` facet. Omission adds no user-ID restriction; + events without a recorded ID do not match a supplied ID. - groupId (array): Restricts results to exact event-source-supplied logical-action correlation IDs; repeat to OR values. - search (string): Case-insensitive free-text search across event details. The input is @@ -10317,7 +11027,6 @@ def listEventLogs(self, organizationId: str, total_pages=1, direction="next", ** "regionId", "regionName", "userId", - "userEmail", "groupId", "search", "perPage", @@ -10340,7 +11049,6 @@ def listEventLogs(self, organizationId: str, total_pages=1, direction="next", ** "regionId", "regionName", "userId", - "userEmail", "groupId", ] for k, v in kwargs.items(): @@ -10430,8 +11138,10 @@ def getEventLogFacets(self, organizationId: str, **kwargs): - regionId (array): Restricts results to exact Multicloud Fabric region UUIDs; repeat to OR values. - regionName (array): Restricts results to exact, case-sensitive provider region names; repeat to OR values. - - userId (array): Restricts results to exact opaque identity-provider subject IDs; repeat to OR values. - - userEmail (array): Restricts results to exact, case-sensitive actor email snapshots; repeat to OR values. + - userId (array): Restricts results to exact, case-sensitive recorded actor IDs. Repeat to + match any supplied ID; IDs remain strings, including leading zeros. + Use values from the `user` facet. Omission adds no user-ID restriction; + events without a recorded ID do not match a supplied ID. - groupId (array): Restricts results to exact event-source-supplied logical-action correlation IDs; repeat to OR values. - search (string): Case-insensitive free-text search across event details. The input is @@ -10466,7 +11176,6 @@ def getEventLogFacets(self, organizationId: str, **kwargs): "regionId", "regionName", "userId", - "userEmail", "groupId", "search", ] @@ -10487,7 +11196,6 @@ def getEventLogFacets(self, organizationId: str, **kwargs): "regionId", "regionName", "userId", - "userEmail", "groupId", ] for k, v in kwargs.items(): @@ -10576,8 +11284,10 @@ def getEventLogHistogram(self, organizationId: str, **kwargs): - regionId (array): Restricts results to exact Multicloud Fabric region UUIDs; repeat to OR values. - regionName (array): Restricts results to exact, case-sensitive provider region names; repeat to OR values. - - userId (array): Restricts results to exact opaque identity-provider subject IDs; repeat to OR values. - - userEmail (array): Restricts results to exact, case-sensitive actor email snapshots; repeat to OR values. + - userId (array): Restricts results to exact, case-sensitive recorded actor IDs. Repeat to + match any supplied ID; IDs remain strings, including leading zeros. + Use values from the `user` facet. Omission adds no user-ID restriction; + events without a recorded ID do not match a supplied ID. - groupId (array): Restricts results to exact event-source-supplied logical-action correlation IDs; repeat to OR values. - search (string): Case-insensitive free-text search across event details. The input is @@ -10612,7 +11322,6 @@ def getEventLogHistogram(self, organizationId: str, **kwargs): "regionId", "regionName", "userId", - "userEmail", "groupId", "search", ] @@ -10633,7 +11342,6 @@ def getEventLogHistogram(self, organizationId: str, **kwargs): "regionId", "regionName", "userId", - "userEmail", "groupId", ] for k, v in kwargs.items(): diff --git a/meraki/api/switch.py b/meraki/api/switch.py index d5345bb..b213c33 100644 --- a/meraki/api/switch.py +++ b/meraki/api/switch.py @@ -919,6 +919,7 @@ def createNetworkSwitchAccessPolicy( - radiusGroupAttribute (string): Acceptable values are `""` for None, or `"11"` for Group Policies ACL - hostMode (string): Choose the Host Mode for the access policy. - accessPolicyType (string): Access Type of the policy. Automatically 'Hybrid authentication' when hostMode is 'Multi-Domain'. + - authenticationMethod (string): Authentication method of the policy. - increaseAccessSpeed (boolean): Enabling this option will make switches execute 802.1X and MAC-bypass authentication simultaneously so that clients authenticate faster. Only required when accessPolicyType is 'Hybrid Authentication. - guestVlanId (integer): ID for the guest VLAN allow unauthorized devices access to limited network resources - dot1x (object): 802.1x Settings @@ -941,6 +942,11 @@ def createNetworkSwitchAccessPolicy( assert kwargs["accessPolicyType"] in options, ( f'''"accessPolicyType" cannot be "{kwargs["accessPolicyType"]}", & must be set to one of: {options}''' ) + if "authenticationMethod" in kwargs and kwargs["authenticationMethod"] is not None: + options = ["Meraki authentication", "NAC", "my RADIUS server"] + assert kwargs["authenticationMethod"] in options, ( + f'''"authenticationMethod" cannot be "{kwargs["authenticationMethod"]}", & must be set to one of: {options}''' + ) metadata = { "tags": ["switch", "configure", "accessPolicies"], @@ -961,6 +967,7 @@ def createNetworkSwitchAccessPolicy( "radiusGroupAttribute", "hostMode", "accessPolicyType", + "authenticationMethod", "increaseAccessSpeed", "guestVlanId", "dot1x", @@ -1017,6 +1024,7 @@ def updateNetworkSwitchAccessPolicy(self, networkId: str, accessPolicyNumber: st - radiusGroupAttribute (string): Acceptable values are `""` for None, or `"11"` for Group Policies ACL - hostMode (string): Choose the Host Mode for the access policy. - accessPolicyType (string): Access Type of the policy. Automatically 'Hybrid authentication' when hostMode is 'Multi-Domain'. + - authenticationMethod (string): Authentication method of the policy. - increaseAccessSpeed (boolean): Enabling this option will make switches execute 802.1X and MAC-bypass authentication simultaneously so that clients authenticate faster. Only required when accessPolicyType is 'Hybrid Authentication. - guestVlanId (integer): ID for the guest VLAN allow unauthorized devices access to limited network resources - dot1x (object): 802.1x Settings @@ -1039,6 +1047,11 @@ def updateNetworkSwitchAccessPolicy(self, networkId: str, accessPolicyNumber: st assert kwargs["accessPolicyType"] in options, ( f'''"accessPolicyType" cannot be "{kwargs["accessPolicyType"]}", & must be set to one of: {options}''' ) + if "authenticationMethod" in kwargs and kwargs["authenticationMethod"] is not None: + options = ["Meraki authentication", "NAC", "my RADIUS server"] + assert kwargs["authenticationMethod"] in options, ( + f'''"authenticationMethod" cannot be "{kwargs["authenticationMethod"]}", & must be set to one of: {options}''' + ) metadata = { "tags": ["switch", "configure", "accessPolicies"], @@ -1060,6 +1073,7 @@ def updateNetworkSwitchAccessPolicy(self, networkId: str, accessPolicyNumber: st "radiusGroupAttribute", "hostMode", "accessPolicyType", + "authenticationMethod", "increaseAccessSpeed", "guestVlanId", "dot1x", diff --git a/meraki/api/users.py b/meraki/api/users.py index 04c09ee..b0e56e3 100644 --- a/meraki/api/users.py +++ b/meraki/api/users.py @@ -535,6 +535,7 @@ def createOrganizationIamUsersIdpsUser(self, organizationId: str, accountType: s - email (string): An email address identified with the user. - password (string): The password for the user account. - sendPassword (boolean): If true, sends an email with the password to the user. + - attributes (object): Profile attributes for an 802.1X user. """ kwargs.update(locals()) @@ -558,6 +559,7 @@ def createOrganizationIamUsersIdpsUser(self, organizationId: str, accountType: s "password", "sendPassword", "accountType", + "attributes", ] payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params} diff --git a/meraki/api/wireless.py b/meraki/api/wireless.py index c419aa7..7cfa7bd 100644 --- a/meraki/api/wireless.py +++ b/meraki/api/wireless.py @@ -4407,8 +4407,8 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetwork( - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -4420,7 +4420,7 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetwork( kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "channelAvailability", "byNetwork"], + "tags": ["wireless", "monitor", "experience", "channelAvailability", "byNetwork"], "operation": "getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetwork", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -4473,8 +4473,8 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByBand - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -4486,7 +4486,7 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByBand kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "channelAvailability", "byNetwork", "byBand"], + "tags": ["wireless", "monitor", "experience", "channelAvailability", "byNetwork", "byBand"], "operation": "getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByBand", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -4539,12 +4539,12 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClie - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. - - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 10000. Default is 1000. + - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 10000. Default is 10000. - startingAfter (string): 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. - endingBefore (string): 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. """ @@ -4552,7 +4552,7 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClie kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "channelAvailability", "byNetwork", "byClient"], + "tags": ["wireless", "monitor", "experience", "channelAvailability", "byNetwork", "byClient"], "operation": "getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClient", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -4605,8 +4605,8 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClie - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -4618,7 +4618,7 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClie kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "channelAvailability", "byNetwork", "byClientOs"], + "tags": ["wireless", "monitor", "experience", "channelAvailability", "byNetwork", "byClientOs"], "operation": "getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClientOs", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -4671,8 +4671,8 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClie - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -4684,7 +4684,7 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClie kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "channelAvailability", "byNetwork", "byClientType"], + "tags": ["wireless", "monitor", "experience", "channelAvailability", "byNetwork", "byClientType"], "operation": "getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByClientType", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -4737,8 +4737,8 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByDevi - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -4750,7 +4750,7 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByDevi kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "channelAvailability", "byNetwork", "byDevice"], + "tags": ["wireless", "monitor", "experience", "channelAvailability", "byNetwork", "byDevice"], "operation": "getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByDevice", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -4803,8 +4803,8 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkByInte - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 14 days. The default is 2 hours. If interval is provided, the timespan will be autocalculated. @@ -4871,8 +4871,8 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkBySsid - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -4884,7 +4884,7 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkBySsid kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "channelAvailability", "byNetwork", "bySsid"], + "tags": ["wireless", "monitor", "experience", "channelAvailability", "byNetwork", "bySsid"], "operation": "getOrganizationAssuranceWirelessExperienceChannelAvailabilityByNetworkBySsid", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -4937,8 +4937,8 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityInsightsByNetwo - direction (string): direction to paginate, either "next" (default) or "prev" page - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - ssidNumbers (array): Filter results by SSID number. Valid values are 0-14. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - insights (string): Source used to compute insights. Defaults to dashboard. - contributor (string): Contributor for which to retrieve insights. If not specified, returns overall insights. - subContributor (string): Sub-contributor for which to retrieve insights. If not specified, returns all sub contributor insights. @@ -4964,7 +4964,7 @@ def getOrganizationAssuranceWirelessExperienceChannelAvailabilityInsightsByNetwo ) metadata = { - "tags": ["wireless", "configure", "experience", "channelAvailability", "insights", "byNetwork"], + "tags": ["wireless", "monitor", "experience", "channelAvailability", "insights", "byNetwork"], "operation": "getOrganizationAssuranceWirelessExperienceChannelAvailabilityInsightsByNetwork", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5115,7 +5115,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageByNetwork( kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "coverage", "byNetwork"], + "tags": ["wireless", "monitor", "experience", "coverage", "byNetwork"], "operation": "getOrganizationAssuranceWirelessExperienceCoverageByNetwork", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5181,7 +5181,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageByNetworkByBand( kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "coverage", "byNetwork", "byBand"], + "tags": ["wireless", "monitor", "experience", "coverage", "byNetwork", "byBand"], "operation": "getOrganizationAssuranceWirelessExperienceCoverageByNetworkByBand", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5239,7 +5239,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageByNetworkByClient( - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. - - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 10000. Default is 1000. + - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 10000. Default is 10000. - startingAfter (string): 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. - endingBefore (string): 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. """ @@ -5247,7 +5247,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageByNetworkByClient( kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "coverage", "byNetwork", "byClient"], + "tags": ["wireless", "monitor", "experience", "coverage", "byNetwork", "byClient"], "operation": "getOrganizationAssuranceWirelessExperienceCoverageByNetworkByClient", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5313,7 +5313,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageByNetworkByClientOs( kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "coverage", "byNetwork", "byClientOs"], + "tags": ["wireless", "monitor", "experience", "coverage", "byNetwork", "byClientOs"], "operation": "getOrganizationAssuranceWirelessExperienceCoverageByNetworkByClientOs", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5379,7 +5379,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageByNetworkByClientType( kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "coverage", "byNetwork", "byClientType"], + "tags": ["wireless", "monitor", "experience", "coverage", "byNetwork", "byClientType"], "operation": "getOrganizationAssuranceWirelessExperienceCoverageByNetworkByClientType", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5445,7 +5445,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageByNetworkByDevice( kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "coverage", "byNetwork", "byDevice"], + "tags": ["wireless", "monitor", "experience", "coverage", "byNetwork", "byDevice"], "operation": "getOrganizationAssuranceWirelessExperienceCoverageByNetworkByDevice", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5579,7 +5579,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageByNetworkBySsid( kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "coverage", "byNetwork", "bySsid"], + "tags": ["wireless", "monitor", "experience", "coverage", "byNetwork", "bySsid"], "operation": "getOrganizationAssuranceWirelessExperienceCoverageByNetworkBySsid", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5659,7 +5659,7 @@ def getOrganizationAssuranceWirelessExperienceCoverageInsightsByNetwork( ) metadata = { - "tags": ["wireless", "configure", "experience", "coverage", "insights", "byNetwork"], + "tags": ["wireless", "monitor", "experience", "coverage", "insights", "byNetwork"], "operation": "getOrganizationAssuranceWirelessExperienceCoverageInsightsByNetwork", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -5968,7 +5968,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByBa - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -5980,7 +5980,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByBa kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "successfulConnections", "byNetwork", "byBand"], + "tags": ["wireless", "monitor", "experience", "successfulConnections", "byNetwork", "byBand"], "operation": "getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByBand", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -6034,7 +6034,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByCl - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -6046,7 +6046,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByCl kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "successfulConnections", "byNetwork", "byClient"], + "tags": ["wireless", "monitor", "experience", "successfulConnections", "byNetwork", "byClient"], "operation": "getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByClient", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -6100,7 +6100,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByCl - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -6112,7 +6112,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByCl kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "successfulConnections", "byNetwork", "byClientOs"], + "tags": ["wireless", "monitor", "experience", "successfulConnections", "byNetwork", "byClientOs"], "operation": "getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByClientOs", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -6166,7 +6166,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByCl - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -6178,7 +6178,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByCl kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "successfulConnections", "byNetwork", "byClientType"], + "tags": ["wireless", "monitor", "experience", "successfulConnections", "byNetwork", "byClientType"], "operation": "getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByClientType", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -6234,7 +6234,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByDe - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -6246,7 +6246,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByDe kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "successfulConnections", "byNetwork", "byDevice"], + "tags": ["wireless", "monitor", "experience", "successfulConnections", "byNetwork", "byDevice"], "operation": "getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByDevice", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -6291,7 +6291,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByIn self, organizationId: str, total_pages=1, direction="next", **kwargs ): """ - **Time-series of wireless connection successes and failures by network.** + **Returns successful and failed wireless connection counts by network for each time interval** https://developer.cisco.com/meraki/api-v1/#!get-organization-assurance-wireless-experience-successful-connections-by-network-by-interval - organizationId (string): Organization ID @@ -6300,7 +6300,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByIn - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 14 days. The default is 2 hours. If interval is provided, the timespan will be autocalculated. @@ -6368,7 +6368,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkBySe - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -6380,7 +6380,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkBySe kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "successfulConnections", "byNetwork", "byServer"], + "tags": ["wireless", "monitor", "experience", "successfulConnections", "byNetwork", "byServer"], "operation": "getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkByServer", } organizationId = urllib.parse.quote(str(organizationId), safe="") @@ -6434,7 +6434,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkBySs - networkIds (array): Filter results by network. - serials (array): Filter results by device serial. - ssidNumbers (array): Filter results by SSID number. - - bands (array): Filter results by band. + - bands (array): Filter results by wireless band in GHz (2.4, 5, or 6). - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 14 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 14 days after t0. - timespan (number): 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 15 minutes and be less than or equal to 14 days. The default is 2 hours. @@ -6446,7 +6446,7 @@ def getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkBySs kwargs.update(locals()) metadata = { - "tags": ["wireless", "configure", "experience", "successfulConnections", "byNetwork", "bySsid"], + "tags": ["wireless", "monitor", "experience", "successfulConnections", "byNetwork", "bySsid"], "operation": "getOrganizationAssuranceWirelessExperienceSuccessfulConnectionsByNetworkBySsid", } organizationId = urllib.parse.quote(str(organizationId), safe="") diff --git a/pyproject.toml b/pyproject.toml index cce4b5c..c8d738a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "meraki" -version = "4.7.0b0" +version = "4.7.0b1" description = "Cisco Meraki Dashboard API library" authors = [ {name = "Cisco Meraki", email = "api-feedback@meraki.net"} diff --git a/uv.lock b/uv.lock index d1427cd..ba13fef 100644 --- a/uv.lock +++ b/uv.lock @@ -591,7 +591,7 @@ wheels = [ [[package]] name = "meraki" -version = "4.7.0b0" +version = "4.7.0b1" source = { editable = "." } dependencies = [ { name = "aiohttp" },