1. Packages
  2. Linode
  3. API Docs
  4. Ipv6Range
Linode v4.7.0 published on Friday, Sep 29, 2023 by Pulumi

linode.Ipv6Range

Explore with Pulumi AI

linode logo
Linode v4.7.0 published on Friday, Sep 29, 2023 by Pulumi

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var foobarInstance = new Linode.Instance("foobarInstance", new()
        {
            Label = "my-linode",
            Image = "linode/alpine3.14",
            Type = "g6-nanode-1",
            Region = "us-southeast",
        });
    
        var foobarIpv6Range = new Linode.Ipv6Range("foobarIpv6Range", new()
        {
            LinodeId = foobarInstance.Id,
            PrefixLength = 64,
        });
    
    });
    
    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 {
    		foobarInstance, err := linode.NewInstance(ctx, "foobarInstance", &linode.InstanceArgs{
    			Label:  pulumi.String("my-linode"),
    			Image:  pulumi.String("linode/alpine3.14"),
    			Type:   pulumi.String("g6-nanode-1"),
    			Region: pulumi.String("us-southeast"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = linode.NewIpv6Range(ctx, "foobarIpv6Range", &linode.Ipv6RangeArgs{
    			LinodeId:     foobarInstance.ID(),
    			PrefixLength: pulumi.Int(64),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.linode.Instance;
    import com.pulumi.linode.InstanceArgs;
    import com.pulumi.linode.Ipv6Range;
    import com.pulumi.linode.Ipv6RangeArgs;
    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) {
            var foobarInstance = new Instance("foobarInstance", InstanceArgs.builder()        
                .label("my-linode")
                .image("linode/alpine3.14")
                .type("g6-nanode-1")
                .region("us-southeast")
                .build());
    
            var foobarIpv6Range = new Ipv6Range("foobarIpv6Range", Ipv6RangeArgs.builder()        
                .linodeId(foobarInstance.id())
                .prefixLength(64)
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_linode as linode
    
    foobar_instance = linode.Instance("foobarInstance",
        label="my-linode",
        image="linode/alpine3.14",
        type="g6-nanode-1",
        region="us-southeast")
    foobar_ipv6_range = linode.Ipv6Range("foobarIpv6Range",
        linode_id=foobar_instance.id,
        prefix_length=64)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const foobarInstance = new linode.Instance("foobarInstance", {
        label: "my-linode",
        image: "linode/alpine3.14",
        type: "g6-nanode-1",
        region: "us-southeast",
    });
    const foobarIpv6Range = new linode.Ipv6Range("foobarIpv6Range", {
        linodeId: foobarInstance.id,
        prefixLength: 64,
    });
    
    resources:
      foobarInstance:
        type: linode:Instance
        properties:
          label: my-linode
          image: linode/alpine3.14
          type: g6-nanode-1
          region: us-southeast
      foobarIpv6Range:
        type: linode:Ipv6Range
        properties:
          linodeId: ${foobarInstance.id}
          prefixLength: 64
    

    Create Ipv6Range Resource

    new Ipv6Range(name: string, args: Ipv6RangeArgs, opts?: CustomResourceOptions);
    @overload
    def Ipv6Range(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  linode_id: Optional[int] = None,
                  prefix_length: Optional[int] = None,
                  route_target: Optional[str] = None)
    @overload
    def Ipv6Range(resource_name: str,
                  args: Ipv6RangeArgs,
                  opts: Optional[ResourceOptions] = None)
    func NewIpv6Range(ctx *Context, name string, args Ipv6RangeArgs, opts ...ResourceOption) (*Ipv6Range, error)
    public Ipv6Range(string name, Ipv6RangeArgs args, CustomResourceOptions? opts = null)
    public Ipv6Range(String name, Ipv6RangeArgs args)
    public Ipv6Range(String name, Ipv6RangeArgs args, CustomResourceOptions options)
    
    type: linode:Ipv6Range
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args Ipv6RangeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args Ipv6RangeArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args Ipv6RangeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args Ipv6RangeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args Ipv6RangeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Ipv6Range Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Ipv6Range resource accepts the following input properties:

    PrefixLength int

    The prefix length of the IPv6 range.

    LinodeId int

    The ID of the Linode to assign this range to. This field may be updated to reassign the IPv6 range.

    RouteTarget string

    The IPv6 SLAAC address to assign this range to.

    PrefixLength int

    The prefix length of the IPv6 range.

    LinodeId int

    The ID of the Linode to assign this range to. This field may be updated to reassign the IPv6 range.

    RouteTarget string

    The IPv6 SLAAC address to assign this range to.

    prefixLength Integer

    The prefix length of the IPv6 range.

    linodeId Integer

    The ID of the Linode to assign this range to. This field may be updated to reassign the IPv6 range.

    routeTarget String

    The IPv6 SLAAC address to assign this range to.

    prefixLength number

    The prefix length of the IPv6 range.

    linodeId number

    The ID of the Linode to assign this range to. This field may be updated to reassign the IPv6 range.

    routeTarget string

    The IPv6 SLAAC address to assign this range to.

    prefix_length int

    The prefix length of the IPv6 range.

    linode_id int

    The ID of the Linode to assign this range to. This field may be updated to reassign the IPv6 range.

    route_target str

    The IPv6 SLAAC address to assign this range to.

    prefixLength Number

    The prefix length of the IPv6 range.

    linodeId Number

    The ID of the Linode to assign this range to. This field may be updated to reassign the IPv6 range.

    routeTarget String

    The IPv6 SLAAC address to assign this range to.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Ipv6Range resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    IsBgp bool

    Whether this IPv6 range is shared.

    Linodes List<int>

    A list of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.

    Range string

    The IPv6 range of addresses in this pool.

    Region string

    The region for this range of IPv6 addresses.

    Id string

    The provider-assigned unique ID for this managed resource.

    IsBgp bool

    Whether this IPv6 range is shared.

    Linodes []int

    A list of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.

    Range string

    The IPv6 range of addresses in this pool.

    Region string

    The region for this range of IPv6 addresses.

    id String

    The provider-assigned unique ID for this managed resource.

    isBgp Boolean

    Whether this IPv6 range is shared.

    linodes List<Integer>

    A list of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.

    range String

    The IPv6 range of addresses in this pool.

    region String

    The region for this range of IPv6 addresses.

    id string

    The provider-assigned unique ID for this managed resource.

    isBgp boolean

    Whether this IPv6 range is shared.

    linodes number[]

    A list of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.

    range string

    The IPv6 range of addresses in this pool.

    region string

    The region for this range of IPv6 addresses.

    id str

    The provider-assigned unique ID for this managed resource.

    is_bgp bool

    Whether this IPv6 range is shared.

    linodes Sequence[int]

    A list of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.

    range str

    The IPv6 range of addresses in this pool.

    region str

    The region for this range of IPv6 addresses.

    id String

    The provider-assigned unique ID for this managed resource.

    isBgp Boolean

    Whether this IPv6 range is shared.

    linodes List<Number>

    A list of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.

    range String

    The IPv6 range of addresses in this pool.

    region String

    The region for this range of IPv6 addresses.

    Look up Existing Ipv6Range Resource

    Get an existing Ipv6Range resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: Ipv6RangeState, opts?: CustomResourceOptions): Ipv6Range
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            is_bgp: Optional[bool] = None,
            linode_id: Optional[int] = None,
            linodes: Optional[Sequence[int]] = None,
            prefix_length: Optional[int] = None,
            range: Optional[str] = None,
            region: Optional[str] = None,
            route_target: Optional[str] = None) -> Ipv6Range
    func GetIpv6Range(ctx *Context, name string, id IDInput, state *Ipv6RangeState, opts ...ResourceOption) (*Ipv6Range, error)
    public static Ipv6Range Get(string name, Input<string> id, Ipv6RangeState? state, CustomResourceOptions? opts = null)
    public static Ipv6Range get(String name, Output<String> id, Ipv6RangeState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    IsBgp bool

    Whether this IPv6 range is shared.

    LinodeId int

    The ID of the Linode to assign this range to. This field may be updated to reassign the IPv6 range.

    Linodes List<int>

    A list of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.

    PrefixLength int

    The prefix length of the IPv6 range.

    Range string

    The IPv6 range of addresses in this pool.

    Region string

    The region for this range of IPv6 addresses.

    RouteTarget string

    The IPv6 SLAAC address to assign this range to.

    IsBgp bool

    Whether this IPv6 range is shared.

    LinodeId int

    The ID of the Linode to assign this range to. This field may be updated to reassign the IPv6 range.

    Linodes []int

    A list of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.

    PrefixLength int

    The prefix length of the IPv6 range.

    Range string

    The IPv6 range of addresses in this pool.

    Region string

    The region for this range of IPv6 addresses.

    RouteTarget string

    The IPv6 SLAAC address to assign this range to.

    isBgp Boolean

    Whether this IPv6 range is shared.

    linodeId Integer

    The ID of the Linode to assign this range to. This field may be updated to reassign the IPv6 range.

    linodes List<Integer>

    A list of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.

    prefixLength Integer

    The prefix length of the IPv6 range.

    range String

    The IPv6 range of addresses in this pool.

    region String

    The region for this range of IPv6 addresses.

    routeTarget String

    The IPv6 SLAAC address to assign this range to.

    isBgp boolean

    Whether this IPv6 range is shared.

    linodeId number

    The ID of the Linode to assign this range to. This field may be updated to reassign the IPv6 range.

    linodes number[]

    A list of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.

    prefixLength number

    The prefix length of the IPv6 range.

    range string

    The IPv6 range of addresses in this pool.

    region string

    The region for this range of IPv6 addresses.

    routeTarget string

    The IPv6 SLAAC address to assign this range to.

    is_bgp bool

    Whether this IPv6 range is shared.

    linode_id int

    The ID of the Linode to assign this range to. This field may be updated to reassign the IPv6 range.

    linodes Sequence[int]

    A list of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.

    prefix_length int

    The prefix length of the IPv6 range.

    range str

    The IPv6 range of addresses in this pool.

    region str

    The region for this range of IPv6 addresses.

    route_target str

    The IPv6 SLAAC address to assign this range to.

    isBgp Boolean

    Whether this IPv6 range is shared.

    linodeId Number

    The ID of the Linode to assign this range to. This field may be updated to reassign the IPv6 range.

    linodes List<Number>

    A list of Linodes targeted by this IPv6 range. Includes Linodes with IP sharing.

    prefixLength Number

    The prefix length of the IPv6 range.

    range String

    The IPv6 range of addresses in this pool.

    region String

    The region for this range of IPv6 addresses.

    routeTarget String

    The IPv6 SLAAC address to assign this range to.

    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.7.0 published on Friday, Sep 29, 2023 by Pulumi