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