1. Packages
  2. Linode
  3. API Docs
  4. Ipv6Range
Linode v4.19.0 published on Wednesday, Apr 24, 2024 by Pulumi

linode.Ipv6Range

Explore with Pulumi AI

linode logo
Linode v4.19.0 published on Wednesday, Apr 24, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const foobar = new linode.Instance("foobar", {
        label: "my-linode",
        image: "linode/alpine3.19",
        type: "g6-nanode-1",
        region: "us-southeast",
    });
    const foobarIpv6Range = new linode.Ipv6Range("foobar", {
        linodeId: foobar.id,
        prefixLength: 64,
    });
    
    import pulumi
    import pulumi_linode as linode
    
    foobar = linode.Instance("foobar",
        label="my-linode",
        image="linode/alpine3.19",
        type="g6-nanode-1",
        region="us-southeast")
    foobar_ipv6_range = linode.Ipv6Range("foobar",
        linode_id=foobar.id,
        prefix_length=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 {
    		foobar, err := linode.NewInstance(ctx, "foobar", &linode.InstanceArgs{
    			Label:  pulumi.String("my-linode"),
    			Image:  pulumi.String("linode/alpine3.19"),
    			Type:   pulumi.String("g6-nanode-1"),
    			Region: pulumi.String("us-southeast"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = linode.NewIpv6Range(ctx, "foobar", &linode.Ipv6RangeArgs{
    			LinodeId:     foobar.ID(),
    			PrefixLength: pulumi.Int(64),
    		})
    		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 foobar = new Linode.Instance("foobar", new()
        {
            Label = "my-linode",
            Image = "linode/alpine3.19",
            Type = "g6-nanode-1",
            Region = "us-southeast",
        });
    
        var foobarIpv6Range = new Linode.Ipv6Range("foobar", new()
        {
            LinodeId = foobar.Id,
            PrefixLength = 64,
        });
    
    });
    
    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 foobar = new Instance("foobar", InstanceArgs.builder()        
                .label("my-linode")
                .image("linode/alpine3.19")
                .type("g6-nanode-1")
                .region("us-southeast")
                .build());
    
            var foobarIpv6Range = new Ipv6Range("foobarIpv6Range", Ipv6RangeArgs.builder()        
                .linodeId(foobar.id())
                .prefixLength(64)
                .build());
    
        }
    }
    
    resources:
      foobar:
        type: linode:Instance
        properties:
          label: my-linode
          image: linode/alpine3.19
          type: g6-nanode-1
          region: us-southeast
      foobarIpv6Range:
        type: linode:Ipv6Range
        name: foobar
        properties:
          linodeId: ${foobar.id}
          prefixLength: 64
    

    Create Ipv6Range Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Ipv6Range(name: string, args: Ipv6RangeArgs, opts?: CustomResourceOptions);
    @overload
    def Ipv6Range(resource_name: str,
                  args: Ipv6RangeArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Ipv6Range(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  prefix_length: Optional[int] = None,
                  linode_id: Optional[int] = None,
                  route_target: Optional[str] = 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.
    
    

    Parameters

    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.

    Example

    The following reference example uses placeholder values for all input properties.

    var ipv6RangeResource = new Linode.Ipv6Range("ipv6RangeResource", new()
    {
        PrefixLength = 0,
        LinodeId = 0,
        RouteTarget = "string",
    });
    
    example, err := linode.NewIpv6Range(ctx, "ipv6RangeResource", &linode.Ipv6RangeArgs{
    	PrefixLength: pulumi.Int(0),
    	LinodeId:     pulumi.Int(0),
    	RouteTarget:  pulumi.String("string"),
    })
    
    var ipv6RangeResource = new Ipv6Range("ipv6RangeResource", Ipv6RangeArgs.builder()        
        .prefixLength(0)
        .linodeId(0)
        .routeTarget("string")
        .build());
    
    ipv6_range_resource = linode.Ipv6Range("ipv6RangeResource",
        prefix_length=0,
        linode_id=0,
        route_target="string")
    
    const ipv6RangeResource = new linode.Ipv6Range("ipv6RangeResource", {
        prefixLength: 0,
        linodeId: 0,
        routeTarget: "string",
    });
    
    type: linode:Ipv6Range
    properties:
        linodeId: 0
        prefixLength: 0
        routeTarget: string
    

    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.19.0 published on Wednesday, Apr 24, 2024 by Pulumi