---
title: "GET /kqlScripts/{kqlScriptName}"
method: GET
path: "/kqlScripts/{kqlScriptName}"
tags: ["kqlScripts"]
---

# GET /kqlScripts/{kqlScriptName}

`GET /kqlScripts/{kqlScriptName}`

Get KQL script by name

## Path parameters

- `kqlScriptName` string, required

## Parameters

- `../../../../../common-types/resource-management/v1/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref

## Response `200`

OK

- KqlScriptResource
  - `id` string
  - `name` string
  - `type` string
  - `properties` KqlScript
    - `content` object
      - `query` string
      - `metadata` object
        - `language` string
      - `currentConnection` object
        - `name` string
        - `poolName` string
        - `databaseName` string
        - `type` string

## Other responses

- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.dev/azuresynapse/apis/artifactsclient-3.md) · [All operations](https://skmtc.dev/azuresynapse/apis/artifactsclient-3/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azuresynapse/artifactsclient-3/revisions/8e06f1fe4dcb/schema)
