1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsZones
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getIsZones

Explore with Pulumi AI

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";
Copy
import pulumi
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
});
Copy
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) {
    }
}
Copy
{}
Copy

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const example = ibm.getIsZones({
    region: "us-south",
});
Copy
import pulumi
import pulumi_ibm as ibm

example = ibm.get_is_zones(region="us-south")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: ibm:getIsZones
      arguments:
        region: us-south
Copy

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>
Copy
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]
Copy
func GetIsZones(ctx *Context, args *GetIsZonesArgs, opts ...InvokeOption) (*GetIsZonesResult, error)
func GetIsZonesOutput(ctx *Context, args *GetIsZonesOutputArgs, opts ...InvokeOption) GetIsZonesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetIsZonesResult> getIsZones(GetIsZonesArgs args, InvokeOptions options)
public static Output<GetIsZonesResult> getIsZones(GetIsZonesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getIsZones:getIsZones
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Region This property is required. string
The name of the region.
Id string
Status string
Filter the list by status of zones.
Region This property is required. string
The name of the region.
Id string
Status string
Filter the list by status of zones.
region This property is required. String
The name of the region.
id String
status String
Filter the list by status of zones.
region This property is required. string
The name of the region.
id string
status string
Filter the list by status of zones.
region This property is required. str
The name of the region.
id str
status str
Filter the list by status of zones.
region This property is required. 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 This property is required. string
(String) The physical data center assigned to this logical zone. If absent, no physical data center has been assigned.
Name This property is required. string
(String) The name of the zone.
Status This property is required. string
Filter the list by status of zones.
UniversalName This property is required. string
(String) The universal name for this zone. Will be absent if this zone has a status of unassigned.
DataCenter This property is required. string
(String) The physical data center assigned to this logical zone. If absent, no physical data center has been assigned.
Name This property is required. string
(String) The name of the zone.
Status This property is required. string
Filter the list by status of zones.
UniversalName This property is required. string
(String) The universal name for this zone. Will be absent if this zone has a status of unassigned.
dataCenter This property is required. String
(String) The physical data center assigned to this logical zone. If absent, no physical data center has been assigned.
name This property is required. String
(String) The name of the zone.
status This property is required. String
Filter the list by status of zones.
universalName This property is required. String
(String) The universal name for this zone. Will be absent if this zone has a status of unassigned.
dataCenter This property is required. string
(String) The physical data center assigned to this logical zone. If absent, no physical data center has been assigned.
name This property is required. string
(String) The name of the zone.
status This property is required. string
Filter the list by status of zones.
universalName This property is required. string
(String) The universal name for this zone. Will be absent if this zone has a status of unassigned.
data_center This property is required. str
(String) The physical data center assigned to this logical zone. If absent, no physical data center has been assigned.
name This property is required. str
(String) The name of the zone.
status This property is required. str
Filter the list by status of zones.
universal_name This property is required. str
(String) The universal name for this zone. Will be absent if this zone has a status of unassigned.
dataCenter This property is required. String
(String) The physical data center assigned to this logical zone. If absent, no physical data center has been assigned.
name This property is required. String
(String) The name of the zone.
status This property is required. String
Filter the list by status of zones.
universalName This property is required. 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.