Stream build events
curl --request GET \
--url https://api.compute.anonalabs.com/v1/templates/{templateID}/builds/{buildID}/events \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/v1/templates/{templateID}/builds/{buildID}/events"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.compute.anonalabs.com/v1/templates/{templateID}/builds/{buildID}/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}Templates
Stream build events
Newline-delimited JSON: one object per log line and status change,
ending when the build is ready or failed. anona-compute template build and the dashboard follow a build with it.
GET
/
v1
/
templates
/
{templateID}
/
builds
/
{buildID}
/
events
Stream build events
curl --request GET \
--url https://api.compute.anonalabs.com/v1/templates/{templateID}/builds/{buildID}/events \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/v1/templates/{templateID}/builds/{buildID}/events"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.compute.anonalabs.com/v1/templates/{templateID}/builds/{buildID}/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}