Compute Cloud Instance Groups API, REST: InstanceGroup.ListLogRecords
Lists logs for the specified instance group.
HTTP request
GET https://compute.api.cloud.yandex.net/compute/v1/instanceGroups/{instanceGroupId}:logs
Path parameters
Field |
Description |
instanceGroupId |
string Required field. ID of the InstanceGroup resource to list logs for. |
Query parameters
Field |
Description |
pageSize |
string (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. |
Response
HTTP Code: 200 - OK
{
"logRecords": [
{
"timestamp": "string",
"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 |
string (date-time) Log timestamp in RFC3339 String in RFC3339 To work with values in this field, use the APIs described in the |
message |
string The log message. |