쿼리

저장된 및 예약된 쿼리에 대한 REST API 작업

개요

다음 API 작업을 사용하여 상호작용하세요 저장된 및 예약된 검색 Panther에서.

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

circle-exclamation

필수 권한

  • 에 대해 GET 작업의 경우, API 토큰에는 쿼리 데이터 레이크 권한이 있어야 합니다.

  • 에 대해 POST, PUTDELETE 작업의 경우, API 토큰에는 저장된 검색 관리 권한이 있어야 합니다.

작업

create query

post
Authorizations
X-API-KeystringRequired
Body
descriptionstringOptional

The description of the query

namestringRequired

The name of the query

sqlstringRequired

The raw sql of the query

Responses
chevron-right
200

OK response.

application/json
createdAtstringOptional
descriptionstringOptional

The description of the query

idstringOptional

The generated ID of the query

managedbooleanOptional

Determines if the query is managed by panther

namestringOptional

The name of the query

sqlstringOptional

The raw sql of the query

updatedAtstringOptional
post
/queries

get query

get
Authorizations
X-API-KeystringRequired
Path parameters
idstringRequired

ID of the query to fetch

Responses
chevron-right
200

OK response.

application/json
createdAtstringOptional
descriptionstringOptional

The description of the query

idstringOptional

The generated ID of the query

managedbooleanOptional

Determines if the query is managed by panther

namestringOptional

The name of the query

sqlstringOptional

The raw sql of the query

updatedAtstringOptional
get
/queries/{id}

update query

post

updates a query

Authorizations
X-API-KeystringRequired
Path parameters
idstringRequired
Body
descriptionstringOptional

The description of the query

namestringRequired

The name of the query

sqlstringRequired

The raw sql of the query

Responses
chevron-right
200

OK response.

application/json
createdAtstringOptional
descriptionstringOptional

The description of the query

idstringOptional

The generated ID of the query

managedbooleanOptional

Determines if the query is managed by panther

namestringOptional

The name of the query

sqlstringOptional

The raw sql of the query

updatedAtstringOptional
post
/queries/{id}

delete query

delete
Authorizations
X-API-KeystringRequired
Path parameters
idstringRequired

ID of the query to delete

Responses
delete
/queries/{id}

No content

list queries

get
Authorizations
X-API-KeystringRequired
Query parameters
cursorstringOptional

the pagination token

limitinteger · int64Optional

the maximum results to return

Default: 100
Responses
chevron-right
200

OK response.

application/json
nextstringOptional

Pagination token for the next page of results

get
/queries
200

OK response.

마지막 업데이트

도움이 되었나요?