Compute Cloud Instance Groups API, gRPC: InstanceGroupService.ListLogRecords
Lists logs for the specified instance group.
gRPC request
rpc ListLogRecords (ListInstanceGroupLogRecordsRequest) returns (ListInstanceGroupLogRecordsResponse)
ListInstanceGroupLogRecordsRequest
{
"instanceGroupId": "string",
"pageSize": "int64",
"pageToken": "string",
"filter": "string"
}
Field |
Description |
instanceGroupId |
string Required field. ID of the InstanceGroup resource to list logs for. |
pageSize |
int64 The maximum number of results per page to return. If the number of available |
pageToken |
string Page token. To get the next page of results, |
filter |
string A filter expression that filters resources listed in the response. |
ListInstanceGroupLogRecordsResponse
{
"logRecords": [
{
"timestamp": "google.protobuf.Timestamp",
"message": "string"
}
],
"nextPageToken": "string"
}
Field |
Description |
logRecords[] |
Lists logs for the specified instance group. |
nextPageToken |
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. |