> ## Documentation Index
> Fetch the complete documentation index at: https://bunnynet-cb9733c2-support-migration.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Edge Script



## OpenAPI

````yaml https://core-api-public-docs.b-cdn.net/docs/v3/compute.json get /compute/script/{id}
openapi: 3.0.0
info:
  title: bunny.net Compute API
  description: >-
    <img src='https://bunny.net/v2/images/bunnynet-logo-dark.svg' style='width:
    200px;' alt='bunny.net Logo'>
                   Edge Scripts and Compute API documentation for bunny.net. This API provides endpoints for managing edge scripts, releases, secrets, variables, and other compute-related resources.
  termsOfService: https://bunny.net/tos
  contact:
    name: bunny.net
    url: https://docs.bunny.net
    email: support@bunny.net
  version: 1.0.0
servers:
  - url: https://api.bunny.net
    description: bunny.net API Server
security:
  - AccessKey: []
paths:
  /compute/script/{id}:
    get:
      tags:
        - Edge Script
      summary: Get Edge Script
      operationId: GetEdgeScriptByIdEndpoint_GetEdgeScriptById
      parameters:
        - name: id
          in: path
          required: true
          description: The ID of the script that will be returned
          schema:
            type: integer
            format: int64
          x-position: 1
      responses:
        '200':
          description: The script with the requested ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EdgeScriptModel'
        '401':
          description: The request authorization failed
        '404':
          description: The script with the requested ID does not exist.
        '500':
          description: Internal Server Error
      security:
        - AccessKey:
            - User
            - UserApi
            - SubuserAPICompute
            - SubuserAPIDns
            - SubuserCompute
            - SubuserManage
            - SubuserAPIManage
        - bearer:
            - User
            - UserApi
            - SubuserAPICompute
            - SubuserAPIDns
            - SubuserCompute
            - SubuserManage
            - SubuserAPIManage
components:
  schemas:
    EdgeScriptModel:
      type: object
      additionalProperties: false
      properties:
        Id:
          type: integer
          format: int64
        Name:
          type: string
          nullable: true
        LastModified:
          type: string
          format: date-time
        ScriptType:
          $ref: '#/components/schemas/EdgeScriptTypes'
        CurrentReleaseId:
          type: integer
          format: int64
        EdgeScriptVariables:
          type: array
          nullable: true
          items:
            $ref: '#/components/schemas/EdgeScriptVariableModel'
        Deleted:
          type: boolean
        LinkedPullZones:
          type: array
          nullable: true
          items:
            $ref: '#/components/schemas/LinkedPullZone'
        Integration:
          nullable: true
          oneOf:
            - $ref: '#/components/schemas/SourceCodeIntegrationModel'
        DefaultHostname:
          type: string
          nullable: true
        SystemHostname:
          type: string
          nullable: true
        DeploymentKey:
          type: string
          nullable: true
        RepositoryId:
          type: integer
          format: int64
          nullable: true
        IntegrationId:
          type: integer
          format: int64
          nullable: true
        MonthlyCost:
          type: number
          format: decimal
        MonthlyRequestCount:
          type: integer
          format: int64
        MonthlyCpuTime:
          type: integer
          format: int64
    EdgeScriptTypes:
      type: integer
      description: |-
        0 = DNS
        1 = CDN
        2 = Middleware
      x-enumNames:
        - DNS
        - CDN
        - Middleware
      enum:
        - 0
        - 1
        - 2
    EdgeScriptVariableModel:
      type: object
      additionalProperties: false
      properties:
        Id:
          type: integer
          format: int64
        Name:
          type: string
          nullable: true
        Required:
          type: boolean
        DefaultValue:
          type: string
          nullable: true
    LinkedPullZone:
      type: object
      additionalProperties: false
      properties:
        Id:
          type: integer
          format: int64
        PullZoneName:
          type: string
          nullable: true
        DefaultHostname:
          type: string
          nullable: true
    SourceCodeIntegrationModel:
      type: object
      additionalProperties: false
      properties:
        IntegrationId:
          type: integer
          format: int64
        RepositorySettings:
          nullable: true
          oneOf:
            - $ref: '#/components/schemas/SourceCodeRepositorySettingsModel'
        DeployConfiguration:
          nullable: true
          oneOf:
            - $ref: '#/components/schemas/DeployConfigurationModel'
    SourceCodeRepositorySettingsModel:
      type: object
      additionalProperties: false
      properties:
        Id:
          type: integer
          format: int64
          nullable: true
        Name:
          type: string
          nullable: true
        Private:
          type: boolean
        TemplateUrl:
          type: string
          nullable: true
    DeployConfigurationModel:
      type: object
      additionalProperties: false
      properties:
        Branch:
          type: string
          nullable: true
        InstallCommand:
          type: string
          nullable: true
        BuildCommand:
          type: string
          nullable: true
        EntryFile:
          type: string
          nullable: true
        CreateWorkflow:
          type: boolean
  securitySchemes:
    AccessKey:
      type: apiKey
      description: API Access Key authorization header
      name: AccessKey
      in: header
    bearer:
      type: apiKey
      description: Bearer token authorization header
      name: Authorization
      in: header

````