1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. getDevice
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler
zia logo
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler

    Use this data source to look up a device by ID, name, model, owner, or OS attributes.

    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(device_model: Optional[str] = None,
                   name: Optional[str] = None,
                   os_type: Optional[str] = None,
                   os_version: Optional[str] = None,
                   owner_name: Optional[str] = None,
                   resource_id: Optional[int] = None,
                   opts: Optional[InvokeOptions] = None) -> GetDeviceResult
    def get_device_output(device_model: Optional[pulumi.Input[str]] = None,
                   name: Optional[pulumi.Input[str]] = None,
                   os_type: Optional[pulumi.Input[str]] = None,
                   os_version: Optional[pulumi.Input[str]] = None,
                   owner_name: Optional[pulumi.Input[str]] = None,
                   resource_id: Optional[pulumi.Input[int]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetDeviceResult]
    func GetDevice(ctx *Context, args *GetDeviceArgs, opts ...InvokeOption) (*GetDeviceResult, error)
    func GetDeviceOutput(ctx *Context, args *GetDeviceOutputArgs, opts ...InvokeOption) GetDeviceResultOutput

    > Note: This function is named GetDevice 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: zia:getDevice
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DeviceModel string
    The device model to filter by.
    Name string
    The name of the device to look up.
    OsType string
    The OS type to filter by.
    OsVersion string
    The OS version to filter by.
    OwnerName string
    The owner name to filter by.
    ResourceId int
    The ID of the device to look up.
    DeviceModel string
    The device model to filter by.
    Name string
    The name of the device to look up.
    OsType string
    The OS type to filter by.
    OsVersion string
    The OS version to filter by.
    OwnerName string
    The owner name to filter by.
    ResourceId int
    The ID of the device to look up.
    deviceModel String
    The device model to filter by.
    name String
    The name of the device to look up.
    osType String
    The OS type to filter by.
    osVersion String
    The OS version to filter by.
    ownerName String
    The owner name to filter by.
    resourceId Integer
    The ID of the device to look up.
    deviceModel string
    The device model to filter by.
    name string
    The name of the device to look up.
    osType string
    The OS type to filter by.
    osVersion string
    The OS version to filter by.
    ownerName string
    The owner name to filter by.
    resourceId number
    The ID of the device to look up.
    device_model str
    The device model to filter by.
    name str
    The name of the device to look up.
    os_type str
    The OS type to filter by.
    os_version str
    The OS version to filter by.
    owner_name str
    The owner name to filter by.
    resource_id int
    The ID of the device to look up.
    deviceModel String
    The device model to filter by.
    name String
    The name of the device to look up.
    osType String
    The OS type to filter by.
    osVersion String
    The OS version to filter by.
    ownerName String
    The owner name to filter by.
    resourceId Number
    The ID of the device to look up.

    getDevice Result

    The following output properties are available:

    Description string
    The description of the device.
    DeviceGroupType string
    The device group type.
    DeviceModel string
    The model of the device.
    Hostname string
    The hostname of the device.
    Name string
    The name of the device.
    OsType string
    The OS type of the device.
    OsVersion string
    The OS version of the device.
    OwnerName string
    The name of the device owner.
    OwnerUserId int
    The user ID of the device owner.
    ResourceId int
    The ID of the device.
    Description string
    The description of the device.
    DeviceGroupType string
    The device group type.
    DeviceModel string
    The model of the device.
    Hostname string
    The hostname of the device.
    Name string
    The name of the device.
    OsType string
    The OS type of the device.
    OsVersion string
    The OS version of the device.
    OwnerName string
    The name of the device owner.
    OwnerUserId int
    The user ID of the device owner.
    ResourceId int
    The ID of the device.
    description String
    The description of the device.
    deviceGroupType String
    The device group type.
    deviceModel String
    The model of the device.
    hostname String
    The hostname of the device.
    name String
    The name of the device.
    osType String
    The OS type of the device.
    osVersion String
    The OS version of the device.
    ownerName String
    The name of the device owner.
    ownerUserId Integer
    The user ID of the device owner.
    resourceId Integer
    The ID of the device.
    description string
    The description of the device.
    deviceGroupType string
    The device group type.
    deviceModel string
    The model of the device.
    hostname string
    The hostname of the device.
    name string
    The name of the device.
    osType string
    The OS type of the device.
    osVersion string
    The OS version of the device.
    ownerName string
    The name of the device owner.
    ownerUserId number
    The user ID of the device owner.
    resourceId number
    The ID of the device.
    description str
    The description of the device.
    device_group_type str
    The device group type.
    device_model str
    The model of the device.
    hostname str
    The hostname of the device.
    name str
    The name of the device.
    os_type str
    The OS type of the device.
    os_version str
    The OS version of the device.
    owner_name str
    The name of the device owner.
    owner_user_id int
    The user ID of the device owner.
    resource_id int
    The ID of the device.
    description String
    The description of the device.
    deviceGroupType String
    The device group type.
    deviceModel String
    The model of the device.
    hostname String
    The hostname of the device.
    name String
    The name of the device.
    osType String
    The OS type of the device.
    osVersion String
    The OS version of the device.
    ownerName String
    The name of the device owner.
    ownerUserId Number
    The user ID of the device owner.
    resourceId Number
    The ID of the device.

    Package Details

    Repository
    zia zscaler/pulumi-zia
    License
    zia logo
    Viewing docs for pulumi-resource-zia v1.3.8
    published on Friday, Mar 13, 2026 by Zscaler
      Try Pulumi Cloud free. Your team will thank you.