Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.cloudidentity/v1.Device
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a device. Only company-owned device may be created. Note: This method is available only to customers who have one of the following SKUs: Enterprise Standard, Enterprise Plus, Enterprise for Education, and Cloud Identity Premium Auto-naming is currently not supported for this resource.
Create Device Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Device(name: string, args?: DeviceArgs, opts?: CustomResourceOptions);
@overload
def Device(resource_name: str,
args: Optional[DeviceArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Device(resource_name: str,
opts: Optional[ResourceOptions] = None,
asset_tag: Optional[str] = None,
customer: Optional[str] = None,
device_id: Optional[str] = None,
hostname: Optional[str] = None,
last_sync_time: Optional[str] = None,
serial_number: Optional[str] = None,
wifi_mac_addresses: Optional[Sequence[str]] = None)
func NewDevice(ctx *Context, name string, args *DeviceArgs, opts ...ResourceOption) (*Device, error)
public Device(string name, DeviceArgs? args = null, CustomResourceOptions? opts = null)
public Device(String name, DeviceArgs args)
public Device(String name, DeviceArgs args, CustomResourceOptions options)
type: google-native:cloudidentity/v1:Device
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DeviceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DeviceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DeviceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeviceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DeviceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var deviceResource = new GoogleNative.CloudIdentity.V1.Device("deviceResource", new()
{
AssetTag = "string",
Customer = "string",
DeviceId = "string",
Hostname = "string",
LastSyncTime = "string",
SerialNumber = "string",
WifiMacAddresses = new[]
{
"string",
},
});
example, err := cloudidentity.NewDevice(ctx, "deviceResource", &cloudidentity.DeviceArgs{
AssetTag: pulumi.String("string"),
Customer: pulumi.String("string"),
DeviceId: pulumi.String("string"),
Hostname: pulumi.String("string"),
LastSyncTime: pulumi.String("string"),
SerialNumber: pulumi.String("string"),
WifiMacAddresses: pulumi.StringArray{
pulumi.String("string"),
},
})
var deviceResource = new Device("deviceResource", DeviceArgs.builder()
.assetTag("string")
.customer("string")
.deviceId("string")
.hostname("string")
.lastSyncTime("string")
.serialNumber("string")
.wifiMacAddresses("string")
.build());
device_resource = google_native.cloudidentity.v1.Device("deviceResource",
asset_tag="string",
customer="string",
device_id="string",
hostname="string",
last_sync_time="string",
serial_number="string",
wifi_mac_addresses=["string"])
const deviceResource = new google_native.cloudidentity.v1.Device("deviceResource", {
assetTag: "string",
customer: "string",
deviceId: "string",
hostname: "string",
lastSyncTime: "string",
serialNumber: "string",
wifiMacAddresses: ["string"],
});
type: google-native:cloudidentity/v1:Device
properties:
assetTag: string
customer: string
deviceId: string
hostname: string
lastSyncTime: string
serialNumber: string
wifiMacAddresses:
- string
Device Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Device resource accepts the following input properties:
- Asset
Tag string - Asset tag of the device.
- Customer string
- Optional. Resource name of the customer. If you're using this API for your own organization, use
customers/my_customer
If you're using this API to manage another organization, usecustomers/{customer}
, where customer is the customer to whom the device belongs. - Device
Id string - Unique identifier for the device.
- Hostname string
- Host name of the device.
- Last
Sync stringTime - Most recent time when device synced with this service.
- Serial
Number string - Serial Number of device. Example: HT82V1A01076.
- Wifi
Mac List<string>Addresses - WiFi MAC addresses of device.
- Asset
Tag string - Asset tag of the device.
- Customer string
- Optional. Resource name of the customer. If you're using this API for your own organization, use
customers/my_customer
If you're using this API to manage another organization, usecustomers/{customer}
, where customer is the customer to whom the device belongs. - Device
Id string - Unique identifier for the device.
- Hostname string
- Host name of the device.
- Last
Sync stringTime - Most recent time when device synced with this service.
- Serial
Number string - Serial Number of device. Example: HT82V1A01076.
- Wifi
Mac []stringAddresses - WiFi MAC addresses of device.
- asset
Tag String - Asset tag of the device.
- customer String
- Optional. Resource name of the customer. If you're using this API for your own organization, use
customers/my_customer
If you're using this API to manage another organization, usecustomers/{customer}
, where customer is the customer to whom the device belongs. - device
Id String - Unique identifier for the device.
- hostname String
- Host name of the device.
- last
Sync StringTime - Most recent time when device synced with this service.
- serial
Number String - Serial Number of device. Example: HT82V1A01076.
- wifi
Mac List<String>Addresses - WiFi MAC addresses of device.
- asset
Tag string - Asset tag of the device.
- customer string
- Optional. Resource name of the customer. If you're using this API for your own organization, use
customers/my_customer
If you're using this API to manage another organization, usecustomers/{customer}
, where customer is the customer to whom the device belongs. - device
Id string - Unique identifier for the device.
- hostname string
- Host name of the device.
- last
Sync stringTime - Most recent time when device synced with this service.
- serial
Number string - Serial Number of device. Example: HT82V1A01076.
- wifi
Mac string[]Addresses - WiFi MAC addresses of device.
- asset_
tag str - Asset tag of the device.
- customer str
- Optional. Resource name of the customer. If you're using this API for your own organization, use
customers/my_customer
If you're using this API to manage another organization, usecustomers/{customer}
, where customer is the customer to whom the device belongs. - device_
id str - Unique identifier for the device.
- hostname str
- Host name of the device.
- last_
sync_ strtime - Most recent time when device synced with this service.
- serial_
number str - Serial Number of device. Example: HT82V1A01076.
- wifi_
mac_ Sequence[str]addresses - WiFi MAC addresses of device.
- asset
Tag String - Asset tag of the device.
- customer String
- Optional. Resource name of the customer. If you're using this API for your own organization, use
customers/my_customer
If you're using this API to manage another organization, usecustomers/{customer}
, where customer is the customer to whom the device belongs. - device
Id String - Unique identifier for the device.
- hostname String
- Host name of the device.
- last
Sync StringTime - Most recent time when device synced with this service.
- serial
Number String - Serial Number of device. Example: HT82V1A01076.
- wifi
Mac List<String>Addresses - WiFi MAC addresses of device.
Outputs
All input properties are implicitly available as output properties. Additionally, the Device resource produces the following output properties:
- Android
Specific Pulumi.Attributes Google Native. Cloud Identity. V1. Outputs. Google Apps Cloudidentity Devices V1Android Attributes Response - Attributes specific to Android devices.
- Baseband
Version string - Baseband version of the device.
- Bootloader
Version string - Device bootloader version. Example: 0.6.7.
- Brand string
- Device brand. Example: Samsung.
- Build
Number string - Build number of the device.
- Compromised
State string - Represents whether the Device is compromised.
- Create
Time string - When the Company-Owned device was imported. This field is empty for BYOD devices.
- Device
Type string - 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 string - Device encryption state.
- Id string
- The provider-assigned unique ID for this managed resource.
- Imei string
- IMEI number of device if GSM device; empty otherwise.
- Kernel
Version string - Kernel version of the device.
- Management
State 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. - Network
Operator string - Mobile or network operator of device, if available.
- Os
Version string - OS version of the device. Example: Android 8.1.0.
- Other
Accounts 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".
- Owner
Type string - Whether the device is owned by the company or an individual
- Release
Version string - OS release version. Example: 6.0.
- Security
Patch stringTime - OS security patch update time on device.
- Android
Specific GoogleAttributes Apps Cloudidentity Devices V1Android Attributes Response - Attributes specific to Android devices.
- Baseband
Version string - Baseband version of the device.
- Bootloader
Version string - Device bootloader version. Example: 0.6.7.
- Brand string
- Device brand. Example: Samsung.
- Build
Number string - Build number of the device.
- Compromised
State string - Represents whether the Device is compromised.
- Create
Time string - When the Company-Owned device was imported. This field is empty for BYOD devices.
- Device
Type string - 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 string - Device encryption state.
- Id string
- The provider-assigned unique ID for this managed resource.
- Imei string
- IMEI number of device if GSM device; empty otherwise.
- Kernel
Version string - Kernel version of the device.
- Management
State 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. - Network
Operator string - Mobile or network operator of device, if available.
- Os
Version string - OS version of the device. Example: Android 8.1.0.
- Other
Accounts []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".
- Owner
Type string - Whether the device is owned by the company or an individual
- Release
Version string - OS release version. Example: 6.0.
- Security
Patch stringTime - OS security patch update time on device.
- android
Specific GoogleAttributes Apps Cloudidentity Devices V1Android Attributes Response - Attributes specific to Android devices.
- baseband
Version String - Baseband version of the device.
- bootloader
Version String - Device bootloader version. Example: 0.6.7.
- brand String
- Device brand. Example: Samsung.
- build
Number String - Build number of the device.
- compromised
State String - Represents whether the Device is compromised.
- create
Time String - When the Company-Owned device was imported. This field is empty for BYOD devices.
- device
Type String - Type of device.
- enabled
Developer BooleanOptions - Whether developer options is enabled on device.
- enabled
Usb BooleanDebugging - Whether USB debugging is enabled on device.
- encryption
State String - Device encryption state.
- id String
- The provider-assigned unique ID for this managed resource.
- imei String
- IMEI number of device if GSM device; empty otherwise.
- kernel
Version String - Kernel version of the device.
- management
State 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. - network
Operator String - Mobile or network operator of device, if available.
- os
Version String - OS version of the device. Example: Android 8.1.0.
- other
Accounts 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".
- owner
Type String - Whether the device is owned by the company or an individual
- release
Version String - OS release version. Example: 6.0.
- security
Patch StringTime - OS security patch update time on device.
- android
Specific GoogleAttributes Apps Cloudidentity Devices V1Android Attributes Response - Attributes specific to Android devices.
- baseband
Version string - Baseband version of the device.
- bootloader
Version string - Device bootloader version. Example: 0.6.7.
- brand string
- Device brand. Example: Samsung.
- build
Number string - Build number of the device.
- compromised
State string - Represents whether the Device is compromised.
- create
Time string - When the Company-Owned device was imported. This field is empty for BYOD devices.
- device
Type string - Type of device.
- enabled
Developer booleanOptions - Whether developer options is enabled on device.
- enabled
Usb booleanDebugging - Whether USB debugging is enabled on device.
- encryption
State string - Device encryption state.
- id string
- The provider-assigned unique ID for this managed resource.
- imei string
- IMEI number of device if GSM device; empty otherwise.
- kernel
Version string - Kernel version of the device.
- management
State 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. - network
Operator string - Mobile or network operator of device, if available.
- os
Version string - OS version of the device. Example: Android 8.1.0.
- other
Accounts 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".
- owner
Type string - Whether the device is owned by the company or an individual
- release
Version string - OS release version. Example: 6.0.
- security
Patch stringTime - OS security patch update time on device.
- android_
specific_ Googleattributes Apps Cloudidentity Devices V1Android Attributes Response - Attributes specific to Android devices.
- 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_
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.
- id str
- The provider-assigned unique ID for this managed resource.
- imei str
- IMEI number of device if GSM device; empty otherwise.
- kernel_
version str - Kernel version of the device.
- 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.
- android
Specific Property MapAttributes - Attributes specific to Android devices.
- baseband
Version String - Baseband version of the device.
- bootloader
Version String - Device bootloader version. Example: 0.6.7.
- brand String
- Device brand. Example: Samsung.
- build
Number String - Build number of the device.
- compromised
State String - Represents whether the Device is compromised.
- create
Time String - When the Company-Owned device was imported. This field is empty for BYOD devices.
- device
Type String - Type of device.
- enabled
Developer BooleanOptions - Whether developer options is enabled on device.
- enabled
Usb BooleanDebugging - Whether USB debugging is enabled on device.
- encryption
State String - Device encryption state.
- id String
- The provider-assigned unique ID for this managed resource.
- imei String
- IMEI number of device if GSM device; empty otherwise.
- kernel
Version String - Kernel version of the device.
- management
State 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. - network
Operator String - Mobile or network operator of device, if available.
- os
Version String - OS version of the device. Example: Android 8.1.0.
- other
Accounts 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".
- owner
Type String - Whether the device is owned by the company or an individual
- release
Version String - OS release version. Example: 6.0.
- security
Patch StringTime - OS security patch update time on device.
Supporting Types
GoogleAppsCloudidentityDevicesV1AndroidAttributesResponse, GoogleAppsCloudidentityDevicesV1AndroidAttributesResponseArgs
- 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 string - 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.
- 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 string - 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.
- cts
Profile BooleanMatch - Whether the device passes Android CTS compliance.
- enabled
Unknown BooleanSources - Whether applications from unknown sources can be installed on device.
- has
Potentially BooleanHarmful Apps - Whether any potentially harmful apps were detected on the device.
- owner
Profile 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.
- ownership
Privilege String - Ownership privileges on device.
- supports
Work 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.
- verified
Boot Boolean - Whether Android verified boot status is GREEN.
- verify
Apps BooleanEnabled - Whether Google Play Protect Verify Apps is enabled.
- cts
Profile booleanMatch - Whether the device passes Android CTS compliance.
- enabled
Unknown booleanSources - Whether applications from unknown sources can be installed on device.
- has
Potentially booleanHarmful Apps - Whether any potentially harmful apps were detected on the device.
- owner
Profile 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.
- ownership
Privilege string - Ownership privileges on device.
- supports
Work 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.
- verified
Boot boolean - Whether Android verified boot status is GREEN.
- verify
Apps 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.
- cts
Profile BooleanMatch - Whether the device passes Android CTS compliance.
- enabled
Unknown BooleanSources - Whether applications from unknown sources can be installed on device.
- has
Potentially BooleanHarmful Apps - Whether any potentially harmful apps were detected on the device.
- owner
Profile 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.
- ownership
Privilege String - Ownership privileges on device.
- supports
Work 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.
- verified
Boot Boolean - Whether Android verified boot status is GREEN.
- verify
Apps 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.