gitops

List the workflows using a GitOps source

Changed on

Returns the workflows (stacks or edge stacks) currently deployed from this source. Access policy: authenticated

get/gitops/sources/{id}/workflows

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/gitops/sources/{id}/workflows
  • Auth
    • API key in header X-API-KEY
    • or API key in header Authorization

Path parameters

idinteger required

Source identifier

Response

OK

creationDateinteger
idinteger required
lastSyncDateinteger
namestring required
platform'dockerStandalone' | 'dockerSwarm' | 'kubernetes' required
sourceIdinteger
type'stack' | 'edgeStack' required

Example response

[
  {
    "gitConfig": {
      "ConfigFilePath": "docker-compose.yml",
      "ConfigHash": "bc4c183d756879ea4d173315338110b31004b8e0",
      "ReferenceName": "refs/heads/branch_name",
      "URL": "https://github.com/portainer/portainer.git"
    }
  }
]

Changes