Method listLogRecords

Lists logs for the specified instance group.

HTTP request

GET https://compute.api.cloud.yandex.net/compute/v1/instanceGroups/{instanceGroupId}:logs

Path parameters

Parameter Description
instanceGroupId Required. ID of the InstanceGroup resource to list logs for. To get the instance group ID, use a list request.

Query parameters

Parameter Description
pageSize The maximum number of results per page to return. If the number of available results is larger than pageSize, the service returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 1000, inclusive.
pageToken Page token. To get the next page of results, set pageToken to the nextPageToken returned by a previous list request. The maximum string length in characters is 100.
filter A filter expression that filters resources listed in the response. Currently you can use filtering only on the InstanceGroup.name field. The maximum string length in characters is 1000.

Response

HTTP Code: 200 - OK

{
  "logRecords": [
    {
      "timestamp": "string",
      "message": "string"
    }
  ],
  "nextPageToken": "string"
}
Field Description
logRecords[] object

Lists logs for the specified instance group.

logRecords[].
timestamp
string (date-time)

Log timestamp in RFC3339 text format.

String in RFC3339 text format.

logRecords[].
message
string

The log message.

nextPageToken string

This token allows you to get the next page of results for list requests. If the number of results is larger than pageSize, use nextPageToken as the value for the pageToken query parameter in the next list request. Each subsequent list request will have its own nextPageToken to continue paging through the results.