Avisi cloud logo
Observability

Create new monitoring tenant token.

POST
/api/v1/orgs/{organisationSlug}/monitoring/{tenantSlug}/tokens

Request Body

application/jsonRequired

displayNamestring

ipWhiteListstring

scopesobject

Path Parameters

organisationSlug
Required
string

tenantSlug
Required
string

curl -X POST "http://localhost:8090/api/v1/orgs/string/monitoring/string/tokens" \
  -H "Content-Type: application/json" \
  -d '{
    "displayName": "string",
    "ipWhiteList": "string",
    "scopes": {
      "alertManager": true,
      "loki": true,
      "lokiReadOnly": true,
      "prometheus": true,
      "prometheusReadOnly": true
    }
  }'

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

{
  "id": 0,
  "displayName": "string",
  "token": "string",
  "ipWhiteList": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "lastUsedAt": "2019-08-24T14:15:22Z"
}