---
title: quality-monitor-v2 command group
description: Learn how to use the Databricks CLI quality-monitor-v2 commands
canonical_url: https://docs.databricks.com/gcp/en/dev-tools/cli/reference/quality-monitor-v2-commands
---

# `quality-monitor-v2` command group

> [!NOTE]
>
> Databricks CLI use is subject to the [Databricks License](https://github.com/databricks/cli?tab=License-1-ov-file#readme) and [Databricks Privacy Notice](https://www.databricks.com/legal/privacynotice), including any Usage Data provisions.

> [!WARNING]
>
> These commands are deprecated. Use the `data-quality` commands instead. See [`data-quality` command group](https://docs.databricks.com/gcp/en/dev-tools/cli/reference/data-quality-commands.md).

The `quality-monitor-v2` command group within the [Databricks CLI](https://docs.databricks.com/gcp/en/dev-tools/cli/index.md) allows you to manage data quality monitors on Unity Catalog objects.

## databricks quality-monitor-v2 create-quality-monitor

> [!WARNING]
>
> Deprecated. Use the `data-quality` commands instead. See [`data-quality` command group](https://docs.databricks.com/gcp/en/dev-tools/cli/reference/data-quality-commands.md).

Create a quality monitor on a Unity Catalog object.

```
databricks quality-monitor-v2 create-quality-monitor OBJECT_TYPE OBJECT_ID [flags]
```

#### Arguments

**`OBJECT_TYPE`**

    The type of the monitored object. Supported values: `schema`.

**`OBJECT_ID`**

    The UUID of the request object. For example, the schema ID.

#### Options

**`--json JSON`**

    The inline JSON string or the @path to the JSON file with the request body.

[Global flags](https://docs.databricks.com/gcp/en/dev-tools/cli/reference/quality-monitor-v2-commands.md#global-flags)

#### Examples

The following example creates a quality monitor:

```bash
databricks quality-monitor-v2 create-quality-monitor schema 12345678-1234-1234-1234-123456789012 --json @monitor.json
```

## databricks quality-monitor-v2 delete-quality-monitor

> [!WARNING]
>
> Deprecated. Use the `data-quality` commands instead. See [`data-quality` command group](https://docs.databricks.com/gcp/en/dev-tools/cli/reference/data-quality-commands.md).

Delete a quality monitor on a Unity Catalog object.

```
databricks quality-monitor-v2 delete-quality-monitor OBJECT_TYPE OBJECT_ID [flags]
```

#### Arguments

**`OBJECT_TYPE`**

    The type of the monitored object. Supported values: `schema`.

**`OBJECT_ID`**

    The UUID of the request object. For example, the schema ID.

#### Options

[Global flags](https://docs.databricks.com/gcp/en/dev-tools/cli/reference/quality-monitor-v2-commands.md#global-flags)

#### Examples

The following example deletes a quality monitor:

```bash
databricks quality-monitor-v2 delete-quality-monitor schema 12345678-1234-1234-1234-123456789012
```

## databricks quality-monitor-v2 get-quality-monitor

> [!WARNING]
>
> Deprecated. Use the `data-quality` commands instead. See [`data-quality` command group](https://docs.databricks.com/gcp/en/dev-tools/cli/reference/data-quality-commands.md).

Read a quality monitor on a Unity Catalog object.

```
databricks quality-monitor-v2 get-quality-monitor OBJECT_TYPE OBJECT_ID [flags]
```

#### Arguments

**`OBJECT_TYPE`**

    The type of the monitored object. Supported values: `schema`.

**`OBJECT_ID`**

    The UUID of the request object. For example, the schema ID.

#### Options

[Global flags](https://docs.databricks.com/gcp/en/dev-tools/cli/reference/quality-monitor-v2-commands.md#global-flags)

#### Examples

The following example gets a quality monitor:

```bash
databricks quality-monitor-v2 get-quality-monitor schema 12345678-1234-1234-1234-123456789012
```

## databricks quality-monitor-v2 list-quality-monitor

> [!WARNING]
>
> Deprecated. Use the `data-quality` commands instead. See [`data-quality` command group](https://docs.databricks.com/gcp/en/dev-tools/cli/reference/data-quality-commands.md).

List quality monitors.

```
databricks quality-monitor-v2 list-quality-monitor [flags]
```

#### Arguments

None

#### Options

**`--page-size int`**

    The maximum number of monitors to return.

**`--page-token string`**

    A page token from a previous list call.

[Global flags](https://docs.databricks.com/gcp/en/dev-tools/cli/reference/quality-monitor-v2-commands.md#global-flags)

#### Examples

The following example lists quality monitors:

```bash
databricks quality-monitor-v2 list-quality-monitor
```

## databricks quality-monitor-v2 update-quality-monitor

> [!WARNING]
>
> Deprecated. Use the `data-quality` commands instead. See [`data-quality` command group](https://docs.databricks.com/gcp/en/dev-tools/cli/reference/data-quality-commands.md).

Update a quality monitor on a Unity Catalog object.

```
databricks quality-monitor-v2 update-quality-monitor OBJECT_TYPE OBJECT_ID OBJECT_TYPE OBJECT_ID [flags]
```

#### Arguments

**`OBJECT_TYPE`**

    The type of the monitored object. Supported values: `schema`.

**`OBJECT_ID`**

    The UUID of the request object. For example, the schema ID.

#### Options

**`--json JSON`**

    The inline JSON string or the @path to the JSON file with the request body.

[Global flags](https://docs.databricks.com/gcp/en/dev-tools/cli/reference/quality-monitor-v2-commands.md#global-flags)

#### Examples

The following example updates a quality monitor:

```bash
databricks quality-monitor-v2 update-quality-monitor schema 12345678-1234-1234-1234-123456789012 schema 12345678-1234-1234-1234-123456789012 --json @monitor.json
```

## <a id="global-flags" />Global flags

**`--debug`**

  Whether to enable debug logging.

**`-h` or `--help`**

    Display help for the Databricks CLI or the related command group or the related command.

**`--log-file` string**

    A string representing the file to write output logs to. If this flag is not specified then the default is to write output logs to stderr.

**`--log-format` format**

    The log format type, `text` or `json`. The default value is `text`.

**`--log-level` string**

    A string representing the log format level. If not specified then the log format level is disabled.

**`-o, --output` type**

    The command output type, `text` or `json`. The default value is `text`.

**`-p, --profile` string**

    The name of the profile in the `~/.databrickscfg` file to use to run the command. If this flag is not specified then if it exists, the profile named `DEFAULT` is used.

**`--progress-format` format**

    The format to display progress logs: `default`, `append`, `inplace`, or `json`

**`-t, --target` string**

    If applicable, the bundle target to use
