ibm.getIsPublicAddressRange
Explore with Pulumi AI
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
andname
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
andname
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
andname
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
andname
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
andname
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
andname
are mutually exclusive.
getIsPublicAddressRange Result
The following output properties are available:
- List<string>
- Cidr string
- (String) The public IPv4 range, expressed in CIDR format.
- Created
At 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.
- Ipv4Address
Count double - (Integer) The number of IPv4 addresses in this public address range.
- Lifecycle
State string - (String) The lifecycle state of the public address range.
- Name string
- (String) The globally unique name for this zone.
- Resource
Groups List<GetIs Public Address Range Resource Group> - (List) The resource group for this public address range.
- Resource
Type string - (String) The resource type.
- List<string>
- Targets
List<Get
Is Public Address Range Target> - (List) The target this public address range is bound to.If absent, this public address range is not bound to a target.
- Identifier string
- []string
- Cidr string
- (String) The public IPv4 range, expressed in CIDR format.
- Created
At 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.
- Ipv4Address
Count float64 - (Integer) The number of IPv4 addresses in this public address range.
- Lifecycle
State string - (String) The lifecycle state of the public address range.
- Name string
- (String) The globally unique name for this zone.
- Resource
Groups []GetIs Public Address Range Resource Group - (List) The resource group for this public address range.
- Resource
Type string - (String) The resource type.
- []string
- Targets
[]Get
Is Public Address Range Target - (List) The target this public address range is bound to.If absent, this public address range is not bound to a target.
- Identifier string
- List<String>
- cidr String
- (String) The public IPv4 range, expressed in CIDR format.
- created
At 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.
- ipv4Address
Count Double - (Integer) The number of IPv4 addresses in this public address range.
- lifecycle
State String - (String) The lifecycle state of the public address range.
- name String
- (String) The globally unique name for this zone.
- resource
Groups List<GetIs Public Address Range Resource Group> - (List) The resource group for this public address range.
- resource
Type String - (String) The resource type.
- List<String>
- targets
List<Get
Is Public Address Range Target> - (List) The target this public address range is bound to.If absent, this public address range is not bound to a target.
- identifier String
- string[]
- cidr string
- (String) The public IPv4 range, expressed in CIDR format.
- created
At 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.
- ipv4Address
Count number - (Integer) The number of IPv4 addresses in this public address range.
- lifecycle
State string - (String) The lifecycle state of the public address range.
- name string
- (String) The globally unique name for this zone.
- resource
Groups GetIs Public Address Range Resource Group[] - (List) The resource group for this public address range.
- resource
Type string - (String) The resource type.
- string[]
- targets
Get
Is Public Address Range Target[] - (List) The target this public address range is bound to.If absent, this public address range is not bound to a target.
- identifier string
- 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_ floatcount - (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[GetIs Public Address Range Resource Group] - (List) The resource group for this public address range.
- resource_
type str - (String) The resource type.
- Sequence[str]
- targets
Sequence[Get
Is Public Address Range Target] - (List) The target this public address range is bound to.If absent, this public address range is not bound to a target.
- identifier str
- List<String>
- cidr String
- (String) The public IPv4 range, expressed in CIDR format.
- created
At 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.
- ipv4Address
Count Number - (Integer) The number of IPv4 addresses in this public address range.
- lifecycle
State String - (String) The lifecycle state of the public address range.
- name String
- (String) The globally unique name for this zone.
- resource
Groups List<Property Map> - (List) The resource group for this public address range.
- resource
Type String - (String) The resource type.
- 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
GetIsPublicAddressRangeTarget
- Vpcs
List<Get
Is Public Address Range Target Vpc> - (List) The VPC this public address range is bound to.
- Zones
List<Get
Is Public Address Range Target Zone> - (List) The zone this public address range resides in.
- Vpcs
[]Get
Is Public Address Range Target Vpc - (List) The VPC this public address range is bound to.
- Zones
[]Get
Is Public Address Range Target Zone - (List) The zone this public address range resides in.
- vpcs
List<Get
Is Public Address Range Target Vpc> - (List) The VPC this public address range is bound to.
- zones
List<Get
Is Public Address Range Target Zone> - (List) The zone this public address range resides in.
- vpcs
Get
Is Public Address Range Target Vpc[] - (List) The VPC this public address range is bound to.
- zones
Get
Is Public Address Range Target Zone[] - (List) The zone this public address range resides in.
- vpcs
Sequence[Get
Is Public Address Range Target Vpc] - (List) The VPC this public address range is bound to.
- zones
Sequence[Get
Is Public Address Range Target Zone] - (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<Get
Is Public Address Range Target Vpc Deleted> - (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
andname
are mutually exclusive.- Resource
Type string - (String) The resource type.
- Crn string
- (String) The CRN for this VPC.
- Deleteds
[]Get
Is Public Address Range Target Vpc Deleted - (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
andname
are mutually exclusive.- Resource
Type string - (String) The resource type.
- crn String
- (String) The CRN for this VPC.
- deleteds
List<Get
Is Public Address Range Target Vpc Deleted> - (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
andname
are mutually exclusive.- resource
Type String - (String) The resource type.
- crn string
- (String) The CRN for this VPC.
- deleteds
Get
Is Public Address Range Target Vpc Deleted[] - (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
andname
are mutually exclusive.- resource
Type string - (String) The resource type.
- crn str
- (String) The CRN for this VPC.
- deleteds
Sequence[Get
Is Public Address Range Target Vpc Deleted] - (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
andname
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
andname
are mutually exclusive.- resource
Type String - (String) The resource type.
GetIsPublicAddressRangeTargetVpcDeleted
- More
Info string - (String) Link to documentation about deleted resources.
- More
Info string - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
- more
Info string - (String) Link to documentation about deleted resources.
- more_
info str - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
GetIsPublicAddressRangeTargetZone
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.