equinix.metal.getDevices
Explore with Pulumi AI
The datasource can be used to find a list of devices which meet filter criteria.
If you need to fetch a single device by ID or by project ID and hostname, use the equinix.metal.Device datasource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as equinix from "@pulumi/equinix";
const example = equinix.metal.getDevices({
projectId: local.project_id,
filters: [
{
attribute: "plan",
values: ["c3.small.x86"],
},
{
attribute: "metro",
values: [
"da",
"sv",
],
},
],
});
export const devices = example.then(example => example.devices);
import pulumi
import pulumi_equinix as equinix
example = equinix.metal.get_devices(project_id=local["project_id"],
filters=[
{
"attribute": "plan",
"values": ["c3.small.x86"],
},
{
"attribute": "metro",
"values": [
"da",
"sv",
],
},
])
pulumi.export("devices", example.devices)
package main
import (
"github.com/equinix/pulumi-equinix/sdk/go/equinix/metal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := metal.GetDevices(ctx, &metal.GetDevicesArgs{
ProjectId: pulumi.StringRef(local.Project_id),
Filters: []metal.GetDevicesFilter{
{
Attribute: "plan",
Values: []string{
"c3.small.x86",
},
},
{
Attribute: "metro",
Values: []string{
"da",
"sv",
},
},
},
}, nil)
if err != nil {
return err
}
ctx.Export("devices", example.Devices)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Equinix = Pulumi.Equinix;
return await Deployment.RunAsync(() =>
{
var example = Equinix.Metal.GetDevices.Invoke(new()
{
ProjectId = local.Project_id,
Filters = new[]
{
new Equinix.Metal.Inputs.GetDevicesFilterInputArgs
{
Attribute = "plan",
Values = new[]
{
"c3.small.x86",
},
},
new Equinix.Metal.Inputs.GetDevicesFilterInputArgs
{
Attribute = "metro",
Values = new[]
{
"da",
"sv",
},
},
},
});
return new Dictionary<string, object?>
{
["devices"] = example.Apply(getDevicesResult => getDevicesResult.Devices),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.equinix.metal.MetalFunctions;
import com.pulumi.equinix.metal.inputs.GetDevicesArgs;
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) {
final var example = MetalFunctions.getDevices(GetDevicesArgs.builder()
.projectId(local.project_id())
.filters(
GetDevicesFilterArgs.builder()
.attribute("plan")
.values("c3.small.x86")
.build(),
GetDevicesFilterArgs.builder()
.attribute("metro")
.values(
"da",
"sv")
.build())
.build());
ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
}
}
variables:
example:
fn::invoke:
Function: equinix:metal:getDevices
Arguments:
projectId: ${local.project_id}
filters:
- attribute: plan
values:
- c3.small.x86
- attribute: metro
values:
- da
- sv
outputs:
devices: ${example.devices}
import * as pulumi from "@pulumi/pulumi";
import * as equinix from "@pulumi/equinix";
const example = equinix.metal.getDevices({
search: "database",
});
export const devices = example.then(example => example.devices);
import pulumi
import pulumi_equinix as equinix
example = equinix.metal.get_devices(search="database")
pulumi.export("devices", example.devices)
package main
import (
"github.com/equinix/pulumi-equinix/sdk/go/equinix/metal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := metal.GetDevices(ctx, &metal.GetDevicesArgs{
Search: pulumi.StringRef("database"),
}, nil)
if err != nil {
return err
}
ctx.Export("devices", example.Devices)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Equinix = Pulumi.Equinix;
return await Deployment.RunAsync(() =>
{
var example = Equinix.Metal.GetDevices.Invoke(new()
{
Search = "database",
});
return new Dictionary<string, object?>
{
["devices"] = example.Apply(getDevicesResult => getDevicesResult.Devices),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.equinix.metal.MetalFunctions;
import com.pulumi.equinix.metal.inputs.GetDevicesArgs;
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) {
final var example = MetalFunctions.getDevices(GetDevicesArgs.builder()
.search("database")
.build());
ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
}
}
variables:
example:
fn::invoke:
Function: equinix:metal:getDevices
Arguments:
search: database
outputs:
devices: ${example.devices}
search vs filter
The difference between search
and filter
is that search
is an API parameter, interpreted by the Equinix Metal service. The “filter” arguments will reduce the API list (or search) results by applying client-side filtering, within this provider.
Using getDevices
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 getDevices(args: GetDevicesArgs, opts?: InvokeOptions): Promise<GetDevicesResult>
function getDevicesOutput(args: GetDevicesOutputArgs, opts?: InvokeOptions): Output<GetDevicesResult>
def get_devices(filters: Optional[Sequence[GetDevicesFilter]] = None,
organization_id: Optional[str] = None,
project_id: Optional[str] = None,
search: Optional[str] = None,
sorts: Optional[Sequence[GetDevicesSort]] = None,
opts: Optional[InvokeOptions] = None) -> GetDevicesResult
def get_devices_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDevicesFilterArgs]]]] = None,
organization_id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
search: Optional[pulumi.Input[str]] = None,
sorts: Optional[pulumi.Input[Sequence[pulumi.Input[GetDevicesSortArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDevicesResult]
func GetDevices(ctx *Context, args *GetDevicesArgs, opts ...InvokeOption) (*GetDevicesResult, error)
func GetDevicesOutput(ctx *Context, args *GetDevicesOutputArgs, opts ...InvokeOption) GetDevicesResultOutput
> Note: This function is named GetDevices
in the Go SDK.
public static class GetDevices
{
public static Task<GetDevicesResult> InvokeAsync(GetDevicesArgs args, InvokeOptions? opts = null)
public static Output<GetDevicesResult> Invoke(GetDevicesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDevicesResult> getDevices(GetDevicesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: equinix:metal/getDevices:getDevices
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Get
Devices Filter> - One or more attribute/values pairs to filter. List of atributes to filter can be found in the attribute reference of the
equinix.metal.Device
datasource. - Organization
Id string - ID of organization containing the devices.
- Project
Id string - ID of project containing the devices. Exactly one of
project_id
andorganization_id
must be set. - Search string
- Search string to filter devices by hostname, description, short_id, reservation short_id, tags, plan name, plan slug, facility code, facility name, operating system name, operating system slug, IP addresses.
- Sorts
List<Get
Devices Sort>
- Filters
[]Get
Devices Filter - One or more attribute/values pairs to filter. List of atributes to filter can be found in the attribute reference of the
equinix.metal.Device
datasource. - Organization
Id string - ID of organization containing the devices.
- Project
Id string - ID of project containing the devices. Exactly one of
project_id
andorganization_id
must be set. - Search string
- Search string to filter devices by hostname, description, short_id, reservation short_id, tags, plan name, plan slug, facility code, facility name, operating system name, operating system slug, IP addresses.
- Sorts
[]Get
Devices Sort
- filters
List<Get
Devices Filter> - One or more attribute/values pairs to filter. List of atributes to filter can be found in the attribute reference of the
equinix.metal.Device
datasource. - organization
Id String - ID of organization containing the devices.
- project
Id String - ID of project containing the devices. Exactly one of
project_id
andorganization_id
must be set. - search String
- Search string to filter devices by hostname, description, short_id, reservation short_id, tags, plan name, plan slug, facility code, facility name, operating system name, operating system slug, IP addresses.
- sorts
List<Get
Devices Sort>
- filters
Get
Devices Filter[] - One or more attribute/values pairs to filter. List of atributes to filter can be found in the attribute reference of the
equinix.metal.Device
datasource. - organization
Id string - ID of organization containing the devices.
- project
Id string - ID of project containing the devices. Exactly one of
project_id
andorganization_id
must be set. - search string
- Search string to filter devices by hostname, description, short_id, reservation short_id, tags, plan name, plan slug, facility code, facility name, operating system name, operating system slug, IP addresses.
- sorts
Get
Devices Sort[]
- filters
Sequence[Get
Devices Filter] - One or more attribute/values pairs to filter. List of atributes to filter can be found in the attribute reference of the
equinix.metal.Device
datasource. - organization_
id str - ID of organization containing the devices.
- project_
id str - ID of project containing the devices. Exactly one of
project_id
andorganization_id
must be set. - search str
- Search string to filter devices by hostname, description, short_id, reservation short_id, tags, plan name, plan slug, facility code, facility name, operating system name, operating system slug, IP addresses.
- sorts
Sequence[Get
Devices Sort]
- filters List<Property Map>
- One or more attribute/values pairs to filter. List of atributes to filter can be found in the attribute reference of the
equinix.metal.Device
datasource. - organization
Id String - ID of organization containing the devices.
- project
Id String - ID of project containing the devices. Exactly one of
project_id
andorganization_id
must be set. - search String
- Search string to filter devices by hostname, description, short_id, reservation short_id, tags, plan name, plan slug, facility code, facility name, operating system name, operating system slug, IP addresses.
- sorts List<Property Map>
getDevices Result
The following output properties are available:
- Devices
List<Get
Devices Device> - list of resources with attributes like in the equninix_metal_device datasources.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Devices Filter> - Organization
Id string - Project
Id string - Search string
- Sorts
List<Get
Devices Sort>
- Devices
[]Get
Devices Device - list of resources with attributes like in the equninix_metal_device datasources.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Devices Filter - Organization
Id string - Project
Id string - Search string
- Sorts
[]Get
Devices Sort
- devices
List<Get
Devices Device> - list of resources with attributes like in the equninix_metal_device datasources.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Devices Filter> - organization
Id String - project
Id String - search String
- sorts
List<Get
Devices Sort>
- devices
Get
Devices Device[] - list of resources with attributes like in the equninix_metal_device datasources.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Devices Filter[] - organization
Id string - project
Id string - search string
- sorts
Get
Devices Sort[]
- devices
Sequence[Get
Devices Device] - list of resources with attributes like in the equninix_metal_device datasources.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[Get
Devices Filter] - organization_
id str - project_
id str - search str
- sorts
Sequence[Get
Devices Sort]
- devices List<Property Map>
- list of resources with attributes like in the equninix_metal_device datasources.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- organization
Id String - project
Id String - search String
- sorts List<Property Map>
Supporting Types
GetDevicesDevice
- Access
Private stringIpv4 - The ipv4 private IP assigned to the device
- Access
Public stringIpv4 - The ipv4 management IP assigned to the device
- Access
Public stringIpv6 - The ipv6 management IP assigned to the device
- Always
Pxe bool - Billing
Cycle string - The billing cycle of the device (monthly or hourly)
- Description string
- Description string for the device
- Device
Id string - Device ID
- Facility string
- The facility where the device is deployed
- Hardware
Reservation stringId - The id of hardware reservation which this device occupies
- Hostname string
- The device name
- Ipxe
Script stringUrl - Metro string
- The metro where the device is deployed
- Network
Type string - L2 network type of the device, one oflayer3, hybrid, layer2-individual, layer2-bonded
- Networks
List<Get
Devices Device Network> - The device's private and public IP (v4 and v6) network details. When a device is run without any special network configuration, it will have 3 networks: ublic IPv4 at equinix_metal_device.name.network.0, IPv6 at equinix_metal_device.name.network.1 and private IPv4 at equinix_metal_device.name.network.2. Elastic addresses then stack by type - an assigned public IPv4 will go after the management public IPv4 (to index 1), and will then shift the indices of the IPv6 and private IPv4. Assigned private IPv4 will go after the management private IPv4 (to the end of the network list).
- Operating
System string - The operating system running on the device
- Plan string
- The hardware config of the device
- Ports
List<Get
Devices Device Port> - Ports assigned to the device
- Project
Id string - ID of project containing the devices. Exactly one of
project_id
andorganization_id
must be set. - Root
Password string - Root password to the server (if still available)
- Sos
Hostname string - The hostname to use for Serial over SSH access to the device
- Ssh
Key List<string>Ids - List of IDs of SSH keys deployed in the device, can be both user or project SSH keys
- State string
- The state of the device
- Storage string
- List<string>
- Tags attached to the device
- Access
Private stringIpv4 - The ipv4 private IP assigned to the device
- Access
Public stringIpv4 - The ipv4 management IP assigned to the device
- Access
Public stringIpv6 - The ipv6 management IP assigned to the device
- Always
Pxe bool - Billing
Cycle string - The billing cycle of the device (monthly or hourly)
- Description string
- Description string for the device
- Device
Id string - Device ID
- Facility string
- The facility where the device is deployed
- Hardware
Reservation stringId - The id of hardware reservation which this device occupies
- Hostname string
- The device name
- Ipxe
Script stringUrl - Metro string
- The metro where the device is deployed
- Network
Type string - L2 network type of the device, one oflayer3, hybrid, layer2-individual, layer2-bonded
- Networks
[]Get
Devices Device Network - The device's private and public IP (v4 and v6) network details. When a device is run without any special network configuration, it will have 3 networks: ublic IPv4 at equinix_metal_device.name.network.0, IPv6 at equinix_metal_device.name.network.1 and private IPv4 at equinix_metal_device.name.network.2. Elastic addresses then stack by type - an assigned public IPv4 will go after the management public IPv4 (to index 1), and will then shift the indices of the IPv6 and private IPv4. Assigned private IPv4 will go after the management private IPv4 (to the end of the network list).
- Operating
System string - The operating system running on the device
- Plan string
- The hardware config of the device
- Ports
[]Get
Devices Device Port - Ports assigned to the device
- Project
Id string - ID of project containing the devices. Exactly one of
project_id
andorganization_id
must be set. - Root
Password string - Root password to the server (if still available)
- Sos
Hostname string - The hostname to use for Serial over SSH access to the device
- Ssh
Key []stringIds - List of IDs of SSH keys deployed in the device, can be both user or project SSH keys
- State string
- The state of the device
- Storage string
- []string
- Tags attached to the device
- access
Private StringIpv4 - The ipv4 private IP assigned to the device
- access
Public StringIpv4 - The ipv4 management IP assigned to the device
- access
Public StringIpv6 - The ipv6 management IP assigned to the device
- always
Pxe Boolean - billing
Cycle String - The billing cycle of the device (monthly or hourly)
- description String
- Description string for the device
- device
Id String - Device ID
- facility String
- The facility where the device is deployed
- hardware
Reservation StringId - The id of hardware reservation which this device occupies
- hostname String
- The device name
- ipxe
Script StringUrl - metro String
- The metro where the device is deployed
- network
Type String - L2 network type of the device, one oflayer3, hybrid, layer2-individual, layer2-bonded
- networks
List<Get
Devices Device Network> - The device's private and public IP (v4 and v6) network details. When a device is run without any special network configuration, it will have 3 networks: ublic IPv4 at equinix_metal_device.name.network.0, IPv6 at equinix_metal_device.name.network.1 and private IPv4 at equinix_metal_device.name.network.2. Elastic addresses then stack by type - an assigned public IPv4 will go after the management public IPv4 (to index 1), and will then shift the indices of the IPv6 and private IPv4. Assigned private IPv4 will go after the management private IPv4 (to the end of the network list).
- operating
System String - The operating system running on the device
- plan String
- The hardware config of the device
- ports
List<Get
Devices Device Port> - Ports assigned to the device
- project
Id String - ID of project containing the devices. Exactly one of
project_id
andorganization_id
must be set. - root
Password String - Root password to the server (if still available)
- sos
Hostname String - The hostname to use for Serial over SSH access to the device
- ssh
Key List<String>Ids - List of IDs of SSH keys deployed in the device, can be both user or project SSH keys
- state String
- The state of the device
- storage String
- List<String>
- Tags attached to the device
- access
Private stringIpv4 - The ipv4 private IP assigned to the device
- access
Public stringIpv4 - The ipv4 management IP assigned to the device
- access
Public stringIpv6 - The ipv6 management IP assigned to the device
- always
Pxe boolean - billing
Cycle string - The billing cycle of the device (monthly or hourly)
- description string
- Description string for the device
- device
Id string - Device ID
- facility string
- The facility where the device is deployed
- hardware
Reservation stringId - The id of hardware reservation which this device occupies
- hostname string
- The device name
- ipxe
Script stringUrl - metro string
- The metro where the device is deployed
- network
Type string - L2 network type of the device, one oflayer3, hybrid, layer2-individual, layer2-bonded
- networks
Get
Devices Device Network[] - The device's private and public IP (v4 and v6) network details. When a device is run without any special network configuration, it will have 3 networks: ublic IPv4 at equinix_metal_device.name.network.0, IPv6 at equinix_metal_device.name.network.1 and private IPv4 at equinix_metal_device.name.network.2. Elastic addresses then stack by type - an assigned public IPv4 will go after the management public IPv4 (to index 1), and will then shift the indices of the IPv6 and private IPv4. Assigned private IPv4 will go after the management private IPv4 (to the end of the network list).
- operating
System string - The operating system running on the device
- plan string
- The hardware config of the device
- ports
Get
Devices Device Port[] - Ports assigned to the device
- project
Id string - ID of project containing the devices. Exactly one of
project_id
andorganization_id
must be set. - root
Password string - Root password to the server (if still available)
- sos
Hostname string - The hostname to use for Serial over SSH access to the device
- ssh
Key string[]Ids - List of IDs of SSH keys deployed in the device, can be both user or project SSH keys
- state string
- The state of the device
- storage string
- string[]
- Tags attached to the device
- access_
private_ stripv4 - The ipv4 private IP assigned to the device
- access_
public_ stripv4 - The ipv4 management IP assigned to the device
- access_
public_ stripv6 - The ipv6 management IP assigned to the device
- always_
pxe bool - billing_
cycle str - The billing cycle of the device (monthly or hourly)
- description str
- Description string for the device
- device_
id str - Device ID
- facility str
- The facility where the device is deployed
- hardware_
reservation_ strid - The id of hardware reservation which this device occupies
- hostname str
- The device name
- ipxe_
script_ strurl - metro str
- The metro where the device is deployed
- network_
type str - L2 network type of the device, one oflayer3, hybrid, layer2-individual, layer2-bonded
- networks
Sequence[Get
Devices Device Network] - The device's private and public IP (v4 and v6) network details. When a device is run without any special network configuration, it will have 3 networks: ublic IPv4 at equinix_metal_device.name.network.0, IPv6 at equinix_metal_device.name.network.1 and private IPv4 at equinix_metal_device.name.network.2. Elastic addresses then stack by type - an assigned public IPv4 will go after the management public IPv4 (to index 1), and will then shift the indices of the IPv6 and private IPv4. Assigned private IPv4 will go after the management private IPv4 (to the end of the network list).
- operating_
system str - The operating system running on the device
- plan str
- The hardware config of the device
- ports
Sequence[Get
Devices Device Port] - Ports assigned to the device
- project_
id str - ID of project containing the devices. Exactly one of
project_id
andorganization_id
must be set. - root_
password str - Root password to the server (if still available)
- sos_
hostname str - The hostname to use for Serial over SSH access to the device
- ssh_
key_ Sequence[str]ids - List of IDs of SSH keys deployed in the device, can be both user or project SSH keys
- state str
- The state of the device
- storage str
- Sequence[str]
- Tags attached to the device
- access
Private StringIpv4 - The ipv4 private IP assigned to the device
- access
Public StringIpv4 - The ipv4 management IP assigned to the device
- access
Public StringIpv6 - The ipv6 management IP assigned to the device
- always
Pxe Boolean - billing
Cycle String - The billing cycle of the device (monthly or hourly)
- description String
- Description string for the device
- device
Id String - Device ID
- facility String
- The facility where the device is deployed
- hardware
Reservation StringId - The id of hardware reservation which this device occupies
- hostname String
- The device name
- ipxe
Script StringUrl - metro String
- The metro where the device is deployed
- network
Type String - L2 network type of the device, one oflayer3, hybrid, layer2-individual, layer2-bonded
- networks List<Property Map>
- The device's private and public IP (v4 and v6) network details. When a device is run without any special network configuration, it will have 3 networks: ublic IPv4 at equinix_metal_device.name.network.0, IPv6 at equinix_metal_device.name.network.1 and private IPv4 at equinix_metal_device.name.network.2. Elastic addresses then stack by type - an assigned public IPv4 will go after the management public IPv4 (to index 1), and will then shift the indices of the IPv6 and private IPv4. Assigned private IPv4 will go after the management private IPv4 (to the end of the network list).
- operating
System String - The operating system running on the device
- plan String
- The hardware config of the device
- ports List<Property Map>
- Ports assigned to the device
- project
Id String - ID of project containing the devices. Exactly one of
project_id
andorganization_id
must be set. - root
Password String - Root password to the server (if still available)
- sos
Hostname String - The hostname to use for Serial over SSH access to the device
- ssh
Key List<String>Ids - List of IDs of SSH keys deployed in the device, can be both user or project SSH keys
- state String
- The state of the device
- storage String
- List<String>
- Tags attached to the device
GetDevicesDeviceNetwork
GetDevicesDevicePort
GetDevicesFilter
- Attribute string
- The attribute used to filter. Filter attributes are case-sensitive
- Values List<string>
- The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR by default, and the request returns all results that match any of the specified values
- All bool
If is set to true, the values are joined with an AND, and the requests returns only the results that match all specified values. Default is
false
.All fields in the
devices
block defined below can be used as attribute for bothsort
andfilter
blocks.- Match
By string - The type of comparison to apply. One of:
in
,re
,substring
,less_than
,less_than_or_equal
,greater_than
,greater_than_or_equal
. Default isin
.
- Attribute string
- The attribute used to filter. Filter attributes are case-sensitive
- Values []string
- The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR by default, and the request returns all results that match any of the specified values
- All bool
If is set to true, the values are joined with an AND, and the requests returns only the results that match all specified values. Default is
false
.All fields in the
devices
block defined below can be used as attribute for bothsort
andfilter
blocks.- Match
By string - The type of comparison to apply. One of:
in
,re
,substring
,less_than
,less_than_or_equal
,greater_than
,greater_than_or_equal
. Default isin
.
- attribute String
- The attribute used to filter. Filter attributes are case-sensitive
- values List<String>
- The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR by default, and the request returns all results that match any of the specified values
- all Boolean
If is set to true, the values are joined with an AND, and the requests returns only the results that match all specified values. Default is
false
.All fields in the
devices
block defined below can be used as attribute for bothsort
andfilter
blocks.- match
By String - The type of comparison to apply. One of:
in
,re
,substring
,less_than
,less_than_or_equal
,greater_than
,greater_than_or_equal
. Default isin
.
- attribute string
- The attribute used to filter. Filter attributes are case-sensitive
- values string[]
- The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR by default, and the request returns all results that match any of the specified values
- all boolean
If is set to true, the values are joined with an AND, and the requests returns only the results that match all specified values. Default is
false
.All fields in the
devices
block defined below can be used as attribute for bothsort
andfilter
blocks.- match
By string - The type of comparison to apply. One of:
in
,re
,substring
,less_than
,less_than_or_equal
,greater_than
,greater_than_or_equal
. Default isin
.
- attribute str
- The attribute used to filter. Filter attributes are case-sensitive
- values Sequence[str]
- The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR by default, and the request returns all results that match any of the specified values
- all bool
If is set to true, the values are joined with an AND, and the requests returns only the results that match all specified values. Default is
false
.All fields in the
devices
block defined below can be used as attribute for bothsort
andfilter
blocks.- match_
by str - The type of comparison to apply. One of:
in
,re
,substring
,less_than
,less_than_or_equal
,greater_than
,greater_than_or_equal
. Default isin
.
- attribute String
- The attribute used to filter. Filter attributes are case-sensitive
- values List<String>
- The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR by default, and the request returns all results that match any of the specified values
- all Boolean
If is set to true, the values are joined with an AND, and the requests returns only the results that match all specified values. Default is
false
.All fields in the
devices
block defined below can be used as attribute for bothsort
andfilter
blocks.- match
By String - The type of comparison to apply. One of:
in
,re
,substring
,less_than
,less_than_or_equal
,greater_than
,greater_than_or_equal
. Default isin
.
GetDevicesSort
Package Details
- Repository
- equinix equinix/pulumi-equinix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
equinix
Terraform Provider.