diff --git a/scripts/cli/commands/eventhouse.yaml b/scripts/cli/commands/eventhouse.yaml index 15e2438..f37c569 100644 --- a/scripts/cli/commands/eventhouse.yaml +++ b/scripts/cli/commands/eventhouse.yaml @@ -134,7 +134,7 @@ subcommands: get-definition: endpoint: workspaces/{workspace_id}/eventhouses/{eventhouse_id}/getDefinition - method: get + method: post description: Get the definition of an eventhouse. panel: EventhouseDefinition args: diff --git a/scripts/cli/commands/eventstream.yaml b/scripts/cli/commands/eventstream.yaml index fadb621..8fa7019 100644 --- a/scripts/cli/commands/eventstream.yaml +++ b/scripts/cli/commands/eventstream.yaml @@ -134,7 +134,7 @@ subcommands: get-definition: endpoint: workspaces/{workspace_id}/eventstreams/{eventstream_id}/getDefinition - method: get + method: post description: Get the definition of an eventstream. panel: EventstreamDefinition args: diff --git a/scripts/cli/commands/kql_dashboard.yaml b/scripts/cli/commands/kql_dashboard.yaml index 195a450..3a366c8 100644 --- a/scripts/cli/commands/kql_dashboard.yaml +++ b/scripts/cli/commands/kql_dashboard.yaml @@ -134,7 +134,7 @@ subcommands: get-definition: endpoint: workspaces/{workspace_id}/kqlDashboards/{kql_dashboard_id}/getDefinition - method: get + method: post description: Get the definition of a kql dashboard. panel: KqlDashboardDefinition args: diff --git a/scripts/cli/commands/kql_database.yaml b/scripts/cli/commands/kql_database.yaml index 1ea7be0..08cc6bb 100644 --- a/scripts/cli/commands/kql_database.yaml +++ b/scripts/cli/commands/kql_database.yaml @@ -140,7 +140,7 @@ subcommands: get-definition: endpoint: workspaces/{workspace_id}/kqlDatabases/{kql_database_id}/getDefinition - method: get + method: post description: Get the definition of a kql database. panel: KqlDatabaseDefinition args: diff --git a/scripts/cli/commands/kql_queryset.yaml b/scripts/cli/commands/kql_queryset.yaml index f2ddd0c..339ee7c 100644 --- a/scripts/cli/commands/kql_queryset.yaml +++ b/scripts/cli/commands/kql_queryset.yaml @@ -134,7 +134,7 @@ subcommands: get-definition: endpoint: workspaces/{workspace_id}/kqlQuerysets/{kql_queryset_id}/getDefinition - method: get + method: post description: Get the definition of a kql queryset. panel: KqlQuerysetDefinition args: diff --git a/scripts/cli/commands/mirrored_database.yaml b/scripts/cli/commands/mirrored_database.yaml index a30971d..4b16a16 100644 --- a/scripts/cli/commands/mirrored_database.yaml +++ b/scripts/cli/commands/mirrored_database.yaml @@ -134,7 +134,7 @@ subcommands: get-definition: endpoint: workspaces/{workspace_id}/mirroredDatabases/{mirrored_database_id}/getDefinition - method: get + method: post description: Get the definition of a mirrored database. panel: mirroredDatabaseDefinition args: diff --git a/scripts/cli/commands/notebook.yaml b/scripts/cli/commands/notebook.yaml index 65d29f9..e875e0f 100644 --- a/scripts/cli/commands/notebook.yaml +++ b/scripts/cli/commands/notebook.yaml @@ -135,7 +135,7 @@ subcommands: get-definition: endpoint: workspaces/{workspace_id}/notebooks/{notebook_id}/getDefinition - method: get + method: post description: Get the definition of a notebook. panel: NotebookDefinition args: diff --git a/scripts/cli/commands/reflex.yaml b/scripts/cli/commands/reflex.yaml index 1d3766c..bfd5028 100644 --- a/scripts/cli/commands/reflex.yaml +++ b/scripts/cli/commands/reflex.yaml @@ -134,7 +134,7 @@ subcommands: get-definition: endpoint: workspaces/{workspace_id}/reflexes/{reflex_id}/getDefinition - method: get + method: post description: Get the definition of a reflex. panel: reflexDefinition args: diff --git a/scripts/cli/commands/report.yaml b/scripts/cli/commands/report.yaml index 2ae51ae..6d50c14 100644 --- a/scripts/cli/commands/report.yaml +++ b/scripts/cli/commands/report.yaml @@ -140,7 +140,7 @@ subcommands: get-definition: endpoint: workspaces/{workspace_id}/reports/{report_id}/getDefinition - method: get + method: post description: Get the definition of a report. panel: reportDefinition args: diff --git a/scripts/cli/commands/spark_job_definition.yaml b/scripts/cli/commands/spark_job_definition.yaml index 9a79f12..7e73a6a 100644 --- a/scripts/cli/commands/spark_job_definition.yaml +++ b/scripts/cli/commands/spark_job_definition.yaml @@ -134,7 +134,7 @@ subcommands: get-definition: endpoint: workspaces/{workspace_id}/sparkJobDefinitions/{spark_job_definition_id}/getDefinition - method: get + method: post description: Get the definition of a spark job definition. panel: Spark Job Definition args: diff --git a/src/msfabricutils/rest_api/eventhouse.py b/src/msfabricutils/rest_api/eventhouse.py index 95ce3b4..0d00a80 100644 --- a/src/msfabricutils/rest_api/eventhouse.py +++ b/src/msfabricutils/rest_api/eventhouse.py @@ -320,7 +320,7 @@ def eventhouse_get_definition( url = f"{url}format={format}&" url = url.rstrip("&?") - method = "get" + method = "post" token = get_fabric_bearer_token() headers = {"Content-Type": "application/json", "Authorization": f"Bearer {token}"} diff --git a/src/msfabricutils/rest_api/eventstream.py b/src/msfabricutils/rest_api/eventstream.py index de3140e..b19225d 100644 --- a/src/msfabricutils/rest_api/eventstream.py +++ b/src/msfabricutils/rest_api/eventstream.py @@ -310,7 +310,7 @@ def eventstream_get_definition( url = f"{url}format={format}&" url = url.rstrip("&?") - method = "get" + method = "post" token = get_fabric_bearer_token() headers = {"Content-Type": "application/json", "Authorization": f"Bearer {token}"} diff --git a/src/msfabricutils/rest_api/kql_dashboard.py b/src/msfabricutils/rest_api/kql_dashboard.py index 103a354..d1d3fc3 100644 --- a/src/msfabricutils/rest_api/kql_dashboard.py +++ b/src/msfabricutils/rest_api/kql_dashboard.py @@ -310,7 +310,7 @@ def kql_dashboard_get_definition( url = f"{url}?" url = url.rstrip("&?") - method = "get" + method = "post" token = get_fabric_bearer_token() headers = {"Content-Type": "application/json", "Authorization": f"Bearer {token}"} diff --git a/src/msfabricutils/rest_api/kql_database.py b/src/msfabricutils/rest_api/kql_database.py index 291404f..9afdb70 100644 --- a/src/msfabricutils/rest_api/kql_database.py +++ b/src/msfabricutils/rest_api/kql_database.py @@ -318,7 +318,7 @@ def kql_database_get_definition( url = f"{url}?" url = url.rstrip("&?") - method = "get" + method = "post" token = get_fabric_bearer_token() headers = {"Content-Type": "application/json", "Authorization": f"Bearer {token}"} diff --git a/src/msfabricutils/rest_api/kql_queryset.py b/src/msfabricutils/rest_api/kql_queryset.py index 7c858ce..e0ddf64 100644 --- a/src/msfabricutils/rest_api/kql_queryset.py +++ b/src/msfabricutils/rest_api/kql_queryset.py @@ -310,7 +310,7 @@ def kql_queryset_get_definition( url = f"{url}?" url = url.rstrip("&?") - method = "get" + method = "post" token = get_fabric_bearer_token() headers = {"Content-Type": "application/json", "Authorization": f"Bearer {token}"} diff --git a/src/msfabricutils/rest_api/mirrored_database.py b/src/msfabricutils/rest_api/mirrored_database.py index 90c5c70..56f8ddb 100644 --- a/src/msfabricutils/rest_api/mirrored_database.py +++ b/src/msfabricutils/rest_api/mirrored_database.py @@ -310,7 +310,7 @@ def mirrored_database_get_definition( url = f"{url}?" url = url.rstrip("&?") - method = "get" + method = "post" token = get_fabric_bearer_token() headers = {"Content-Type": "application/json", "Authorization": f"Bearer {token}"} diff --git a/src/msfabricutils/rest_api/notebook.py b/src/msfabricutils/rest_api/notebook.py index 5e3bcfe..14058dc 100644 --- a/src/msfabricutils/rest_api/notebook.py +++ b/src/msfabricutils/rest_api/notebook.py @@ -315,7 +315,7 @@ def notebook_get_definition( url = f"{url}format={format}&" url = url.rstrip("&?") - method = "get" + method = "post" token = get_fabric_bearer_token() headers = {"Content-Type": "application/json", "Authorization": f"Bearer {token}"} diff --git a/src/msfabricutils/rest_api/reflex.py b/src/msfabricutils/rest_api/reflex.py index eda076f..365c39b 100644 --- a/src/msfabricutils/rest_api/reflex.py +++ b/src/msfabricutils/rest_api/reflex.py @@ -314,7 +314,7 @@ def reflex_get_definition( url = f"{url}format={format}&" url = url.rstrip("&?") - method = "get" + method = "post" token = get_fabric_bearer_token() headers = {"Content-Type": "application/json", "Authorization": f"Bearer {token}"} diff --git a/src/msfabricutils/rest_api/report.py b/src/msfabricutils/rest_api/report.py index 8dd9dde..71d0768 100644 --- a/src/msfabricutils/rest_api/report.py +++ b/src/msfabricutils/rest_api/report.py @@ -314,7 +314,7 @@ def report_get_definition( url = f"{url}format={format}&" url = url.rstrip("&?") - method = "get" + method = "post" token = get_fabric_bearer_token() headers = {"Content-Type": "application/json", "Authorization": f"Bearer {token}"} diff --git a/src/msfabricutils/rest_api/spark_job_definition.py b/src/msfabricutils/rest_api/spark_job_definition.py index a293d0d..457639b 100644 --- a/src/msfabricutils/rest_api/spark_job_definition.py +++ b/src/msfabricutils/rest_api/spark_job_definition.py @@ -310,7 +310,7 @@ def spark_job_definition_get_definition( url = f"{url}?" url = url.rstrip("&?") - method = "get" + method = "post" token = get_fabric_bearer_token() headers = {"Content-Type": "application/json", "Authorization": f"Bearer {token}"}