import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/pipeline-runs/{run_id}/steps/{step_id}/logs"
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}/pipeline-runs/{run_id}/steps/{step_id}/logs', 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}/pipeline-runs/{run_id}/steps/{step_id}/logs \
--header 'Authorization: Bearer <token>'<string>Stream a pipeline step's logs of an application
Relays a step’s output as server-sent events, each carrying its stream sequence so a client resumes with from_seq. A concluded step replays its retained output and ends; a running step is tailed. 404 when the step has no execution to read yet, 410 once a concluded step’s output aged out of retention, 503 when the log stream cannot be reached. Needs pipelines.read.
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/pipeline-runs/{run_id}/steps/{step_id}/logs"
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}/pipeline-runs/{run_id}/steps/{step_id}/logs', 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}/pipeline-runs/{run_id}/steps/{step_id}/logs \
--header 'Authorization: Bearer <token>'<string>Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The application whose connected repository's pipeline is addressed.
The pipeline run.
The step.
Query Parameters
Resume after this stream sequence.
Keep the stream open (true) or end it at the end of the history (false). Unset follows a running step only.
Deliver the retained history before the live tail. Unset replays for a concluded step only.
Response
The step's output as an event stream.
The response is of type string.