Check template alias
curl --request GET \
--url https://api.compute.anonalabs.com/templates/aliases/{alias} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/templates/aliases/{alias}"
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/aliases/{alias}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"templateID": "<string>",
"public": true
}{
"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
Check template alias
Check if template with given alias exists
GET
/
templates
/
aliases
/
{alias}
Check template alias
curl --request GET \
--url https://api.compute.anonalabs.com/templates/aliases/{alias} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/templates/aliases/{alias}"
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/aliases/{alias}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"templateID": "<string>",
"public": true
}{
"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>"
}