Show / Hide Table of Contents

Class GetIpBlockRanges

Inheritance
System.Object
GetIpBlockRanges
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Packet
Assembly: Pulumi.Packet.dll
Syntax
public static class GetIpBlockRanges

Methods

View Source

InvokeAsync(GetIpBlockRangesArgs, InvokeOptions)

Use this datasource to get CIDR expressions for allocated IP blocks of all the types in a project, optionally filtered by facility.

There are four types of IP blocks in Packet: global IPv4, public IPv4, private IPv4 and IPv6. Both global and public IPv4 are routable from the Internet. Public IPv4 block is allocated in a facility, and addresses from it can only be assigned to devices in that facility. Addresses from Global IPv4 block can be assigned to a device in any facility.

The datasource has 4 list attributes: global_ipv4, public_ipv4, private_ipv4 and ipv6, each listing CIDR notation (<network>/<mask>) of respective blocks from the project.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Packet = Pulumi.Packet;

class MyStack : Stack
{
public MyStack()
{
    var projectId = "<UUID_of_your_project>";
    var test = Output.Create(Packet.GetIpBlockRanges.InvokeAsync(new Packet.GetIpBlockRangesArgs
    {
        ProjectId = projectId,
    }));
    this.Out = test;
}

[Output("out")]
public Output<string> Out { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetIpBlockRangesResult> InvokeAsync(GetIpBlockRangesArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetIpBlockRangesArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetIpBlockRangesResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.