Compute Cloud Instance Groups API, gRPC: InstanceGroupService.ListLogRecords
Lists logs for the specified instance group.
gRPC request
rpc ListLogRecords (ListInstanceGroupLogRecordsRequest) returns (ListInstanceGroupLogRecordsResponse)
ListInstanceGroupLogRecordsRequest
{
"instance_group_id": "string",
"page_size": "int64",
"page_token": "string",
"filter": "string"
}
Field |
Description |
instance_group_id |
string Required field. ID of the InstanceGroup resource to list logs for. |
page_size |
int64 The maximum number of results per page to return. If the number of available |
page_token |
string Page token. To get the next page of results, |
filter |
string A filter expression that filters resources listed in the response. |
ListInstanceGroupLogRecordsResponse
{
"log_records": [
{
"timestamp": "google.protobuf.Timestamp",
"message": "string"
}
],
"next_page_token": "string"
}
Field |
Description |
log_records[] |
Lists logs for the specified instance group. |
next_page_token |
string This token allows you to get the next page of results for list requests. If the number of results |
LogRecord
Field |
Description |
timestamp |
Log timestamp in RFC3339 |
message |
string The log message. |