get Tiers
Get all available machine types (tiers) for a project, for example, db-custom-1-3840. For more information see the official documentation and API.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const tiers = gcp.sql.getTiers({
project: "sample-project",
});
const allAvailableTiers = tiers.then(tiers => .map(v => (v.tier)));
export const avaialbleTiers = allAvailableTiers;
Content copied to clipboard
import pulumi
import pulumi_gcp as gcp
tiers = gcp.sql.get_tiers(project="sample-project")
all_available_tiers = [v.tier for v in tiers.tiers]
pulumi.export("avaialbleTiers", all_available_tiers)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var tiers = Gcp.Sql.GetTiers.Invoke(new()
{
Project = "sample-project",
});
var allAvailableTiers = .Select(v =>
{
return v.Tier;
}).ToList();
return new Dictionary<string, object?>
{
["avaialbleTiers"] = allAvailableTiers,
};
});
Content copied to clipboard
Return
A collection of values returned by getTiers.
Parameters
argument
A collection of arguments for invoking getTiers.
Return
A collection of values returned by getTiers.
Parameters
project
The Project ID for which to list tiers. If project
is not provided, the project defined within the default provider configuration is used.
See also
Return
A collection of values returned by getTiers.
Parameters
argument
Builder for com.pulumi.gcp.sql.kotlin.inputs.GetTiersPlainArgs.