ibm.getIsZone
Explore with Pulumi AI
Retrieve information of an existing IBM Cloud zone in a particular region as a read-only data source. For more information, about IBM Cloud zone, 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.getIsZone({
    name: "us-south-1",
    region: "us-south",
});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_zone(name="us-south-1",
    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.GetIsZone(ctx, &ibm.GetIsZoneArgs{
			Name:   "us-south-1",
			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.GetIsZone.Invoke(new()
    {
        Name = "us-south-1",
        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.GetIsZoneArgs;
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.getIsZone(GetIsZoneArgs.builder()
            .name("us-south-1")
            .region("us-south")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: ibm:getIsZone
      arguments:
        name: us-south-1
        region: us-south
Using getIsZone
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 getIsZone(args: GetIsZoneArgs, opts?: InvokeOptions): Promise<GetIsZoneResult>
function getIsZoneOutput(args: GetIsZoneOutputArgs, opts?: InvokeOptions): Output<GetIsZoneResult>def get_is_zone(id: Optional[str] = None,
                name: Optional[str] = None,
                region: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetIsZoneResult
def get_is_zone_output(id: Optional[pulumi.Input[str]] = None,
                name: Optional[pulumi.Input[str]] = None,
                region: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetIsZoneResult]func GetIsZone(ctx *Context, args *GetIsZoneArgs, opts ...InvokeOption) (*GetIsZoneResult, error)
func GetIsZoneOutput(ctx *Context, args *GetIsZoneOutputArgs, opts ...InvokeOption) GetIsZoneResultOutput> Note: This function is named GetIsZone in the Go SDK.
public static class GetIsZone 
{
    public static Task<GetIsZoneResult> InvokeAsync(GetIsZoneArgs args, InvokeOptions? opts = null)
    public static Output<GetIsZoneResult> Invoke(GetIsZoneInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIsZoneResult> getIsZone(GetIsZoneArgs args, InvokeOptions options)
public static Output<GetIsZoneResult> getIsZone(GetIsZoneArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getIsZone:getIsZone
  arguments:
    # arguments dictionaryThe following arguments are supported:
getIsZone Result
The following output properties are available:
- Data
Center string - (String) The physical data center assigned to this logical zone. If absent, no physical data center has been assigned.
 - Id string
 - Name string
 - Region string
 - Status string
 - (String) The status of the zone.
 - Universal
Name string - (String) The universal name for this zone. Will be absent if this zone has a status of unassigned.
 
- Data
Center string - (String) The physical data center assigned to this logical zone. If absent, no physical data center has been assigned.
 - Id string
 - Name string
 - Region string
 - Status string
 - (String) The status of the zone.
 - Universal
Name string - (String) The universal name for this zone. Will be absent if this zone has a status of unassigned.
 
- data
Center String - (String) The physical data center assigned to this logical zone. If absent, no physical data center has been assigned.
 - id String
 - name String
 - region String
 - status String
 - (String) The status of the zone.
 - universal
Name String - (String) The universal name for this zone. Will be absent if this zone has a status of unassigned.
 
- data
Center string - (String) The physical data center assigned to this logical zone. If absent, no physical data center has been assigned.
 - id string
 - name string
 - region string
 - status string
 - (String) The status of the zone.
 - universal
Name 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.
 - id str
 - name str
 - region str
 - status str
 - (String) The status of the zone.
 - universal_
name str - (String) The universal name for this zone. Will be absent if this zone has a status of unassigned.
 
- data
Center String - (String) The physical data center assigned to this logical zone. If absent, no physical data center has been assigned.
 - id String
 - name String
 - region String
 - status String
 - (String) The status of the zone.
 - universal
Name 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 
ibmTerraform Provider.