---
title: SLA & Track
slug: aidc/sla-and-track
createdAt: 2025-12-29T10:28:56.040Z
---

Service Level Agreement.

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

| **URL**                           | **GET** | **POST** | **PATCH** | **PUT** | **DELETE** |
| --------------------------------- | ------- | -------- | --------- | ------- | ---------- |
| /rest/v1/rpc/show-sla-summary     | N       | Y        | N         | N       | N          |
| /rest/v1/rpc/show-track-summary   | N       | Y        | N         | N       | N          |
| /rest/v1/running/slas/&#x7B;id}   | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/tracks/&#x7B;id} | Y       | Y        | Y         | N       | Y          |

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

### <font color="#1d50a2">Show sla summary</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-sla-summary
```

### <font color="#1d50a2">Show track summary</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-track-summary
```

### <font color="#1d50a2">Create a sla</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/slas
{
    "id": 11,
    "type": "user_define",
    "file-path": "/test/user_define",
    "user-define-args": "Ethernet1,Lag1"
}
```

### <font color="#1d50a2">Create a track</font>

```json
POST rest/v1/running/tracks
{
    "id": 11,
    "sla-id": 11
}
```

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

### <font color="#1d50a2">SLA entry</font>

**Tree Diagrams**

```plaintext
  +--rw slas
  |  +--rw sla* [id]
  |     +--rw id
  |     +--rw type?
  |     +--rw destination-ip
  |     +--rw source-port?
  |     +--rw interval?
  |     +--rw timeout?
  |     +--rw count?
  |     +--rw frequency?
  |     +--rw user-define-args?
  |     +--rw file-path?
```

**Table of Properties**

| **Name**         | **Required** | **Type/Range**                                                                                                                               | **Description**                                                                                                                                                                                                                                    |
| ---------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| slas             | M            |                                                                                                                                              | Path-only node, has no configurable value.<br />Service Level Agreement Monitor(SLA) configurations.                                                                                                                                               |
| id               | M            | 1..4294967295                                                                                                                                | (sub-property of slas)<br />Service Level Agreement Monitor(SLA) id.                                                                                                                                                                               |
| type             | O            | "icmp\_echo"<br />"user\_define"                                                                                                             | (sub-property of slas)<br />Types cannot be changed once set.<br />Default value: "user\_define"                                                                                                                                                   |
| destination-ip   | CM           | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX                                                                                                  | (sub-property of slas)<br />Only applicable when type = "icmp\_echo".<br />Destination ip address of ICMP/ICMP6 request of Service Level Agreement Monitor(SLA). This field is mandatory for type of "icmp\_echo". Cannot be changed once set.     |
| source-port      | CO           | Ethernet name<br />Ethernet sub-interface name<br />Lag1..9999<br />Link-aggregation sub-interface name<br />Loopback0..199<br />Vlan1..4094 | (sub-property of slas)<br />Only applicable when type = "icmp\_echo".<br />Source port to send ICMP/ICMP6 request packets of Service Level Agreement Monitor(SLA)                                                                                  |
| interval         | CO           | 200..3000                                                                                                                                    | (sub-property of slas)<br />Only applicable when type = "icmp\_echo".<br />Seconds between sending each ICMP/ICMP6 request packets of Service Level Agreement Monitor(SLA).<br />Default value: 200                                                |
| timeout          | CO           | 1..3600                                                                                                                                      | (sub-property of slas)<br />Only applicable when type = "icmp\_echo".<br />Time to wait for ICMP/ICMP6 response of Service Level Agreement Monitor(SLA).<br />Default value: 5                                                                     |
| count            | CO           | 1..100                                                                                                                                       | (sub-property of slas)<br />Only applicable when type = "icmp\_echo".<br />Stop sending ICMP/ICMP6 request packets when receives &#x7B;count} ICMP/ICMP6 reply packets.<br />Default value: 5                                                      |
| frequency        | CO           | 1..3600                                                                                                                                      | (sub-property of slas)<br />Only applicable when type = "icmp\_echo".<br />Interval between two consecutive detections of Service Level Agreement Monitor(SLA).<br />Default value: 10                                                             |
| user-define-args | CO           | string                                                                                                                                       | (sub-property of slas)<br />Only applicable when type = "user\_define".<br />user-define arguments of Service Level Agreement Monitor(SLA).                                                                                                        |
| file-path        | CO           | string                                                                                                                                       | (sub-property of slas)<br />Only applicable when type = "user\_define".<br />user-define file path for Service Level Agreement Monitor(SLA). Cannot be changed once set.<br />Default value: "/var/run/sla-user-define/sla\_user\_define\_default" |

### <font color="#1d50a2">Track entry</font>

**Tree Diagrams**

```plaintext
  +--rw tracks
     +--rw track* [id]
        +--rw id
        +--rw sla-id
```

**Table of Properties**

| **Name** | **Required** | **Type/Range** | **Description**                                                      |
| -------- | ------------ | -------------- | -------------------------------------------------------------------- |
| tracks   | M            |                | Path-only node, has no configurable value.<br />track configurations |
| id       | M            | 1..4294967295  | (sub-property of tracks)<br />track id.                              |
| sla-id   | M            | 1..4294967295  | (sub-property of tracks)<br />sla id.                                |

### <font color="#1d50a2">Show sla summary</font>

**Tree Diagrams**

```plaintext
    +---x show-sla-summary
    |  +--ro output
    |     +--ro result?
```

**Table of Properties**

| **Name**         | **Required** | **Type/Range** | **Description**                                                          |
| ---------------- | ------------ | -------------- | ------------------------------------------------------------------------ |
| show-sla-summary | M            |                | Path-only node, has no configurable value.                               |
| result           | RO           | string         | (sub-property of output)<br />A table that shows information of all slas |

### <font color="#1d50a2">Show track summary</font>

**Tree Diagrams**

```plaintext
    +---x show-track-summary
       +--ro output
          +--ro result?
```

**Table of Properties**

| **Name**           | **Required** | **Type/Range** | **Description**                                                            |
| ------------------ | ------------ | -------------- | -------------------------------------------------------------------------- |
| show-track-summary | M            |                | Path-only node, has no configurable value.                                 |
| result             | RO           | string         | (sub-property of output)<br />A table that shows information of all tracks |

