Linode v4.30.1 published on Thursday, Nov 21, 2024 by Pulumi
linode.getIpv6Ranges
Explore with Pulumi AI
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;
import pulumi
import pulumi_linode as linode
filtered_ranges = linode.get_ipv6_ranges(filters=[{
"name": "region",
"values": ["us-mia"],
}])
pulumi.export("ranges", filtered_ranges)
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
})
}
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,
};
});
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);
}
}
variables:
filtered-ranges:
fn::invoke:
Function: linode:getIpv6Ranges
Arguments:
filters:
- name: region
values:
- us-mia
outputs:
ranges: ${["filtered-ranges"]}
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>
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]
func GetIpv6Ranges(ctx *Context, args *GetIpv6RangesArgs, opts ...InvokeOption) (*GetIpv6RangesResult, error)
func GetIpv6RangesOutput(ctx *Context, args *GetIpv6RangesOutputArgs, opts ...InvokeOption) GetIpv6RangesResultOutput
> 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)
}
public static CompletableFuture<GetIpv6RangesResult> getIpv6Ranges(GetIpv6RangesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: linode:index/getIpv6Ranges:getIpv6Ranges
arguments:
# arguments dictionary
The following arguments are supported:
getIpv6Ranges Result
The following output properties are available:
Supporting Types
GetIpv6RangesFilter
- Name string
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- Values List<string>
- A list of values for the filter to allow. These values should all be in string form.
- Match
By string - The method to match the field by. (
exact
,regex
,substring
; defaultexact
)
- Name string
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- Values []string
- A list of values for the filter to allow. These values should all be in string form.
- Match
By string - The method to match the field by. (
exact
,regex
,substring
; defaultexact
)
- name String
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- values List<String>
- A list of values for the filter to allow. These values should all be in string form.
- match
By String - The method to match the field by. (
exact
,regex
,substring
; defaultexact
)
- name string
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- values string[]
- A list of values for the filter to allow. These values should all be in string form.
- match
By string - The method to match the field by. (
exact
,regex
,substring
; defaultexact
)
- name str
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- values 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
; defaultexact
)
- name String
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- values List<String>
- A list of values for the filter to allow. These values should all be in string form.
- match
By String - The method to match the field by. (
exact
,regex
,substring
; defaultexact
)
GetIpv6RangesRange
- Prefix int
- The prefix length of the address, denoting how many addresses can be assigned from this range.
- Range string
- The IPv6 address of this range.
- Region string
- The region for this range of IPv6 addresses.
- Route
Target string - The IPv6 SLAAC address.
- Prefix int
- The prefix length of the address, denoting how many addresses can be assigned from this range.
- Range string
- The IPv6 address of this range.
- Region string
- The region for this range of IPv6 addresses.
- Route
Target string - The IPv6 SLAAC address.
- prefix Integer
- The prefix length of the address, denoting how many addresses can be assigned from this range.
- range String
- The IPv6 address of this range.
- region String
- The region for this range of IPv6 addresses.
- route
Target String - The IPv6 SLAAC address.
- prefix number
- The prefix length of the address, denoting how many addresses can be assigned from this range.
- range string
- The IPv6 address of this range.
- region string
- The region for this range of IPv6 addresses.
- route
Target string - The IPv6 SLAAC address.
- prefix int
- The prefix length of the address, denoting how many addresses can be assigned from this range.
- range str
- The IPv6 address of this range.
- region str
- The region for this range of IPv6 addresses.
- route_
target str - The IPv6 SLAAC address.
- prefix Number
- The prefix length of the address, denoting how many addresses can be assigned from this range.
- range String
- The IPv6 address of this range.
- region String
- The region for this range of IPv6 addresses.
- route
Target 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.