from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
waap_insight = client.waap.domains.insights.get(
insight_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
domain_id=1,
)
print(waap_insight.id)
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"insight_type": "high-risk-ip-allowed",
"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\""
}
Retrieve a specific insight for a specific domain.
from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
waap_insight = client.waap.domains.insights.get(
insight_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
domain_id=1,
)
print(waap_insight.id)
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"insight_type": "high-risk-ip-allowed",
"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\""
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
The domain ID
x > 0
Successful Response
The response is of type object
.
Was this page helpful?