Cloudflare v5.33.1 published on Wednesday, Jun 26, 2024 by Pulumi
cloudflare.getDevices
Explore with Pulumi AI
Use this data source to lookup Devices.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const example = cloudflare.getDevices({
accountId: "f037e56e89293a057740de681ac9abbe",
});
import pulumi
import pulumi_cloudflare as cloudflare
example = cloudflare.get_devices(account_id="f037e56e89293a057740de681ac9abbe")
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.GetDevices(ctx, &cloudflare.GetDevicesArgs{
AccountId: "f037e56e89293a057740de681ac9abbe",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var example = Cloudflare.GetDevices.Invoke(new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.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 = CloudflareFunctions.getDevices(GetDevicesArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.build());
}
}
variables:
example:
fn::invoke:
Function: cloudflare:getDevices
Arguments:
accountId: f037e56e89293a057740de681ac9abbe
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(account_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDevicesResult
def get_devices_output(account_id: Optional[pulumi.Input[str]] = 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: cloudflare:index/getDevices:getDevices
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - The account identifier to target for the resource.
- Account
Id string - The account identifier to target for the resource.
- account
Id String - The account identifier to target for the resource.
- account
Id string - The account identifier to target for the resource.
- account_
id str - The account identifier to target for the resource.
- account
Id String - The account identifier to target for the resource.
getDevices Result
The following output properties are available:
- Account
Id string - The account identifier to target for the resource.
- Devices
List<Get
Devices Device> - Id string
- The provider-assigned unique ID for this managed resource.
- Account
Id string - The account identifier to target for the resource.
- Devices
[]Get
Devices Device - Id string
- The provider-assigned unique ID for this managed resource.
- account
Id String - The account identifier to target for the resource.
- devices
List<Get
Devices Device> - id String
- The provider-assigned unique ID for this managed resource.
- account
Id string - The account identifier to target for the resource.
- devices
Get
Devices Device[] - id string
- The provider-assigned unique ID for this managed resource.
- account_
id str - The account identifier to target for the resource.
- devices
Sequence[Get
Devices Device] - id str
- The provider-assigned unique ID for this managed resource.
- account
Id String - The account identifier to target for the resource.
- devices List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
GetDevicesDevice
- Created string
- When the device was created.
- Deleted bool
- Whether the device has been deleted.
- Device
Type string - The type of the device.
- Id string
- Device ID.
- Ip string
- IPv4 or IPv6 address.
- Key string
- The device's public key.
- Last
Seen string - When the device was last seen.
- Mac
Address string - The device's MAC address.
- Manufacturer string
- The device manufacturer's name.
- Model string
- The device model name.
- Name string
- The device name.
- Os
Distro stringName - The Linux distribution name.
- Os
Distro stringRevision - The Linux distribution revision.
- Os
Version string - The operating system version.
- Os
Version stringExtra - Extra version value following the operating system version.
- Revoked
At string - When the device was revoked.
- Serial
Number string - The device's serial number.
- Updated string
- When the device was updated.
- User
Email string - User's email.
- User
Id string - User's ID.
- User
Name string - User's Name.
- Version string
- The WARP client version.
- Created string
- When the device was created.
- Deleted bool
- Whether the device has been deleted.
- Device
Type string - The type of the device.
- Id string
- Device ID.
- Ip string
- IPv4 or IPv6 address.
- Key string
- The device's public key.
- Last
Seen string - When the device was last seen.
- Mac
Address string - The device's MAC address.
- Manufacturer string
- The device manufacturer's name.
- Model string
- The device model name.
- Name string
- The device name.
- Os
Distro stringName - The Linux distribution name.
- Os
Distro stringRevision - The Linux distribution revision.
- Os
Version string - The operating system version.
- Os
Version stringExtra - Extra version value following the operating system version.
- Revoked
At string - When the device was revoked.
- Serial
Number string - The device's serial number.
- Updated string
- When the device was updated.
- User
Email string - User's email.
- User
Id string - User's ID.
- User
Name string - User's Name.
- Version string
- The WARP client version.
- created String
- When the device was created.
- deleted Boolean
- Whether the device has been deleted.
- device
Type String - The type of the device.
- id String
- Device ID.
- ip String
- IPv4 or IPv6 address.
- key String
- The device's public key.
- last
Seen String - When the device was last seen.
- mac
Address String - The device's MAC address.
- manufacturer String
- The device manufacturer's name.
- model String
- The device model name.
- name String
- The device name.
- os
Distro StringName - The Linux distribution name.
- os
Distro StringRevision - The Linux distribution revision.
- os
Version String - The operating system version.
- os
Version StringExtra - Extra version value following the operating system version.
- revoked
At String - When the device was revoked.
- serial
Number String - The device's serial number.
- updated String
- When the device was updated.
- user
Email String - User's email.
- user
Id String - User's ID.
- user
Name String - User's Name.
- version String
- The WARP client version.
- created string
- When the device was created.
- deleted boolean
- Whether the device has been deleted.
- device
Type string - The type of the device.
- id string
- Device ID.
- ip string
- IPv4 or IPv6 address.
- key string
- The device's public key.
- last
Seen string - When the device was last seen.
- mac
Address string - The device's MAC address.
- manufacturer string
- The device manufacturer's name.
- model string
- The device model name.
- name string
- The device name.
- os
Distro stringName - The Linux distribution name.
- os
Distro stringRevision - The Linux distribution revision.
- os
Version string - The operating system version.
- os
Version stringExtra - Extra version value following the operating system version.
- revoked
At string - When the device was revoked.
- serial
Number string - The device's serial number.
- updated string
- When the device was updated.
- user
Email string - User's email.
- user
Id string - User's ID.
- user
Name string - User's Name.
- version string
- The WARP client version.
- created str
- When the device was created.
- deleted bool
- Whether the device has been deleted.
- device_
type str - The type of the device.
- id str
- Device ID.
- ip str
- IPv4 or IPv6 address.
- key str
- The device's public key.
- last_
seen str - When the device was last seen.
- mac_
address str - The device's MAC address.
- manufacturer str
- The device manufacturer's name.
- model str
- The device model name.
- name str
- The device name.
- os_
distro_ strname - The Linux distribution name.
- os_
distro_ strrevision - The Linux distribution revision.
- os_
version str - The operating system version.
- os_
version_ strextra - Extra version value following the operating system version.
- revoked_
at str - When the device was revoked.
- serial_
number str - The device's serial number.
- updated str
- When the device was updated.
- user_
email str - User's email.
- user_
id str - User's ID.
- user_
name str - User's Name.
- version str
- The WARP client version.
- created String
- When the device was created.
- deleted Boolean
- Whether the device has been deleted.
- device
Type String - The type of the device.
- id String
- Device ID.
- ip String
- IPv4 or IPv6 address.
- key String
- The device's public key.
- last
Seen String - When the device was last seen.
- mac
Address String - The device's MAC address.
- manufacturer String
- The device manufacturer's name.
- model String
- The device model name.
- name String
- The device name.
- os
Distro StringName - The Linux distribution name.
- os
Distro StringRevision - The Linux distribution revision.
- os
Version String - The operating system version.
- os
Version StringExtra - Extra version value following the operating system version.
- revoked
At String - When the device was revoked.
- serial
Number String - The device's serial number.
- updated String
- When the device was updated.
- user
Email String - User's email.
- user
Id String - User's ID.
- user
Name String - User's Name.
- version String
- The WARP client version.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.