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 dictionaryThe following arguments are supported:
- Id string
- The ID of the device.
- Profile
Get
Device Profile - Resource
Display GetName Device Resource Display Name
- Id string
- The ID of the device.
- Profile
Get
Device Profile - Resource
Display GetName Device Resource Display Name
- id String
- The ID of the device.
- profile
Get
Device Profile - resource
Display GetName Device Resource Display Name
- id string
- The ID of the device.
- profile
Get
Device Profile - resource
Display GetName Device Resource Display Name
- id str
- The ID of the device.
- profile
Get
Device Profile - resource_
display_ Getname Device Resource Display Name
- id String
- The ID of the device.
- profile Property Map
- resource
Display Property MapName
getDevice Result
The following output properties are available:
- Created string
- The creation timestamp of the device.
- Id string
- The ID of the device.
- Last
Updated string - The last updated timestamp of the device.
- Resource
Alternate stringId - The alternate ID of the device resource.
- Resource
Id string - Alternate key for the id.
- Resource
Type string - The resource type of the device.
- Status string
- The status of the device.
- Profile
Get
Device Profile - Resource
Display GetName Device Resource Display Name
- Created string
- The creation timestamp of the device.
- Id string
- The ID of the device.
- Last
Updated string - The last updated timestamp of the device.
- Resource
Alternate stringId - The alternate ID of the device resource.
- Resource
Id string - Alternate key for the id.
- Resource
Type string - The resource type of the device.
- Status string
- The status of the device.
- Profile
Get
Device Profile - Resource
Display GetName Device Resource Display Name
- created String
- The creation timestamp of the device.
- id String
- The ID of the device.
- last
Updated String - The last updated timestamp of the device.
- resource
Alternate StringId - The alternate ID of the device resource.
- resource
Id String - Alternate key for the id.
- resource
Type String - The resource type of the device.
- status String
- The status of the device.
- profile
Get
Device Profile - resource
Display GetName Device Resource Display Name
- created string
- The creation timestamp of the device.
- id string
- The ID of the device.
- last
Updated string - The last updated timestamp of the device.
- resource
Alternate stringId - The alternate ID of the device resource.
- resource
Id string - Alternate key for the id.
- resource
Type string - The resource type of the device.
- status string
- The status of the device.
- profile
Get
Device Profile - resource
Display GetName Device Resource Display Name
- 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_ strid - 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
Get
Device Profile - resource_
display_ Getname Device Resource Display Name
- created String
- The creation timestamp of the device.
- id String
- The ID of the device.
- last
Updated String - The last updated timestamp of the device.
- resource
Alternate StringId - The alternate ID of the device resource.
- resource
Id String - Alternate key for the id.
- resource
Type String - The resource type of the device.
- status String
- The status of the device.
- profile Property Map
- resource
Display Property MapName
Supporting Types
GetDeviceProfile
- Disk
Encryption stringType - The disk encryption type of the device.
- Display
Name string - The display name of the device.
- Imei string
- The International Mobile Equipment Identity (IMEI) of the device.
- Integrity
Jail boolBreak - 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.
- Os
Version string - The OS version of the device.
- Platform string
- The platform of the device.
- Registered bool
- Indicates if the device is registered at Okta.
- Secure
Hardware boolPresent - Indicates if secure hardware is present on the device.
- Serial
Number string - The serial number of the device.
- Sid string
- The Security Identifier (SID) of the device.
- Tpm
Public stringKey Hash - Windows Trusted Platform Module hash value.
- Udid string
- MacOS Unique device identifier of the device.
- Disk
Encryption stringType - The disk encryption type of the device.
- Display
Name string - The display name of the device.
- Imei string
- The International Mobile Equipment Identity (IMEI) of the device.
- Integrity
Jail boolBreak - 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.
- Os
Version string - The OS version of the device.
- Platform string
- The platform of the device.
- Registered bool
- Indicates if the device is registered at Okta.
- Secure
Hardware boolPresent - Indicates if secure hardware is present on the device.
- Serial
Number string - The serial number of the device.
- Sid string
- The Security Identifier (SID) of the device.
- Tpm
Public stringKey Hash - Windows Trusted Platform Module hash value.
- Udid string
- MacOS Unique device identifier of the device.
- disk
Encryption StringType - The disk encryption type of the device.
- display
Name String - The display name of the device.
- imei String
- The International Mobile Equipment Identity (IMEI) of the device.
- integrity
Jail BooleanBreak - 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.
- os
Version String - The OS version of the device.
- platform String
- The platform of the device.
- registered Boolean
- Indicates if the device is registered at Okta.
- secure
Hardware BooleanPresent - Indicates if secure hardware is present on the device.
- serial
Number String - The serial number of the device.
- sid String
- The Security Identifier (SID) of the device.
- tpm
Public StringKey Hash - Windows Trusted Platform Module hash value.
- udid String
- MacOS Unique device identifier of the device.
- disk
Encryption stringType - The disk encryption type of the device.
- display
Name string - The display name of the device.
- imei string
- The International Mobile Equipment Identity (IMEI) of the device.
- integrity
Jail booleanBreak - 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.
- os
Version string - The OS version of the device.
- platform string
- The platform of the device.
- registered boolean
- Indicates if the device is registered at Okta.
- secure
Hardware booleanPresent - Indicates if secure hardware is present on the device.
- serial
Number string - The serial number of the device.
- sid string
- The Security Identifier (SID) of the device.
- tpm
Public stringKey Hash - Windows Trusted Platform Module hash value.
- udid string
- MacOS Unique device identifier of the device.
- disk_
encryption_ strtype - 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_ boolbreak - 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_ boolpresent - 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_ strkey_ hash - Windows Trusted Platform Module hash value.
- udid str
- MacOS Unique device identifier of the device.
- disk
Encryption StringType - The disk encryption type of the device.
- display
Name String - The display name of the device.
- imei String
- The International Mobile Equipment Identity (IMEI) of the device.
- integrity
Jail BooleanBreak - 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.
- os
Version String - The OS version of the device.
- platform String
- The platform of the device.
- registered Boolean
- Indicates if the device is registered at Okta.
- secure
Hardware BooleanPresent - Indicates if secure hardware is present on the device.
- serial
Number String - The serial number of the device.
- sid String
- The Security Identifier (SID) of the device.
- tpm
Public StringKey Hash - Windows Trusted Platform Module hash value.
- udid String
- MacOS Unique device identifier of the device.
GetDeviceResourceDisplayName
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oktaTerraform Provider.
