Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.cloudidentity/v1.getDevice
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Retrieves the specified device.
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(customer: Optional[str] = None,
               device_id: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetDeviceResult
def get_device_output(customer: Optional[pulumi.Input[str]] = None,
               device_id: Optional[pulumi.Input[str]] = 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: google-native:cloudidentity/v1:getDevice
  arguments:
    # arguments dictionaryThe following arguments are supported:
getDevice Result
The following output properties are available:
- AndroidSpecific Pulumi.Attributes Google Native. Cloud Identity. V1. Outputs. Google Apps Cloudidentity Devices V1Android Attributes Response 
- Attributes specific to Android devices.
- AssetTag string
- Asset tag of the device.
- BasebandVersion string
- Baseband version of the device.
- BootloaderVersion string
- Device bootloader version. Example: 0.6.7.
- Brand string
- Device brand. Example: Samsung.
- BuildNumber string
- Build number of the device.
- CompromisedState string
- Represents whether the Device is compromised.
- CreateTime string
- When the Company-Owned device was imported. This field is empty for BYOD devices.
- DeviceId string
- Unique identifier for the device.
- DeviceType string
- Type of device.
- EnabledDeveloper boolOptions 
- Whether developer options is enabled on device.
- EnabledUsb boolDebugging 
- Whether USB debugging is enabled on device.
- EncryptionState string
- Device encryption state.
- Hostname string
- Host name of the device.
- Imei string
- IMEI number of device if GSM device; empty otherwise.
- KernelVersion string
- Kernel version of the device.
- LastSync stringTime 
- Most recent time when device synced with this service.
- ManagementState string
- Management state of the device
- Manufacturer string
- Device manufacturer. Example: Motorola.
- Meid string
- MEID number of device if CDMA device; empty otherwise.
- Model string
- Model name of device. Example: Pixel 3.
- Name string
- Resource name of the Device in format: devices/{device}, where device is the unique id assigned to the Device.
- NetworkOperator string
- Mobile or network operator of device, if available.
- OsVersion string
- OS version of the device. Example: Android 8.1.0.
- OtherAccounts List<string>
- Domain name for Google accounts on device. Type for other accounts on device. On Android, will only be populated if |ownership_privilege| is |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in to the device policy app if that account's domain has only one account. Examples: "com.example", "xyz.com".
- OwnerType string
- Whether the device is owned by the company or an individual
- ReleaseVersion string
- OS release version. Example: 6.0.
- SecurityPatch stringTime 
- OS security patch update time on device.
- SerialNumber string
- Serial Number of device. Example: HT82V1A01076.
- WifiMac List<string>Addresses 
- WiFi MAC addresses of device.
- AndroidSpecific GoogleAttributes Apps Cloudidentity Devices V1Android Attributes Response 
- Attributes specific to Android devices.
- AssetTag string
- Asset tag of the device.
- BasebandVersion string
- Baseband version of the device.
- BootloaderVersion string
- Device bootloader version. Example: 0.6.7.
- Brand string
- Device brand. Example: Samsung.
- BuildNumber string
- Build number of the device.
- CompromisedState string
- Represents whether the Device is compromised.
- CreateTime string
- When the Company-Owned device was imported. This field is empty for BYOD devices.
- DeviceId string
- Unique identifier for the device.
- DeviceType string
- Type of device.
- EnabledDeveloper boolOptions 
- Whether developer options is enabled on device.
- EnabledUsb boolDebugging 
- Whether USB debugging is enabled on device.
- EncryptionState string
- Device encryption state.
- Hostname string
- Host name of the device.
- Imei string
- IMEI number of device if GSM device; empty otherwise.
- KernelVersion string
- Kernel version of the device.
- LastSync stringTime 
- Most recent time when device synced with this service.
- ManagementState string
- Management state of the device
- Manufacturer string
- Device manufacturer. Example: Motorola.
- Meid string
- MEID number of device if CDMA device; empty otherwise.
- Model string
- Model name of device. Example: Pixel 3.
- Name string
- Resource name of the Device in format: devices/{device}, where device is the unique id assigned to the Device.
- NetworkOperator string
- Mobile or network operator of device, if available.
- OsVersion string
- OS version of the device. Example: Android 8.1.0.
- OtherAccounts []string
- Domain name for Google accounts on device. Type for other accounts on device. On Android, will only be populated if |ownership_privilege| is |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in to the device policy app if that account's domain has only one account. Examples: "com.example", "xyz.com".
- OwnerType string
- Whether the device is owned by the company or an individual
- ReleaseVersion string
- OS release version. Example: 6.0.
- SecurityPatch stringTime 
- OS security patch update time on device.
- SerialNumber string
- Serial Number of device. Example: HT82V1A01076.
- WifiMac []stringAddresses 
- WiFi MAC addresses of device.
- androidSpecific GoogleAttributes Apps Cloudidentity Devices V1Android Attributes Response 
- Attributes specific to Android devices.
- assetTag String
- Asset tag of the device.
- basebandVersion String
- Baseband version of the device.
- bootloaderVersion String
- Device bootloader version. Example: 0.6.7.
- brand String
- Device brand. Example: Samsung.
- buildNumber String
- Build number of the device.
- compromisedState String
- Represents whether the Device is compromised.
- createTime String
- When the Company-Owned device was imported. This field is empty for BYOD devices.
- deviceId String
- Unique identifier for the device.
- deviceType String
- Type of device.
- enabledDeveloper BooleanOptions 
- Whether developer options is enabled on device.
- enabledUsb BooleanDebugging 
- Whether USB debugging is enabled on device.
- encryptionState String
- Device encryption state.
- hostname String
- Host name of the device.
- imei String
- IMEI number of device if GSM device; empty otherwise.
- kernelVersion String
- Kernel version of the device.
- lastSync StringTime 
- Most recent time when device synced with this service.
- managementState String
- Management state of the device
- manufacturer String
- Device manufacturer. Example: Motorola.
- meid String
- MEID number of device if CDMA device; empty otherwise.
- model String
- Model name of device. Example: Pixel 3.
- name String
- Resource name of the Device in format: devices/{device}, where device is the unique id assigned to the Device.
- networkOperator String
- Mobile or network operator of device, if available.
- osVersion String
- OS version of the device. Example: Android 8.1.0.
- otherAccounts List<String>
- Domain name for Google accounts on device. Type for other accounts on device. On Android, will only be populated if |ownership_privilege| is |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in to the device policy app if that account's domain has only one account. Examples: "com.example", "xyz.com".
- ownerType String
- Whether the device is owned by the company or an individual
- releaseVersion String
- OS release version. Example: 6.0.
- securityPatch StringTime 
- OS security patch update time on device.
- serialNumber String
- Serial Number of device. Example: HT82V1A01076.
- wifiMac List<String>Addresses 
- WiFi MAC addresses of device.
- androidSpecific GoogleAttributes Apps Cloudidentity Devices V1Android Attributes Response 
- Attributes specific to Android devices.
- assetTag string
- Asset tag of the device.
- basebandVersion string
- Baseband version of the device.
- bootloaderVersion string
- Device bootloader version. Example: 0.6.7.
- brand string
- Device brand. Example: Samsung.
- buildNumber string
- Build number of the device.
- compromisedState string
- Represents whether the Device is compromised.
- createTime string
- When the Company-Owned device was imported. This field is empty for BYOD devices.
- deviceId string
- Unique identifier for the device.
- deviceType string
- Type of device.
- enabledDeveloper booleanOptions 
- Whether developer options is enabled on device.
- enabledUsb booleanDebugging 
- Whether USB debugging is enabled on device.
- encryptionState string
- Device encryption state.
- hostname string
- Host name of the device.
- imei string
- IMEI number of device if GSM device; empty otherwise.
- kernelVersion string
- Kernel version of the device.
- lastSync stringTime 
- Most recent time when device synced with this service.
- managementState string
- Management state of the device
- manufacturer string
- Device manufacturer. Example: Motorola.
- meid string
- MEID number of device if CDMA device; empty otherwise.
- model string
- Model name of device. Example: Pixel 3.
- name string
- Resource name of the Device in format: devices/{device}, where device is the unique id assigned to the Device.
- networkOperator string
- Mobile or network operator of device, if available.
- osVersion string
- OS version of the device. Example: Android 8.1.0.
- otherAccounts string[]
- Domain name for Google accounts on device. Type for other accounts on device. On Android, will only be populated if |ownership_privilege| is |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in to the device policy app if that account's domain has only one account. Examples: "com.example", "xyz.com".
- ownerType string
- Whether the device is owned by the company or an individual
- releaseVersion string
- OS release version. Example: 6.0.
- securityPatch stringTime 
- OS security patch update time on device.
- serialNumber string
- Serial Number of device. Example: HT82V1A01076.
- wifiMac string[]Addresses 
- WiFi MAC addresses of device.
- android_specific_ Googleattributes Apps Cloudidentity Devices V1Android Attributes Response 
- Attributes specific to Android devices.
- asset_tag str
- Asset tag of the device.
- baseband_version str
- Baseband version of the device.
- bootloader_version str
- Device bootloader version. Example: 0.6.7.
- brand str
- Device brand. Example: Samsung.
- build_number str
- Build number of the device.
- compromised_state str
- Represents whether the Device is compromised.
- create_time str
- When the Company-Owned device was imported. This field is empty for BYOD devices.
- device_id str
- Unique identifier for the device.
- device_type str
- Type of device.
- enabled_developer_ booloptions 
- Whether developer options is enabled on device.
- enabled_usb_ booldebugging 
- Whether USB debugging is enabled on device.
- encryption_state str
- Device encryption state.
- hostname str
- Host name of the device.
- imei str
- IMEI number of device if GSM device; empty otherwise.
- kernel_version str
- Kernel version of the device.
- last_sync_ strtime 
- Most recent time when device synced with this service.
- management_state str
- Management state of the device
- manufacturer str
- Device manufacturer. Example: Motorola.
- meid str
- MEID number of device if CDMA device; empty otherwise.
- model str
- Model name of device. Example: Pixel 3.
- name str
- Resource name of the Device in format: devices/{device}, where device is the unique id assigned to the Device.
- network_operator str
- Mobile or network operator of device, if available.
- os_version str
- OS version of the device. Example: Android 8.1.0.
- other_accounts Sequence[str]
- Domain name for Google accounts on device. Type for other accounts on device. On Android, will only be populated if |ownership_privilege| is |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in to the device policy app if that account's domain has only one account. Examples: "com.example", "xyz.com".
- owner_type str
- Whether the device is owned by the company or an individual
- release_version str
- OS release version. Example: 6.0.
- security_patch_ strtime 
- OS security patch update time on device.
- serial_number str
- Serial Number of device. Example: HT82V1A01076.
- wifi_mac_ Sequence[str]addresses 
- WiFi MAC addresses of device.
- androidSpecific Property MapAttributes 
- Attributes specific to Android devices.
- assetTag String
- Asset tag of the device.
- basebandVersion String
- Baseband version of the device.
- bootloaderVersion String
- Device bootloader version. Example: 0.6.7.
- brand String
- Device brand. Example: Samsung.
- buildNumber String
- Build number of the device.
- compromisedState String
- Represents whether the Device is compromised.
- createTime String
- When the Company-Owned device was imported. This field is empty for BYOD devices.
- deviceId String
- Unique identifier for the device.
- deviceType String
- Type of device.
- enabledDeveloper BooleanOptions 
- Whether developer options is enabled on device.
- enabledUsb BooleanDebugging 
- Whether USB debugging is enabled on device.
- encryptionState String
- Device encryption state.
- hostname String
- Host name of the device.
- imei String
- IMEI number of device if GSM device; empty otherwise.
- kernelVersion String
- Kernel version of the device.
- lastSync StringTime 
- Most recent time when device synced with this service.
- managementState String
- Management state of the device
- manufacturer String
- Device manufacturer. Example: Motorola.
- meid String
- MEID number of device if CDMA device; empty otherwise.
- model String
- Model name of device. Example: Pixel 3.
- name String
- Resource name of the Device in format: devices/{device}, where device is the unique id assigned to the Device.
- networkOperator String
- Mobile or network operator of device, if available.
- osVersion String
- OS version of the device. Example: Android 8.1.0.
- otherAccounts List<String>
- Domain name for Google accounts on device. Type for other accounts on device. On Android, will only be populated if |ownership_privilege| is |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in to the device policy app if that account's domain has only one account. Examples: "com.example", "xyz.com".
- ownerType String
- Whether the device is owned by the company or an individual
- releaseVersion String
- OS release version. Example: 6.0.
- securityPatch StringTime 
- OS security patch update time on device.
- serialNumber String
- Serial Number of device. Example: HT82V1A01076.
- wifiMac List<String>Addresses 
- WiFi MAC addresses of device.
Supporting Types
GoogleAppsCloudidentityDevicesV1AndroidAttributesResponse      
- CtsProfile boolMatch 
- Whether the device passes Android CTS compliance.
- EnabledUnknown boolSources 
- Whether applications from unknown sources can be installed on device.
- HasPotentially boolHarmful Apps 
- Whether any potentially harmful apps were detected on the device.
- OwnerProfile boolAccount 
- Whether this account is on an owner/primary profile. For phones, only true for owner profiles. Android 4+ devices can have secondary or restricted user profiles.
- OwnershipPrivilege string
- Ownership privileges on device.
- SupportsWork boolProfile 
- Whether device supports Android work profiles. If false, this service will not block access to corp data even if an administrator turns on the "Enforce Work Profile" policy.
- VerifiedBoot bool
- Whether Android verified boot status is GREEN.
- VerifyApps boolEnabled 
- Whether Google Play Protect Verify Apps is enabled.
- CtsProfile boolMatch 
- Whether the device passes Android CTS compliance.
- EnabledUnknown boolSources 
- Whether applications from unknown sources can be installed on device.
- HasPotentially boolHarmful Apps 
- Whether any potentially harmful apps were detected on the device.
- OwnerProfile boolAccount 
- Whether this account is on an owner/primary profile. For phones, only true for owner profiles. Android 4+ devices can have secondary or restricted user profiles.
- OwnershipPrivilege string
- Ownership privileges on device.
- SupportsWork boolProfile 
- Whether device supports Android work profiles. If false, this service will not block access to corp data even if an administrator turns on the "Enforce Work Profile" policy.
- VerifiedBoot bool
- Whether Android verified boot status is GREEN.
- VerifyApps boolEnabled 
- Whether Google Play Protect Verify Apps is enabled.
- ctsProfile BooleanMatch 
- Whether the device passes Android CTS compliance.
- enabledUnknown BooleanSources 
- Whether applications from unknown sources can be installed on device.
- hasPotentially BooleanHarmful Apps 
- Whether any potentially harmful apps were detected on the device.
- ownerProfile BooleanAccount 
- Whether this account is on an owner/primary profile. For phones, only true for owner profiles. Android 4+ devices can have secondary or restricted user profiles.
- ownershipPrivilege String
- Ownership privileges on device.
- supportsWork BooleanProfile 
- Whether device supports Android work profiles. If false, this service will not block access to corp data even if an administrator turns on the "Enforce Work Profile" policy.
- verifiedBoot Boolean
- Whether Android verified boot status is GREEN.
- verifyApps BooleanEnabled 
- Whether Google Play Protect Verify Apps is enabled.
- ctsProfile booleanMatch 
- Whether the device passes Android CTS compliance.
- enabledUnknown booleanSources 
- Whether applications from unknown sources can be installed on device.
- hasPotentially booleanHarmful Apps 
- Whether any potentially harmful apps were detected on the device.
- ownerProfile booleanAccount 
- Whether this account is on an owner/primary profile. For phones, only true for owner profiles. Android 4+ devices can have secondary or restricted user profiles.
- ownershipPrivilege string
- Ownership privileges on device.
- supportsWork booleanProfile 
- Whether device supports Android work profiles. If false, this service will not block access to corp data even if an administrator turns on the "Enforce Work Profile" policy.
- verifiedBoot boolean
- Whether Android verified boot status is GREEN.
- verifyApps booleanEnabled 
- Whether Google Play Protect Verify Apps is enabled.
- cts_profile_ boolmatch 
- Whether the device passes Android CTS compliance.
- enabled_unknown_ boolsources 
- Whether applications from unknown sources can be installed on device.
- has_potentially_ boolharmful_ apps 
- Whether any potentially harmful apps were detected on the device.
- owner_profile_ boolaccount 
- Whether this account is on an owner/primary profile. For phones, only true for owner profiles. Android 4+ devices can have secondary or restricted user profiles.
- ownership_privilege str
- Ownership privileges on device.
- supports_work_ boolprofile 
- Whether device supports Android work profiles. If false, this service will not block access to corp data even if an administrator turns on the "Enforce Work Profile" policy.
- verified_boot bool
- Whether Android verified boot status is GREEN.
- verify_apps_ boolenabled 
- Whether Google Play Protect Verify Apps is enabled.
- ctsProfile BooleanMatch 
- Whether the device passes Android CTS compliance.
- enabledUnknown BooleanSources 
- Whether applications from unknown sources can be installed on device.
- hasPotentially BooleanHarmful Apps 
- Whether any potentially harmful apps were detected on the device.
- ownerProfile BooleanAccount 
- Whether this account is on an owner/primary profile. For phones, only true for owner profiles. Android 4+ devices can have secondary or restricted user profiles.
- ownershipPrivilege String
- Ownership privileges on device.
- supportsWork BooleanProfile 
- Whether device supports Android work profiles. If false, this service will not block access to corp data even if an administrator turns on the "Enforce Work Profile" policy.
- verifiedBoot Boolean
- Whether Android verified boot status is GREEN.
- verifyApps BooleanEnabled 
- Whether Google Play Protect Verify Apps is enabled.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi