Google Cloud v8.21.0 published on Wednesday, Mar 5, 2025 by Pulumi
gcp.alloydb.getSupportedDatabaseFlags
Explore with Pulumi AI
Use this data source to get information about the supported alloydb database flags in a location.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const qa = gcp.alloydb.getSupportedDatabaseFlags({
    location: "us-central1",
});
import pulumi
import pulumi_gcp as gcp
qa = gcp.alloydb.get_supported_database_flags(location="us-central1")
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/alloydb"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := alloydb.GetSupportedDatabaseFlags(ctx, &alloydb.GetSupportedDatabaseFlagsArgs{
			Location: "us-central1",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() => 
{
    var qa = Gcp.Alloydb.GetSupportedDatabaseFlags.Invoke(new()
    {
        Location = "us-central1",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.alloydb.AlloydbFunctions;
import com.pulumi.gcp.alloydb.inputs.GetSupportedDatabaseFlagsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var qa = AlloydbFunctions.getSupportedDatabaseFlags(GetSupportedDatabaseFlagsArgs.builder()
            .location("us-central1")
            .build());
    }
}
variables:
  qa:
    fn::invoke:
      function: gcp:alloydb:getSupportedDatabaseFlags
      arguments:
        location: us-central1
Using getSupportedDatabaseFlags
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSupportedDatabaseFlags(args: GetSupportedDatabaseFlagsArgs, opts?: InvokeOptions): Promise<GetSupportedDatabaseFlagsResult>
function getSupportedDatabaseFlagsOutput(args: GetSupportedDatabaseFlagsOutputArgs, opts?: InvokeOptions): Output<GetSupportedDatabaseFlagsResult>def get_supported_database_flags(location: Optional[str] = None,
                                 project: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetSupportedDatabaseFlagsResult
def get_supported_database_flags_output(location: Optional[pulumi.Input[str]] = None,
                                 project: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetSupportedDatabaseFlagsResult]func GetSupportedDatabaseFlags(ctx *Context, args *GetSupportedDatabaseFlagsArgs, opts ...InvokeOption) (*GetSupportedDatabaseFlagsResult, error)
func GetSupportedDatabaseFlagsOutput(ctx *Context, args *GetSupportedDatabaseFlagsOutputArgs, opts ...InvokeOption) GetSupportedDatabaseFlagsResultOutput> Note: This function is named GetSupportedDatabaseFlags in the Go SDK.
public static class GetSupportedDatabaseFlags 
{
    public static Task<GetSupportedDatabaseFlagsResult> InvokeAsync(GetSupportedDatabaseFlagsArgs args, InvokeOptions? opts = null)
    public static Output<GetSupportedDatabaseFlagsResult> Invoke(GetSupportedDatabaseFlagsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSupportedDatabaseFlagsResult> getSupportedDatabaseFlags(GetSupportedDatabaseFlagsArgs args, InvokeOptions options)
public static Output<GetSupportedDatabaseFlagsResult> getSupportedDatabaseFlags(GetSupportedDatabaseFlagsArgs args, InvokeOptions options)
fn::invoke:
  function: gcp:alloydb/getSupportedDatabaseFlags:getSupportedDatabaseFlags
  arguments:
    # arguments dictionaryThe following arguments are supported:
getSupportedDatabaseFlags Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- SupportedDatabase List<GetFlags Supported Database Flags Supported Database Flag> 
- Contains a list of flag, which contains the details about a particular flag.
- Project string
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- SupportedDatabase []GetFlags Supported Database Flags Supported Database Flag 
- Contains a list of flag, which contains the details about a particular flag.
- Project string
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- supportedDatabase List<GetFlags Supported Database Flags Supported Database Flag> 
- Contains a list of flag, which contains the details about a particular flag.
- project String
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- supportedDatabase GetFlags Supported Database Flags Supported Database Flag[] 
- Contains a list of flag, which contains the details about a particular flag.
- project string
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- supported_database_ Sequence[Getflags Supported Database Flags Supported Database Flag] 
- Contains a list of flag, which contains the details about a particular flag.
- project str
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- supportedDatabase List<Property Map>Flags 
- Contains a list of flag, which contains the details about a particular flag.
- project String
Supporting Types
GetSupportedDatabaseFlagsSupportedDatabaseFlag      
- AcceptsMultiple boolValues 
- Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.
- 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.
- IntegerRestrictions GetSupported Database Flags Supported Database Flag Integer Restrictions 
- Restriction on INTEGERtype value. Specifies the minimum value and the maximum value that can be specified, if applicable.
- 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.
- RequiresDb boolRestart 
- 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).
- StringRestrictions GetSupported Database Flags Supported Database Flag String Restrictions 
- Restriction on STRINGtype value. The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.
- SupportedDb List<string>Versions 
- Major database engine versions for which this flag is supported. The supported values are POSTGRES_14andDATABASE_VERSION_UNSPECIFIED.
- ValueType string
- 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". The supported values are VALUE_TYPE_UNSPECIFIED,STRING,INTEGER,FLOATandNONE.
- AcceptsMultiple boolValues 
- Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.
- 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.
- IntegerRestrictions GetSupported Database Flags Supported Database Flag Integer Restrictions 
- Restriction on INTEGERtype value. Specifies the minimum value and the maximum value that can be specified, if applicable.
- 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.
- RequiresDb boolRestart 
- 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).
- StringRestrictions GetSupported Database Flags Supported Database Flag String Restrictions 
- Restriction on STRINGtype value. The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.
- SupportedDb []stringVersions 
- Major database engine versions for which this flag is supported. The supported values are POSTGRES_14andDATABASE_VERSION_UNSPECIFIED.
- ValueType string
- 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". The supported values are VALUE_TYPE_UNSPECIFIED,STRING,INTEGER,FLOATandNONE.
- acceptsMultiple BooleanValues 
- Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.
- 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.
- integerRestrictions GetSupported Database Flags Supported Database Flag Integer Restrictions 
- Restriction on INTEGERtype value. Specifies the minimum value and the maximum value that can be specified, if applicable.
- 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.
- requiresDb BooleanRestart 
- 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).
- stringRestrictions GetSupported Database Flags Supported Database Flag String Restrictions 
- Restriction on STRINGtype value. The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.
- supportedDb List<String>Versions 
- Major database engine versions for which this flag is supported. The supported values are POSTGRES_14andDATABASE_VERSION_UNSPECIFIED.
- valueType String
- 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". The supported values are VALUE_TYPE_UNSPECIFIED,STRING,INTEGER,FLOATandNONE.
- acceptsMultiple booleanValues 
- Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.
- 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.
- integerRestrictions GetSupported Database Flags Supported Database Flag Integer Restrictions 
- Restriction on INTEGERtype value. Specifies the minimum value and the maximum value that can be specified, if applicable.
- 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.
- requiresDb booleanRestart 
- 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).
- stringRestrictions GetSupported Database Flags Supported Database Flag String Restrictions 
- Restriction on STRINGtype value. The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.
- supportedDb string[]Versions 
- Major database engine versions for which this flag is supported. The supported values are POSTGRES_14andDATABASE_VERSION_UNSPECIFIED.
- valueType string
- 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". The supported values are VALUE_TYPE_UNSPECIFIED,STRING,INTEGER,FLOATandNONE.
- accepts_multiple_ boolvalues 
- Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.
- flag_name str
- The name of the database flag, e.g. "max_allowed_packets". The is a possibly key for the Instance.database_flags map field.
- integer_restrictions GetSupported Database Flags Supported Database Flag Integer Restrictions 
- Restriction on INTEGERtype value. Specifies the minimum value and the maximum value that can be specified, if applicable.
- name str
- 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.
- requires_db_ boolrestart 
- 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).
- string_restrictions GetSupported Database Flags Supported Database Flag String Restrictions 
- Restriction on STRINGtype value. The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.
- supported_db_ Sequence[str]versions 
- Major database engine versions for which this flag is supported. The supported values are POSTGRES_14andDATABASE_VERSION_UNSPECIFIED.
- value_type str
- 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". The supported values are VALUE_TYPE_UNSPECIFIED,STRING,INTEGER,FLOATandNONE.
- acceptsMultiple BooleanValues 
- Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.
- 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.
- integerRestrictions Property Map
- Restriction on INTEGERtype value. Specifies the minimum value and the maximum value that can be specified, if applicable.
- 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.
- requiresDb BooleanRestart 
- 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).
- stringRestrictions Property Map
- Restriction on STRINGtype value. The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.
- supportedDb List<String>Versions 
- Major database engine versions for which this flag is supported. The supported values are POSTGRES_14andDATABASE_VERSION_UNSPECIFIED.
- valueType String
- 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". The supported values are VALUE_TYPE_UNSPECIFIED,STRING,INTEGER,FLOATandNONE.
GetSupportedDatabaseFlagsSupportedDatabaseFlagIntegerRestrictions        
GetSupportedDatabaseFlagsSupportedDatabaseFlagStringRestrictions        
- AllowedValues List<string>
- The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.
- AllowedValues []string
- The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.
- allowedValues List<String>
- The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.
- allowedValues string[]
- The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.
- allowed_values Sequence[str]
- The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.
- allowedValues List<String>
- The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the google-betaTerraform Provider.