Conditions
List run conditions
Retrieve a paged list of conditions for a run. Run conditions are read-only snapshots copied from the playbook.
get/plugins/playbooks/api/v0/runs/{id}/conditions
Path parameters
idstring required
Example:mx3xyzdojfgyfdx8sc8of1gdme
ID of the run to retrieve conditions from.
Query parameters
pageinteger
Zero-based index of the page to request.
per_pageinteger
Number of conditions to return per page.
Response
A paged list of run conditions.
Example response
{
"total_count": 10,
"page_count": 1,
"items": [
{
"id": "abc123def456ghi789",
"condition_expr": {
"and": [
{
"is": {
"field_id": "status",
"value": "\"active\""
}
},
{
"or": [
{
"is": {
"field_id": "priority",
"value": "\"high\""
}
},
{
"is": {
"field_id": "priority",
"value": "\"critical\""
}
}
]
}
]
},
"version": 1,
"playbook_id": "iz0g457ikesz55dhxcfa0fk9yy",
"run_id": "mx3xyzdojfgyfdx8sc8of1gdme",
"create_at": 1606807976289,
"update_at": 1606807976289
}
]
}