This topic provides a brief summary of the Service Level Objective (SLO) endpoints and HTTP methods in the Tanzu Service Mesh Rest API.

GNS SLO API Endpoints Reference

This table provides a brief summary of the GNS-scoped SLO endpoints and HTTP methods in the Tanzu Service Mesh Rest API.
Table 1. GNS-Scoped SLO API Reference

HTTP Method

Endpoint

Description

PUT

v1alpha1/global-namespaces/{gnsId}/service-level-objectives/{sloId}

Create and update a GNS-scoped SLO by specifying gnsIDand sloId and the metric against which to measure the performance of the service (for example, 99th percentile latency) and by defining one or more service level indicators (SLIs) within the SLO.

GET

v1alpha1/global-namespaces/{gnsId}/service-level-objectives/{sloId}

Retrieve a list of existing GNS-scoped SLOs, including the configuration of each SLO by specifying the gnsid and sloId.

DELETE

v1alpha1/global-namespaces/{gnsId}/service-level-objectives/{sloId}

Delete a GNS-scoped SLO by specifying the gnsid and sloId.

POST

v1alpha1/global-namespaces/{gnsId}/service-level-objectives

Create a GNS-scoped SLO by providing the gnsId and configuration details like the SLI metrics and SLO threshold.

GET

v1alpha1/global-namespaces/{gnsId}/service-level-objectives

Retrieve the list of all existing SLO policies within a global namespace by providing the gnsid and service name.

Org SLO API Endpoints Reference

This table provides a brief summary of the org-scoped SLO endpoints and HTTP methods in the Tanzu Service Mesh Rest API.

Table 2. Org-Scoped SLO API Reference

HTTP Method

Endpoint

Description

POST

v1alpha1/service-level-objective

Create an SLO by specifying the metric against which to measure the performance of the service (for example, 99th percentile latency) and by defining one or multiple service level indicators (SLIs) within the SLO.

GET

v1alpha1/service-level-objectives

Retrieve a list of existing SLOs, including the configuration of each SLO.

GET

v1alpha1/service-level-objectives/{id}

Retrieve the configuration of a specified SLO. Replace id with the identifier of the SLO.

PUT

v1alpha1/service-level-objectives/{id}

Edit the configuration of a specified SLO, including its SLIs. Replace id with the identifier of the SLO that you want to edit.

DELETE

v1alpha1/service-level-objectives/{id}

Delete an SLO. Replace id with the identifier of the SLO that you want to delete.