Replace Action
curl --request PUT \
--url https://api.coralogix.com/mgmt/openapi/5/actions/actions/v2 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"action": {
"applicationNames": [
"<string>"
],
"createdBy": "<string>",
"description": "<string>",
"dpxlFilter": "<string>",
"id": "<string>",
"isHidden": true,
"isPrivate": true,
"name": "<string>",
"subsystemNames": [
"<string>"
],
"url": "<string>",
"urlFields": [
{
"name": "<string>",
"required": true
}
]
}
}
'import requests
url = "https://api.coralogix.com/mgmt/openapi/5/actions/actions/v2"
payload = { "action": {
"applicationNames": ["<string>"],
"createdBy": "<string>",
"description": "<string>",
"dpxlFilter": "<string>",
"id": "<string>",
"isHidden": True,
"isPrivate": True,
"name": "<string>",
"subsystemNames": ["<string>"],
"url": "<string>",
"urlFields": [
{
"name": "<string>",
"required": True
}
]
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
action: {
applicationNames: ['<string>'],
createdBy: '<string>',
description: '<string>',
dpxlFilter: '<string>',
id: '<string>',
isHidden: true,
isPrivate: true,
name: '<string>',
subsystemNames: ['<string>'],
url: '<string>',
urlFields: [{name: '<string>', required: true}]
}
})
};
fetch('https://api.coralogix.com/mgmt/openapi/5/actions/actions/v2', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.coralogix.com/mgmt/openapi/5/actions/actions/v2",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'action' => [
'applicationNames' => [
'<string>'
],
'createdBy' => '<string>',
'description' => '<string>',
'dpxlFilter' => '<string>',
'id' => '<string>',
'isHidden' => true,
'isPrivate' => true,
'name' => '<string>',
'subsystemNames' => [
'<string>'
],
'url' => '<string>',
'urlFields' => [
[
'name' => '<string>',
'required' => true
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.coralogix.com/mgmt/openapi/5/actions/actions/v2"
payload := strings.NewReader("{\n \"action\": {\n \"applicationNames\": [\n \"<string>\"\n ],\n \"createdBy\": \"<string>\",\n \"description\": \"<string>\",\n \"dpxlFilter\": \"<string>\",\n \"id\": \"<string>\",\n \"isHidden\": true,\n \"isPrivate\": true,\n \"name\": \"<string>\",\n \"subsystemNames\": [\n \"<string>\"\n ],\n \"url\": \"<string>\",\n \"urlFields\": [\n {\n \"name\": \"<string>\",\n \"required\": true\n }\n ]\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.coralogix.com/mgmt/openapi/5/actions/actions/v2")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"action\": {\n \"applicationNames\": [\n \"<string>\"\n ],\n \"createdBy\": \"<string>\",\n \"description\": \"<string>\",\n \"dpxlFilter\": \"<string>\",\n \"id\": \"<string>\",\n \"isHidden\": true,\n \"isPrivate\": true,\n \"name\": \"<string>\",\n \"subsystemNames\": [\n \"<string>\"\n ],\n \"url\": \"<string>\",\n \"urlFields\": [\n {\n \"name\": \"<string>\",\n \"required\": true\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coralogix.com/mgmt/openapi/5/actions/actions/v2")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"action\": {\n \"applicationNames\": [\n \"<string>\"\n ],\n \"createdBy\": \"<string>\",\n \"description\": \"<string>\",\n \"dpxlFilter\": \"<string>\",\n \"id\": \"<string>\",\n \"isHidden\": true,\n \"isPrivate\": true,\n \"name\": \"<string>\",\n \"subsystemNames\": [\n \"<string>\"\n ],\n \"url\": \"<string>\",\n \"urlFields\": [\n {\n \"name\": \"<string>\",\n \"required\": true\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"action": {
"applicationNames": [
"<string>"
],
"createdBy": "<string>",
"description": "<string>",
"dpxlFilter": "<string>",
"id": "<string>",
"isHidden": true,
"isPrivate": true,
"name": "<string>",
"subsystemNames": [
"<string>"
],
"url": "<string>",
"urlFields": [
{
"name": "<string>",
"required": true
}
]
}
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}Actions Service
Replace Action
Replaces all actions with the provided set.
Replace Action
curl --request PUT \
--url https://api.coralogix.com/mgmt/openapi/5/actions/actions/v2 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"action": {
"applicationNames": [
"<string>"
],
"createdBy": "<string>",
"description": "<string>",
"dpxlFilter": "<string>",
"id": "<string>",
"isHidden": true,
"isPrivate": true,
"name": "<string>",
"subsystemNames": [
"<string>"
],
"url": "<string>",
"urlFields": [
{
"name": "<string>",
"required": true
}
]
}
}
'import requests
url = "https://api.coralogix.com/mgmt/openapi/5/actions/actions/v2"
payload = { "action": {
"applicationNames": ["<string>"],
"createdBy": "<string>",
"description": "<string>",
"dpxlFilter": "<string>",
"id": "<string>",
"isHidden": True,
"isPrivate": True,
"name": "<string>",
"subsystemNames": ["<string>"],
"url": "<string>",
"urlFields": [
{
"name": "<string>",
"required": True
}
]
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
action: {
applicationNames: ['<string>'],
createdBy: '<string>',
description: '<string>',
dpxlFilter: '<string>',
id: '<string>',
isHidden: true,
isPrivate: true,
name: '<string>',
subsystemNames: ['<string>'],
url: '<string>',
urlFields: [{name: '<string>', required: true}]
}
})
};
fetch('https://api.coralogix.com/mgmt/openapi/5/actions/actions/v2', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.coralogix.com/mgmt/openapi/5/actions/actions/v2",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'action' => [
'applicationNames' => [
'<string>'
],
'createdBy' => '<string>',
'description' => '<string>',
'dpxlFilter' => '<string>',
'id' => '<string>',
'isHidden' => true,
'isPrivate' => true,
'name' => '<string>',
'subsystemNames' => [
'<string>'
],
'url' => '<string>',
'urlFields' => [
[
'name' => '<string>',
'required' => true
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.coralogix.com/mgmt/openapi/5/actions/actions/v2"
payload := strings.NewReader("{\n \"action\": {\n \"applicationNames\": [\n \"<string>\"\n ],\n \"createdBy\": \"<string>\",\n \"description\": \"<string>\",\n \"dpxlFilter\": \"<string>\",\n \"id\": \"<string>\",\n \"isHidden\": true,\n \"isPrivate\": true,\n \"name\": \"<string>\",\n \"subsystemNames\": [\n \"<string>\"\n ],\n \"url\": \"<string>\",\n \"urlFields\": [\n {\n \"name\": \"<string>\",\n \"required\": true\n }\n ]\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.coralogix.com/mgmt/openapi/5/actions/actions/v2")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"action\": {\n \"applicationNames\": [\n \"<string>\"\n ],\n \"createdBy\": \"<string>\",\n \"description\": \"<string>\",\n \"dpxlFilter\": \"<string>\",\n \"id\": \"<string>\",\n \"isHidden\": true,\n \"isPrivate\": true,\n \"name\": \"<string>\",\n \"subsystemNames\": [\n \"<string>\"\n ],\n \"url\": \"<string>\",\n \"urlFields\": [\n {\n \"name\": \"<string>\",\n \"required\": true\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coralogix.com/mgmt/openapi/5/actions/actions/v2")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"action\": {\n \"applicationNames\": [\n \"<string>\"\n ],\n \"createdBy\": \"<string>\",\n \"description\": \"<string>\",\n \"dpxlFilter\": \"<string>\",\n \"id\": \"<string>\",\n \"isHidden\": true,\n \"isPrivate\": true,\n \"name\": \"<string>\",\n \"subsystemNames\": [\n \"<string>\"\n ],\n \"url\": \"<string>\",\n \"urlFields\": [\n {\n \"name\": \"<string>\",\n \"required\": true\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"action": {
"applicationNames": [
"<string>"
],
"createdBy": "<string>",
"description": "<string>",
"dpxlFilter": "<string>",
"id": "<string>",
"isHidden": true,
"isPrivate": true,
"name": "<string>",
"subsystemNames": [
"<string>"
],
"url": "<string>",
"urlFields": [
{
"name": "<string>",
"required": true
}
]
}
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}{
"code": 349,
"message": "<string>"
}Authorizations
API key authentication
Body
application/json
This data structure represents the request to replace an Action.
This data structure represents an Action.
Show child attributes
Show child attributes
Response
This data structure represents the response to replace an Action.
This data structure represents an Action.
Show child attributes
Show child attributes
Was this page helpful?
⌘I