Method: projects.locations.resourceMaintenances.summarize

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

string

Required. The parent (project and location) where the resource maintenances will be listed. Specified in the format projects/*/locations/*.

For target resources that are regional and global, the location of ResourceMaintenance is always the same as the target resource location.

For target resources that are zonal, the ResourceMaintenance location is a region corresponding to the zone of target resource. For example, for a Cloud SQL instance in the us-west1-a zone, the ResourceMaintenance is in the us-west1 region.

Location "-" matches all locations.

Query parameters

Parameters
pageSize

integer

The maximum number of resource maintenances to send per page. The default page size is 20 and the maximum is 1000.

pageToken

string

The page token: If the nextPageToken from a previous response is provided, this request will send the subsequent page.

filter

string

Filter the list as specified in https://google.aip.dev/160. Supported fields include:

  • maintenanceName
Examples:
  • maitenanceName="eb3b709c-9ca1-5472-9fb6-800a3849eda1" AND maintenanceCompleteTime>"2000-10-11T20:44:51Z"

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 (MaintenanceSummary)
    }
  ],
  "nextPageToken": string,
  "unreachable": [
    string
  ]
}
Fields
maintenances[]

object (MaintenanceSummary)

The resulting summaries.

nextPageToken

string

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[]

string

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 (MaintenanceCategory),
  "maintenanceScheduledStartTime": string,
  "maintenanceScheduledEndTime": string,
  "maintenanceStartTime": string,
  "maintenanceEndTime": string,
  "userControllable": boolean,
  "controls": [
    {
      object (MaintenanceControl)
    }
  ],
  "stats": [
    {
      object (Stats)
    }
  ]
}
Fields
maintenanceName

string

Output only. The name of the maintenance.

title

string

Output only. The title of the maintenance.

description

string

Output only. The description of the maintenance.

category

enum (MaintenanceCategory)

Output only. The category of the maintenance event.

maintenanceScheduledStartTime

string (Timestamp format)

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: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

maintenanceScheduledEndTime

string (Timestamp format)

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: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

maintenanceStartTime

string (Timestamp format)

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: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

maintenanceEndTime

string (Timestamp format)

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: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

userControllable

boolean

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[]

object (MaintenanceControl)

Output only. Control available for that Maintenance (might not be available for every resource that maintenance is applied to).

stats[]

object (Stats)

Output only. Statistics of ResourceMaintenance aggregated by maintenance.

Stats

JSON representation
{
  "groupBy": string,
  "aggregates": [
    {
      object (Aggregate)
    }
  ]
}
Fields
groupBy

string

A field of ResourceMaintenance used to aggregate.

Allowed fields:

  • state
  • resource.location
  • resource.type
aggregates[]

object (Aggregate)

List of calculated aggregates.

Aggregate

JSON representation
{
  "group": string,
  "count": string
}
Fields
group

string

The value of the ResourceMaintenance field used to aggregate. For example for "state" field it could be "SCHEDULED" or "RUNNING".

count

string (int64 format)

The number of ResourceMaintenance that have the group value.