1. Packages
  2. Linode Provider
  3. API Docs
  4. getIpv6Range
Linode v4.30.1 published on Thursday, Nov 21, 2024 by Pulumi

linode.getIpv6Range

Explore with Pulumi AI

linode logo
Linode v4.30.1 published on Thursday, Nov 21, 2024 by Pulumi

    Provides information about a Linode IPv6 Range. For more information, see the Linode APIv4 docs.

    Example Usage

    Get information about an IPv6 range assigned to a Linode:

    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const range-info = linode.getIpv6Range({
        range: "2001:0db8::",
    });
    
    import pulumi
    import pulumi_linode as linode
    
    range_info = linode.get_ipv6_range(range="2001:0db8::")
    
    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 {
    		_, err := linode.LookupIpv6Range(ctx, &linode.LookupIpv6RangeArgs{
    			Range: "2001:0db8::",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var range_info = Linode.GetIpv6Range.Invoke(new()
        {
            Range = "2001:0db8::",
        });
    
    });
    
    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.GetIpv6RangeArgs;
    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 range-info = LinodeFunctions.getIpv6Range(GetIpv6RangeArgs.builder()
                .range("2001:0db8::")
                .build());
    
        }
    }
    
    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
    IsBgp bool
    Linodes List<int>
    A set of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.
    Prefix int
    The prefix length of the address, denoting how many addresses can be assigned from this range.
    Range string
    Region string
    The region for this range of IPv6 addresses.
    Id string
    IsBgp bool
    Linodes []int
    A set of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.
    Prefix int
    The prefix length of the address, denoting how many addresses can be assigned from this range.
    Range string
    Region string
    The region for this range of IPv6 addresses.
    id String
    isBgp Boolean
    linodes List<Integer>
    A set of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.
    prefix Integer
    The prefix length of the address, denoting how many addresses can be assigned from this range.
    range String
    region String
    The region for this range of IPv6 addresses.
    id string
    isBgp boolean
    linodes number[]
    A set of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.
    prefix number
    The prefix length of the address, denoting how many addresses can be assigned from this range.
    range string
    region string
    The region for this range of IPv6 addresses.
    id str
    is_bgp bool
    linodes Sequence[int]
    A set of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.
    prefix int
    The prefix length of the address, denoting how many addresses can be assigned from this range.
    range str
    region str
    The region for this range of IPv6 addresses.
    id String
    isBgp Boolean
    linodes List<Number>
    A set of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.
    prefix Number
    The prefix length of the address, denoting how many addresses can be assigned from this range.
    range String
    region String
    The region for this range of IPv6 addresses.

    Package Details

    Repository
    Linode pulumi/pulumi-linode
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the linode Terraform Provider.
    linode logo
    Linode v4.30.1 published on Thursday, Nov 21, 2024 by Pulumi