---
title: "Get Edge Script"
method: GET
path: "/compute/script/{id}"
tags: ["Edge Script"]
---

# Get Edge Script

`GET /compute/script/{id}`

## Path parameters

- `id` integer, required

## Response `200`

The script with the requested ID

- EdgeScriptModel
  - `Id` integer
  - `Name` string, nullable
  - `LastModified` string, date-time
  - `ScriptType` 0 | 1 | 2 — 0 = DNS 1 = CDN 2 = Middleware
  - `CurrentReleaseId` integer
  - `EdgeScriptVariables` EdgeScriptVariableModel[], nullable
    - `Id` integer
    - `Name` string, nullable
    - `Required` boolean
    - `DefaultValue` string, nullable
  - `Deleted` boolean
  - `LinkedPullZones` LinkedPullZone[], nullable
    - `Id` integer
    - `PullZoneName` string, nullable
    - `DefaultHostname` string, nullable
  - `Integration` SourceCodeIntegrationModel
    - `IntegrationId` integer
    - `RepositorySettings` SourceCodeRepositorySettingsModel
      - `Id` integer, nullable
      - `Name` string, nullable
      - `Private` boolean
      - `TemplateUrl` string, nullable
    - `DeployConfiguration` DeployConfigurationModel
      - `Branch` string, nullable
      - `InstallCommand` string, nullable
      - `BuildCommand` string, nullable
      - `EntryFile` string, nullable
      - `CreateWorkflow` boolean
  - `DefaultHostname` string, nullable
  - `SystemHostname` string, nullable
  - `DeploymentKey` string, nullable
  - `RepositoryId` integer, nullable
  - `IntegrationId` integer, nullable
  - `MonthlyCost` number
  - `MonthlyRequestCount` integer
  - `MonthlyCpuTime` integer

## Other responses

- `401` — The request authorization failed
- `404` — The script with the requested ID does not exist.
- `500` — Internal Server Error

---

[API](https://skmtc.net/bunny/apis/bunny-net-cdn-logging.md) · [All operations](https://skmtc.net/bunny/apis/bunny-net-cdn-logging/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bunny/bunny-net-cdn-logging/versions/9e622620664b/schema)
