- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- MaintenanceSummary
- Stats
- Aggregate
- Try it!
Retrieves the statistics of a specific maintenance.
HTTP request
GET https://maintenance.googleapis.com/v1/{parent=projects/*/locations/*}/resourceMaintenances:summarize
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The parent of the resource maintenance. eg. |
Query parameters
| Parameters | |
|---|---|
pageSize |
The maximum number of resource maintenances to send per page. The default page size is 20 and the maximum is 1000. |
pageToken |
The page token: If the nextPageToken from a previous response is provided, this request will send the subsequent page. |
filter |
Filter the list as specified in https://google.aip.dev/160. Supported fields include: - |
orderBy |
Order results as specified in https://google.aip.dev/132. |
Request body
The request body must be empty.
Response body
Request message for resourceMaintenances.summarize custom method.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"maintenances": [
{
object ( |
| Fields | |
|---|---|
maintenances[] |
The resulting summaries. |
nextPageToken |
If present, the next page token can be provided to a subsequent resourceMaintenances.summarize call to list the next page. If empty, there are no more pages. |
unreachable[] |
Unordered list. Locations that could not be reached. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent resource:
maintenance.resourceMaintenances.list
For more information, see the IAM documentation.
MaintenanceSummary
MaintenanceSummary contains maintenance statistics calculated based on ResourceMaintenances within the scope: project and location.
| JSON representation |
|---|
{ "maintenanceName": string, "title": string, "description": string, "category": enum ( |
| Fields | |
|---|---|
maintenanceName |
Output only. The name of the maintenance. |
title |
Output only. The title of the maintenance. |
description |
Output only. The description of the maintenance. |
category |
Output only. The category of the maintenance event. |
maintenanceScheduledStartTime |
Output only. Scheduled start time of the maintenance. The maintenance will start at Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
maintenanceScheduledEndTime |
Output only. An estimated (best effort, not guaranteed) end time of the scheduled maintenance. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
maintenanceStartTime |
Output only. Actual date when the maintenance started. Field present only after the state changed to Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
maintenanceEndTime |
Output only. Actual date when the maintenance successfully completed. Field present only after the state changed to Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
userControllable |
Output only. Indicates whether the user has some control over that maintenance, either proactively before maintenance was scheduled with maintenance policy or with reactive controls after it was scheduled (see controls field). |
controls[] |
Output only. Control available for that Maintenance (might not be available for every resource that maintenance is applied to). |
stats[] |
Output only. Stats is a field of ResourceMaintenance used to aggregate the stats. |
Stats
Stats indicates the type of aggregate and the corresponding aggregates.
| JSON representation |
|---|
{
"groupBy": string,
"aggregates": [
{
object ( |
| Fields | |
|---|---|
groupBy |
groupBy specifies the type of aggregate. For example a groupBy might be |
aggregates[] |
Aggregates is a list <group, count> pairs. For example, if the groupBy is |
Aggregate
Aggregate is a <group, count> pair.
| JSON representation |
|---|
{ "group": string, "count": string } |
| Fields | |
|---|---|
group |
Specifies what specific value of the groupBy the count represents. For example if groupBy is |
count |
The count of the group. |