---
title: Telemetry
slug: aidc/telemetry
createdAt: 2025-12-29T10:35:15.012Z
---

## <font color="#1d50a2">URLs Summary</font>

| **URL**                                                                                           | **GET** | **POST** | **PATCH** | **PUT** | **DELETE** |
| ------------------------------------------------------------------------------------------------- | ------- | -------- | --------- | ------- | ---------- |
| /rest/v1/running/telemetry-client                                                                 | Y       | N        | N         | N       | N          |
| /rest/v1/running/telemetry-client/destination-group/&#x7B;name}                                   | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/telemetry-client/destination-group/&#x7B;name}/destination/&#x7B;ip}/&#x7B;port} | N       | Y        | Y         | N       | Y          |
| /rest/v1/running/telemetry-client/global                                                          | Y       | N        | Y         | N       | N          |
| /rest/v1/running/telemetry-client/subscription/&#x7B;name}                                        | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/telemetry-client/ subscription/&#x7B;name}/paths/&#x7B;sub-path}                 | N       | N        | N         | N       | Y          |
| /rest/v1/rpc/delete-client                                                                        | N       | Y        | N         | N       | N          |

## <font color="#1d50a2">Examples</font>

### <font color="#1d50a2">Delete telemetry client</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/delete-client
```

### <font color="#1d50a2">Get telemetry client.</font>

```json
GET HTTPS://{switch IP}/rest/v1/running/telemetry-client
```

### <font color="#1d50a2">Create a destination group.</font>

```text
POST HTTPS://{switch IP}/rest/v1/running/telemetry-client/destination-group
{
    "name": "CreateNew",
    "destination": [
        {"ip":"11.11.11.11","port": 11},
        {"ip":"22::22","port": 11}
    ]
}
```

### <font color="#1d50a2">Create a destination for a destination group.</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/telemetry-client/destination-group/test/destination
{
    "ip": "1.1.1.1",
    "port": 1
}
```

### <font color="#1d50a2">Modify global telemetry client configuration.</font>

```json
PATCH rest/v1/running/telemetry-client/global
{
    "encoding": "JSON",
    "retry-interval": 30,
    "unidirectional": "true"
}
```

### <font color="#1d50a2">Create a telemetry client subscription.</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/telemetry-client/subscription
{
    "name": "test",
    "dst-group": "test1",
    "sensor-target": "STATE_DB",
    "report-interval": 10000,
    "report-type": "stream",
    "paths": [
        {"sub-path": "COUNTERS/Ethernet*"},
        {"sub-path": "proc/parts_stat"}
    ]
}
```

### <font color="#1d50a2">Delete a path from a subscription.</font>

```json
DELETE HTTPS://{switch IP}/rest/v1/running/telemetry-client/subscription/test/path/proc%2Fparts_stat
```

## <font color="#1d50a2">Properties Descriptions</font>

### <font color="#1d50a2">Telemetry client global</font>

**Tree Diagrams**

```plaintext
  +--rw telemetry-client
     +--rw global
     |  +--ro encoding?
     |  +--ro retry-interval?
     |  +--ro src-ip?
     |  +--ro unidirectional?
```

**Table of Properties**

| <font color="#2166ae">**Name**</font> | <font color="#2166ae">**Required**</font> | <font color="#2166ae">**Type/Range**</font> | <font color="#2166ae">**Description**</font>                                           |
| ------------------------------------- | ----------------------------------------- | ------------------------------------------- | -------------------------------------------------------------------------------------- |
| telemetry-client                      | M                                         |                                             | Path-only node, has no configurable value.                                             |
| global                                | M                                         |                                             | (sub-property of telemetry-client)<br />Path-only node, has no configurable value.     |
| encoding                              | RO                                        | "JSON"<br />"GPB"                           | (sub-property of global)<br />encoding method<br />Default value: "JSON"               |
| retry-interval                        | RO                                        | 0..65535                                    | (sub-property of global)<br />time interval to retry<br />Default value: 30            |
| src-ip                                | RO                                        | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX | (sub-property of global)<br />source ip address                                        |
| unidirectional                        | RO                                        | "true"<br />"false"                         | (sub-property of global)<br />unidirectional link to remote<br />Default value: "true" |

### <font color="#1d50a2">Telemetry client destination groups</font>

**Tree Diagrams**

```plaintext
  +--rw telemetry-client
     +--rw destination-group* [name]
     |  +--rw name
     |  +--rw destination* [ip port]
     |     +--rw ip
     |     +--rw port
```

**Table of Properties**

| **Name**          | **Required** | **Type/Range**                              | **Description**                                                                                                                             |
| ----------------- | ------------ | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| telemetry-client  | M            |                                             | Path-only node, has no configurable value.                                                                                                  |
| destination-group | M            |                                             | (sub-property of telemetry-client)<br />Path-only node, has no configurable value.                                                          |
| name              | M            | string                                      | (sub-property of destination-group)<br />name of destination group                                                                          |
| destination       | M            |                                             | (sub-property of destination-group)<br />Path-only node, has no configurable value.<br />one destination-group contain multiple destination |
| ip                | M            | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX | (sub-property of destination)<br />destination ip address                                                                                   |
| port              | M            | 1..65535                                    | (sub-property of destination)<br />destination port                                                                                         |

### <font color="#1d50a2">Telemetry client global</font>

**Tree Diagrams**

```plaintext
  +--rw telemetry-client
     +--rw subscription* [name]
        +--rw name
        +--rw dst-group?
        +--rw sensor-target?
        +--rw paths* [sub-path]
        |  +--rw sub-path
        +--rw report-interval?
        +--rw report-type?
```

**Table of Properties**

| **Name**         | **Required** | **Type/Range**                                | **Description**                                                                    |
| ---------------- | ------------ | --------------------------------------------- | ---------------------------------------------------------------------------------- |
| telemetry-client | M            |                                               | Path-only node, has no configurable value.                                         |
| subscription     | M            |                                               | (sub-property of telemetry-client)<br />Path-only node, has no configurable value. |
| name             | M            | string                                        | (sub-property of subscription)<br />name of subscription                           |
| dst-group        | O            | string                                        | (sub-property of subscription)<br />name of destination group to subscribe         |
| sensor-target    | O            | "COUNTERS\_DB"<br />"STATE\_DB"<br />"OTHERS" | (sub-property of subscription)<br />sensor target to report                        |
| paths            | M            |                                               | (sub-property of subscription)<br />Path-only node, has no configurable value.     |
| sub-path         | M            | string                                        | (sub-property of paths)<br />sensor path to report                                 |
| report-interval  | O            | 100..1800000                                  | (sub-property of subscription)<br />report interval                                |
| report-type      | O            | "periodic"<br />"stream"                      | (sub-property of subscription)<br />report type                                    |

### <font color="#1d50a2">delete-client</font>

**Tree Diagrams**

```plaintext
    +---x delete-client
```

**Table of Properties**

| **Name**      | **Required** | **Type/Range** | **Description**                                                                            |
| ------------- | ------------ | -------------- | ------------------------------------------------------------------------------------------ |
| delete-client | M            |                | Path-only node, has no configurable value.<br />Delete all TELEMETRY\_CLIENT configuration |

