Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.redis.Regions
Explore with Pulumi AI
Use this data source to query detailed information of redis regions
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.redis.Regions({
    regionId: "cn-north-3",
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.redis.regions(region_id="cn-north-3")
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/redis"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := redis.Regions(ctx, &redis.RegionsArgs{
			RegionId: pulumi.StringRef("cn-north-3"),
		}, 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 @default = Volcengine.Redis.Regions.Invoke(new()
    {
        RegionId = "cn-north-3",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.redis.RedisFunctions;
import com.pulumi.volcengine.redis.inputs.RegionsArgs;
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 default = RedisFunctions.Regions(RegionsArgs.builder()
            .regionId("cn-north-3")
            .build());
    }
}
variables:
  default:
    fn::invoke:
      Function: volcengine:redis:Regions
      Arguments:
        regionId: cn-north-3
Using Regions
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 regions(args: RegionsArgs, opts?: InvokeOptions): Promise<RegionsResult>
function regionsOutput(args: RegionsOutputArgs, opts?: InvokeOptions): Output<RegionsResult>def regions(output_file: Optional[str] = None,
            region_id: Optional[str] = None,
            opts: Optional[InvokeOptions] = None) -> RegionsResult
def regions_output(output_file: Optional[pulumi.Input[str]] = None,
            region_id: Optional[pulumi.Input[str]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[RegionsResult]func Regions(ctx *Context, args *RegionsArgs, opts ...InvokeOption) (*RegionsResult, error)
func RegionsOutput(ctx *Context, args *RegionsOutputArgs, opts ...InvokeOption) RegionsResultOutputpublic static class Regions 
{
    public static Task<RegionsResult> InvokeAsync(RegionsArgs args, InvokeOptions? opts = null)
    public static Output<RegionsResult> Invoke(RegionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<RegionsResult> regions(RegionsArgs args, InvokeOptions options)
public static Output<RegionsResult> regions(RegionsArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:redis:Regions
  arguments:
    # arguments dictionaryThe following arguments are supported:
- OutputFile string
- File name where to save data source results.
- RegionId string
- Target region info.
- OutputFile string
- File name where to save data source results.
- RegionId string
- Target region info.
- outputFile String
- File name where to save data source results.
- regionId String
- Target region info.
- outputFile string
- File name where to save data source results.
- regionId string
- Target region info.
- output_file str
- File name where to save data source results.
- region_id str
- Target region info.
- outputFile String
- File name where to save data source results.
- regionId String
- Target region info.
Regions Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Regions
List<RegionsRegion> 
- The collection of region query.
- TotalCount int
- The total count of region query.
- OutputFile string
- RegionId string
- The id of the region.
- Id string
- The provider-assigned unique ID for this managed resource.
- Regions
[]RegionsRegion 
- The collection of region query.
- TotalCount int
- The total count of region query.
- OutputFile string
- RegionId string
- The id of the region.
- id String
- The provider-assigned unique ID for this managed resource.
- regions
List<RegionsRegion> 
- The collection of region query.
- totalCount Integer
- The total count of region query.
- outputFile String
- regionId String
- The id of the region.
- id string
- The provider-assigned unique ID for this managed resource.
- regions
RegionsRegion[] 
- The collection of region query.
- totalCount number
- The total count of region query.
- outputFile string
- regionId string
- The id of the region.
- id str
- The provider-assigned unique ID for this managed resource.
- regions
Sequence[RegionsRegion] 
- The collection of region query.
- total_count int
- The total count of region query.
- output_file str
- region_id str
- The id of the region.
- id String
- The provider-assigned unique ID for this managed resource.
- regions List<Property Map>
- The collection of region query.
- totalCount Number
- The total count of region query.
- outputFile String
- regionId String
- The id of the region.
Supporting Types
RegionsRegion 
- RegionId string
- Target region info.
- RegionName string
- The name of region.
- RegionId string
- Target region info.
- RegionName string
- The name of region.
- regionId String
- Target region info.
- regionName String
- The name of region.
- regionId string
- Target region info.
- regionName string
- The name of region.
- region_id str
- Target region info.
- region_name str
- The name of region.
- regionId String
- Target region info.
- regionName String
- The name of region.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.