Skip to main content
GET
/
compute
/
script
/
{id}
/
variables
/
{variableId}
Get Variable
curl --request GET \
  --url https://api.bunny.net/compute/script/{id}/variables/{variableId} \
  --header 'AccessKey: <api-key>'
{
  "Id": 123,
  "Required": true,
  "Name": "<string>",
  "DefaultValue": "<string>"
}

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Path Parameters

id
integer<int64>
required

The ID of the script that contains the variable

variableId
integer<int64>
required

The ID of the Environment Variable that should be returned

Response

The script with the requested ID

Id
integer<int64>
required
Required
boolean
required
Name
string | null
DefaultValue
string | null