Lists SupportedDatabaseFlags for a given project and location.

### HTTP request

Choose a location:
<button value="global" default="">global</button> <button value="us-central2">us-central2</button> <button value="us-east7">us-east7</button> <button value="northamerica-northeast1">northamerica-northeast1</button> <button value="northamerica-northeast2">northamerica-northeast2</button> <button value="northamerica-south1">northamerica-south1</button> <button value="southamerica-east1">southamerica-east1</button> <button value="southamerica-west1">southamerica-west1</button> <button value="us-central1">us-central1</button> <button value="us-east1">us-east1</button> <button value="us-east4">us-east4</button> <button value="us-east5">us-east5</button> <button value="us-south1">us-south1</button> <button value="us-west1">us-west1</button> <button value="us-west2">us-west2</button> <button value="us-west3">us-west3</button> <button value="us-west4">us-west4</button> <button value="europe-central2">europe-central2</button> <button value="europe-southwest1">europe-southwest1</button> <button value="europe-north1">europe-north1</button> <button value="europe-north2">europe-north2</button> <button value="europe-west1">europe-west1</button> <button value="europe-west2">europe-west2</button> <button value="europe-west3">europe-west3</button> <button value="europe-west4">europe-west4</button> <button value="europe-west6">europe-west6</button> <button value="europe-west8">europe-west8</button> <button value="europe-west9">europe-west9</button> <button value="europe-west10">europe-west10</button> <button value="europe-west12">europe-west12</button> <button value="asia-east1">asia-east1</button> <button value="asia-east2">asia-east2</button> <button value="asia-northeast1">asia-northeast1</button> <button value="asia-northeast2">asia-northeast2</button> <button value="asia-northeast3">asia-northeast3</button> <button value="asia-south1">asia-south1</button> <button value="asia-south2">asia-south2</button> <button value="asia-southeast1">asia-southeast1</button> <button value="asia-southeast2">asia-southeast2</button> <button value="australia-southeast1">australia-southeast1</button> <button value="australia-southeast2">australia-southeast2</button> <button value="me-central1">me-central1</button> <button value="me-central2">me-central2</button> <button value="me-west1">me-west1</button> <button value="africa-south1">africa-south1</button>   
`GET https://alloydb.googleapis.com/v1/{parent=projects/*/locations/*}/supportedDatabaseFlags`

<br />

The URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The name of the parent resource. The required format is: \* projects/{project}/locations/{location} Regardless of the parent specified here, as long it is contains a valid project and location, the service will return a static list of supported flags resources. Note that we do not yet support region-specific flags. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `alloydb.supportedDatabaseFlags.list` |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. |
| `pageToken` | `string` A token identifying a page of results the server should return. |
| `scope` | ``enum (`https://docs.cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations.supportedDatabaseFlags/list#Scope`)`` Optional. The scope for which supported flags are requested. If not specified, default is DATABASE. |

### Request body

The request body must be empty.

### Response body

