PUT
/
waap
/
v1
/
domains
/
{domain_id}
/
insights
/
{insight_id}
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
waap_insight = client.waap.domains.insights.replace(
    insight_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    domain_id=1,
    status="OPEN",
)
print(waap_insight.id)
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "insight_type": "<string>",
  "labels": {},
  "first_seen": "2023-11-07T05:31:56Z",
  "last_seen": "2023-11-07T05:31:56Z",
  "last_status_change": "2023-11-07T05:31:56Z",
  "status": "OPEN",
  "description": "A request originated from a high-risk IP: 1.2.3.4, but it was allowed by rule: 'my custom rule' the description of the insight",
  "recommendation": "disable or delete rule \"my-custom-rule\""
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

domain_id
integer
required

The domain ID

Required range: x > 0
insight_id
string<uuid>
required

The ID of the insight

Body

application/json
status
enum<string>
required

The status of the insight

Available options:
OPEN,
ACKED,
CLOSED

Response

Successful Response

id
string<uuid>
required

A generated unique identifier for the insight

insight_type
string
required

The slug of the insight type

labels
object
required

A hash table of label names and values that apply to the insight

first_seen
string<date-time>
required

The date and time the insight was first seen in ISO 8601 format

last_seen
string<date-time>
required

The date and time the insight was last seen in ISO 8601 format

last_status_change
string<date-time>
required

The date and time the insight was last seen in ISO 8601 format

status
enum<string>
required

The status of the insight

Available options:
OPEN,
ACKED,
CLOSED
description
string
required

The description of the insight

Required string length: 3 - 450
Examples:

"A request originated from a high-risk IP: 1.2.3.4, but it was allowed by rule: 'my custom rule' the description of the insight"

recommendation
string
required

The recommended action to perform to resolve the insight

Required string length: 3 - 450
Examples:

"disable or delete rule \"my-custom-rule\""