1. Packages
  2. Linode Provider
  3. API Docs
  4. getIpv6Ranges
Linode v4.38.0 published on Thursday, Apr 24, 2025 by Pulumi

linode.getIpv6Ranges

Explore with Pulumi AI

Linode v4.38.0 published on Thursday, Apr 24, 2025 by Pulumi

Provides information about Linode IPv6 ranges that match a set of filters. For more information, see the Linode APIv4 docs.

Some fields may not be accessible directly the results of this data source. For additional information about a specific IPv6 range consider using the linode.Ipv6Range data source.

import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";

const filtered_ranges = linode.getIpv6Ranges({
    filters: [{
        name: "region",
        values: ["us-mia"],
    }],
});
export const ranges = filtered_ranges;
Copy
import pulumi
import pulumi_linode as linode

filtered_ranges = linode.get_ipv6_ranges(filters=[{
    "name": "region",
    "values": ["us-mia"],
}])
pulumi.export("ranges", filtered_ranges)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		filtered_ranges, err := linode.GetIpv6Ranges(ctx, &linode.GetIpv6RangesArgs{
			Filters: []linode.GetIpv6RangesFilter{
				{
					Name: "region",
					Values: []string{
						"us-mia",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("ranges", filtered_ranges)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Linode = Pulumi.Linode;

return await Deployment.RunAsync(() => 
{
    var filtered_ranges = Linode.GetIpv6Ranges.Invoke(new()
    {
        Filters = new[]
        {
            new Linode.Inputs.GetIpv6RangesFilterInputArgs
            {
                Name = "region",
                Values = new[]
                {
                    "us-mia",
                },
            },
        },
    });

    return new Dictionary<string, object?>
    {
        ["ranges"] = filtered_ranges,
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.LinodeFunctions;
import com.pulumi.linode.inputs.GetIpv6RangesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

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

    public static void stack(Context ctx) {
        final var filtered-ranges = LinodeFunctions.getIpv6Ranges(GetIpv6RangesArgs.builder()
            .filters(GetIpv6RangesFilterArgs.builder()
                .name("region")
                .values("us-mia")
                .build())
            .build());

        ctx.export("ranges", filtered_ranges);
    }
}
Copy
variables:
  filtered-ranges:
    fn::invoke:
      function: linode:getIpv6Ranges
      arguments:
        filters:
          - name: region
            values:
              - us-mia
outputs:
  ranges: ${["filtered-ranges"]}
Copy

Filterable Fields

  • range

  • route_target

  • prefix

  • region

Using getIpv6Ranges

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 getIpv6Ranges(args: GetIpv6RangesArgs, opts?: InvokeOptions): Promise<GetIpv6RangesResult>
function getIpv6RangesOutput(args: GetIpv6RangesOutputArgs, opts?: InvokeOptions): Output<GetIpv6RangesResult>
Copy
def get_ipv6_ranges(filters: Optional[Sequence[GetIpv6RangesFilter]] = None,
                    ranges: Optional[Sequence[GetIpv6RangesRange]] = None,
                    opts: Optional[InvokeOptions] = None) -> GetIpv6RangesResult
def get_ipv6_ranges_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetIpv6RangesFilterArgs]]]] = None,
                    ranges: Optional[pulumi.Input[Sequence[pulumi.Input[GetIpv6RangesRangeArgs]]]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetIpv6RangesResult]
Copy
func GetIpv6Ranges(ctx *Context, args *GetIpv6RangesArgs, opts ...InvokeOption) (*GetIpv6RangesResult, error)
func GetIpv6RangesOutput(ctx *Context, args *GetIpv6RangesOutputArgs, opts ...InvokeOption) GetIpv6RangesResultOutput
Copy

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

public static class GetIpv6Ranges 
{
    public static Task<GetIpv6RangesResult> InvokeAsync(GetIpv6RangesArgs args, InvokeOptions? opts = null)
    public static Output<GetIpv6RangesResult> Invoke(GetIpv6RangesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIpv6RangesResult> getIpv6Ranges(GetIpv6RangesArgs args, InvokeOptions options)
public static Output<GetIpv6RangesResult> getIpv6Ranges(GetIpv6RangesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: linode:index/getIpv6Ranges:getIpv6Ranges
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

getIpv6Ranges Result

The following output properties are available:

Supporting Types

GetIpv6RangesFilter

Name This property is required. string
The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
Values This property is required. List<string>
A list of values for the filter to allow. These values should all be in string form.
MatchBy string
The method to match the field by. (exact, regex, substring; default exact)
Name This property is required. string
The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
Values This property is required. []string
A list of values for the filter to allow. These values should all be in string form.
MatchBy string
The method to match the field by. (exact, regex, substring; default exact)
name This property is required. String
The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
values This property is required. List<String>
A list of values for the filter to allow. These values should all be in string form.
matchBy String
The method to match the field by. (exact, regex, substring; default exact)
name This property is required. string
The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
values This property is required. string[]
A list of values for the filter to allow. These values should all be in string form.
matchBy string
The method to match the field by. (exact, regex, substring; default exact)
name This property is required. str
The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
values This property is required. Sequence[str]
A list of values for the filter to allow. These values should all be in string form.
match_by str
The method to match the field by. (exact, regex, substring; default exact)
name This property is required. String
The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
values This property is required. List<String>
A list of values for the filter to allow. These values should all be in string form.
matchBy String
The method to match the field by. (exact, regex, substring; default exact)

GetIpv6RangesRange

Prefix This property is required. int
The prefix length of the address, denoting how many addresses can be assigned from this range.
Range This property is required. string
The IPv6 address of this range.
Region This property is required. string
The region for this range of IPv6 addresses.
RouteTarget This property is required. string
The IPv6 SLAAC address.
Prefix This property is required. int
The prefix length of the address, denoting how many addresses can be assigned from this range.
Range This property is required. string
The IPv6 address of this range.
Region This property is required. string
The region for this range of IPv6 addresses.
RouteTarget This property is required. string
The IPv6 SLAAC address.
prefix This property is required. Integer
The prefix length of the address, denoting how many addresses can be assigned from this range.
range This property is required. String
The IPv6 address of this range.
region This property is required. String
The region for this range of IPv6 addresses.
routeTarget This property is required. String
The IPv6 SLAAC address.
prefix This property is required. number
The prefix length of the address, denoting how many addresses can be assigned from this range.
range This property is required. string
The IPv6 address of this range.
region This property is required. string
The region for this range of IPv6 addresses.
routeTarget This property is required. string
The IPv6 SLAAC address.
prefix This property is required. int
The prefix length of the address, denoting how many addresses can be assigned from this range.
range This property is required. str
The IPv6 address of this range.
region This property is required. str
The region for this range of IPv6 addresses.
route_target This property is required. str
The IPv6 SLAAC address.
prefix This property is required. Number
The prefix length of the address, denoting how many addresses can be assigned from this range.
range This property is required. String
The IPv6 address of this range.
region This property is required. String
The region for this range of IPv6 addresses.
routeTarget This property is required. String
The IPv6 SLAAC address.

Package Details

Repository
Linode pulumi/pulumi-linode
License
Apache-2.0
Notes
This Pulumi package is based on the linode Terraform Provider.
Linode v4.38.0 published on Thursday, Apr 24, 2025 by Pulumi