Authorizations
API key authentication
Body
application/json
Response
This data structure represents a response to create a scope
This data structure represents a scope
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/scopes';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"defaultExpression":"expression","description":"scope_description","displayName":"scope_name","filters":[{"entityType":"ENTITY_TYPE_UNSPECIFIED","expression":"expression"}]}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"scope": {
"defaultExpression": "expression",
"description": "scope_description",
"displayName": "scope_name",
"filters": [
{
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"expression": "expression"
}
],
"id": "scope_id",
"teamId": 1234
}
}
No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/scopes';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"defaultExpression":"expression","description":"scope_description","displayName":"scope_name","filters":[{"entityType":"ENTITY_TYPE_UNSPECIFIED","expression":"expression"}]}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"scope": {
"defaultExpression": "expression",
"description": "scope_description",
"displayName": "scope_name",
"filters": [
{
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"expression": "expression"
}
],
"id": "scope_id",
"teamId": 1234
}
}
API key authentication
This data structure represents a response to create a scope
This data structure represents a scope
Show child attributes
Was this page helpful?