1. Packages
  2. DigitalOcean Provider
  3. API Docs
  4. getReservedIpv6
DigitalOcean v4.41.0 published on Wednesday, Mar 26, 2025 by Pulumi

digitalocean.getReservedIpv6

Explore with Pulumi AI

digitalocean logo
DigitalOcean v4.41.0 published on Wednesday, Mar 26, 2025 by Pulumi

    Example Usage

    Get the reserved IPv6:

    import * as pulumi from "@pulumi/pulumi";
    import * as digitalocean from "@pulumi/digitalocean";
    
    const foo = new digitalocean.ReservedIpv6("foo", {regionSlug: "nyc3"});
    const foobar = digitalocean.getReservedIpv6Output({
        ip: foo.ip,
    });
    
    import pulumi
    import pulumi_digitalocean as digitalocean
    
    foo = digitalocean.ReservedIpv6("foo", region_slug="nyc3")
    foobar = digitalocean.get_reserved_ipv6_output(ip=foo.ip)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		foo, err := digitalocean.NewReservedIpv6(ctx, "foo", &digitalocean.ReservedIpv6Args{
    			RegionSlug: pulumi.String("nyc3"),
    		})
    		if err != nil {
    			return err
    		}
    		_ = digitalocean.LookupReservedIpv6Output(ctx, digitalocean.GetReservedIpv6OutputArgs{
    			Ip: foo.Ip,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DigitalOcean = Pulumi.DigitalOcean;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new DigitalOcean.ReservedIpv6("foo", new()
        {
            RegionSlug = "nyc3",
        });
    
        var foobar = DigitalOcean.GetReservedIpv6.Invoke(new()
        {
            Ip = foo.Ip,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.digitalocean.ReservedIpv6;
    import com.pulumi.digitalocean.ReservedIpv6Args;
    import com.pulumi.digitalocean.DigitaloceanFunctions;
    import com.pulumi.digitalocean.inputs.GetReservedIpv6Args;
    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 foo = new ReservedIpv6("foo", ReservedIpv6Args.builder()
                .regionSlug("nyc3")
                .build());
    
            final var foobar = DigitaloceanFunctions.getReservedIpv6(GetReservedIpv6Args.builder()
                .ip(foo.ip())
                .build());
    
        }
    }
    
    resources:
      foo:
        type: digitalocean:ReservedIpv6
        properties:
          regionSlug: nyc3
    variables:
      foobar:
        fn::invoke:
          function: digitalocean:getReservedIpv6
          arguments:
            ip: ${foo.ip}
    

    Using getReservedIpv6

    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 getReservedIpv6(args: GetReservedIpv6Args, opts?: InvokeOptions): Promise<GetReservedIpv6Result>
    function getReservedIpv6Output(args: GetReservedIpv6OutputArgs, opts?: InvokeOptions): Output<GetReservedIpv6Result>
    def get_reserved_ipv6(ip: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetReservedIpv6Result
    def get_reserved_ipv6_output(ip: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetReservedIpv6Result]
    func LookupReservedIpv6(ctx *Context, args *LookupReservedIpv6Args, opts ...InvokeOption) (*LookupReservedIpv6Result, error)
    func LookupReservedIpv6Output(ctx *Context, args *LookupReservedIpv6OutputArgs, opts ...InvokeOption) LookupReservedIpv6ResultOutput

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

    public static class GetReservedIpv6 
    {
        public static Task<GetReservedIpv6Result> InvokeAsync(GetReservedIpv6Args args, InvokeOptions? opts = null)
        public static Output<GetReservedIpv6Result> Invoke(GetReservedIpv6InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetReservedIpv6Result> getReservedIpv6(GetReservedIpv6Args args, InvokeOptions options)
    public static Output<GetReservedIpv6Result> getReservedIpv6(GetReservedIpv6Args args, InvokeOptions options)
    
    fn::invoke:
      function: digitalocean:index/getReservedIpv6:getReservedIpv6
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ip string
    The allocated IPv6 address of the specific reserved IPv6 to retrieve.
    Ip string
    The allocated IPv6 address of the specific reserved IPv6 to retrieve.
    ip String
    The allocated IPv6 address of the specific reserved IPv6 to retrieve.
    ip string
    The allocated IPv6 address of the specific reserved IPv6 to retrieve.
    ip str
    The allocated IPv6 address of the specific reserved IPv6 to retrieve.
    ip String
    The allocated IPv6 address of the specific reserved IPv6 to retrieve.

    getReservedIpv6 Result

    The following output properties are available:

    DropletId int
    The Droplet id that the reserved IP has been assigned to.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ip string
    RegionSlug string
    The region that the reserved IPv6 is reserved to.
    Urn string
    The uniform resource name of the reserved IPv6.
    DropletId int
    The Droplet id that the reserved IP has been assigned to.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ip string
    RegionSlug string
    The region that the reserved IPv6 is reserved to.
    Urn string
    The uniform resource name of the reserved IPv6.
    dropletId Integer
    The Droplet id that the reserved IP has been assigned to.
    id String
    The provider-assigned unique ID for this managed resource.
    ip String
    regionSlug String
    The region that the reserved IPv6 is reserved to.
    urn String
    The uniform resource name of the reserved IPv6.
    dropletId number
    The Droplet id that the reserved IP has been assigned to.
    id string
    The provider-assigned unique ID for this managed resource.
    ip string
    regionSlug string
    The region that the reserved IPv6 is reserved to.
    urn string
    The uniform resource name of the reserved IPv6.
    droplet_id int
    The Droplet id that the reserved IP has been assigned to.
    id str
    The provider-assigned unique ID for this managed resource.
    ip str
    region_slug str
    The region that the reserved IPv6 is reserved to.
    urn str
    The uniform resource name of the reserved IPv6.
    dropletId Number
    The Droplet id that the reserved IP has been assigned to.
    id String
    The provider-assigned unique ID for this managed resource.
    ip String
    regionSlug String
    The region that the reserved IPv6 is reserved to.
    urn String
    The uniform resource name of the reserved IPv6.

    Package Details

    Repository
    DigitalOcean pulumi/pulumi-digitalocean
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the digitalocean Terraform Provider.
    digitalocean logo
    DigitalOcean v4.41.0 published on Wednesday, Mar 26, 2025 by Pulumi