Packet v3.2.2 published on Thursday, Nov 12, 2020 by Pulumi
packet.getPrecreatedIpBlock
Explore with Pulumi AI
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
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 getPrecreatedIpBlock(args: GetPrecreatedIpBlockArgs, opts?: InvokeOptions): Promise<GetPrecreatedIpBlockResult>
function getPrecreatedIpBlockOutput(args: GetPrecreatedIpBlockOutputArgs, opts?: InvokeOptions): Output<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
def get_precreated_ip_block_output(address_family: Optional[pulumi.Input[int]] = None,
facility: Optional[pulumi.Input[str]] = None,
global_: Optional[pulumi.Input[bool]] = None,
project_id: Optional[pulumi.Input[str]] = None,
public: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPrecreatedIpBlockResult]
func GetPrecreatedIpBlock(ctx *Context, args *GetPrecreatedIpBlockArgs, opts ...InvokeOption) (*GetPrecreatedIpBlockResult, error)
func GetPrecreatedIpBlockOutput(ctx *Context, args *GetPrecreatedIpBlockOutputArgs, opts ...InvokeOption) GetPrecreatedIpBlockResultOutput
> Note: This function is named GetPrecreatedIpBlock
in the Go SDK.
public static class GetPrecreatedIpBlock
{
public static Task<GetPrecreatedIpBlockResult> InvokeAsync(GetPrecreatedIpBlockArgs args, InvokeOptions? opts = null)
public static Output<GetPrecreatedIpBlockResult> Invoke(GetPrecreatedIpBlockInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPrecreatedIpBlockResult> getPrecreatedIpBlock(GetPrecreatedIpBlockArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: packet:index/getPrecreatedIpBlock:getPrecreatedIpBlock
arguments:
# arguments dictionary
The following arguments are supported:
- Address
Family int - 4 or 6, depending on which block you are looking for.
- Project
Id 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.
- Address
Family int - 4 or 6, depending on which block you are looking for.
- Project
Id 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.
- address
Family Integer - 4 or 6, depending on which block you are looking for.
- project
Id 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 number - 4 or 6, depending on which block you are looking for.
- project
Id 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.
- address
Family Number - 4 or 6, depending on which block you are looking for.
- project
Id 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.
getPrecreatedIpBlock Result
The following output properties are available:
- Address string
- Address
Family int - Cidr int
- Cidr
Notation 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
- Project
Id string - Public bool
- Quantity int
- Facility string
- Global bool
- Address string
- Address
Family int - Cidr int
- Cidr
Notation 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
- Project
Id string - Public bool
- Quantity int
- Facility string
- Global bool
- address String
- address
Family Integer - cidr Integer
- cidr
Notation 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
- project
Id String - public_ Boolean
- quantity Integer
- facility String
- global Boolean
- address string
- address
Family number - cidr number
- cidr
Notation 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
- project
Id 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
- address String
- address
Family Number - cidr Number
- cidr
Notation 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
- project
Id String - public Boolean
- quantity Number
- facility String
- global Boolean
Package Details
- Repository
- Packet pulumi/pulumi-packet
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
packet
Terraform Provider.