1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsPublicAddressRange
ibm 1.81.1 published on Wednesday, Aug 6, 2025 by ibm-cloud

ibm.getIsPublicAddressRange

Explore with Pulumi AI

ibm logo
ibm 1.81.1 published on Wednesday, Aug 6, 2025 by ibm-cloud

    Retrieve information of an existing public address range data source as a read only data source. For more information, about public address range , see creating public address range.

    Note: The Public Address Range feature is currently available only with Select Availability.

    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.getIsPublicAddressRange({
        identifier: ibm_is_public_address_range.example.id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_public_address_range(identifier=ibm_is_public_address_range["example"]["id"])
    
    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.LookupIsPublicAddressRange(ctx, &ibm.LookupIsPublicAddressRangeArgs{
    			Identifier: pulumi.StringRef(ibm_is_public_address_range.Example.Id),
    		}, 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.GetIsPublicAddressRange.Invoke(new()
        {
            Identifier = ibm_is_public_address_range.Example.Id,
        });
    
    });
    
    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.GetIsPublicAddressRangeArgs;
    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.getIsPublicAddressRange(GetIsPublicAddressRangeArgs.builder()
                .identifier(ibm_is_public_address_range.example().id())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsPublicAddressRange
          arguments:
            identifier: ${ibm_is_public_address_range.example.id}
    

    Using getIsPublicAddressRange

    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 getIsPublicAddressRange(args: GetIsPublicAddressRangeArgs, opts?: InvokeOptions): Promise<GetIsPublicAddressRangeResult>
    function getIsPublicAddressRangeOutput(args: GetIsPublicAddressRangeOutputArgs, opts?: InvokeOptions): Output<GetIsPublicAddressRangeResult>
    def get_is_public_address_range(id: Optional[str] = None,
                                    identifier: Optional[str] = None,
                                    name: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetIsPublicAddressRangeResult
    def get_is_public_address_range_output(id: Optional[pulumi.Input[str]] = None,
                                    identifier: Optional[pulumi.Input[str]] = None,
                                    name: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetIsPublicAddressRangeResult]
    func LookupIsPublicAddressRange(ctx *Context, args *LookupIsPublicAddressRangeArgs, opts ...InvokeOption) (*LookupIsPublicAddressRangeResult, error)
    func LookupIsPublicAddressRangeOutput(ctx *Context, args *LookupIsPublicAddressRangeOutputArgs, opts ...InvokeOption) LookupIsPublicAddressRangeResultOutput

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

    public static class GetIsPublicAddressRange 
    {
        public static Task<GetIsPublicAddressRangeResult> InvokeAsync(GetIsPublicAddressRangeArgs args, InvokeOptions? opts = null)
        public static Output<GetIsPublicAddressRangeResult> Invoke(GetIsPublicAddressRangeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsPublicAddressRangeResult> getIsPublicAddressRange(GetIsPublicAddressRangeArgs args, InvokeOptions options)
    public static Output<GetIsPublicAddressRangeResult> getIsPublicAddressRange(GetIsPublicAddressRangeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsPublicAddressRange:getIsPublicAddressRange
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    (String) The unique identifier for this VPC.
    Identifier string
    The ID of the VPN server.
    Name string

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    Id string
    (String) The unique identifier for this VPC.
    Identifier string
    The ID of the VPN server.
    Name string

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    id String
    (String) The unique identifier for this VPC.
    identifier String
    The ID of the VPN server.
    name String

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    id string
    (String) The unique identifier for this VPC.
    identifier string
    The ID of the VPN server.
    name string

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    id str
    (String) The unique identifier for this VPC.
    identifier str
    The ID of the VPN server.
    name str

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    id String
    (String) The unique identifier for this VPC.
    identifier String
    The ID of the VPN server.
    name String

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    getIsPublicAddressRange Result

    The following output properties are available:

    AccessTags List<string>
    Cidr string
    (String) The public IPv4 range, expressed in CIDR format.
    CreatedAt string
    (String) The date and time that the public address range was created.
    Crn string
    (String) The CRN for this VPC.
    Href string
    (String) The URL for this zone.
    Id string
    (String) The unique identifier for this VPC.
    Ipv4AddressCount double
    (Integer) The number of IPv4 addresses in this public address range.
    LifecycleState string
    (String) The lifecycle state of the public address range.
    Name string
    (String) The globally unique name for this zone.
    ResourceGroups List<GetIsPublicAddressRangeResourceGroup>
    (List) The resource group for this public address range.
    ResourceType string
    (String) The resource type.
    Tags List<string>
    Targets List<GetIsPublicAddressRangeTarget>
    (List) The target this public address range is bound to.If absent, this public address range is not bound to a target.
    Identifier string
    AccessTags []string
    Cidr string
    (String) The public IPv4 range, expressed in CIDR format.
    CreatedAt string
    (String) The date and time that the public address range was created.
    Crn string
    (String) The CRN for this VPC.
    Href string
    (String) The URL for this zone.
    Id string
    (String) The unique identifier for this VPC.
    Ipv4AddressCount float64
    (Integer) The number of IPv4 addresses in this public address range.
    LifecycleState string
    (String) The lifecycle state of the public address range.
    Name string
    (String) The globally unique name for this zone.
    ResourceGroups []GetIsPublicAddressRangeResourceGroup
    (List) The resource group for this public address range.
    ResourceType string
    (String) The resource type.
    Tags []string
    Targets []GetIsPublicAddressRangeTarget
    (List) The target this public address range is bound to.If absent, this public address range is not bound to a target.
    Identifier string
    accessTags List<String>
    cidr String
    (String) The public IPv4 range, expressed in CIDR format.
    createdAt String
    (String) The date and time that the public address range was created.
    crn String
    (String) The CRN for this VPC.
    href String
    (String) The URL for this zone.
    id String
    (String) The unique identifier for this VPC.
    ipv4AddressCount Double
    (Integer) The number of IPv4 addresses in this public address range.
    lifecycleState String
    (String) The lifecycle state of the public address range.
    name String
    (String) The globally unique name for this zone.
    resourceGroups List<GetIsPublicAddressRangeResourceGroup>
    (List) The resource group for this public address range.
    resourceType String
    (String) The resource type.
    tags List<String>
    targets List<GetIsPublicAddressRangeTarget>
    (List) The target this public address range is bound to.If absent, this public address range is not bound to a target.
    identifier String
    accessTags string[]
    cidr string
    (String) The public IPv4 range, expressed in CIDR format.
    createdAt string
    (String) The date and time that the public address range was created.
    crn string
    (String) The CRN for this VPC.
    href string
    (String) The URL for this zone.
    id string
    (String) The unique identifier for this VPC.
    ipv4AddressCount number
    (Integer) The number of IPv4 addresses in this public address range.
    lifecycleState string
    (String) The lifecycle state of the public address range.
    name string
    (String) The globally unique name for this zone.
    resourceGroups GetIsPublicAddressRangeResourceGroup[]
    (List) The resource group for this public address range.
    resourceType string
    (String) The resource type.
    tags string[]
    targets GetIsPublicAddressRangeTarget[]
    (List) The target this public address range is bound to.If absent, this public address range is not bound to a target.
    identifier string
    access_tags Sequence[str]
    cidr str
    (String) The public IPv4 range, expressed in CIDR format.
    created_at str
    (String) The date and time that the public address range was created.
    crn str
    (String) The CRN for this VPC.
    href str
    (String) The URL for this zone.
    id str
    (String) The unique identifier for this VPC.
    ipv4_address_count float
    (Integer) The number of IPv4 addresses in this public address range.
    lifecycle_state str
    (String) The lifecycle state of the public address range.
    name str
    (String) The globally unique name for this zone.
    resource_groups Sequence[GetIsPublicAddressRangeResourceGroup]
    (List) The resource group for this public address range.
    resource_type str
    (String) The resource type.
    tags Sequence[str]
    targets Sequence[GetIsPublicAddressRangeTarget]
    (List) The target this public address range is bound to.If absent, this public address range is not bound to a target.
    identifier str
    accessTags List<String>
    cidr String
    (String) The public IPv4 range, expressed in CIDR format.
    createdAt String
    (String) The date and time that the public address range was created.
    crn String
    (String) The CRN for this VPC.
    href String
    (String) The URL for this zone.
    id String
    (String) The unique identifier for this VPC.
    ipv4AddressCount Number
    (Integer) The number of IPv4 addresses in this public address range.
    lifecycleState String
    (String) The lifecycle state of the public address range.
    name String
    (String) The globally unique name for this zone.
    resourceGroups List<Property Map>
    (List) The resource group for this public address range.
    resourceType String
    (String) The resource type.
    tags List<String>
    targets List<Property Map>
    (List) The target this public address range is bound to.If absent, this public address range is not bound to a target.
    identifier String

    Supporting Types

    GetIsPublicAddressRangeResourceGroup

    Href string
    (String) The URL for this zone.
    Id string
    (String) The unique identifier for this VPC.
    Name string

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    Href string
    (String) The URL for this zone.
    Id string
    (String) The unique identifier for this VPC.
    Name string

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    href String
    (String) The URL for this zone.
    id String
    (String) The unique identifier for this VPC.
    name String

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    href string
    (String) The URL for this zone.
    id string
    (String) The unique identifier for this VPC.
    name string

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    href str
    (String) The URL for this zone.
    id str
    (String) The unique identifier for this VPC.
    name str

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    href String
    (String) The URL for this zone.
    id String
    (String) The unique identifier for this VPC.
    name String

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    GetIsPublicAddressRangeTarget

    Vpcs List<GetIsPublicAddressRangeTargetVpc>
    (List) The VPC this public address range is bound to.
    Zones List<GetIsPublicAddressRangeTargetZone>
    (List) The zone this public address range resides in.
    Vpcs []GetIsPublicAddressRangeTargetVpc
    (List) The VPC this public address range is bound to.
    Zones []GetIsPublicAddressRangeTargetZone
    (List) The zone this public address range resides in.
    vpcs List<GetIsPublicAddressRangeTargetVpc>
    (List) The VPC this public address range is bound to.
    zones List<GetIsPublicAddressRangeTargetZone>
    (List) The zone this public address range resides in.
    vpcs GetIsPublicAddressRangeTargetVpc[]
    (List) The VPC this public address range is bound to.
    zones GetIsPublicAddressRangeTargetZone[]
    (List) The zone this public address range resides in.
    vpcs Sequence[GetIsPublicAddressRangeTargetVpc]
    (List) The VPC this public address range is bound to.
    zones Sequence[GetIsPublicAddressRangeTargetZone]
    (List) The zone this public address range resides in.
    vpcs List<Property Map>
    (List) The VPC this public address range is bound to.
    zones List<Property Map>
    (List) The zone this public address range resides in.

    GetIsPublicAddressRangeTargetVpc

    Crn string
    (String) The CRN for this VPC.
    Deleteds List<GetIsPublicAddressRangeTargetVpcDeleted>
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
    Href string
    (String) The URL for this zone.
    Id string
    (String) The unique identifier for this VPC.
    Name string

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    ResourceType string
    (String) The resource type.
    Crn string
    (String) The CRN for this VPC.
    Deleteds []GetIsPublicAddressRangeTargetVpcDeleted
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
    Href string
    (String) The URL for this zone.
    Id string
    (String) The unique identifier for this VPC.
    Name string

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    ResourceType string
    (String) The resource type.
    crn String
    (String) The CRN for this VPC.
    deleteds List<GetIsPublicAddressRangeTargetVpcDeleted>
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
    href String
    (String) The URL for this zone.
    id String
    (String) The unique identifier for this VPC.
    name String

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    resourceType String
    (String) The resource type.
    crn string
    (String) The CRN for this VPC.
    deleteds GetIsPublicAddressRangeTargetVpcDeleted[]
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
    href string
    (String) The URL for this zone.
    id string
    (String) The unique identifier for this VPC.
    name string

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    resourceType string
    (String) The resource type.
    crn str
    (String) The CRN for this VPC.
    deleteds Sequence[GetIsPublicAddressRangeTargetVpcDeleted]
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
    href str
    (String) The URL for this zone.
    id str
    (String) The unique identifier for this VPC.
    name str

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    resource_type str
    (String) The resource type.
    crn String
    (String) The CRN for this VPC.
    deleteds List<Property Map>
    (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
    href String
    (String) The URL for this zone.
    id String
    (String) The unique identifier for this VPC.
    name String

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    resourceType String
    (String) The resource type.

    GetIsPublicAddressRangeTargetVpcDeleted

    MoreInfo string
    (String) Link to documentation about deleted resources.
    MoreInfo string
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.
    moreInfo string
    (String) Link to documentation about deleted resources.
    more_info str
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.

    GetIsPublicAddressRangeTargetZone

    Href string
    (String) The URL for this zone.
    Name string

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    Href string
    (String) The URL for this zone.
    Name string

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    href String
    (String) The URL for this zone.
    name String

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    href string
    (String) The URL for this zone.
    name string

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    href str
    (String) The URL for this zone.
    name str

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    href String
    (String) The URL for this zone.
    name String

    The name of the VPN server.

    NOTE identifier and name are mutually exclusive.

    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.81.1 published on Wednesday, Aug 6, 2025 by ibm-cloud