Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi
published on Tuesday, Sep 15, 2026 by Pulumi
Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi
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 dictionarydata "linode_get_reserved_ip_types" "name" {
# arguments
}The following arguments are supported:
- Filters
List<Get
Reserved Ip Types Filter> - Order string
- The order in which results should be returned. (
asc,desc; defaultasc) - Order
By string - The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
- Filters
[]Get
Reserved Ip Types Filter - Order string
- The order in which results should be returned. (
asc,desc; defaultasc) - Order
By 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; defaultasc) - order_
by string - The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
- filters
List<Get
Reserved Ip Types Filter> - order String
- The order in which results should be returned. (
asc,desc; defaultasc) - order
By String - The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
- filters
Get
Reserved Ip Types Filter[] - order string
- The order in which results should be returned. (
asc,desc; defaultasc) - order
By string - The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
- filters
Sequence[Get
Reserved Ip Types Filter] - order str
- The order in which results should be returned. (
asc,desc; defaultasc) - 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; defaultasc) - order
By 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<Get
Reserved Ip Types Type> - (Nested Attribute List) Reserved IP types matching the query.
- Filters
List<Get
Reserved Ip Types Filter> - Order string
- Order
By string
- Id string
- The unique ID of this Reserved IP type (e.g.
reserved-ip). - Types
[]Get
Reserved Ip Types Type - (Nested Attribute List) Reserved IP types matching the query.
- Filters
[]Get
Reserved Ip Types Filter - Order string
- Order
By 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<Get
Reserved Ip Types Type> - (Nested Attribute List) Reserved IP types matching the query.
- filters
List<Get
Reserved Ip Types Filter> - order String
- order
By String
- id string
- The unique ID of this Reserved IP type (e.g.
reserved-ip). - types
Get
Reserved Ip Types Type[] - (Nested Attribute List) Reserved IP types matching the query.
- filters
Get
Reserved Ip Types Filter[] - order string
- order
By string
- id str
- The unique ID of this Reserved IP type (e.g.
reserved-ip). - types
Sequence[Get
Reserved Ip Types Type] - (Nested Attribute List) Reserved IP types matching the query.
- filters
Sequence[Get
Reserved Ip Types Filter] - 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
- order
By 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.
- Match
By string - The method to match the field by. (
exact,regex,substring; defaultexact)
- 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.
- Match
By string - The method to match the field by. (
exact,regex,substring; defaultexact)
- 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; defaultexact)
- 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; defaultexact)
- 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.
- match
By string - The method to match the field by. (
exact,regex,substring; defaultexact)
- 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; defaultexact)
- 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; defaultexact)
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<Get
Reserved Ip Types Type Price> - (Read-Only Object List) Pricing information for this Reserved IP type. Referenced with an index (e.g.
price.0.hourly). - Region
Prices List<GetReserved Ip Types Type Region Price> - (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
[]Get
Reserved Ip Types Type Price - (Read-Only Object List) Pricing information for this Reserved IP type. Referenced with an index (e.g.
price.0.hourly). - Region
Prices []GetReserved Ip Types Type Region Price - (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<Get
Reserved Ip Types Type Price> - (Read-Only Object List) Pricing information for this Reserved IP type. Referenced with an index (e.g.
price.0.hourly). - region
Prices List<GetReserved Ip Types Type Region Price> - (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
Get
Reserved Ip Types Type Price[] - (Read-Only Object List) Pricing information for this Reserved IP type. Referenced with an index (e.g.
price.0.hourly). - region
Prices GetReserved Ip Types Type Region Price[] - (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[Get
Reserved Ip Types Type Price] - (Read-Only Object List) Pricing information for this Reserved IP type. Referenced with an index (e.g.
price.0.hourly). - region_
prices Sequence[GetReserved Ip Types Type Region Price] - (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). - region
Prices 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
GetReservedIpTypesTypeRegionPrice
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.
Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi
published on Tuesday, Sep 15, 2026 by Pulumi