Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine
volcengine.rds_mysql.getRegions
Explore with Pulumi AI
Use this data source to query detailed information of rds mysql regions
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.rds_mysql.getRegions({});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.rds_mysql.get_regions()
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds_mysql"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds_mysql.GetRegions(ctx, nil, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = Volcengine.Rds_mysql.GetRegions.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.rds_mysql.Rds_mysqlFunctions;
import com.pulumi.volcengine.rds_mysql.inputs.GetRegionsArgs;
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 foo = Rds_mysqlFunctions.getRegions();
}
}
variables:
foo:
fn::invoke:
Function: volcengine:rds_mysql:getRegions
Arguments: {}
Using getRegions
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 getRegions(args: GetRegionsArgs, opts?: InvokeOptions): Promise<GetRegionsResult>
function getRegionsOutput(args: GetRegionsOutputArgs, opts?: InvokeOptions): Output<GetRegionsResult>
def get_regions(output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRegionsResult
def get_regions_output(output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRegionsResult]
func GetRegions(ctx *Context, args *GetRegionsArgs, opts ...InvokeOption) (*GetRegionsResult, error)
func GetRegionsOutput(ctx *Context, args *GetRegionsOutputArgs, opts ...InvokeOption) GetRegionsResultOutput
> Note: This function is named GetRegions
in the Go SDK.
public static class GetRegions
{
public static Task<GetRegionsResult> InvokeAsync(GetRegionsArgs args, InvokeOptions? opts = null)
public static Output<GetRegionsResult> Invoke(GetRegionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRegionsResult> getRegions(GetRegionsArgs args, InvokeOptions options)
public static Output<GetRegionsResult> getRegions(GetRegionsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:rds_mysql/getRegions:getRegions
arguments:
# arguments dictionary
The following arguments are supported:
- Output
File string - File name where to save data source results.
- Output
File string - File name where to save data source results.
- output
File String - File name where to save data source results.
- output
File string - File name where to save data source results.
- output_
file str - File name where to save data source results.
- output
File String - File name where to save data source results.
getRegions Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Regions
List<Get
Regions Region> - The collection of region query.
- Total
Count int - The total count of region query.
- Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Regions
[]Get
Regions Region - The collection of region query.
- Total
Count int - The total count of region query.
- Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- regions
List<Get
Regions Region> - The collection of region query.
- total
Count Integer - The total count of region query.
- output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- regions
Get
Regions Region[] - The collection of region query.
- total
Count number - The total count of region query.
- output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- regions
Sequence[Get
Regions Region] - The collection of region query.
- total_
count int - The total count of region query.
- output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- regions List<Property Map>
- The collection of region query.
- total
Count Number - The total count of region query.
- output
File String
Supporting Types
GetRegionsRegion
- Region
Id string - The id of the region.
- Region
Name string - The name of region.
- Region
Id string - The id of the region.
- Region
Name string - The name of region.
- region
Id String - The id of the region.
- region
Name String - The name of region.
- region
Id string - The id of the region.
- region
Name string - The name of region.
- region_
id str - The id of the region.
- region_
name str - The name of region.
- region
Id String - The id of the region.
- region
Name String - The name of region.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.