get Supported Database Flags
suspend fun getSupportedDatabaseFlags(argument: GetSupportedDatabaseFlagsPlainArgs): GetSupportedDatabaseFlagsResult
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",
});
Content copied to clipboard
import pulumi
import pulumi_gcp as gcp
qa = gcp.alloydb.get_supported_database_flags(location="us-central1")
Content copied to clipboard
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",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
variables:
qa:
fn::invoke:
Function: gcp:alloydb:getSupportedDatabaseFlags
Arguments:
location: us-central1
Content copied to clipboard
Return
A collection of values returned by getSupportedDatabaseFlags.
Parameters
argument
A collection of arguments for invoking getSupportedDatabaseFlags.
suspend fun getSupportedDatabaseFlags(location: String, project: String? = null): GetSupportedDatabaseFlagsResult
Return
A collection of values returned by getSupportedDatabaseFlags.
Parameters
location
The canonical id of the location. For example: us-east1
.
project
The ID of the project.
See also
suspend fun getSupportedDatabaseFlags(argument: suspend GetSupportedDatabaseFlagsPlainArgsBuilder.() -> Unit): GetSupportedDatabaseFlagsResult
Return
A collection of values returned by getSupportedDatabaseFlags.
Parameters
argument
Builder for com.pulumi.gcp.alloydb.kotlin.inputs.GetSupportedDatabaseFlagsPlainArgs.