Pipelines /
List preview template runs
Required permission
Account > Templates > General > Read
Path parameters
projectId
string requiredID of the projectpipelineId
string requiredID of the pipeline
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.
Response body
- {object}Response object.
data
{object} requiredResult data.previewTemplateRuns
[array] requiredAn array of template run objects.- {object}
apiVersion
string requiredThe version of the Northflank API to run the template against.one ofv1.2options
{object}Options regarding how the template is run.concurrencyPolicy
stringDefines the concurrency behaviour of the template with respect to parallel runs.one ofallow, queue, forbidnameFormat
stringThe format of the automatically generated preview name. This is a parsed ref string.prefixName
booleanIf true, the preview name will default to the front of the resource name.schedule
{object}Options regarding which hours preview environments should be active. Only available for BYOC projects.mon
{object}startTime
integermin0max2400endTime
integermin0max2400tue
{object}startTime
integermin0max2400endTime
integermin0max2400wed
{object}startTime
integermin0max2400endTime
integermin0max2400thu
{object}startTime
integermin0max2400endTime
integermin0max2400fri
{object}startTime
integermin0max2400endTime
integermin0max2400sat
{object}startTime
integermin0max2400endTime
integermin0max2400sun
{object}startTime
integermin0max2400endTime
integermin0max2400expiry
{object}Settings regarding the automatic deletion of previews.previewLifetime
integerIf set, preview environments will be automatically deleted after this many minutes since their last update.min1resetOnUpdate
booleanIf `true`, the expiry time for an existing preview will be reset when it is ran again.id
string requiredIdentifier for the template runtemplateId
string requiredIdentifier for the templatestatus
string requiredStatus of the template runone ofpending, running, success, failurecreatedAt
stringtime of creationupdatedAt
stringtime of updatepagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
GET /v1/projects/{projectId}/pipelines/{pipelineId}/preview-envs/runs
Example response
200 OK
JSON
{
"data": {
"previewTemplateRuns": [
{
"apiVersion": "v1.2",
"options": {
"concurrencyPolicy": "allow"
},
"id": "3dd592f6-ce63-45ee-acf8-13dc5ec5235c",
"templateId": "example-template",
"status": "pending"
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}