---
title: "Shows an overview of the latest command runs."
url: "https://developer-qual.migros.ch/apis/status-products-status-queues-status-commands-8/versions/c0a6c6bf-289c-496e-bf78-624cc89d770b/operations/get-status-commands"
---

> Full API specification: https://developer-qual.migros.ch/apis/status-products-status-queues-status-commands-8/versions/c0a6c6bf-289c-496e-bf78-624cc89d770b.md

# Shows an overview of the latest command runs.

`GET` `/migros/products/v8/status/commands`

Operation ID: `get-status-commands`

It specifies the maximum number of resources that can be fetched at once.

## Query parameters

- `start_date` (string, date-time, optional) - Shows only runs that started after this date (if not set, it's set to two days ago)
- `modified_date` (string, date-time, optional) - Shows only runs that were modified after this date
- `state` (string, optional) - Filtering by state of the command runs
- `command` (string, optional) - Filtering by the name of the command
- `parent` (string, optional) - Given a UUID it will only show the children of that command run. If '1' is given it only shows command runs without any parent.
- `automated_job` (boolean, optional) - Filter on automated or manual jobs. If not specified, both types are returned.
- `limit` (integer, optional) - Maximum number of results (max 2000).
- `offset` (integer, optional) - Result set offset.

## Responses

- `200` - Returned when successful
- `400` - When request params are invalid

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Status Products / Status Queues / Status Commands
  version: "8"
servers:
  - description: Public Kong Gateway URL
    url: https://api-qual.migros.ch
paths:
  /migros/products/v8/status/commands:
    get:
      description: It specifies the maximum number of resources that can be fetched at once.
      operationId: get-status-commands
      parameters:
        - description: Shows only runs that started after this date (if not set, it's set
            to two days ago)
          in: query
          name: start_date
          required: false
          schema:
            format: date-time
            type: string
        - description: Shows only runs that were modified after this date
          in: query
          name: modified_date
          required: false
          schema:
            format: date-time
            type: string
        - description: Filtering by state of the command runs
          in: query
          name: state
          required: false
          schema:
            enum:
              - running
              - successful
              - crashed
            type: string
        - description: Filtering by the name of the command
          in: query
          name: command
          required: false
          schema:
            type: string
        - description: Given a UUID it will only show the children of that command run. If
            '1' is given it only shows command runs without any parent.
          in: query
          name: parent
          required: false
          schema:
            type: string
        - description: Filter on automated or manual jobs. If not specified, both types
            are returned.
          in: query
          name: automated_job
          required: false
          schema:
            type: boolean
        - description: Maximum number of results (max 2000).
          in: query
          name: limit
          required: false
          schema:
            default: 10
            maximum: 1000
            minimum: 0
            type: integer
        - description: Result set offset.
          in: query
          name: offset
          required: false
          schema:
            default: 0
            minimum: 0
            type: integer
      responses:
        "200":
          description: Returned when successful
        "400":
          description: When request params are invalid
      summary: Shows an overview of the latest command runs.
      tags:
        - Status Commands
      x-format-suffix:
        pattern: json
security:
  - Kong-Api-Key: []
    basicAuth: []
components:
  securitySchemes:
    Kong-Api-Key:
      description: Kong key-auth authentication
      in: header
      name: X-Api-Key
      type: apiKey
    basicAuth:
      scheme: basic
      type: http
```
