Zscaler Internet Access v1.0.1 published on Friday, Jun 6, 2025 by Zscaler
zia.getDeviceGroups
Explore with Pulumi AI
Use the zia_device_groups data source to get information about a device group in the Zscaler Internet Access cloud or via the API. This data source can then be associated with resources such as: URL Filtering Rules
Example Usage
# ZIA Admin User Data Source
data "zia_device_groups" "ios"{
name = "IOS"
}
data "zia_device_groups" "android"{
name = "Android"
}
Using getDeviceGroups
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 getDeviceGroups(args: GetDeviceGroupsArgs, opts?: InvokeOptions): Promise<GetDeviceGroupsResult>
function getDeviceGroupsOutput(args: GetDeviceGroupsOutputArgs, opts?: InvokeOptions): Output<GetDeviceGroupsResult>
def get_device_groups(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDeviceGroupsResult
def get_device_groups_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDeviceGroupsResult]
func GetDeviceGroups(ctx *Context, args *GetDeviceGroupsArgs, opts ...InvokeOption) (*GetDeviceGroupsResult, error)
func GetDeviceGroupsOutput(ctx *Context, args *GetDeviceGroupsOutputArgs, opts ...InvokeOption) GetDeviceGroupsResultOutput
> Note: This function is named GetDeviceGroups
in the Go SDK.
public static class GetDeviceGroups
{
public static Task<GetDeviceGroupsResult> InvokeAsync(GetDeviceGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetDeviceGroupsResult> Invoke(GetDeviceGroupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDeviceGroupsResult> getDeviceGroups(GetDeviceGroupsArgs args, InvokeOptions options)
public static Output<GetDeviceGroupsResult> getDeviceGroups(GetDeviceGroupsArgs args, InvokeOptions options)
fn::invoke:
function: zia:index/getDeviceGroups:getDeviceGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of the device group to be exported.
- Name string
- The name of the device group to be exported.
- name String
- The name of the device group to be exported.
- name string
- The name of the device group to be exported.
- name str
- The name of the device group to be exported.
- name String
- The name of the device group to be exported.
getDeviceGroups Result
The following output properties are available:
- Description string
- (String) The device group's description.
- Device
Count int - (int) The number of devices within the group.
- Device
Names string - (String) The names of devices that belong to the device group. The device names are comma-separated.
- Group
Type string - (String) The device group type. i.e
ZCC_OS
,NON_ZCC
,CBI
- Id int
- (String) The unique identifer for the device group.
- Os
Type string - (String) The operating system (OS).
- Predefined bool
- (Boolean) Indicates whether this is a predefined device group. If this value is set to true, the group is predefined.
- Name string
- (String) The device group name.
- Description string
- (String) The device group's description.
- Device
Count int - (int) The number of devices within the group.
- Device
Names string - (String) The names of devices that belong to the device group. The device names are comma-separated.
- Group
Type string - (String) The device group type. i.e
ZCC_OS
,NON_ZCC
,CBI
- Id int
- (String) The unique identifer for the device group.
- Os
Type string - (String) The operating system (OS).
- Predefined bool
- (Boolean) Indicates whether this is a predefined device group. If this value is set to true, the group is predefined.
- Name string
- (String) The device group name.
- description String
- (String) The device group's description.
- device
Count Integer - (int) The number of devices within the group.
- device
Names String - (String) The names of devices that belong to the device group. The device names are comma-separated.
- group
Type String - (String) The device group type. i.e
ZCC_OS
,NON_ZCC
,CBI
- id Integer
- (String) The unique identifer for the device group.
- os
Type String - (String) The operating system (OS).
- predefined Boolean
- (Boolean) Indicates whether this is a predefined device group. If this value is set to true, the group is predefined.
- name String
- (String) The device group name.
- description string
- (String) The device group's description.
- device
Count number - (int) The number of devices within the group.
- device
Names string - (String) The names of devices that belong to the device group. The device names are comma-separated.
- group
Type string - (String) The device group type. i.e
ZCC_OS
,NON_ZCC
,CBI
- id number
- (String) The unique identifer for the device group.
- os
Type string - (String) The operating system (OS).
- predefined boolean
- (Boolean) Indicates whether this is a predefined device group. If this value is set to true, the group is predefined.
- name string
- (String) The device group name.
- description str
- (String) The device group's description.
- device_
count int - (int) The number of devices within the group.
- device_
names str - (String) The names of devices that belong to the device group. The device names are comma-separated.
- group_
type str - (String) The device group type. i.e
ZCC_OS
,NON_ZCC
,CBI
- id int
- (String) The unique identifer for the device group.
- os_
type str - (String) The operating system (OS).
- predefined bool
- (Boolean) Indicates whether this is a predefined device group. If this value is set to true, the group is predefined.
- name str
- (String) The device group name.
- description String
- (String) The device group's description.
- device
Count Number - (int) The number of devices within the group.
- device
Names String - (String) The names of devices that belong to the device group. The device names are comma-separated.
- group
Type String - (String) The device group type. i.e
ZCC_OS
,NON_ZCC
,CBI
- id Number
- (String) The unique identifer for the device group.
- os
Type String - (String) The operating system (OS).
- predefined Boolean
- (Boolean) Indicates whether this is a predefined device group. If this value is set to true, the group is predefined.
- name String
- (String) The device group name.
Package Details
- Repository
- zia zscaler/pulumi-zia
- License
- MIT
- Notes
- This Pulumi package is based on the
zia
Terraform Provider.