- 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/v1beta/{parent=projects/*/locations/*}/resourceMaintenances:summarize
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The parent (project and location) where the resource maintenances will be listed. Specified in the format For target resources that are regional and global, the location of For target resources that are zonal, the Location |
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:
|
Request body
The request body must be empty.
Response body
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. The minimum start time resource maintenance apart of this maintenance. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
maintenanceScheduledEndTime |
Output only. The maximum end time resource maintenance apart of this maintenance. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
maintenanceStartTime |
Output only. The minimum start time resource maintenance apart of this maintenance. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
maintenanceEndTime |
Output only. The minimum start time resource maintenance apart of this maintenance. Uses RFC 3339, where generated output will always be Z-normalized and uses 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. Statistics of |
Stats
JSON representation |
---|
{
"groupBy": string,
"aggregates": [
{
object ( |
Fields | |
---|---|
groupBy |
A field of Allowed fields:
|
aggregates[] |
List of calculated aggregates. |
Aggregate
JSON representation |
---|
{ "group": string, "count": string } |
Fields | |
---|---|
group |
The value of the |
count |
The number of |