알러트

알러트에 대한 REST API 작업

개요

이러한 API 작업을 사용하여 상호작용합니다 알러트 Panther에서.

API를 호출하려면, 다음을 참조하세요 Panther REST API 사용 방법 지침—포함하여 이 문서 페이지에서 직접 호출하는 방법에 대한 지침.

필수 권한

  • 에 대해 GET 작업의 경우, API 토큰에는 Read Alerts 권한이 있어야 합니다.

  • 에 대해 패치 작업의 경우, API 토큰에는 Manage Alerts 권한이 있어야 합니다.

작업

Get an alert

get
Authorizations
X-API-KeystringRequired
Path parameters
idstringRequired

ID of the alert

Responses
chevron-right
200

OK response.

application/json
get
/alerts/{id}

Update the status or assignee of an alert

patch
Authorizations
X-API-KeystringRequired
Path parameters
idstringRequired

ID of the alert

Body
assigneestringOptional

The ID of the assignee for this alert

statusstring · enumOptional

The status of this Alert

Possible values:
Responses
chevron-right
200

OK response.

No content

patch
/alerts/{id}

No content

List alerts

get
Authorizations
X-API-KeystringRequired
Query parameters
typestring · enumOptionalDefault: ALERTPossible values:
cursorstringOptional

the pagination token

limitinteger · int64 · max: 50Optional

the maximum results to return

Default: 25
created-afterstringOptional

The date and time after which the alerts were created. If empty we default to 30 days ago

Example: 1672531200
created-beforestringOptional

The date and time before which the alerts were created. If empty we default to the current time

Example: 1672531200
detection-idstringOptional

The detection ID to filter alerts by

sort-dirstring · enumOptional

The sort direction of the results

Default: descPossible values:
name-containsstringOptional

A string to search for in the alert name

log-sourcestring[]Optional

The log source of the alert

log-typestring[]Optional

The log type of the alert

resource-typestring[]Optional

The resource type of the alert

assigneestring[]Optional

The assignee of the alert. This should be a user id

event-count-mininteger · int64Optional

The minimum number of events in the alert

event-count-maxinteger · int64Optional

The maximum number of events in the alert

Responses
chevron-right
200

OK response.

application/json
get
/alerts

Update the status or assignee of multiple alerts

patch
Authorizations
X-API-KeystringRequired
Body
assigneestringOptional

The ID of the assignee for this alert

idsstring[]Required

The IDs of the alerts to patch

statusstring · enumOptional

The status of this Alert

Possible values:
Responses
patch
/alerts

No content

List alert events

get
Authorizations
X-API-KeystringRequired
Path parameters
idstringRequired

The alert id

Query parameters
cursorstringOptional

the pagination token

limitinteger · int64 · max: 50Optional

the maximum results to return

Default: 25
Responses
chevron-right
200

OK response.

application/json
get
/alerts/{id}/events

마지막 업데이트

도움이 되었나요?