Avisi cloud logo
Observability

Get AlertManager configuration of an environment.

GET
/api/v1/orgs/{organisationSlug}/environments/{environmentSlug}/prometheus/alertmanager

Path Parameters

organisationSlugstring
Pattern"^[a-z0-9-_]+$"
environmentSlugstring
Pattern"^[a-z0-9-_]+$"

Response Body

Request was successfully processed. The response body contains the requested data.

TypeScript Definitions

Use the response body type in TypeScript.

alertManagerConfig?string
ruleFiles?object

Empty Object

templateFiles?object

Empty Object

Invalid request parameters. Please review the documentation for valid parameter values.

TypeScript Definitions

Use the response body type in TypeScript.

response?unknown

You do not have the necessary permissions to access this resource.

TypeScript Definitions

Use the response body type in TypeScript.

response?unknown

The requested resource could not be found. Please check the resource URL or identifier.

TypeScript Definitions

Use the response body type in TypeScript.

response?unknown

An internal error occurred on the server.

TypeScript Definitions

Use the response body type in TypeScript.

response?unknown
curl -X GET "https://api.avisi.cloud/api/v1/orgs/string/environments/string/prometheus/alertmanager"
fetch("https://api.avisi.cloud/api/v1/orgs/string/environments/string/prometheus/alertmanager")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://api.avisi.cloud/api/v1/orgs/string/environments/string/prometheus/alertmanager"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.avisi.cloud/api/v1/orgs/string/environments/string/prometheus/alertmanager"

response = requests.request("GET", url)

print(response.text)
{
  "alertManagerConfig": "string",
  "ruleFiles": {
    "property1": "string",
    "property2": "string"
  },
  "templateFiles": {
    "property1": "string",
    "property2": "string"
  }
}
{
  "message": "string",
  "details": [
    "string"
  ]
}
{
  "message": "string",
  "details": [
    "string"
  ]
}
{
  "message": "string",
  "details": [
    "string"
  ]
}
{
  "message": "string",
  "details": [
    "string"
  ]
}