Template build file upload URL
curl --request GET \
--url https://api.compute.anonalabs.com/templates/{templateID}/files/{hash} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/templates/{templateID}/files/{hash}"
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}/files/{hash}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"present": true,
"url": "<string>",
"headers": {}
}{
"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>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}templates
Template build file upload URL
Get an upload link for a tar file containing build layer files
GET
/
templates
/
{templateID}
/
files
/
{hash}
Template build file upload URL
curl --request GET \
--url https://api.compute.anonalabs.com/templates/{templateID}/files/{hash} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/templates/{templateID}/files/{hash}"
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}/files/{hash}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"present": true,
"url": "<string>",
"headers": {}
}{
"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>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}Authorizations
Path Parameters
Hash of the files (lowercase hex SHA-256)
Pattern:
^[0-9a-f]{64}$