Message for response to listing SupportedDatabaseFlags.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "supportedDatabaseFlags": [ { object (`https://docs.cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations.supportedDatabaseFlags/list#SupportedDatabaseFlag`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `supportedDatabaseFlags[]` | ``object (`https://docs.cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations.supportedDatabaseFlags/list#SupportedDatabaseFlag`)`` The list of SupportedDatabaseFlags. |
| `nextPageToken` | `string` A token identifying a page of results the server should return. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/alloydb.readonly`
- `
  https://www.googleapis.com/auth/alloydb`
- `
  https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

## Scope

The scope of the flag.

| Enums ||
|---|---|
| `SCOPE_UNSPECIFIED` | The scope of the flag is not specified. Default is DATABASE. |
| `DATABASE` | The flag is a database flag. |
| `CONNECTION_POOL` | The flag is a connection pool flag. |

## SupportedDatabaseFlag

SupportedDatabaseFlag gives general information about a database flag, like type and allowed values. This is a static value that is defined on the server side, and it cannot be modified by callers. To set the Database flags on a particular Instance, a caller should modify the Instance.database_flags field.

| JSON representation |
|---|
| ``` { "name": string, "flagName": string, "valueType": enum (`https://docs.cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations.supportedDatabaseFlags/list#ValueType`), "acceptsMultipleValues": boolean, "supportedDbVersions": [ enum (`https://docs.cloud.google.com/alloydb/docs/reference/rest/v1/DatabaseVersion`) ], "requiresDbRestart": boolean, "scope": enum (`https://docs.cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations.supportedDatabaseFlags/list#Scope`), // Union field `restrictions` can be only one of the following: "stringRestrictions": { object (`https://docs.cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations.supportedDatabaseFlags/list#StringRestrictions`) }, "integerRestrictions": { object (`https://docs.cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations.supportedDatabaseFlags/list#IntegerRestrictions`) } // End of list of possible types for union field `restrictions`. // Union field `recommended_value` can be only one of the following: "recommendedStringValue": string, "recommendedIntegerValue": string // End of list of possible types for union field `recommended_value`. } ``` |

| Fields ||
|---|---|
| `name` | `string` The name of the flag resource, following Google Cloud conventions, e.g.: \* projects/{project}/locations/{location}/flags/{flag} This field currently has no semantic meaning. |
| `flagName` | `string` The name of the database flag, e.g. "max_allowed_packets". The is a possibly key for the Instance.database_flags map field. |
| `valueType` | ``enum (`https://docs.cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations.supportedDatabaseFlags/list#ValueType`)`` |
| `acceptsMultipleValues` | `boolean` Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified. |
| `supportedDbVersions[]` | ``enum (`https://docs.cloud.google.com/alloydb/docs/reference/rest/v1/DatabaseVersion`)`` Major database engine versions for which this flag is supported. |
| `requiresDbRestart` | `boolean` Whether setting or updating this flag on an Instance requires a database restart. If a flag that requires database restart is set, the backend will automatically restart the database (making sure to satisfy any availability SLO's). |
| `scope` | ``enum (`https://docs.cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations.supportedDatabaseFlags/list#Scope`)`` The scope of the flag. |
| Union field `restrictions`. The restrictions on the flag value per type. `restrictions` can be only one of the following: ||
| `stringRestrictions` | ``object (`https://docs.cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations.supportedDatabaseFlags/list#StringRestrictions`)`` Restriction on STRING type value. |
| `integerRestrictions` | ``object (`https://docs.cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations.supportedDatabaseFlags/list#IntegerRestrictions`)`` Restriction on INTEGER type value. |
| Union field `recommended_value`. The recommended value for the flag by type, if applicable. `recommended_value` can be only one of the following: ||
| `recommendedStringValue` | `string` The recommended value for a STRING flag. |
| `recommendedIntegerValue` | `string (https://developers.google.com/discovery/v1/type-format format)` The recommended value for an INTEGER flag. |

## StringRestrictions

Restrictions on STRING type values

| JSON representation |
|---|
| ``` { "allowedValues": [ string ], "caseAgnostic": boolean } ``` |

| Fields ||
|---|---|
| `allowedValues[]` | `string` The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values. |
| `caseAgnostic` | `boolean` Output only. Whether the allowed values are case agnostic. |

## IntegerRestrictions

Restrictions on INTEGER type values.

| JSON representation |
|---|
| ``` { "minValue": string, "maxValue": string } ``` |

| Fields ||
|---|---|
| `minValue` | `string (https://developers.google.com/discovery/v1/type-format format)` The minimum value that can be specified, if applicable. |
| `maxValue` | `string (https://developers.google.com/discovery/v1/type-format format)` The maximum value that can be specified, if applicable. |

## ValueType

ValueType describes the semantic type of the value that the flag accepts. Regardless of the ValueType, the Instance.database_flags field accepts the stringified version of the value, i.e. "20" or "3.14".

| Enums ||
|---|---|
| `VALUE_TYPE_UNSPECIFIED` | This is an unknown flag type. |
| `STRING` | String type flag. |
| `INTEGER` | Integer type flag. |
| `FLOAT` | Float type flag. |
| `NONE` | Denotes that the flag does not accept any values. |