Skip to content
Get started

List all SLAs, sorted by name alphabetically (case-insensitive)

client.slas.list(SlaListParams { vendor_urn } query?, RequestOptionsoptions?): SlaListResponse { description, name, urn, vendor_urn }
GET/v1/slas

List all SLAs, sorted by name alphabetically (case-insensitive)

ParametersExpand Collapse
query: SlaListParams { vendor_urn }
vendor_urn?: string | null

A vendor's unique identifier

ReturnsExpand Collapse
SlaListResponse = Array<SlaListResponseItem>
description: string

A description of the SLA

name: string

The name of the SLA

urn: string

A unique identifier for the SLA

vendor_urn: string

A unique identifier for the vendor associated with the SLA

List all SLAs, sorted by name alphabetically (case-insensitive)

import Clarative from 'clarative';

const client = new Clarative({
  apiKey: process.env['CLARATIVE_API_KEY'], // This is the default and can be omitted
});

const slas = await client.slas.list();

console.log(slas);
[
  {
    "description": "description",
    "name": "name",
    "urn": "urn",
    "vendor_urn": "vendor_urn"
  }
]
Returns Examples
[
  {
    "description": "description",
    "name": "name",
    "urn": "urn",
    "vendor_urn": "vendor_urn"
  }
]