outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getRegions
Explore with Pulumi AI
Provides information about Regions.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const allRegions = outscale.getRegions({});
import pulumi
import pulumi_outscale as outscale
all_regions = outscale.get_regions()
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.GetRegions(ctx, &outscale.GetRegionsArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var allRegions = Outscale.GetRegions.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.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 allRegions = OutscaleFunctions.getRegions();
    }
}
variables:
  allRegions:
    fn::invoke:
      function: outscale: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(id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetRegionsResult
def get_regions_output(id: 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: outscale:index/getRegions:getRegions
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
- Id string
- id String
- id string
- id str
- id String
getRegions Result
The following output properties are available:
- Id string
- Regions
List<GetRegions Region> 
- Information about one or more Regions.
- RequestId string
- Id string
- Regions
[]GetRegions Region 
- Information about one or more Regions.
- RequestId string
- id String
- regions
List<GetRegions Region> 
- Information about one or more Regions.
- requestId String
- id string
- regions
GetRegions Region[] 
- Information about one or more Regions.
- requestId string
- id str
- regions
Sequence[GetRegions Region] 
- Information about one or more Regions.
- request_id str
- id String
- regions List<Property Map>
- Information about one or more Regions.
- requestId String
Supporting Types
GetRegionsRegion  
- Endpoint string
- The hostname of the gateway to access the Region.
- RegionName string
- The administrative name of the Region.
- Endpoint string
- The hostname of the gateway to access the Region.
- RegionName string
- The administrative name of the Region.
- endpoint String
- The hostname of the gateway to access the Region.
- regionName String
- The administrative name of the Region.
- endpoint string
- The hostname of the gateway to access the Region.
- regionName string
- The administrative name of the Region.
- endpoint str
- The hostname of the gateway to access the Region.
- region_name str
- The administrative name of the Region.
- endpoint String
- The hostname of the gateway to access the Region.
- regionName String
- The administrative name of the Region.
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.