로그 소스

로그 소스에 대한 REST API 작업

개요

이러한 API 작업을 사용하여 상호작용합니다 로그 소스 Panther에서. 현재, 다음과의 상호작용이 지원됩니다 HTTP 소스 가 지원됩니다. (이는 포함하지 않습니다 지원되는 로그 소스 HTTP를 전송 메커니즘으로 사용하는 경우.)

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

필수 권한

  • 에 대해 GET 작업의 경우, API 토큰에는 로그 소스 보기 권한이 있어야 합니다.

  • 에 대해 POST, PUT그리고 DELETE 작업의 경우, API 토큰에는 로그 소스 관리 권한이 있어야 합니다.

작업

create http source

post
Authorizations
X-API-KeystringRequired
Body
authBearerTokenstringOptional

The authentication bearer token value of the http source. Used for Bearer auth method

authHeaderKeystringOptional

The authentication header key of the http source. Used for HMAC and SharedSecret auth methods

authHmacAlgstringOptional

The authentication algorithm of the http source. Used for HMAC auth method

authMethodstring · enumRequired

The authentication method of the http source

Possible values:
authPasswordstringOptional

The authentication header password of the http source. Used for Basic auth method

authSecretValuestringOptional

The authentication header secret value of the http source. Used for HMAC and SharedSecret auth methods

authUsernamestringOptional

The authentication header username of the http source. Used for Basic auth method

integrationLabelstringRequired

The integration label (name)

logStreamTypestring · enumRequired

The log stream type. Supported log stream types: Auto, JSON, JsonArray, Lines, CloudWatchLogs, XML

Possible values:
logTypesstring[]Required

The log types of the integration

Responses
post
/log-sources/http

get http source

get
Authorizations
X-API-KeystringRequired
Path parameters
idstringRequired

ID of the http source to fetch

Responses
chevron-right
200

OK response.

application/json
get
/log-sources/http/{id}

put http source

put

put updates an http source

Authorizations
X-API-KeystringRequired
Path parameters
idstringRequired

ID of the http source to update

Body
authBearerTokenstringOptional

The authentication bearer token value of the http source. Used for Bearer auth method

authHeaderKeystringOptional

The authentication header key of the http source. Used for HMAC and SharedSecret auth methods

authHmacAlgstringOptional

The authentication algorithm of the http source. Used for HMAC auth method

authMethodstring · enumRequired

The authentication method of the http source

Possible values:
authPasswordstringOptional

The authentication header password of the http source. Used for Basic auth method

authSecretValuestringOptional

The authentication header secret value of the http source. Used for HMAC and SharedSecret auth methods

authUsernamestringOptional

The authentication header username of the http source. Used for Basic auth method

integrationLabelstringRequired

The integration label (name)

logStreamTypestring · enumRequired

The log stream type. Supported log stream types: Auto, JSON, JsonArray, Lines, CloudWatchLogs, XML

Possible values:
logTypesstring[]Required

The log types of the integration

Responses
chevron-right
200

OK response.

application/json
put
/log-sources/http/{id}

delete http source

delete
Authorizations
X-API-KeystringRequired
Path parameters
idstringRequired

ID of the http source to delete

Responses
delete
/log-sources/http/{id}

No content

마지막 업데이트

도움이 되었나요?