- HTTP request
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- AggregateFleetRow
- Dimension
- ManagementType
- Try it!
v1beta.aggregateFleet provides statistics about the fleet grouped by various fields.
HTTP request
GET https://databasecenter.googleapis.com/v1beta:aggregateFleet
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
parent |
Required. Parent can be a project, a folder, or an organization. The search is limited to the resources within the The allowed values are:
|
filter |
Optional. The expression to filter resources. Supported fields are: The expression is a list of zero or more restrictions combined via logical operators Example: |
groupBy |
Optional. A field that statistics are grouped by. Valid values are any combination of the following: * container * product.type * product.engine * product.version * location * subResourceType * managementType * tag.key * tag.value * tag.source * tag.inherited * label.key * label.value * label.source * hasMaintenanceSchedule * hasDenyMaintenanceSchedules Comma separated list. |
orderBy |
Optional. Valid values to order by are: * resourceGroupsCount * resourcesCount * and all fields supported by |
pageSize |
Optional. If unspecified, at most 50 items will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken |
Optional. A page token, received from a previous |
baselineDate |
Optional. The baseline date w.r.t. which the delta counts are calculated. If not set, delta counts are not included in the response and the response indicates the current state of the fleet. |
Request body
The request body must be empty.
Response body
The response message to aggregate a fleet by some group by fields.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"rows": [
{
object ( |
| Fields | |
|---|---|
rows[] |
Represents a row grouped by the fields in the input. |
resourceGroupsTotalCount |
Count of all resource groups in the fleet. This includes counts from all pages. |
resourceTotalCount |
Count of all resources in the fleet. This includes counts from all pages. |
nextPageToken |
A token that can be sent as |
unreachable[] |
Unordered list. List of unreachable regions from where data could not be retrieved. |
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:
databasecenter.fleetStats.list
For more information, see the IAM documentation.
AggregateFleetRow
Individual row grouped by a particular dimension.
| JSON representation |
|---|
{ "dimension": [ { object ( |
| Fields | |
|---|---|
dimension[] |
Group by dimension. |
resourceGroupsCount |
Number of resource groups that have a particular dimension. |
resourcesCount |
Number of resources that have a particular dimension. |
deltaDetails |
Optional. Delta counts and details of resources which were added to/deleted from fleet. |
Dimension
Dimension used to aggregate the fleet.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field dimension. Followings are the dimensions to be used to aggregate the fleet. dimension can be only one of the following: |
|
container |
Specifies where the resource is created. For Google Cloud resources, it is the full name of the project. |
productType |
Type to identify a product |
productEngine |
Engine refers to underlying database binary running in an instance. |
productVersion |
Version of the underlying database engine |
location |
The location of the resources. It supports returning only regional locations in Google Cloud. |
resourceType |
The type of resource defined according to the pattern: {Service Name}/{Type}. Ex: sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance spanner.googleapis.com/Instance |
subResourceType |
Subtype of the resource specified at creation time. |
resourceCategory |
The category of the resource. |
managementType |
The management type of the resource. |
edition |
The edition of the resource. |
tagKey |
Tag key of the resource. |
tagValue |
Tag value of the resource. |
tagSource |
Tag source of the resource. |
tagInherited |
Tag inheritance value of the resource. |
labelKey |
Label key of the resource. |
labelValue |
Label value of the resource. |
labelSource |
Label source of the resource. |
hasMaintenanceSchedule |
Whether the resource has a maintenance schedule. |
hasDenyMaintenanceSchedules |
Whether the resource has deny maintenance schedules. |
ManagementType
The management type of the resource.
| Enums | |
|---|---|
MANAGEMENT_TYPE_UNSPECIFIED |
Unspecified. |
MANAGEMENT_TYPE_GCP_MANAGED |
Google-managed resource. |
MANAGEMENT_TYPE_SELF_MANAGED |
Self-managed resource. |