Read an application's push-to-deploy setting
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/auto-deploy"
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/api/v1/org/applications/{application_id}/auto-deploy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/auto-deploy \
--header 'Authorization: Bearer <token>'{
"enabled": true,
"branch": "<string>",
"latest_build_commit_sha": "<string>",
"latest_build_image_tag": "<string>",
"latest_build_observed_at": "<string>",
"latest_workflow_status": "<string>",
"latest_workflow_conclusion": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Applications
Read an application's push-to-deploy setting
Read whether a successful build of the application’s tracked branch redeploys it automatically, together with the newest build observed on that branch. A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication).
GET
/
api
/
v1
/
org
/
applications
/
{application_id}
/
auto-deploy
Read an application's push-to-deploy setting
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/auto-deploy"
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/api/v1/org/applications/{application_id}/auto-deploy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/auto-deploy \
--header 'Authorization: Bearer <token>'{
"enabled": true,
"branch": "<string>",
"latest_build_commit_sha": "<string>",
"latest_build_image_tag": "<string>",
"latest_build_observed_at": "<string>",
"latest_workflow_status": "<string>",
"latest_workflow_conclusion": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Successful Response
An application's push-to-deploy state: whether a successful build of the tracked branch redeploys it, and the newest build the platform observed on that branch.