Template build logs
curl --request GET \
--url https://api.compute.anonalabs.com/templates/{templateID}/builds/{buildID}/logs \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/templates/{templateID}/builds/{buildID}/logs"
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/templates/{templateID}/builds/{buildID}/logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"logs": []
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}templates
Template build logs
Get template build logs
GET
/
templates
/
{templateID}
/
builds
/
{buildID}
/
logs
Template build logs
curl --request GET \
--url https://api.compute.anonalabs.com/templates/{templateID}/builds/{buildID}/logs \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/templates/{templateID}/builds/{buildID}/logs"
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/templates/{templateID}/builds/{buildID}/logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"logs": []
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}Authorizations
Query Parameters
Starting timestamp of the logs that should be returned in milliseconds
Required range:
x >= 0Maximum number of logs that should be returned
Required range:
0 <= x <= 100Direction of the logs that should be returned
Available options:
forward, backward State of the sandbox
Available options:
debug, info, warn, error Source of the logs that should be returned
Available options:
temporary, persistent Response
Successfully returned the template build logs
Build logs structured
Show child attributes
Show child attributes