GET
/
v1
/
scopes
/
list
const fetch = require('node-fetch');

let url = 'https://api.coralogix.com/mgmt/openapi/v1/scopes/list';

let options = {method: 'GET', headers: {Authorization: 'Bearer <API_KEY>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
{
  "scopes": [
    {
      "id": "scope_id",
      "displayName": "scope_name",
      "description": "scope_description",
      "teamId": 1234,
      "filters": [
        {
          "entityType": "ENTITY_TYPE_UNSPECIFIED",
          "expression": "expression"
        }
      ],
      "defaultExpression": "expression"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication

Response

200
application/json

A successful response.

This data structure represents a response to get scopes