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";
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:
getIsZones Result
The following output properties are available:
- id str
- region str
- zone_
infos Sequence[GetIs Zones Zone Info] - (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.
Supporting Types
GetIsZonesZoneInfo
- Data
Center 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.
- 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.
- Name string
- (String) The name of the zone.
- Status string
- Filter the list by status of zones.
- 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.
- name String
- (String) The name of the zone.
- status String
- Filter the list by status of zones.
- 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.
- name string
- (String) The name of the zone.
- status string
- Filter the list by status of zones.
- 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.
- 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.
- data
Center 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.
- 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
ibm
Terraform Provider.