Read a platform build
import requests
url = "https://platform.ankra.app/org/applications/{application_id}/builds/{build_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/org/applications/{application_id}/builds/{build_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/applications/{application_id}/builds/{build_id} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"component": "<string>",
"head_sha": "<string>",
"ref": "<string>",
"reason": "<string>",
"recipe": "<string>",
"status": "<string>",
"image_ref": "<string>",
"error_class": "<string>",
"error_message": "<string>",
"started_at": "<string>",
"finished_at": "<string>",
"created_at": "<string>"
}{
"detail": "<string>"
}applications
Read a platform build
One platform build: its recipe, the image it pushed, or the error class that routes its failure. Answers 404 for every organisation without the platform_builds flag.
GET
/
org
/
applications
/
{application_id}
/
builds
/
{build_id}
Read a platform build
import requests
url = "https://platform.ankra.app/org/applications/{application_id}/builds/{build_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/org/applications/{application_id}/builds/{build_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/applications/{application_id}/builds/{build_id} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"component": "<string>",
"head_sha": "<string>",
"ref": "<string>",
"reason": "<string>",
"recipe": "<string>",
"status": "<string>",
"image_ref": "<string>",
"error_class": "<string>",
"error_message": "<string>",
"started_at": "<string>",
"finished_at": "<string>",
"created_at": "<string>"
}{
"detail": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Successful Response
How the builder turned source into image (dockerfile, generated, buildpacks); null until resolved.
pending, running, succeeded or failed.
The image a succeeded build pushed.
Routes a failure: build_failed is the user's code; clone_auth, recipe_missing, push_failed, timeout and capacity are the platform's.