Zum Hauptinhalt springen

List cronjobs belonging to a Project

GET/projects/{projectId}/cronjobs/
v2
GET
cronjob-list-cronjobs

Request

  • projectIdstring (uuid)
    required

    ID of the Project for which to list Cronjobs for.

Responses

Response-Header

  • X-Pagination-Limitnumber

    The limit used to select the resources for the response

  • X-Pagination-Skipnumber

    The number of skipped items

  • X-Pagination-Pagenumber

    The calculate page of the list response. Refer to parameters to learn more.

  • X-Pagination-TotalCountnumber

    The total amount of items available in the remote ressource. Use this value in combination with the limit to calculate the available pages.

application/json

OK

  • Array[
  • *object
    • activeboolean
      required
    • appIdstring (uuid)
      required
    • createdAtstring (date-time)
      required
    • descriptionstring
      required
    • destinationone of 2 alternatives
      required
      • Alternativeobject
        • urlstring
          required
      • Alternativeobject
        • interpreterstring
          required
        • parametersstring
        • pathstring
          required
    • emailstring (email)
    • idstring (uuid)
      required
    • intervalstring
      required
    • latestExecutionobject
      • abortedByobject
        • idstring (uuid)
      • cronjobIdstring
        required
      • durationInMillisecondsinteger (int64)
      • endstring (date-time)
      • executionEndstring (date-time)
      • executionStartstring (date-time)
      • idstring
        required
      • logPathstring
      • startstring (date-time)
      • statusstring (one of: Complete, Failed, AbortedBySystem, Pending, Running, AbortedByUser, TimedOut)
        required
      • successfulboolean
        required
      • triggeredByobject
        • idstring (uuid)
    • nextExecutionTimestring (date-time)
    • projectIdstring (uuid)
    • shortIdstring
      required
    • timeoutnumber (≥ 1)
      required
    • updatedAtstring (date-time)
      required
  • ]

Usage examples

$ curl \
--fail \
--location \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/projects/f0f86186-0a5a-45b2-aa33-502777496347/cronjobs?limit=50&page=1