curl --request POST \
--url https://api.bunny.net/compute/script \
--header 'AccessKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"CreateLinkedPullZone": true,
"Name": "<string>",
"Code": "<string>",
"ScriptType": "DNS",
"LinkedPullZoneName": "<string>",
"Integration": {
"IntegrationId": 123,
"RepositorySettings": {
"Private": true,
"Id": 123,
"Name": "<string>",
"TemplateUrl": "<string>"
},
"DeployConfiguration": {
"CreateWorkflow": true,
"Branch": "<string>",
"InstallCommand": "<string>",
"BuildCommand": "<string>",
"EntryFile": "<string>"
}
}
}
'{
"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
}curl --request POST \
--url https://api.bunny.net/compute/script \
--header 'AccessKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"CreateLinkedPullZone": true,
"Name": "<string>",
"Code": "<string>",
"ScriptType": "DNS",
"LinkedPullZoneName": "<string>",
"Integration": {
"IntegrationId": 123,
"RepositorySettings": {
"Private": true,
"Id": 123,
"Name": "<string>",
"TemplateUrl": "<string>"
},
"DeployConfiguration": {
"CreateWorkflow": true,
"Branch": "<string>",
"InstallCommand": "<string>",
"BuildCommand": "<string>",
"EntryFile": "<string>"
}
}
}
'{
"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
}API Access Key authorization header
The script was successfully added
0 = DNS
1 = CDN
2 = Middleware
DNS, CDN, Middleware "DNS"
Show child attributes
Show child attributes
Was this page helpful?