Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Localtabgroup
Localtab
activetrue
titleRequest
HTTP request methodGET
URL

https://gateway.api.cloud.wso2.com/api/logs?logType=<log-type>&date=<yyyy-mm-dd>

The following table describes the valid logType and date values that you can pass in the URL:

ParameterValid values
logType

Either load-balancer or gateway.

date
The current date or a prior date in the following format:

yyyy-mm-dd format. in Pacific Standard Time
For example, 2019-03-20.

Note
titleNote

Specifying a future date is not valid and will result in an unsuccessful invocation.

Headers

Content-Type: application/json
Authorization: Bearer <Bearer token received by following prerequisites>

Localtab
titleResponse
Localtabgroup
Localtab
activetrue
titleSuccessful invocation
Code Block
{
   “archiveFileUrl” : “https://link-to-archive-file”,
   “validPeriodInSeconds” : 300
}
Localtab
titleUnsuccessful invocation
Code Block
{
 "message": <An error message describing the reason that caused an unsuccesful invocation>
}

...