v1
Double column
API
CLI
JS Client

Jobs /

List jobs

Gets a list of jobs belonging to the project

Required permission

Project > Jobs > General > Read

Path parameters

    • projectId

      string required

      ID of the project

Query parameters

    • per_page

      integer

      The number of results to display per request. Maximum of 100 results per page.

    • page

      integer

      The page number to access.

    • cursor

      string

      The cursor returned from the previous page of results, used to request the next page.

Response body

  • {object}

    Response object.

    • data

      {object} required

      Result data.

      • jobs

        [array] required

        An array of job objects.

        • {object}
          • id

            string required

            Identifier for the job

          • projectId

            string required

            ID of the project that the job belongs to

          • appId

            string required

            Full identifier used for job deployment

          • name

            string required

            Job name

          • description

            string

            A short description of the job

          • jobType

            string required

            Type of the job (manual or cron)

            one of
            cron, manual
          • disabledCI

            boolean required

            Whether Continuous Integration is disabled

          • disabledCD

            boolean required

            Whether Continuous Deployment is disabled

    • pagination

      {object} required

      Data about the endpoint pagination.

      • hasNextPage

        boolean required

        Is there another page of results available?

      • cursor

        string

        The cursor to access the next page of results.

      • count

        number required

        The number of results returned by this request.

API
CLI
JS Client

GET /v1/projects/{projectId}/jobs

Example response

200 OK

A list of jobs belonging to the project.

JSON

{
  "data": {
    "jobs": [
      {
        "id": "example-job",
        "projectId": "default-project",
        "appId": "/example-user/default-project/example-job",
        "name": "Example Job",
        "description": "This is the job description",
        "jobType": "cron",
        "disabledCI": false,
        "disabledCD": false
      }
    ]
  },
  "pagination": {
    "hasNextPage": false,
    "count": 1
  }
}

© 2022 Northflank Ltd. All rights reserved.