Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getPrecreatedIpBlock

Use this data source to get CIDR expression for precreated IPv6 and IPv4 blocks in Packet. You can then use the cidrsubnet TF builtin function to derive subnets.

Using getPrecreatedIpBlock

function getPrecreatedIpBlock(args: GetPrecreatedIpBlockArgs, opts?: InvokeOptions): Promise<GetPrecreatedIpBlockResult>
def get_precreated_ip_block(address_family: Optional[int] = None, facility: Optional[str] = None, global_: Optional[bool] = None, project_id: Optional[str] = None, public: Optional[bool] = None, opts: Optional[InvokeOptions] = None) -> GetPrecreatedIpBlockResult
func GetPrecreatedIpBlock(ctx *Context, args *GetPrecreatedIpBlockArgs, opts ...InvokeOption) (*GetPrecreatedIpBlockResult, error)

Note: This function is named GetPrecreatedIpBlock in the Go SDK.

public static class GetPrecreatedIpBlock {
    public static Task<GetPrecreatedIpBlockResult> InvokeAsync(GetPrecreatedIpBlockArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

AddressFamily int

4 or 6, depending on which block you are looking for.

ProjectId string

ID of the project where the searched block should be.

Public bool

Whether to look for public or private block.

Facility string

Facility of the searched block. (Optional) Only allowed for non-global blocks.

Global bool

Whether to look for global block. Default is false for backward compatibility.

AddressFamily int

4 or 6, depending on which block you are looking for.

ProjectId string

ID of the project where the searched block should be.

Public bool

Whether to look for public or private block.

Facility string

Facility of the searched block. (Optional) Only allowed for non-global blocks.

Global bool

Whether to look for global block. Default is false for backward compatibility.

addressFamily number

4 or 6, depending on which block you are looking for.

projectId string

ID of the project where the searched block should be.

public boolean

Whether to look for public or private block.

facility string

Facility of the searched block. (Optional) Only allowed for non-global blocks.

global boolean

Whether to look for global block. Default is false for backward compatibility.

address_family int

4 or 6, depending on which block you are looking for.

project_id str

ID of the project where the searched block should be.

public bool

Whether to look for public or private block.

facility str

Facility of the searched block. (Optional) Only allowed for non-global blocks.

global_ bool

Whether to look for global block. Default is false for backward compatibility.

getPrecreatedIpBlock Result

The following output properties are available:

Address string
AddressFamily int
Cidr int
CidrNotation string

CIDR notation of the looked up block.

Gateway string
Id string

The provider-assigned unique ID for this managed resource.

Manageable bool
Management bool
Netmask string
Network string
ProjectId string
Public bool
Quantity int
Facility string
Global bool
Address string
AddressFamily int
Cidr int
CidrNotation string

CIDR notation of the looked up block.

Gateway string
Id string

The provider-assigned unique ID for this managed resource.

Manageable bool
Management bool
Netmask string
Network string
ProjectId string
Public bool
Quantity int
Facility string
Global bool
address string
addressFamily number
cidr number
cidrNotation string

CIDR notation of the looked up block.

gateway string
id string

The provider-assigned unique ID for this managed resource.

manageable boolean
management boolean
netmask string
network string
projectId string
public boolean
quantity number
facility string
global boolean
address str
address_family int
cidr int
cidr_notation str

CIDR notation of the looked up block.

gateway str
id str

The provider-assigned unique ID for this managed resource.

manageable bool
management bool
netmask str
network str
project_id str
public bool
quantity int
facility str
global_ bool

Package Details

Repository
https://github.com/pulumi/pulumi-packet
License
Apache-2.0
Notes
This Pulumi package is based on the packet Terraform Provider.