List all GitOps workflows
Changed onReturns a list of GitOps workflows, each with its aggregated status and the artifacts it contains. Access policy: authenticated
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/gitops/workflows
- Auth
- API key in header X-API-KEY
- or API key in header Authorization
Query parameters
Search term (matches workflow name)
Sort field
Sort order
Pagination start index
Pagination limit (0 = unlimited)
Filter by environment IDs (e.g. endpointIds[]=1&endpointIds[]=2)
Filter by status
Keep workflows that have at least one artifact of this type
Keep workflows that have at least one artifact on this platform
Response
OK
Example response
[
{
"artifacts": [
{
"autoUpdate": {
"Interval": "1m30s",
"JobID": "15",
"Webhook": "05de31a2-79fa-4644-9c12-faa67e5c49f0"
},
"files": [
{
"hash": "abc123",
"path": "portainer.yaml",
"ref": "refs/heads/main"
}
]
}
]
}
]Changes
- breaking
the
queryrequest parameterorderwas restricted to a list of enum values - breaking
the
queryrequest parameterplatformwas restricted to a list of enum values - breaking
the
queryrequest parametersortwas restricted to a list of enum values - breaking
the
queryrequest parameterstatuswas restricted to a list of enum values - breaking
the
queryrequest parametertypewas restricted to a list of enum values - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
added the new enum value
ascto thequeryrequest parameterorder - info
added the new enum value
creationDateto thequeryrequest parametersort - info
added the new enum value
descto thequeryrequest parameterorder - info
added the new enum value
dockerStandaloneto thequeryrequest parameterplatform - info
added the new enum value
dockerSwarmto thequeryrequest parameterplatform - info
added the new enum value
errorto thequeryrequest parameterstatus - info
added the new enum value
healthyto thequeryrequest parameterstatus - info
added the new enum value
kubernetesto thequeryrequest parameterplatform - info
added the new enum value
lastSyncDateto thequeryrequest parametersort - info
added the new enum value
nameto thequeryrequest parametersort - info
added the new enum value
pausedto thequeryrequest parameterstatus - info
added the new enum value
stackto thequeryrequest parametertype - info
added the new enum value
statusto thequeryrequest parametersort - info
added the new enum value
syncingto thequeryrequest parameterstatus - info
added the new enum value
unknownto thequeryrequest parameterstatus - info
added the non-success response with the status
- info
added the optional property
/to the response with the status
- breaking
- info
added the optional property
/to the response with the status
- info