- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- LogLevel
- WebhookLog
- Try it!
Full name: projects.locations.instances.webhooks.getLogs
Get a log for a given webhook.
HTTP request
Path parameters
Parameters | |
---|---|
name |
Required. The resource name of the Webhook to get logs for. Format: projects/{project}/locations/{location}/instances/{instance}/webhooks/{webhook}:getLogs |
Query parameters
Parameters | |
---|---|
minimumLogLevel |
Optional. Optional filter to only return logs with this minimum severity level. |
Request body
The request body must be empty.
Response body
Response message for webhooks.getLogs.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"logs": [
{
object ( |
Fields | |
---|---|
logs[] |
Optional. The list of logs for the webhook that matched the requested filter. |
nextPageToken |
Optional. A token to retrieve the next page of results. If this field is omitted, there are no subsequent pages. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
LogLevel
Log level.
Enums | |
---|---|
LOG_LEVEL_UNSPECIFIED |
Unspecified log level. |
VERBOSE |
Verbose log level. |
DEBUG |
Debug log level. |
INFO |
Info log level. |
WARN |
Warn log level. |
ERROR |
Error log level. |
WebhookLog
Response message for WebhookLog.
JSON representation |
---|
{
"rawJson": string,
"createTime": string,
"message": string,
"level": enum ( |
Fields | |
---|---|
rawJson |
Required. The log full json. |
createTime |
Required. The log creation time. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
message |
Required. The log message. |
level |
Required. The log level. |