쿼리

저장된 및 예약된 쿼리를 위한 REST API 작업

개요

다음 API 작업을 사용하여 저장된 검색 및 예약 검색 을 Panther에서 다룹니다.

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

circle-exclamation

필수 권한

  • 에 대해 GET 작업을 수행하려면 API 토큰에 데이터 레이크 쿼리 권한이 있어야 합니다.

  • 에 대해 POST, PUT, 그리고 DELETE 작업을 수행하려면 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.

마지막 업데이트

도움이 되었나요?