Skip to main content
GET
/
compute
/
script
/
{id}
Get Edge Script
curl --request GET \
  --url https://api.bunny.net/compute/script/{id} \
  --header 'AccessKey: <api-key>'
{
  "Id": 123,
  "Name": "<string>",
  "LastModified": "2023-11-07T05:31:56Z",
  "ScriptType": "DNS",
  "CurrentReleaseId": 123,
  "EdgeScriptVariables": [
    {
      "Id": 123,
      "Required": true,
      "Name": "<string>",
      "DefaultValue": "<string>"
    }
  ],
  "Deleted": true,
  "LinkedPullZones": [
    {}
  ],
  "Integration": {
    "IntegrationId": 123,
    "RepositorySettings": {
      "Private": true,
      "Id": 123,
      "Name": "<string>",
      "TemplateUrl": "<string>"
    },
    "DeployConfiguration": {
      "CreateWorkflow": true,
      "Branch": "<string>",
      "InstallCommand": "<string>",
      "BuildCommand": "<string>",
      "EntryFile": "<string>"
    }
  },
  "DefaultHostname": "<string>",
  "SystemHostname": "<string>",
  "DeploymentKey": "<string>",
  "RepositoryId": 123,
  "IntegrationId": 123,
  "MonthlyCost": 123,
  "MonthlyRequestCount": 123,
  "MonthlyCpuTime": 123
}

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Path Parameters

id
integer<int64>
required

The ID of the script that will be returned

Response

The script with the requested ID

Id
integer<int64>
Name
string | null
LastModified
string<date-time>
ScriptType
enum<string>

0 = DNS
1 = CDN
2 = Middleware

Available options:
DNS,
CDN,
Middleware
Example:

"DNS"

CurrentReleaseId
integer<int64>
EdgeScriptVariables
object[] | null
Deleted
boolean
LinkedPullZones
object[] | null
Integration
object
DefaultHostname
string | null
SystemHostname
string | null
DeploymentKey
string | null
RepositoryId
integer<int64> | null
IntegrationId
integer<int64> | null
MonthlyCost
number<decimal>
MonthlyRequestCount
integer<int64>
MonthlyCpuTime
integer<int64>