1. Registry
  2. Packages
  3. Linode Provider
  4. API Docs
  5. getReservedIpTypes
Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi
linode logo linode logo
Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi

    Provides information about Linode Reserved IP types that match a set of filters. For more information, see the Linode APIv4 docs.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const all = linode.getReservedIpTypes({});
    export const typeIds = all.then(all => all.types.map(__item => __item.id));
    
    import pulumi
    import pulumi_linode as linode
    
    all = linode.get_reserved_ip_types()
    pulumi.export("typeIds", [__item.id for __item in all.types])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-linode/sdk/v6/go/linode"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
    all, err := linode.GetReservedIpTypes(ctx, &linode.GetReservedIpTypesArgs{
    }, nil);
    if err != nil {
    return err
    }
    ctx.Export("typeIds", pulumi.StringArray(%!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:3,11-26)))
    return nil
    })
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var all = Linode.GetReservedIpTypes.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["typeIds"] = all.Apply(getReservedIpTypesResult => getReservedIpTypesResult.Types).Select(__item => __item.Id).ToList(),
        };
    });
    
    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.GetReservedIpTypesArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 all = LinodeFunctions.getReservedIpTypes(GetReservedIpTypesArgs.builder()
                .build());
    
            ctx.export("typeIds", all.types().stream().map(element -> element.id()).collect(toList()));
        }
    }
    
    Example coming soon!
    
    pulumi {
      required_providers {
        linode = {
          source = "pulumi/linode"
        }
      }
    }
    
    data "linode_getreservediptypes" "all" {
    }
    
    output "typeIds" {
      value = data.linode_getreservediptypes.all.types[*].id
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const specific = linode.getReservedIpTypes({
        filters: [{
            name: "id",
            values: ["reserved-ip"],
        }],
    });
    export const label = specific.then(specific => specific.types?.[0]?.label);
    
    import pulumi
    import pulumi_linode as linode
    
    specific = linode.get_reserved_ip_types(filters=[{
        "name": "id",
        "values": ["reserved-ip"],
    }])
    pulumi.export("label", specific.types[0].label)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-linode/sdk/v6/go/linode"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		specific, err := linode.GetReservedIpTypes(ctx, &linode.GetReservedIpTypesArgs{
    			Filters: []linode.GetReservedIpTypesFilter{
    				{
    					Name: "id",
    					Values: []string{
    						"reserved-ip",
    					},
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("label", specific.Types[0].Label)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var specific = Linode.GetReservedIpTypes.Invoke(new()
        {
            Filters = new[]
            {
                new Linode.Inputs.GetReservedIpTypesFilterInputArgs
                {
                    Name = "id",
                    Values = new[]
                    {
                        "reserved-ip",
                    },
                },
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["label"] = specific.Apply(getReservedIpTypesResult => getReservedIpTypesResult.Types[0]?.Label),
        };
    });
    
    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.GetReservedIpTypesArgs;
    import com.pulumi.linode.inputs.GetReservedIpTypesFilterArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 specific = LinodeFunctions.getReservedIpTypes(GetReservedIpTypesArgs.builder()
                .filters(GetReservedIpTypesFilterArgs.builder()
                    .name("id")
                    .values("reserved-ip")
                    .build())
                .build());
    
            ctx.export("label", specific.types()[0].label());
        }
    }
    
    variables:
      specific:
        fn::invoke:
          function: linode:getReservedIpTypes
          arguments:
            filters:
              - name: id
                values:
                  - reserved-ip
    outputs:
      label: ${specific.types[0].label}
    
    pulumi {
      required_providers {
        linode = {
          source = "pulumi/linode"
        }
      }
    }
    
    data "linode_getreservediptypes" "specific" {
      filters {
        name   = "id"
        values = ["reserved-ip"]
      }
    }
    
    output "label" {
      value = data.linode_getreservediptypes.specific.types[0].label
    }
    

    Filterable Fields

    • label

    Using getReservedIpTypes

    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 getReservedIpTypes(args: GetReservedIpTypesArgs, opts?: InvokeOptions): Promise<GetReservedIpTypesResult>
    function getReservedIpTypesOutput(args: GetReservedIpTypesOutputArgs, opts?: InvokeOutputOptions): Output<GetReservedIpTypesResult>
    def get_reserved_ip_types(filters: Optional[Sequence[GetReservedIpTypesFilter]] = None,
                              order: Optional[str] = None,
                              order_by: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetReservedIpTypesResult
    def get_reserved_ip_types_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetReservedIpTypesFilterArgs]]]] = None,
                              order: pulumi.Input[Optional[str]] = None,
                              order_by: pulumi.Input[Optional[str]] = None,
                              opts: Optional[InvokeOutputOptions] = None) -> Output[GetReservedIpTypesResult]
    func GetReservedIpTypes(ctx *Context, args *GetReservedIpTypesArgs, opts ...InvokeOption) (*GetReservedIpTypesResult, error)
    func GetReservedIpTypesOutput(ctx *Context, args *GetReservedIpTypesOutputArgs, opts ...InvokeOption) GetReservedIpTypesResultOutput

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

    public static class GetReservedIpTypes 
    {
        public static Task<GetReservedIpTypesResult> InvokeAsync(GetReservedIpTypesArgs args, InvokeOptions? opts = null)
        public static Output<GetReservedIpTypesResult> Invoke(GetReservedIpTypesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetReservedIpTypesResult> Invoke(GetReservedIpTypesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetReservedIpTypesResult> getReservedIpTypes(GetReservedIpTypesArgs args, InvokeOptions options)
    public static Output<GetReservedIpTypesResult> getReservedIpTypes(GetReservedIpTypesArgs args, InvokeOptions options)
    public static Output<GetReservedIpTypesResult> getReservedIpTypes(GetReservedIpTypesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: linode:index/getReservedIpTypes:getReservedIpTypes
      arguments:
        # arguments dictionary
    data "linode_get_reserved_ip_types" "name" {
        # arguments
    }

    The following arguments are supported:

    Filters List<GetReservedIpTypesFilter>
    Order string
    The order in which results should be returned. (asc, desc; default asc)
    OrderBy string
    The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
    Filters []GetReservedIpTypesFilter
    Order string
    The order in which results should be returned. (asc, desc; default asc)
    OrderBy string
    The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
    filters list(object)
    order string
    The order in which results should be returned. (asc, desc; default asc)
    order_by string
    The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
    filters List<GetReservedIpTypesFilter>
    order String
    The order in which results should be returned. (asc, desc; default asc)
    orderBy String
    The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
    filters GetReservedIpTypesFilter[]
    order string
    The order in which results should be returned. (asc, desc; default asc)
    orderBy string
    The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
    filters Sequence[GetReservedIpTypesFilter]
    order str
    The order in which results should be returned. (asc, desc; default asc)
    order_by str
    The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
    filters List<Property Map>
    order String
    The order in which results should be returned. (asc, desc; default asc)
    orderBy String
    The attribute to order the results by. See the Filterable Fields section for a list of valid fields.

    getReservedIpTypes Result

    The following output properties are available:

    Id string
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    Types List<GetReservedIpTypesType>
    (Nested Attribute List) Reserved IP types matching the query.
    Filters List<GetReservedIpTypesFilter>
    Order string
    OrderBy string
    Id string
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    Types []GetReservedIpTypesType
    (Nested Attribute List) Reserved IP types matching the query.
    Filters []GetReservedIpTypesFilter
    Order string
    OrderBy string
    id string
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    types list(object)
    (Nested Attribute List) Reserved IP types matching the query.
    filters list(object)
    order string
    order_by string
    id String
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    types List<GetReservedIpTypesType>
    (Nested Attribute List) Reserved IP types matching the query.
    filters List<GetReservedIpTypesFilter>
    order String
    orderBy String
    id string
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    types GetReservedIpTypesType[]
    (Nested Attribute List) Reserved IP types matching the query.
    filters GetReservedIpTypesFilter[]
    order string
    orderBy string
    id str
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    types Sequence[GetReservedIpTypesType]
    (Nested Attribute List) Reserved IP types matching the query.
    filters Sequence[GetReservedIpTypesFilter]
    order str
    order_by str
    id String
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    types List<Property Map>
    (Nested Attribute List) Reserved IP types matching the query.
    filters List<Property Map>
    order String
    orderBy String

    Supporting Types

    GetReservedIpTypesFilter

    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.
    MatchBy string
    The method to match the field by. (exact, regex, substring; default exact)
    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.
    MatchBy string
    The method to match the field by. (exact, regex, substring; default exact)
    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; default exact)
    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.
    matchBy String
    The method to match the field by. (exact, regex, substring; default exact)
    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.
    matchBy string
    The method to match the field by. (exact, regex, substring; default exact)
    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; default exact)
    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.
    matchBy String
    The method to match the field by. (exact, regex, substring; default exact)

    GetReservedIpTypesType

    Id string
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    Label string
    The human-readable label for this Reserved IP type.
    Prices List<GetReservedIpTypesTypePrice>
    (Read-Only Object List) Pricing information for this Reserved IP type. Referenced with an index (e.g. price.0.hourly).
    RegionPrices List<GetReservedIpTypesTypeRegionPrice>
    (Read-Only Object List) Region-specific pricing information for this Reserved IP type. Referenced with an index (e.g. region_prices.0.hourly).
    Id string
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    Label string
    The human-readable label for this Reserved IP type.
    Prices []GetReservedIpTypesTypePrice
    (Read-Only Object List) Pricing information for this Reserved IP type. Referenced with an index (e.g. price.0.hourly).
    RegionPrices []GetReservedIpTypesTypeRegionPrice
    (Read-Only Object List) Region-specific pricing information for this Reserved IP type. Referenced with an index (e.g. region_prices.0.hourly).
    id string
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    label string
    The human-readable label for this Reserved IP type.
    prices list(object)
    (Read-Only Object List) Pricing information for this Reserved IP type. Referenced with an index (e.g. price.0.hourly).
    region_prices list(object)
    (Read-Only Object List) Region-specific pricing information for this Reserved IP type. Referenced with an index (e.g. region_prices.0.hourly).
    id String
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    label String
    The human-readable label for this Reserved IP type.
    prices List<GetReservedIpTypesTypePrice>
    (Read-Only Object List) Pricing information for this Reserved IP type. Referenced with an index (e.g. price.0.hourly).
    regionPrices List<GetReservedIpTypesTypeRegionPrice>
    (Read-Only Object List) Region-specific pricing information for this Reserved IP type. Referenced with an index (e.g. region_prices.0.hourly).
    id string
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    label string
    The human-readable label for this Reserved IP type.
    prices GetReservedIpTypesTypePrice[]
    (Read-Only Object List) Pricing information for this Reserved IP type. Referenced with an index (e.g. price.0.hourly).
    regionPrices GetReservedIpTypesTypeRegionPrice[]
    (Read-Only Object List) Region-specific pricing information for this Reserved IP type. Referenced with an index (e.g. region_prices.0.hourly).
    id str
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    label str
    The human-readable label for this Reserved IP type.
    prices Sequence[GetReservedIpTypesTypePrice]
    (Read-Only Object List) Pricing information for this Reserved IP type. Referenced with an index (e.g. price.0.hourly).
    region_prices Sequence[GetReservedIpTypesTypeRegionPrice]
    (Read-Only Object List) Region-specific pricing information for this Reserved IP type. Referenced with an index (e.g. region_prices.0.hourly).
    id String
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    label String
    The human-readable label for this Reserved IP type.
    prices List<Property Map>
    (Read-Only Object List) Pricing information for this Reserved IP type. Referenced with an index (e.g. price.0.hourly).
    regionPrices List<Property Map>
    (Read-Only Object List) Region-specific pricing information for this Reserved IP type. Referenced with an index (e.g. region_prices.0.hourly).

    GetReservedIpTypesTypePrice

    Hourly double
    Cost (in US dollars) per hour.
    Monthly double
    Cost (in US dollars) per month.
    Hourly float64
    Cost (in US dollars) per hour.
    Monthly float64
    Cost (in US dollars) per month.
    hourly number
    Cost (in US dollars) per hour.
    monthly number
    Cost (in US dollars) per month.
    hourly Double
    Cost (in US dollars) per hour.
    monthly Double
    Cost (in US dollars) per month.
    hourly number
    Cost (in US dollars) per hour.
    monthly number
    Cost (in US dollars) per month.
    hourly float
    Cost (in US dollars) per hour.
    monthly float
    Cost (in US dollars) per month.
    hourly Number
    Cost (in US dollars) per hour.
    monthly Number
    Cost (in US dollars) per month.

    GetReservedIpTypesTypeRegionPrice

    Hourly double
    Id string
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    Monthly double
    Hourly float64
    Id string
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    Monthly float64
    hourly number
    id string
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    monthly number
    hourly Double
    id String
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    monthly Double
    hourly number
    id string
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    monthly number
    hourly float
    id str
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    monthly float
    hourly Number
    id String
    The unique ID of this Reserved IP type (e.g. reserved-ip).
    monthly Number

    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 logo
    Viewing docs for Linode v6.6.0
    published on Tuesday, Sep 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial