From 09d9061eb2bdb2f2f6ce8926d44db187e2f39e8c Mon Sep 17 00:00:00 2001 From: Mihir Vala <179564180+mihirvala-crestdata@users.noreply.github.com> Date: Wed, 7 Jan 2026 11:43:21 +0530 Subject: [PATCH 1/2] chore: updated export_dashboard documentation to clarify single dashboard support --- README.md | 13 ++----------- src/secops/chronicle/dashboard.py | 1 + 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index d904d76..0c740ac 100644 --- a/README.md +++ b/README.md @@ -2892,20 +2892,11 @@ except Exception as e: #### Export Dashboards -Export one or more dashboards to a dictionary. +Export dashboard to a dictionary. ```python -import os -from secops.chronicle import client - -# Assumes the CHRONICLE_SA_KEY environment variable is set with service account JSON -chronicle_client = client.Client() - -# Export a single dashboard +# Export a dashboard dashboards = chronicle.export_dashboard(dashboard_names=[""]) - -# Export multiple dashboards -dashboards = chronicle.export_dashboard(dashboard_names=["", ""]) ``` diff --git a/src/secops/chronicle/dashboard.py b/src/secops/chronicle/dashboard.py index 16b1806..29fd5c1 100644 --- a/src/secops/chronicle/dashboard.py +++ b/src/secops/chronicle/dashboard.py @@ -164,6 +164,7 @@ def import_dashboard(client, dashboard: dict[str, Any]) -> dict[str, Any]: def export_dashboard(client, dashboard_names: list[str]) -> dict[str, Any]: """Export native dashboards. + It supports single dashboard export operation only. Args: client: ChronicleClient instance From c1c46369de2e94b46900eb5256f76c312fe8605e Mon Sep 17 00:00:00 2001 From: Mihir Vala <179564180+mihirvala-crestdata@users.noreply.github.com> Date: Wed, 7 Jan 2026 14:24:13 +0530 Subject: [PATCH 2/2] chore: updated export_dashboard docstring to clarify single dashboard support --- src/secops/chronicle/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/secops/chronicle/client.py b/src/secops/chronicle/client.py index 0c8773f..4f8b02b 100644 --- a/src/secops/chronicle/client.py +++ b/src/secops/chronicle/client.py @@ -3964,6 +3964,7 @@ def import_dashboard(self, dashboard: dict[str, Any]) -> dict[str, Any]: def export_dashboard(self, dashboard_names: list[str]) -> dict[str, Any]: """Export native dashboards. + It supports single dashboard export operation only. Args: dashboard_names: List of dashboard resource names to export.