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

let url = 'https://api.coralogix.com/mgmt/openapi/v2/actions';

let options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
  body: '{"applicationNames":["string"],"isPrivate":true,"name":"string","sourceType":"SOURCE_TYPE_UNSPECIFIED","subsystemNames":["string"],"url":"string"}'
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
{
  "action": {
    "applicationNames": [
      "<string>"
    ],
    "createdBy": "<string>",
    "id": "<string>",
    "isHidden": true,
    "isPrivate": true,
    "name": "<string>",
    "sourceType": "SOURCE_TYPE_UNSPECIFIED",
    "subsystemNames": [
      "<string>"
    ],
    "url": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json
applicationNames
string[]
isPrivate
boolean
name
string
sourceType
enum<string>
Available options:
SOURCE_TYPE_UNSPECIFIED,
SOURCE_TYPE_LOG,
SOURCE_TYPE_DATA_MAP
subsystemNames
string[]
url
string

Response

action
object
I