1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. getAdminRoles
Zscaler Internet Access v1.0.1 published on Friday, Jun 6, 2025 by Zscaler

zia.getAdminRoles

Explore with Pulumi AI

zia logo
Zscaler Internet Access v1.0.1 published on Friday, Jun 6, 2025 by Zscaler

    Use the zia_admin_roles data source to get information about an admin role created in the Zscaler Internet Access cloud or via the API. This data source can then be associated with a ZIA administrator account.

    Example Usage

    # ZIA Admin Roles Data Source
    data "zia_admin_roles" "example" {
      name = "Super Admin"
    }
    

    Using getAdminRoles

    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 getAdminRoles(args: GetAdminRolesArgs, opts?: InvokeOptions): Promise<GetAdminRolesResult>
    function getAdminRolesOutput(args: GetAdminRolesOutputArgs, opts?: InvokeOptions): Output<GetAdminRolesResult>
    def get_admin_roles(id: Optional[int] = None,
                        name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetAdminRolesResult
    def get_admin_roles_output(id: Optional[pulumi.Input[int]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetAdminRolesResult]
    func LookupAdminRoles(ctx *Context, args *LookupAdminRolesArgs, opts ...InvokeOption) (*LookupAdminRolesResult, error)
    func LookupAdminRolesOutput(ctx *Context, args *LookupAdminRolesOutputArgs, opts ...InvokeOption) LookupAdminRolesResultOutput

    > Note: This function is named LookupAdminRoles in the Go SDK.

    public static class GetAdminRoles 
    {
        public static Task<GetAdminRolesResult> InvokeAsync(GetAdminRolesArgs args, InvokeOptions? opts = null)
        public static Output<GetAdminRolesResult> Invoke(GetAdminRolesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAdminRolesResult> getAdminRoles(GetAdminRolesArgs args, InvokeOptions options)
    public static Output<GetAdminRolesResult> getAdminRoles(GetAdminRolesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: zia:index/getAdminRoles:getAdminRoles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id int
    The ID of the admin role to be exported.
    Name string
    The name of the Admin role to be exported.
    Id int
    The ID of the admin role to be exported.
    Name string
    The name of the Admin role to be exported.
    id Integer
    The ID of the admin role to be exported.
    name String
    The name of the Admin role to be exported.
    id number
    The ID of the admin role to be exported.
    name string
    The name of the Admin role to be exported.
    id int
    The ID of the admin role to be exported.
    name str
    The name of the Admin role to be exported.
    id Number
    The ID of the admin role to be exported.
    name String
    The name of the Admin role to be exported.

    getAdminRoles Result

    The following output properties are available:

    AdminAcctAccess string
    (String)
    AlertingAccess string
    AnalysisAccess string
    (String)
    DashboardAccess string
    (String) Dashboard access permission. Supported values are: NONE, READ_ONLY
    DeviceInfoAccess string
    ExtFeaturePermissions Dictionary<string, string>
    FeaturePermissions Dictionary<string, string>
    Id int
    IsAuditor bool
    (Boolean) Indicates whether this is an auditor role.
    IsNonEditable bool
    (Boolean) Indicates whether or not this admin user is editable/deletable.
    LogsLimit string
    (String) Log range limit. Returned values are: UNRESTRICTED, MONTH_1, MONTH_2, MONTH_3, MONTH_4, MONTH_5, MONTH_6
    Permissions List<string>
    (List of String) List of functional areas to which this role has access. This attribute is subject to change.
    PolicyAccess string
    (String) Policy access permission. Returned values are: NONE, READ_ONLY,READ_WRITE
    Rank int
    (Number) Admin rank of this admin role. This is applicable only when admin rank is enabled in the advanced settings. Default value is 7 (the lowest rank). The assigned admin rank determines the roles or admin users this user can manage, and which rule orders this admin can access.
    ReportAccess string
    (String) Report access permission. Returned values are: NONE, READ_ONLY,READ_WRITE
    ReportTimeDuration int
    RoleType string
    (String) The admin role type. ()This attribute is subject to change.) Supported values are: ORG_ADMIN, EXEC_INSIGHT, EXEC_INSIGHT_AND_ORG_ADMIN, SDWAN
    UsernameAccess string
    (String) Username access permission. When set to NONE, the username will be obfuscated. Supported values are: NONE|READ_ONLY
    Name string
    AdminAcctAccess string
    (String)
    AlertingAccess string
    AnalysisAccess string
    (String)
    DashboardAccess string
    (String) Dashboard access permission. Supported values are: NONE, READ_ONLY
    DeviceInfoAccess string
    ExtFeaturePermissions map[string]string
    FeaturePermissions map[string]string
    Id int
    IsAuditor bool
    (Boolean) Indicates whether this is an auditor role.
    IsNonEditable bool
    (Boolean) Indicates whether or not this admin user is editable/deletable.
    LogsLimit string
    (String) Log range limit. Returned values are: UNRESTRICTED, MONTH_1, MONTH_2, MONTH_3, MONTH_4, MONTH_5, MONTH_6
    Permissions []string
    (List of String) List of functional areas to which this role has access. This attribute is subject to change.
    PolicyAccess string
    (String) Policy access permission. Returned values are: NONE, READ_ONLY,READ_WRITE
    Rank int
    (Number) Admin rank of this admin role. This is applicable only when admin rank is enabled in the advanced settings. Default value is 7 (the lowest rank). The assigned admin rank determines the roles or admin users this user can manage, and which rule orders this admin can access.
    ReportAccess string
    (String) Report access permission. Returned values are: NONE, READ_ONLY,READ_WRITE
    ReportTimeDuration int
    RoleType string
    (String) The admin role type. ()This attribute is subject to change.) Supported values are: ORG_ADMIN, EXEC_INSIGHT, EXEC_INSIGHT_AND_ORG_ADMIN, SDWAN
    UsernameAccess string
    (String) Username access permission. When set to NONE, the username will be obfuscated. Supported values are: NONE|READ_ONLY
    Name string
    adminAcctAccess String
    (String)
    alertingAccess String
    analysisAccess String
    (String)
    dashboardAccess String
    (String) Dashboard access permission. Supported values are: NONE, READ_ONLY
    deviceInfoAccess String
    extFeaturePermissions Map<String,String>
    featurePermissions Map<String,String>
    id Integer
    isAuditor Boolean
    (Boolean) Indicates whether this is an auditor role.
    isNonEditable Boolean
    (Boolean) Indicates whether or not this admin user is editable/deletable.
    logsLimit String
    (String) Log range limit. Returned values are: UNRESTRICTED, MONTH_1, MONTH_2, MONTH_3, MONTH_4, MONTH_5, MONTH_6
    permissions List<String>
    (List of String) List of functional areas to which this role has access. This attribute is subject to change.
    policyAccess String
    (String) Policy access permission. Returned values are: NONE, READ_ONLY,READ_WRITE
    rank Integer
    (Number) Admin rank of this admin role. This is applicable only when admin rank is enabled in the advanced settings. Default value is 7 (the lowest rank). The assigned admin rank determines the roles or admin users this user can manage, and which rule orders this admin can access.
    reportAccess String
    (String) Report access permission. Returned values are: NONE, READ_ONLY,READ_WRITE
    reportTimeDuration Integer
    roleType String
    (String) The admin role type. ()This attribute is subject to change.) Supported values are: ORG_ADMIN, EXEC_INSIGHT, EXEC_INSIGHT_AND_ORG_ADMIN, SDWAN
    usernameAccess String
    (String) Username access permission. When set to NONE, the username will be obfuscated. Supported values are: NONE|READ_ONLY
    name String
    adminAcctAccess string
    (String)
    alertingAccess string
    analysisAccess string
    (String)
    dashboardAccess string
    (String) Dashboard access permission. Supported values are: NONE, READ_ONLY
    deviceInfoAccess string
    extFeaturePermissions {[key: string]: string}
    featurePermissions {[key: string]: string}
    id number
    isAuditor boolean
    (Boolean) Indicates whether this is an auditor role.
    isNonEditable boolean
    (Boolean) Indicates whether or not this admin user is editable/deletable.
    logsLimit string
    (String) Log range limit. Returned values are: UNRESTRICTED, MONTH_1, MONTH_2, MONTH_3, MONTH_4, MONTH_5, MONTH_6
    permissions string[]
    (List of String) List of functional areas to which this role has access. This attribute is subject to change.
    policyAccess string
    (String) Policy access permission. Returned values are: NONE, READ_ONLY,READ_WRITE
    rank number
    (Number) Admin rank of this admin role. This is applicable only when admin rank is enabled in the advanced settings. Default value is 7 (the lowest rank). The assigned admin rank determines the roles or admin users this user can manage, and which rule orders this admin can access.
    reportAccess string
    (String) Report access permission. Returned values are: NONE, READ_ONLY,READ_WRITE
    reportTimeDuration number
    roleType string
    (String) The admin role type. ()This attribute is subject to change.) Supported values are: ORG_ADMIN, EXEC_INSIGHT, EXEC_INSIGHT_AND_ORG_ADMIN, SDWAN
    usernameAccess string
    (String) Username access permission. When set to NONE, the username will be obfuscated. Supported values are: NONE|READ_ONLY
    name string
    admin_acct_access str
    (String)
    alerting_access str
    analysis_access str
    (String)
    dashboard_access str
    (String) Dashboard access permission. Supported values are: NONE, READ_ONLY
    device_info_access str
    ext_feature_permissions Mapping[str, str]
    feature_permissions Mapping[str, str]
    id int
    is_auditor bool
    (Boolean) Indicates whether this is an auditor role.
    is_non_editable bool
    (Boolean) Indicates whether or not this admin user is editable/deletable.
    logs_limit str
    (String) Log range limit. Returned values are: UNRESTRICTED, MONTH_1, MONTH_2, MONTH_3, MONTH_4, MONTH_5, MONTH_6
    permissions Sequence[str]
    (List of String) List of functional areas to which this role has access. This attribute is subject to change.
    policy_access str
    (String) Policy access permission. Returned values are: NONE, READ_ONLY,READ_WRITE
    rank int
    (Number) Admin rank of this admin role. This is applicable only when admin rank is enabled in the advanced settings. Default value is 7 (the lowest rank). The assigned admin rank determines the roles or admin users this user can manage, and which rule orders this admin can access.
    report_access str
    (String) Report access permission. Returned values are: NONE, READ_ONLY,READ_WRITE
    report_time_duration int
    role_type str
    (String) The admin role type. ()This attribute is subject to change.) Supported values are: ORG_ADMIN, EXEC_INSIGHT, EXEC_INSIGHT_AND_ORG_ADMIN, SDWAN
    username_access str
    (String) Username access permission. When set to NONE, the username will be obfuscated. Supported values are: NONE|READ_ONLY
    name str
    adminAcctAccess String
    (String)
    alertingAccess String
    analysisAccess String
    (String)
    dashboardAccess String
    (String) Dashboard access permission. Supported values are: NONE, READ_ONLY
    deviceInfoAccess String
    extFeaturePermissions Map<String>
    featurePermissions Map<String>
    id Number
    isAuditor Boolean
    (Boolean) Indicates whether this is an auditor role.
    isNonEditable Boolean
    (Boolean) Indicates whether or not this admin user is editable/deletable.
    logsLimit String
    (String) Log range limit. Returned values are: UNRESTRICTED, MONTH_1, MONTH_2, MONTH_3, MONTH_4, MONTH_5, MONTH_6
    permissions List<String>
    (List of String) List of functional areas to which this role has access. This attribute is subject to change.
    policyAccess String
    (String) Policy access permission. Returned values are: NONE, READ_ONLY,READ_WRITE
    rank Number
    (Number) Admin rank of this admin role. This is applicable only when admin rank is enabled in the advanced settings. Default value is 7 (the lowest rank). The assigned admin rank determines the roles or admin users this user can manage, and which rule orders this admin can access.
    reportAccess String
    (String) Report access permission. Returned values are: NONE, READ_ONLY,READ_WRITE
    reportTimeDuration Number
    roleType String
    (String) The admin role type. ()This attribute is subject to change.) Supported values are: ORG_ADMIN, EXEC_INSIGHT, EXEC_INSIGHT_AND_ORG_ADMIN, SDWAN
    usernameAccess String
    (String) Username access permission. When set to NONE, the username will be obfuscated. Supported values are: NONE|READ_ONLY
    name String

    Package Details

    Repository
    zia zscaler/pulumi-zia
    License
    MIT
    Notes
    This Pulumi package is based on the zia Terraform Provider.
    zia logo
    Zscaler Internet Access v1.0.1 published on Friday, Jun 6, 2025 by Zscaler