Detect And Respond Response Policies
Returns an array of Response Policies.
List of Requested Response Policies
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
GET /api/v1/rule-engine/rules HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": "0443258d-3217-49a3-8f2a-21ed5aef4bee",
"plugins": [
{
"adapter": "syslog",
"description": "My Plugin",
"id": "a8899a17-2e34-4d76-a765-57dda8604d06",
"name": "My Plugin",
"type": "block"
}
],
"config": {
"alerttypes": [
[
"start",
"end"
]
],
"severities": [
[
"low",
"medium"
]
],
"algorithms": [
"all"
],
"categories": [
"all"
],
"tracks": [
[
"dstip",
"srcip"
]
]
},
"description": "this detects things",
"name": "my-rule",
"enabled": true,
"type": "alert"
}
]
}Creates a response policy from the data that's been supplied.
Response Policy Create or Update Config
this detects thingsmy-ruletruealertPossible values: Plugin ID to be used in the response policy
214365f7-ac9a-45bc-9795-95958bdfa694Requested Response Policy
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
POST /api/v1/rule-engine/rule HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 280
{
"plugins": [
"214365f7-ac9a-45bc-9795-95958bdfa694"
],
"config": {
"alerttypes": [
[
"start",
"end"
]
],
"severities": [
[
"low",
"medium"
]
],
"algorithms": [
"all"
],
"categories": [
"all"
],
"tracks": [
[
"dstip",
"srcip"
]
]
},
"description": "this detects things",
"name": "my-rule",
"enabled": true,
"type": "alert"
}{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": "0443258d-3217-49a3-8f2a-21ed5aef4bee",
"plugins": [
{
"adapter": "syslog",
"description": "My Plugin",
"id": "a8899a17-2e34-4d76-a765-57dda8604d06",
"name": "My Plugin",
"type": "block"
}
],
"config": {
"alerttypes": [
[
"start",
"end"
]
],
"severities": [
[
"low",
"medium"
]
],
"algorithms": [
"all"
],
"categories": [
"all"
],
"tracks": [
[
"dstip",
"srcip"
]
]
},
"description": "this detects things",
"name": "my-rule",
"enabled": true,
"type": "alert"
}
]
}Fetches a specific response policy from the ID supplied in the path.
The ID of the response policy to be returned.
Requested Response Policy
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
GET /api/v1/rule-engine/rule/{id} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": "0443258d-3217-49a3-8f2a-21ed5aef4bee",
"plugins": [
{
"adapter": "syslog",
"description": "My Plugin",
"id": "a8899a17-2e34-4d76-a765-57dda8604d06",
"name": "My Plugin",
"type": "block"
}
],
"config": {
"alerttypes": [
[
"start",
"end"
]
],
"severities": [
[
"low",
"medium"
]
],
"algorithms": [
"all"
],
"categories": [
"all"
],
"tracks": [
[
"dstip",
"srcip"
]
]
},
"description": "this detects things",
"name": "my-rule",
"enabled": true,
"type": "alert"
}
]
}Update a response policy given the provided object. This does not do a diff. You must send the complete object.
The ID of the response policy to be updated
Response Policy Create or Update Config
this detects thingsmy-ruletruealertPossible values: Plugin ID to be used in the response policy
214365f7-ac9a-45bc-9795-95958bdfa694Requested Response Policy
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
PUT /api/v1/rule-engine/rule/{id} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 280
{
"plugins": [
"214365f7-ac9a-45bc-9795-95958bdfa694"
],
"config": {
"alerttypes": [
[
"start",
"end"
]
],
"severities": [
[
"low",
"medium"
]
],
"algorithms": [
"all"
],
"categories": [
"all"
],
"tracks": [
[
"dstip",
"srcip"
]
]
},
"description": "this detects things",
"name": "my-rule",
"enabled": true,
"type": "alert"
}{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": "0443258d-3217-49a3-8f2a-21ed5aef4bee",
"plugins": [
{
"adapter": "syslog",
"description": "My Plugin",
"id": "a8899a17-2e34-4d76-a765-57dda8604d06",
"name": "My Plugin",
"type": "block"
}
],
"config": {
"alerttypes": [
[
"start",
"end"
]
],
"severities": [
[
"low",
"medium"
]
],
"algorithms": [
"all"
],
"categories": [
"all"
],
"tracks": [
[
"dstip",
"srcip"
]
]
},
"description": "this detects things",
"name": "my-rule",
"enabled": true,
"type": "alert"
}
]
}Deletes a response policy
The ID of the response policy to be deleted
An empty array
No content
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
DELETE /api/v1/rule-engine/rule/{id} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Enables a response policy
The ID of the response policy to be enabled
Requested Response Policy
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
PUT /api/v1/rule-engine/rule/{id}/enable HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": "0443258d-3217-49a3-8f2a-21ed5aef4bee",
"plugins": [
{
"adapter": "syslog",
"description": "My Plugin",
"id": "a8899a17-2e34-4d76-a765-57dda8604d06",
"name": "My Plugin",
"type": "block"
}
],
"config": {
"alerttypes": [
[
"start",
"end"
]
],
"severities": [
[
"low",
"medium"
]
],
"algorithms": [
"all"
],
"categories": [
"all"
],
"tracks": [
[
"dstip",
"srcip"
]
]
},
"description": "this detects things",
"name": "my-rule",
"enabled": true,
"type": "alert"
}
]
}Disables a response policy
The ID of the response policy to be disabled
Requested Response Policy
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
PUT /api/v1/rule-engine/rule/{id}/disable HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"id": "0443258d-3217-49a3-8f2a-21ed5aef4bee",
"plugins": [
{
"adapter": "syslog",
"description": "My Plugin",
"id": "a8899a17-2e34-4d76-a765-57dda8604d06",
"name": "My Plugin",
"type": "block"
}
],
"config": {
"alerttypes": [
[
"start",
"end"
]
],
"severities": [
[
"low",
"medium"
]
],
"algorithms": [
"all"
],
"categories": [
"all"
],
"tracks": [
[
"dstip",
"srcip"
]
]
},
"description": "this detects things",
"name": "my-rule",
"enabled": true,
"type": "alert"
}
]
}Last updated