Skip to main content
node
const fetch = require('node-fetch');

let url = 'https://api.coralogix.com/mgmt/openapi/aaa/team-scopes/v1?ids=SOME_ARRAY_VALUE';

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": [
    {
      "defaultExpression": "<v1>true",
      "description": "The best scope",
      "displayName": "my-scope",
      "filters": [
        {
          "entityType": "ENTITY_TYPE_UNSPECIFIED",
          "expression": "<v1>true"
        }
      ],
      "id": "60c82be2-413f-4b8e-8201-7f5c51e2ef2b",
      "teamId": 1234
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication

Query Parameters

ids
string[]

Response

This data structure represents a response to get scopes

scopes
Scope · object[]
required