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

ibm.getIsZones

Explore with Pulumi AI

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

    Retrieve information of an existing IBM Cloud zones in a particular region as a read-only data source. For more information, about IBM Cloud zones, 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.getIsZones({
        region: "us-south",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_zones(region="us-south")
    
    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.GetIsZones(ctx, &ibm.GetIsZonesArgs{
    			Region: "us-south",
    		}, 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.GetIsZones.Invoke(new()
        {
            Region = "us-south",
        });
    
    });
    
    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.GetIsZonesArgs;
    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.getIsZones(GetIsZonesArgs.builder()
                .region("us-south")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsZones
          arguments:
            region: us-south
    

    Using getIsZones

    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 getIsZones(args: GetIsZonesArgs, opts?: InvokeOptions): Promise<GetIsZonesResult>
    function getIsZonesOutput(args: GetIsZonesOutputArgs, opts?: InvokeOptions): Output<GetIsZonesResult>
    def get_is_zones(id: Optional[str] = None,
                     region: Optional[str] = None,
                     status: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetIsZonesResult
    def get_is_zones_output(id: Optional[pulumi.Input[str]] = None,
                     region: Optional[pulumi.Input[str]] = None,
                     status: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetIsZonesResult]
    func GetIsZones(ctx *Context, args *GetIsZonesArgs, opts ...InvokeOption) (*GetIsZonesResult, error)
    func GetIsZonesOutput(ctx *Context, args *GetIsZonesOutputArgs, opts ...InvokeOption) GetIsZonesResultOutput

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

    public static class GetIsZones 
    {
        public static Task<GetIsZonesResult> InvokeAsync(GetIsZonesArgs args, InvokeOptions? opts = null)
        public static Output<GetIsZonesResult> Invoke(GetIsZonesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsZonesResult> getIsZones(GetIsZonesArgs args, InvokeOptions options)
    public static Output<GetIsZonesResult> getIsZones(GetIsZonesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsZones:getIsZones
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Region string
    The name of the region.
    Id string
    Status string
    Filter the list by status of zones.
    Region string
    The name of the region.
    Id string
    Status string
    Filter the list by status of zones.
    region String
    The name of the region.
    id String
    status String
    Filter the list by status of zones.
    region string
    The name of the region.
    id string
    status string
    Filter the list by status of zones.
    region str
    The name of the region.
    id str
    status str
    Filter the list by status of zones.
    region String
    The name of the region.
    id String
    status String
    Filter the list by status of zones.

    getIsZones Result

    The following output properties are available:

    Id string
    Region string
    ZoneInfos List<GetIsZonesZoneInfo>
    (List) Collection of zones. Nested schema for zone_info:
    Zones List<string>
    (String) The list of zones in an IBM Cloud region. For example, us-south-1,us-south-2.
    Status string
    (String) The status of the zone.
    Id string
    Region string
    ZoneInfos []GetIsZonesZoneInfo
    (List) Collection of zones. Nested schema for zone_info:
    Zones []string
    (String) The list of zones in an IBM Cloud region. For example, us-south-1,us-south-2.
    Status string
    (String) The status of the zone.
    id String
    region String
    zoneInfos List<GetIsZonesZoneInfo>
    (List) Collection of zones. Nested schema for zone_info:
    zones List<String>
    (String) The list of zones in an IBM Cloud region. For example, us-south-1,us-south-2.
    status String
    (String) The status of the zone.
    id string
    region string
    zoneInfos GetIsZonesZoneInfo[]
    (List) Collection of zones. Nested schema for zone_info:
    zones string[]
    (String) The list of zones in an IBM Cloud region. For example, us-south-1,us-south-2.
    status string
    (String) The status of the zone.
    id str
    region str
    zone_infos Sequence[GetIsZonesZoneInfo]
    (List) Collection of zones. Nested schema for zone_info:
    zones Sequence[str]
    (String) The list of zones in an IBM Cloud region. For example, us-south-1,us-south-2.
    status str
    (String) The status of the zone.
    id String
    region String
    zoneInfos List<Property Map>
    (List) Collection of zones. Nested schema for zone_info:
    zones List<String>
    (String) The list of zones in an IBM Cloud region. For example, us-south-1,us-south-2.
    status String
    (String) The status of the zone.

    Supporting Types

    GetIsZonesZoneInfo

    DataCenter string
    (String) The physical data center assigned to this logical zone. If absent, no physical data center has been assigned.
    Name string
    (String) The name of the zone.
    Status string
    Filter the list by status of zones.
    UniversalName string
    (String) The universal name for this zone. Will be absent if this zone has a status of unassigned.
    DataCenter string
    (String) The physical data center assigned to this logical zone. If absent, no physical data center has been assigned.
    Name string
    (String) The name of the zone.
    Status string
    Filter the list by status of zones.
    UniversalName string
    (String) The universal name for this zone. Will be absent if this zone has a status of unassigned.
    dataCenter String
    (String) The physical data center assigned to this logical zone. If absent, no physical data center has been assigned.
    name String
    (String) The name of the zone.
    status String
    Filter the list by status of zones.
    universalName String
    (String) The universal name for this zone. Will be absent if this zone has a status of unassigned.
    dataCenter string
    (String) The physical data center assigned to this logical zone. If absent, no physical data center has been assigned.
    name string
    (String) The name of the zone.
    status string
    Filter the list by status of zones.
    universalName string
    (String) The universal name for this zone. Will be absent if this zone has a status of unassigned.
    data_center str
    (String) The physical data center assigned to this logical zone. If absent, no physical data center has been assigned.
    name str
    (String) The name of the zone.
    status str
    Filter the list by status of zones.
    universal_name str
    (String) The universal name for this zone. Will be absent if this zone has a status of unassigned.
    dataCenter String
    (String) The physical data center assigned to this logical zone. If absent, no physical data center has been assigned.
    name String
    (String) The name of the zone.
    status String
    Filter the list by status of zones.
    universalName String
    (String) The universal name for this zone. Will be absent if this zone has a status of unassigned.

    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