docs
api
Web Application Firewall(UEWAF)
DownloadWAFAccessLog

Download Access Log - DownloadWAFAccessLog

Overview

Download Access Log

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DownloadWAFAccessLog.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ProjectIdstringProject ID. If not filled in, the default project is used, and the sub-account must be filled in. Please refer to the GetProjectList interface.No
FullDomainstringDomain name for which logs are to be downloadedYes
DatestringDate, in the format of yyyy-mm-ddYes
LogTypestringaccessLog Access Log, attackLog Attack LogYes

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
URLarray[string]List of URLs for file downloads, one file provided every hour.Yes

Example

Request Example

https://api.surfercloud.com/?Action=DownloadWAFAccessLog
&ProjectId=org-xxx
&FullDomain=www.test.com
&LogType=attackLog
&Date=2020-04-03

Response Example

{
  "Action": "DownloadWafAccessLogResponse",
  "RetCode": 0,
  "URL": [
    "http://uewaf.cn-bj.ufileos.com/*_8cname_com_20200403.accessLog.00.zip?Expires=1585985041\u0026Signature=CpiAddyTtFixYZynJ4KToFG3N3A%3D\u0026SurferCloudPublicKey=9uqRcyaNLuIhf1I4icUMsaiyB2HoWhs2zMaaGgYnV7dLb7m%2FsCP1JQ%3D%3D",
    "http://uewaf.cn-bj.ufileos.com/*_8cname_com_20200403.accessLog.14.zip?Expires=1585985041\u0026Signature=je3y7A%2Bjcs9eWKFvIE6k755pxcg%3D\u0026SurferCloudPublicKey=9uqRcyaNLuIhf1I4icUMsaiyB2HoWhs2zMaaGgYnV7dLb7m%2FsCP1JQ%3D%3D"
  ]
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved