﻿---
title: stack kb slo get-definitions-op cli command
description: Get the SLO definitions Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4089/reference/elastic-cli/cli/stack/kb/slo/get-definitions-op
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb slo get-definitions-op cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb slo get-definitions-op --space-id <space-id> [options]
```

Get the SLO definitions
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--space-id string required">
    An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
  </definition>
  <definition term="--include-outdated-only">
    Indicates if the API returns only outdated SLO or all SLO definitions
  </definition>
  <definition term="--include-health">
    Indicates if the API returns SLO health data with definitions
  </definition>
  <definition term="--tags string">
    Filters the SLOs by tag
  </definition>
  <definition term="--search string">
    Filters the SLOs by name
  </definition>
  <definition term="--page number">
    The page to use for pagination, must be greater or equal than 1
  </definition>
  <definition term="--per-page number">
    Number of SLOs returned by page
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>