Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:alloydb/getSupportedDatabaseFlags:getSupportedDatabaseFlags
arguments:
# arguments dictionary
The 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
- Supported
Database 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
- Supported
Database []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
- supported
Database 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
- supported
Database 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
- supported
Database List<Property Map>Flags - Contains a list of
flag
, which contains the details about a particular flag. - project String
Supporting Types
GetSupportedDatabaseFlagsSupportedDatabaseFlag
- Accepts
Multiple boolValues - Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.
- Flag
Name string - 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
INTEGER
type 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.
- 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
STRING
type value. The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values. - Supported
Db List<string>Versions - Major database engine versions for which this flag is supported. The supported values are
POSTGRES_14
andDATABASE_VERSION_UNSPECIFIED
. - Value
Type 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
,FLOAT
andNONE
.
- Accepts
Multiple boolValues - Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.
- Flag
Name string - 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
INTEGER
type 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.
- 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
STRING
type value. The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values. - Supported
Db []stringVersions - Major database engine versions for which this flag is supported. The supported values are
POSTGRES_14
andDATABASE_VERSION_UNSPECIFIED
. - Value
Type 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
,FLOAT
andNONE
.
- accepts
Multiple BooleanValues - Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.
- flag
Name String - 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
INTEGER
type 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.
- requires
Db 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).
- string
Restrictions GetSupported Database Flags Supported Database Flag String Restrictions - Restriction on
STRING
type value. The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values. - supported
Db List<String>Versions - Major database engine versions for which this flag is supported. The supported values are
POSTGRES_14
andDATABASE_VERSION_UNSPECIFIED
. - value
Type 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
,FLOAT
andNONE
.
- accepts
Multiple booleanValues - Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.
- flag
Name string - 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
INTEGER
type 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.
- requires
Db 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).
- string
Restrictions GetSupported Database Flags Supported Database Flag String Restrictions - Restriction on
STRING
type value. The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values. - supported
Db string[]Versions - Major database engine versions for which this flag is supported. The supported values are
POSTGRES_14
andDATABASE_VERSION_UNSPECIFIED
. - value
Type 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
,FLOAT
andNONE
.
- 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
INTEGER
type 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
STRING
type 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_14
andDATABASE_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
,FLOAT
andNONE
.
- accepts
Multiple BooleanValues - Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.
- flag
Name String - 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 Property Map - Restriction on
INTEGER
type 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.
- requires
Db 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).
- string
Restrictions Property Map - Restriction on
STRING
type value. The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values. - supported
Db List<String>Versions - Major database engine versions for which this flag is supported. The supported values are
POSTGRES_14
andDATABASE_VERSION_UNSPECIFIED
. - value
Type 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
,FLOAT
andNONE
.
GetSupportedDatabaseFlagsSupportedDatabaseFlagIntegerRestrictions
GetSupportedDatabaseFlagsSupportedDatabaseFlagStringRestrictions
- Allowed
Values List<string> - The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.
- Allowed
Values []string - The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.
- allowed
Values List<String> - The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.
- allowed
Values 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.
- allowed
Values 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-beta
Terraform Provider.