1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getDevices
Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 by Pulumi

cloudflare.getDevices

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 by Pulumi

    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:

    AccountId string
    The account identifier to target for the resource.
    AccountId string
    The account identifier to target for the resource.
    accountId String
    The account identifier to target for the resource.
    accountId string
    The account identifier to target for the resource.
    account_id str
    The account identifier to target for the resource.
    accountId String
    The account identifier to target for the resource.

    getDevices Result

    The following output properties are available:

    AccountId string
    The account identifier to target for the resource.
    Devices List<GetDevicesDevice>
    Id string
    The provider-assigned unique ID for this managed resource.
    AccountId string
    The account identifier to target for the resource.
    Devices []GetDevicesDevice
    Id string
    The provider-assigned unique ID for this managed resource.
    accountId String
    The account identifier to target for the resource.
    devices List<GetDevicesDevice>
    id String
    The provider-assigned unique ID for this managed resource.
    accountId string
    The account identifier to target for the resource.
    devices GetDevicesDevice[]
    id string
    The provider-assigned unique ID for this managed resource.
    account_id str
    The account identifier to target for the resource.
    devices Sequence[GetDevicesDevice]
    id str
    The provider-assigned unique ID for this managed resource.
    accountId 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.
    DeviceType string
    The type of the device.
    Id string
    Device ID.
    Ip string
    IPv4 or IPv6 address.
    Key string
    The device's public key.
    LastSeen string
    When the device was last seen.
    MacAddress string
    The device's MAC address.
    Manufacturer string
    The device manufacturer's name.
    Model string
    The device model name.
    Name string
    The device name.
    OsDistroName string
    The Linux distribution name.
    OsDistroRevision string
    The Linux distribution revision.
    OsVersion string
    The operating system version.
    OsVersionExtra string
    Extra version value following the operating system version.
    RevokedAt string
    When the device was revoked.
    SerialNumber string
    The device's serial number.
    Updated string
    When the device was updated.
    UserEmail string
    User's email.
    UserId string
    User's ID.
    UserName 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.
    DeviceType string
    The type of the device.
    Id string
    Device ID.
    Ip string
    IPv4 or IPv6 address.
    Key string
    The device's public key.
    LastSeen string
    When the device was last seen.
    MacAddress string
    The device's MAC address.
    Manufacturer string
    The device manufacturer's name.
    Model string
    The device model name.
    Name string
    The device name.
    OsDistroName string
    The Linux distribution name.
    OsDistroRevision string
    The Linux distribution revision.
    OsVersion string
    The operating system version.
    OsVersionExtra string
    Extra version value following the operating system version.
    RevokedAt string
    When the device was revoked.
    SerialNumber string
    The device's serial number.
    Updated string
    When the device was updated.
    UserEmail string
    User's email.
    UserId string
    User's ID.
    UserName 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.
    deviceType String
    The type of the device.
    id String
    Device ID.
    ip String
    IPv4 or IPv6 address.
    key String
    The device's public key.
    lastSeen String
    When the device was last seen.
    macAddress String
    The device's MAC address.
    manufacturer String
    The device manufacturer's name.
    model String
    The device model name.
    name String
    The device name.
    osDistroName String
    The Linux distribution name.
    osDistroRevision String
    The Linux distribution revision.
    osVersion String
    The operating system version.
    osVersionExtra String
    Extra version value following the operating system version.
    revokedAt String
    When the device was revoked.
    serialNumber String
    The device's serial number.
    updated String
    When the device was updated.
    userEmail String
    User's email.
    userId String
    User's ID.
    userName 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.
    deviceType string
    The type of the device.
    id string
    Device ID.
    ip string
    IPv4 or IPv6 address.
    key string
    The device's public key.
    lastSeen string
    When the device was last seen.
    macAddress string
    The device's MAC address.
    manufacturer string
    The device manufacturer's name.
    model string
    The device model name.
    name string
    The device name.
    osDistroName string
    The Linux distribution name.
    osDistroRevision string
    The Linux distribution revision.
    osVersion string
    The operating system version.
    osVersionExtra string
    Extra version value following the operating system version.
    revokedAt string
    When the device was revoked.
    serialNumber string
    The device's serial number.
    updated string
    When the device was updated.
    userEmail string
    User's email.
    userId string
    User's ID.
    userName 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_name str
    The Linux distribution name.
    os_distro_revision str
    The Linux distribution revision.
    os_version str
    The operating system version.
    os_version_extra str
    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.
    deviceType String
    The type of the device.
    id String
    Device ID.
    ip String
    IPv4 or IPv6 address.
    key String
    The device's public key.
    lastSeen String
    When the device was last seen.
    macAddress String
    The device's MAC address.
    manufacturer String
    The device manufacturer's name.
    model String
    The device model name.
    name String
    The device name.
    osDistroName String
    The Linux distribution name.
    osDistroRevision String
    The Linux distribution revision.
    osVersion String
    The operating system version.
    osVersionExtra String
    Extra version value following the operating system version.
    revokedAt String
    When the device was revoked.
    serialNumber String
    The device's serial number.
    updated String
    When the device was updated.
    userEmail String
    User's email.
    userId String
    User's ID.
    userName 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.
    cloudflare logo
    Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 by Pulumi