1. Packages
  2. Okta Provider
  3. API Docs
  4. getDevice
Okta v6.2.0 published on Thursday, Dec 11, 2025 by Pulumi
okta logo
Okta v6.2.0 published on Thursday, Dec 11, 2025 by Pulumi

    Get information about a device in Okta.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as okta from "@pulumi/okta";
    
    const example = okta.getDevice({
        id: "<device_id>",
    });
    
    import pulumi
    import pulumi_okta as okta
    
    example = okta.get_device(id="<device_id>")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-okta/sdk/v6/go/okta"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := okta.LookupDevice(ctx, &okta.LookupDeviceArgs{
    			Id: "<device_id>",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Okta = Pulumi.Okta;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Okta.GetDevice.Invoke(new()
        {
            Id = "<device_id>",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.okta.OktaFunctions;
    import com.pulumi.okta.inputs.GetDeviceArgs;
    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 = OktaFunctions.getDevice(GetDeviceArgs.builder()
                .id("<device_id>")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: okta:getDevice
          arguments:
            id: <device_id>
    

    Using getDevice

    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 getDevice(args: GetDeviceArgs, opts?: InvokeOptions): Promise<GetDeviceResult>
    function getDeviceOutput(args: GetDeviceOutputArgs, opts?: InvokeOptions): Output<GetDeviceResult>
    def get_device(id: Optional[str] = None,
                   profile: Optional[GetDeviceProfile] = None,
                   resource_display_name: Optional[GetDeviceResourceDisplayName] = None,
                   opts: Optional[InvokeOptions] = None) -> GetDeviceResult
    def get_device_output(id: Optional[pulumi.Input[str]] = None,
                   profile: Optional[pulumi.Input[GetDeviceProfileArgs]] = None,
                   resource_display_name: Optional[pulumi.Input[GetDeviceResourceDisplayNameArgs]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetDeviceResult]
    func LookupDevice(ctx *Context, args *LookupDeviceArgs, opts ...InvokeOption) (*LookupDeviceResult, error)
    func LookupDeviceOutput(ctx *Context, args *LookupDeviceOutputArgs, opts ...InvokeOption) LookupDeviceResultOutput

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

    public static class GetDevice 
    {
        public static Task<GetDeviceResult> InvokeAsync(GetDeviceArgs args, InvokeOptions? opts = null)
        public static Output<GetDeviceResult> Invoke(GetDeviceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDeviceResult> getDevice(GetDeviceArgs args, InvokeOptions options)
    public static Output<GetDeviceResult> getDevice(GetDeviceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: okta:index/getDevice:getDevice
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getDevice Result

    The following output properties are available:

    Created string
    The creation timestamp of the device.
    Id string
    The ID of the device.
    LastUpdated string
    The last updated timestamp of the device.
    ResourceAlternateId string
    The alternate ID of the device resource.
    ResourceId string
    Alternate key for the id.
    ResourceType string
    The resource type of the device.
    Status string
    The status of the device.
    Profile GetDeviceProfile
    ResourceDisplayName GetDeviceResourceDisplayName
    Created string
    The creation timestamp of the device.
    Id string
    The ID of the device.
    LastUpdated string
    The last updated timestamp of the device.
    ResourceAlternateId string
    The alternate ID of the device resource.
    ResourceId string
    Alternate key for the id.
    ResourceType string
    The resource type of the device.
    Status string
    The status of the device.
    Profile GetDeviceProfile
    ResourceDisplayName GetDeviceResourceDisplayName
    created String
    The creation timestamp of the device.
    id String
    The ID of the device.
    lastUpdated String
    The last updated timestamp of the device.
    resourceAlternateId String
    The alternate ID of the device resource.
    resourceId String
    Alternate key for the id.
    resourceType String
    The resource type of the device.
    status String
    The status of the device.
    profile GetDeviceProfile
    resourceDisplayName GetDeviceResourceDisplayName
    created string
    The creation timestamp of the device.
    id string
    The ID of the device.
    lastUpdated string
    The last updated timestamp of the device.
    resourceAlternateId string
    The alternate ID of the device resource.
    resourceId string
    Alternate key for the id.
    resourceType string
    The resource type of the device.
    status string
    The status of the device.
    profile GetDeviceProfile
    resourceDisplayName GetDeviceResourceDisplayName
    created str
    The creation timestamp of the device.
    id str
    The ID of the device.
    last_updated str
    The last updated timestamp of the device.
    resource_alternate_id str
    The alternate ID of the device resource.
    resource_id str
    Alternate key for the id.
    resource_type str
    The resource type of the device.
    status str
    The status of the device.
    profile GetDeviceProfile
    resource_display_name GetDeviceResourceDisplayName
    created String
    The creation timestamp of the device.
    id String
    The ID of the device.
    lastUpdated String
    The last updated timestamp of the device.
    resourceAlternateId String
    The alternate ID of the device resource.
    resourceId String
    Alternate key for the id.
    resourceType String
    The resource type of the device.
    status String
    The status of the device.
    profile Property Map
    resourceDisplayName Property Map

    Supporting Types

    GetDeviceProfile

    DiskEncryptionType string
    The disk encryption type of the device.
    DisplayName string
    The display name of the device.
    Imei string
    The International Mobile Equipment Identity (IMEI) of the device.
    IntegrityJailBreak bool
    Indicates if the device is jailbroken or rooted. Only applicable to IOS and ANDROID platforms.
    Manufacturer string
    The manufacturer of the device.
    Meid string
    The Mobile Equipment Identifier (MEID) of the device.
    Model string
    The model of the device.
    OsVersion string
    The OS version of the device.
    Platform string
    The platform of the device.
    Registered bool
    Indicates if the device is registered at Okta.
    SecureHardwarePresent bool
    Indicates if secure hardware is present on the device.
    SerialNumber string
    The serial number of the device.
    Sid string
    The Security Identifier (SID) of the device.
    TpmPublicKeyHash string
    Windows Trusted Platform Module hash value.
    Udid string
    MacOS Unique device identifier of the device.
    DiskEncryptionType string
    The disk encryption type of the device.
    DisplayName string
    The display name of the device.
    Imei string
    The International Mobile Equipment Identity (IMEI) of the device.
    IntegrityJailBreak bool
    Indicates if the device is jailbroken or rooted. Only applicable to IOS and ANDROID platforms.
    Manufacturer string
    The manufacturer of the device.
    Meid string
    The Mobile Equipment Identifier (MEID) of the device.
    Model string
    The model of the device.
    OsVersion string
    The OS version of the device.
    Platform string
    The platform of the device.
    Registered bool
    Indicates if the device is registered at Okta.
    SecureHardwarePresent bool
    Indicates if secure hardware is present on the device.
    SerialNumber string
    The serial number of the device.
    Sid string
    The Security Identifier (SID) of the device.
    TpmPublicKeyHash string
    Windows Trusted Platform Module hash value.
    Udid string
    MacOS Unique device identifier of the device.
    diskEncryptionType String
    The disk encryption type of the device.
    displayName String
    The display name of the device.
    imei String
    The International Mobile Equipment Identity (IMEI) of the device.
    integrityJailBreak Boolean
    Indicates if the device is jailbroken or rooted. Only applicable to IOS and ANDROID platforms.
    manufacturer String
    The manufacturer of the device.
    meid String
    The Mobile Equipment Identifier (MEID) of the device.
    model String
    The model of the device.
    osVersion String
    The OS version of the device.
    platform String
    The platform of the device.
    registered Boolean
    Indicates if the device is registered at Okta.
    secureHardwarePresent Boolean
    Indicates if secure hardware is present on the device.
    serialNumber String
    The serial number of the device.
    sid String
    The Security Identifier (SID) of the device.
    tpmPublicKeyHash String
    Windows Trusted Platform Module hash value.
    udid String
    MacOS Unique device identifier of the device.
    diskEncryptionType string
    The disk encryption type of the device.
    displayName string
    The display name of the device.
    imei string
    The International Mobile Equipment Identity (IMEI) of the device.
    integrityJailBreak boolean
    Indicates if the device is jailbroken or rooted. Only applicable to IOS and ANDROID platforms.
    manufacturer string
    The manufacturer of the device.
    meid string
    The Mobile Equipment Identifier (MEID) of the device.
    model string
    The model of the device.
    osVersion string
    The OS version of the device.
    platform string
    The platform of the device.
    registered boolean
    Indicates if the device is registered at Okta.
    secureHardwarePresent boolean
    Indicates if secure hardware is present on the device.
    serialNumber string
    The serial number of the device.
    sid string
    The Security Identifier (SID) of the device.
    tpmPublicKeyHash string
    Windows Trusted Platform Module hash value.
    udid string
    MacOS Unique device identifier of the device.
    disk_encryption_type str
    The disk encryption type of the device.
    display_name str
    The display name of the device.
    imei str
    The International Mobile Equipment Identity (IMEI) of the device.
    integrity_jail_break bool
    Indicates if the device is jailbroken or rooted. Only applicable to IOS and ANDROID platforms.
    manufacturer str
    The manufacturer of the device.
    meid str
    The Mobile Equipment Identifier (MEID) of the device.
    model str
    The model of the device.
    os_version str
    The OS version of the device.
    platform str
    The platform of the device.
    registered bool
    Indicates if the device is registered at Okta.
    secure_hardware_present bool
    Indicates if secure hardware is present on the device.
    serial_number str
    The serial number of the device.
    sid str
    The Security Identifier (SID) of the device.
    tpm_public_key_hash str
    Windows Trusted Platform Module hash value.
    udid str
    MacOS Unique device identifier of the device.
    diskEncryptionType String
    The disk encryption type of the device.
    displayName String
    The display name of the device.
    imei String
    The International Mobile Equipment Identity (IMEI) of the device.
    integrityJailBreak Boolean
    Indicates if the device is jailbroken or rooted. Only applicable to IOS and ANDROID platforms.
    manufacturer String
    The manufacturer of the device.
    meid String
    The Mobile Equipment Identifier (MEID) of the device.
    model String
    The model of the device.
    osVersion String
    The OS version of the device.
    platform String
    The platform of the device.
    registered Boolean
    Indicates if the device is registered at Okta.
    secureHardwarePresent Boolean
    Indicates if secure hardware is present on the device.
    serialNumber String
    The serial number of the device.
    sid String
    The Security Identifier (SID) of the device.
    tpmPublicKeyHash String
    Windows Trusted Platform Module hash value.
    udid String
    MacOS Unique device identifier of the device.

    GetDeviceResourceDisplayName

    Sensitive bool
    Indicates if the resource display name is sensitive.
    Value string
    The value of the resource display name.
    Sensitive bool
    Indicates if the resource display name is sensitive.
    Value string
    The value of the resource display name.
    sensitive Boolean
    Indicates if the resource display name is sensitive.
    value String
    The value of the resource display name.
    sensitive boolean
    Indicates if the resource display name is sensitive.
    value string
    The value of the resource display name.
    sensitive bool
    Indicates if the resource display name is sensitive.
    value str
    The value of the resource display name.
    sensitive Boolean
    Indicates if the resource display name is sensitive.
    value String
    The value of the resource display name.

    Package Details

    Repository
    Okta pulumi/pulumi-okta
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the okta Terraform Provider.
    okta logo
    Okta v6.2.0 published on Thursday, Dec 11, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate