Linode

Pulumi Official
Package maintained by Pulumi
v3.9.0 published on Friday, Jun 17, 2022 by Pulumi

getIpv6Range

Provides information about a Linode IPv6 Range.

Attributes

The linode.Ipv6Range data source exports the following attributes:

  • ip_bgp - Whether this IPv6 range is shared.

  • linodes - A set of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.

  • prefix - The prefix length of the address, denoting how many addresses can be assigned from this range.

  • region - The region for this range of IPv6 addresses.

Example Usage

using Pulumi;
using Linode = Pulumi.Linode;

class MyStack : Stack
{
    public MyStack()
    {
        var range_info = Output.Create(Linode.GetIpv6Range.InvokeAsync(new Linode.GetIpv6RangeArgs
        {
            Range = "2001:0db8::",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-linode/sdk/v3/go/linode"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := linode.LookupIpv6Range(ctx, &GetIpv6RangeArgs{
			Range: "2001:0db8::",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var range-info = Output.of(LinodeFunctions.getIpv6Range(GetIpv6RangeArgs.builder()
            .range("2001:0db8::")
            .build()));

        }
}
import pulumi
import pulumi_linode as linode

range_info = linode.get_ipv6_range(range="2001:0db8::")
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";

const range_info = pulumi.output(linode.getIpv6Range({
    range: "2001:0db8::",
}));
variables:
  range-info:
    Fn::Invoke:
      Function: linode:getIpv6Range
      Arguments:
        range: '2001:0db8::'

Using getIpv6Range

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 getIpv6Range(args: GetIpv6RangeArgs, opts?: InvokeOptions): Promise<GetIpv6RangeResult>
function getIpv6RangeOutput(args: GetIpv6RangeOutputArgs, opts?: InvokeOptions): Output<GetIpv6RangeResult>
def get_ipv6_range(range: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetIpv6RangeResult
def get_ipv6_range_output(range: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetIpv6RangeResult]
func LookupIpv6Range(ctx *Context, args *LookupIpv6RangeArgs, opts ...InvokeOption) (*LookupIpv6RangeResult, error)
func LookupIpv6RangeOutput(ctx *Context, args *LookupIpv6RangeOutputArgs, opts ...InvokeOption) LookupIpv6RangeResultOutput

> Note: This function is named LookupIpv6Range in the Go SDK.

public static class GetIpv6Range 
{
    public static Task<GetIpv6RangeResult> InvokeAsync(GetIpv6RangeArgs args, InvokeOptions? opts = null)
    public static Output<GetIpv6RangeResult> Invoke(GetIpv6RangeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIpv6RangeResult> getIpv6Range(GetIpv6RangeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: linode:index/getIpv6Range:getIpv6Range
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Range string

The IPv6 range to retrieve information about.

Range string

The IPv6 range to retrieve information about.

range String

The IPv6 range to retrieve information about.

range string

The IPv6 range to retrieve information about.

range str

The IPv6 range to retrieve information about.

range String

The IPv6 range to retrieve information about.

getIpv6Range Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

IsBgp bool
Linodes List<int>
Prefix int
Range string
Region string
Id string

The provider-assigned unique ID for this managed resource.

IsBgp bool
Linodes []int
Prefix int
Range string
Region string
id String

The provider-assigned unique ID for this managed resource.

isBgp Boolean
linodes List<Integer>
prefix Integer
range String
region String
id string

The provider-assigned unique ID for this managed resource.

isBgp boolean
linodes number[]
prefix number
range string
region string
id str

The provider-assigned unique ID for this managed resource.

is_bgp bool
linodes Sequence[int]
prefix int
range str
region str
id String

The provider-assigned unique ID for this managed resource.

isBgp Boolean
linodes List<Number>
prefix Number
range String
region String

Package Details

Repository
https://github.com/pulumi/pulumi-linode
License
Apache-2.0
Notes

This Pulumi package is based on the linode Terraform Provider.