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>function get_precreated_ip_block(address_family=None, facility=None, global_=None, project_id=None, public=None, opts=None)func GetPrecreatedIpBlock(ctx *Context, args *GetPrecreatedIpBlockArgs, opts ...InvokeOption) (*GetPrecreatedIpBlockResult, error)public static class GetPrecreatedIpBlock {
public static Task<GetPrecreatedIpBlockResult> InvokeAsync(GetPrecreatedIpBlockArgs args, InvokeOptions? opts = null)
}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 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 float 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
- 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
- https://github.com/pulumi/pulumi-packet
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
packetTerraform Provider.