Versions Compared

Key

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

...

Localtabgroup
Localtab
activetrue
titleRequest
HTTP Request methodGET
URLhttps://gateway.api.cloud.wso2.com/api/logs?logType=<log-type>&date=yyyy-mm-dd
Headers

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

Localtab
titleResponse
Localtabgroup
Localtab
titleSuccessful invocationsinvocation
Code Block
{
   “archiveFileUrl” : “https://link-to-archive-file”,
   “validPeriodInSeconds” : 300
}
Localtab
titleUnsuccessful invocations
Code Block
{
 "message": "2019-04/08 is an invalid date format. Valid format is year-month-day (yyyy-mm-dd) Pacific Standard Time"
}
Code Block
{
  "message": "load-balance is an invalid 'logType' value. Valid values are : [load-balancer, gateway]"
}
Code Block
{
  "message": "Logs are not available for the specified type : load-balancer and date : 2019-04-07"
}
Code Block
{
  "message": "An internal server error occurred during the log retrieval process"
}
Code Block
{
  "message": "Unauthorized user. User must have admin privileges to invoke the log download API"
}

...