1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsRegions
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getIsRegions

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Retrieve information about VPC Generation 2 list of regions as a read only data source. For more information, about managing IBM Cloud region, see creating a VPC in a different region.

    Note: VPC infrastructure services are a regional specific based endpoint, by default targets to us-south. Please make sure to target right region in the provider block as shown in the provider.tf file, if VPC service is created in region other than us-south.

    provider.tf

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const example = ibm.getIsRegions({});
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_regions()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.GetIsRegions(ctx, &ibm.GetIsRegionsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ibm.GetIsRegions.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetIsRegionsArgs;
    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 example = IbmFunctions.getIsRegions();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsRegions
          arguments: {}
    

    Using getIsRegions

    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 getIsRegions(args: GetIsRegionsArgs, opts?: InvokeOptions): Promise<GetIsRegionsResult>
    function getIsRegionsOutput(args: GetIsRegionsOutputArgs, opts?: InvokeOptions): Output<GetIsRegionsResult>
    def get_is_regions(id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetIsRegionsResult
    def get_is_regions_output(id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetIsRegionsResult]
    func GetIsRegions(ctx *Context, args *GetIsRegionsArgs, opts ...InvokeOption) (*GetIsRegionsResult, error)
    func GetIsRegionsOutput(ctx *Context, args *GetIsRegionsOutputArgs, opts ...InvokeOption) GetIsRegionsResultOutput

    > Note: This function is named GetIsRegions in the Go SDK.

    public static class GetIsRegions 
    {
        public static Task<GetIsRegionsResult> InvokeAsync(GetIsRegionsArgs args, InvokeOptions? opts = null)
        public static Output<GetIsRegionsResult> Invoke(GetIsRegionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsRegionsResult> getIsRegions(GetIsRegionsArgs args, InvokeOptions options)
    public static Output<GetIsRegionsResult> getIsRegions(GetIsRegionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsRegions:getIsRegions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Id string
    id String
    id string
    id str
    id String

    getIsRegions Result

    The following output properties are available:

    Id string
    Regions List<GetIsRegionsRegion>
    (List) List of all regions in the IBM Cloud infrastructure.
    Id string
    Regions []GetIsRegionsRegion
    (List) List of all regions in the IBM Cloud infrastructure.
    id String
    regions List<GetIsRegionsRegion>
    (List) List of all regions in the IBM Cloud infrastructure.
    id string
    regions GetIsRegionsRegion[]
    (List) List of all regions in the IBM Cloud infrastructure.
    id str
    regions Sequence[GetIsRegionsRegion]
    (List) List of all regions in the IBM Cloud infrastructure.
    id String
    regions List<Property Map>
    (List) List of all regions in the IBM Cloud infrastructure.

    Supporting Types

    GetIsRegionsRegion

    Endpoint string
    (String) The endpoint of the region.
    Href string
    (String) The url for this region.
    Name string
    (String) The name of the region.
    Status string
    (String) The status of the region.
    Endpoint string
    (String) The endpoint of the region.
    Href string
    (String) The url for this region.
    Name string
    (String) The name of the region.
    Status string
    (String) The status of the region.
    endpoint String
    (String) The endpoint of the region.
    href String
    (String) The url for this region.
    name String
    (String) The name of the region.
    status String
    (String) The status of the region.
    endpoint string
    (String) The endpoint of the region.
    href string
    (String) The url for this region.
    name string
    (String) The name of the region.
    status string
    (String) The status of the region.
    endpoint str
    (String) The endpoint of the region.
    href str
    (String) The url for this region.
    name str
    (String) The name of the region.
    status str
    (String) The status of the region.
    endpoint String
    (String) The endpoint of the region.
    href String
    (String) The url for this region.
    name String
    (String) The name of the region.
    status String
    (String) The status of the region.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud