Cloud Logging Service, REST: LogGroup.ListResources
Written by
Updated at November 26, 2024
Retrieves the resources (type and IDs) in the specified log group.
HTTP request
GET https://logging.api.cloud.yandex.net/logging/v1/logGroups/{logGroupId}:listResources
Path parameters
Field |
Description |
logGroupId |
string Required field. ID of the log group to list resources for. To get a log group ID make a LogGroupService.List request. |
Query parameters
Field |
Description |
type |
string Resource type to return resources for. If not specified, ListResourcesResponse will contain information about all resource types. |
Response
HTTP Code: 200 - OK
{
"resources": [
{
"type": "string",
"ids": [
"string"
]
}
]
}
Field |
Description |
resources[] |
List of resources present in log group. |
LogGroupResource
Log group resource.
Field |
Description |
type |
string Resource type. Collected from log entries inside log group. |
ids[] |
string List of resource IDs with the same resource type. |