Cloud Logging Service, gRPC: LogGroupService.ListResources
Статья создана
Обновлена 17 октября 2024 г.
Retrieves the resources (type and IDs) in the specified log group.
gRPC request
rpc ListResources (ListResourcesRequest) returns (ListResourcesResponse)
ListResourcesRequest
{
"logGroupId": "string",
"type": "string"
}
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. |
type |
string Resource type to return resources for. If not specified, ListResourcesResponse will contain information about all resource types. |
ListResourcesResponse
{
"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. |