zia.getSandboxRules
Explore with Pulumi AI
Use the zia_sandbox_rules data source to get information about a sandbox rule in the Zscaler Internet Access.
Example Usage
# ZIA Sandbox Rule by name
data "zia_sandbox_rules" "this" {
name = "Default BA Rule"
}
# ZIA Sandbox Rule by ID
data "zia_sandbox_rules" "this" {
id = "12365478"
}
Read-Only
In addition to all arguments above, the following attributes are exported:
description
- (String) Enter additional notes or information. The description cannot exceed 10,240 characters.order
- (Integer) Policy rules are evaluated in ascending numerical order (Rule 1 before Rule 2, and so on), and the Rule Order reflects this rule’s place in the order.state
- (String) The state of the rule indicating whether it is enabled or disabled. Supported values:ENABLED
orDISABLED
rank
- (Integer) The admin rank specified for the rule based on your assigned admin rank. Admin rank determines the rule order that can be specified for the rule. Admin rank can be configured if it is enabled in the Advanced Settings.ba_rule_action
- (String) The action configured for the rule that must take place if the traffic matches the rule criteria. Supported Values:ALLOW
orBLOCK
first_time_enable
- (Boolean) A Boolean value indicating whether a First-Time Action is specifically configured for the rule. The First-Time Action takes place when users download unknown files. The action to be applied is specified using the firstTimeOperation field.first_time_operation
- (String) The action that must take place when users download unknown files for the first time. Supported Values:ALLOW_SCAN
,QUARANTINE
,ALLOW_NOSCAN
,QUARANTINE_ISOLATE
ml_action_enabled
- (Boolean) A Boolean value indicating whether to enable or disable the AI Instant Verdict option to have the Zscaler service use AI analysis to instantly assign threat scores to unknown files. This option is available to use only with specific rule actions such as Quarantine and Allow and Scan for First-Time Action.by_threat_score
- (Integer)default_rule
- (Boolean) Value that indicates whether the rule is the Default Cloud IPS Rule or noturl_categories
- (List of Strings) The list of URL categories to which the DLP policy rule must be applied.file_types
- (List of Strings) File type categories for which the policy is applied. If not set, the rule is applied across all file types.
Who, Where and When
supports the following attributes:
locations
- (List of Objects) You can manually select up to8
locations. When not used it impliesAny
to apply the rule to all groups.id
- (Integer) Identifier that uniquely identifies an entity
location_groups
- (List of Objects)You can manually select up to32
location groups. When not used it impliesAny
to apply the rule to all location groups.id
- (Integer) Identifier that uniquely identifies an entity
users
- (List of Objects) You can manually select up to4
general and/or special users. When not used it impliesAny
to apply the rule to all users.id
- (Integer) Identifier that uniquely identifies an entity
groups
- (List of Objects) You can manually select up to8
groups. When not used it impliesAny
to apply the rule to all groups.id
- (Integer) Identifier that uniquely identifies an entity
departments
- (List of Objects) Apply to any number of departments When not used it impliesAny
to apply the rule to all departments.id
- (Integer) Identifier that uniquely identifies an entity
labels
(List of Objects) Labels that are applicable to the rule.id
- (Integer) Identifier that uniquely identifies an entity
zpa_app_segments
(List of Objects) The ZPA application segments to which the rule appliesid
- (Integer) Identifier that uniquely identifies an entity
Using getSandboxRules
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 getSandboxRules(args: GetSandboxRulesArgs, opts?: InvokeOptions): Promise<GetSandboxRulesResult>
function getSandboxRulesOutput(args: GetSandboxRulesOutputArgs, opts?: InvokeOptions): Output<GetSandboxRulesResult>
def get_sandbox_rules(id: Optional[int] = None,
name: Optional[str] = None,
url_categories: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetSandboxRulesResult
def get_sandbox_rules_output(id: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
url_categories: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSandboxRulesResult]
func LookupSandboxRules(ctx *Context, args *LookupSandboxRulesArgs, opts ...InvokeOption) (*LookupSandboxRulesResult, error)
func LookupSandboxRulesOutput(ctx *Context, args *LookupSandboxRulesOutputArgs, opts ...InvokeOption) LookupSandboxRulesResultOutput
> Note: This function is named LookupSandboxRules
in the Go SDK.
public static class GetSandboxRules
{
public static Task<GetSandboxRulesResult> InvokeAsync(GetSandboxRulesArgs args, InvokeOptions? opts = null)
public static Output<GetSandboxRulesResult> Invoke(GetSandboxRulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSandboxRulesResult> getSandboxRules(GetSandboxRulesArgs args, InvokeOptions options)
public static Output<GetSandboxRulesResult> getSandboxRules(GetSandboxRulesArgs args, InvokeOptions options)
fn::invoke:
function: zia:index/getSandboxRules:getSandboxRules
arguments:
# arguments dictionary
The following arguments are supported:
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- Url
Categories List<string>
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- Url
Categories []string
- id Integer
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
- url
Categories List<String>
- id number
- Unique identifier for the Sandbox rule
- name string
- Name of the Sandbox rule
- url
Categories string[]
- id int
- Unique identifier for the Sandbox rule
- name str
- Name of the Sandbox rule
- url_
categories Sequence[str]
- id Number
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
- url
Categories List<String>
getSandboxRules Result
The following output properties are available:
- Ba
Policy List<string>Categories - Ba
Rule stringAction - By
Threat intScore - Departments
List<zscaler.
Pulumi Package. Zia. Outputs. Get Sandbox Rules Department> - Description string
- File
Types List<string> - First
Time boolEnable - First
Time stringOperation - Groups
List<zscaler.
Pulumi Package. Zia. Outputs. Get Sandbox Rules Group> - Id int
- Labels
List<zscaler.
Pulumi Package. Zia. Outputs. Get Sandbox Rules Label> - Last
Modified List<zscaler.Bies Pulumi Package. Zia. Outputs. Get Sandbox Rules Last Modified By> - Last
Modified intTime - Location
Groups List<zscaler.Pulumi Package. Zia. Outputs. Get Sandbox Rules Location Group> - Locations
List<zscaler.
Pulumi Package. Zia. Outputs. Get Sandbox Rules Location> - Ml
Action boolEnabled - Name string
- Order int
- Protocols List<string>
- Rank int
- State string
- Users
List<zscaler.
Pulumi Package. Zia. Outputs. Get Sandbox Rules User> - Zpa
App List<zscaler.Segments Pulumi Package. Zia. Outputs. Get Sandbox Rules Zpa App Segment> - Url
Categories List<string>
- Ba
Policy []stringCategories - Ba
Rule stringAction - By
Threat intScore - Departments
[]Get
Sandbox Rules Department - Description string
- File
Types []string - First
Time boolEnable - First
Time stringOperation - Groups
[]Get
Sandbox Rules Group - Id int
- Labels
[]Get
Sandbox Rules Label - Last
Modified []GetBies Sandbox Rules Last Modified By - Last
Modified intTime - Location
Groups []GetSandbox Rules Location Group - Locations
[]Get
Sandbox Rules Location - Ml
Action boolEnabled - Name string
- Order int
- Protocols []string
- Rank int
- State string
- Users
[]Get
Sandbox Rules User - Zpa
App []GetSegments Sandbox Rules Zpa App Segment - Url
Categories []string
- ba
Policy List<String>Categories - ba
Rule StringAction - by
Threat IntegerScore - departments
List<Get
Sandbox Rules Department> - description String
- file
Types List<String> - first
Time BooleanEnable - first
Time StringOperation - groups
List<Get
Sandbox Rules Group> - id Integer
- labels
List<Get
Sandbox Rules Label> - last
Modified List<GetBies Sandbox Rules Last Modified By> - last
Modified IntegerTime - location
Groups List<GetSandbox Rules Location Group> - locations
List<Get
Sandbox Rules Location> - ml
Action BooleanEnabled - name String
- order Integer
- protocols List<String>
- rank Integer
- state String
- users
List<Get
Sandbox Rules User> - zpa
App List<GetSegments Sandbox Rules Zpa App Segment> - url
Categories List<String>
- ba
Policy string[]Categories - ba
Rule stringAction - by
Threat numberScore - departments
Get
Sandbox Rules Department[] - description string
- file
Types string[] - first
Time booleanEnable - first
Time stringOperation - groups
Get
Sandbox Rules Group[] - id number
- labels
Get
Sandbox Rules Label[] - last
Modified GetBies Sandbox Rules Last Modified By[] - last
Modified numberTime - location
Groups GetSandbox Rules Location Group[] - locations
Get
Sandbox Rules Location[] - ml
Action booleanEnabled - name string
- order number
- protocols string[]
- rank number
- state string
- users
Get
Sandbox Rules User[] - zpa
App GetSegments Sandbox Rules Zpa App Segment[] - url
Categories string[]
- ba_
policy_ Sequence[str]categories - ba_
rule_ straction - by_
threat_ intscore - departments
Sequence[Get
Sandbox Rules Department] - description str
- file_
types Sequence[str] - first_
time_ boolenable - first_
time_ stroperation - groups
Sequence[Get
Sandbox Rules Group] - id int
- labels
Sequence[Get
Sandbox Rules Label] - last_
modified_ Sequence[Getbies Sandbox Rules Last Modified By] - last_
modified_ inttime - location_
groups Sequence[GetSandbox Rules Location Group] - locations
Sequence[Get
Sandbox Rules Location] - ml_
action_ boolenabled - name str
- order int
- protocols Sequence[str]
- rank int
- state str
- users
Sequence[Get
Sandbox Rules User] - zpa_
app_ Sequence[Getsegments Sandbox Rules Zpa App Segment] - url_
categories Sequence[str]
- ba
Policy List<String>Categories - ba
Rule StringAction - by
Threat NumberScore - departments List<Property Map>
- description String
- file
Types List<String> - first
Time BooleanEnable - first
Time StringOperation - groups List<Property Map>
- id Number
- labels List<Property Map>
- last
Modified List<Property Map>Bies - last
Modified NumberTime - location
Groups List<Property Map> - locations List<Property Map>
- ml
Action BooleanEnabled - name String
- order Number
- protocols List<String>
- rank Number
- state String
- users List<Property Map>
- zpa
App List<Property Map>Segments - url
Categories List<String>
Supporting Types
GetSandboxRulesDepartment
- Extensions Dictionary<string, string>
- Additional information about the entity
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- Extensions map[string]string
- Additional information about the entity
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- extensions Map<String,String>
- Additional information about the entity
- id Integer
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
- extensions {[key: string]: string}
- Additional information about the entity
- id number
- Unique identifier for the Sandbox rule
- name string
- Name of the Sandbox rule
- extensions Mapping[str, str]
- Additional information about the entity
- id int
- Unique identifier for the Sandbox rule
- name str
- Name of the Sandbox rule
- extensions Map<String>
- Additional information about the entity
- id Number
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
GetSandboxRulesGroup
- Extensions Dictionary<string, string>
- Additional information about the entity
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- Extensions map[string]string
- Additional information about the entity
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- extensions Map<String,String>
- Additional information about the entity
- id Integer
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
- extensions {[key: string]: string}
- Additional information about the entity
- id number
- Unique identifier for the Sandbox rule
- name string
- Name of the Sandbox rule
- extensions Mapping[str, str]
- Additional information about the entity
- id int
- Unique identifier for the Sandbox rule
- name str
- Name of the Sandbox rule
- extensions Map<String>
- Additional information about the entity
- id Number
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
GetSandboxRulesLabel
- Extensions Dictionary<string, string>
- Additional information about the entity
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- Extensions map[string]string
- Additional information about the entity
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- extensions Map<String,String>
- Additional information about the entity
- id Integer
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
- extensions {[key: string]: string}
- Additional information about the entity
- id number
- Unique identifier for the Sandbox rule
- name string
- Name of the Sandbox rule
- extensions Mapping[str, str]
- Additional information about the entity
- id int
- Unique identifier for the Sandbox rule
- name str
- Name of the Sandbox rule
- extensions Map<String>
- Additional information about the entity
- id Number
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
GetSandboxRulesLastModifiedBy
- Extensions Dictionary<string, string>
- Additional information about the entity
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- Extensions map[string]string
- Additional information about the entity
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- extensions Map<String,String>
- Additional information about the entity
- id Integer
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
- extensions {[key: string]: string}
- Additional information about the entity
- id number
- Unique identifier for the Sandbox rule
- name string
- Name of the Sandbox rule
- extensions Mapping[str, str]
- Additional information about the entity
- id int
- Unique identifier for the Sandbox rule
- name str
- Name of the Sandbox rule
- extensions Map<String>
- Additional information about the entity
- id Number
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
GetSandboxRulesLocation
- Extensions Dictionary<string, string>
- Additional information about the entity
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- Extensions map[string]string
- Additional information about the entity
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- extensions Map<String,String>
- Additional information about the entity
- id Integer
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
- extensions {[key: string]: string}
- Additional information about the entity
- id number
- Unique identifier for the Sandbox rule
- name string
- Name of the Sandbox rule
- extensions Mapping[str, str]
- Additional information about the entity
- id int
- Unique identifier for the Sandbox rule
- name str
- Name of the Sandbox rule
- extensions Map<String>
- Additional information about the entity
- id Number
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
GetSandboxRulesLocationGroup
- Extensions Dictionary<string, string>
- Additional information about the entity
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- Extensions map[string]string
- Additional information about the entity
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- extensions Map<String,String>
- Additional information about the entity
- id Integer
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
- extensions {[key: string]: string}
- Additional information about the entity
- id number
- Unique identifier for the Sandbox rule
- name string
- Name of the Sandbox rule
- extensions Mapping[str, str]
- Additional information about the entity
- id int
- Unique identifier for the Sandbox rule
- name str
- Name of the Sandbox rule
- extensions Map<String>
- Additional information about the entity
- id Number
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
GetSandboxRulesUser
- Extensions Dictionary<string, string>
- Additional information about the entity
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- Extensions map[string]string
- Additional information about the entity
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- extensions Map<String,String>
- Additional information about the entity
- id Integer
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
- extensions {[key: string]: string}
- Additional information about the entity
- id number
- Unique identifier for the Sandbox rule
- name string
- Name of the Sandbox rule
- extensions Mapping[str, str]
- Additional information about the entity
- id int
- Unique identifier for the Sandbox rule
- name str
- Name of the Sandbox rule
- extensions Map<String>
- Additional information about the entity
- id Number
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
GetSandboxRulesZpaAppSegment
- External
Id string - Indicates the external ID. Applicable only when this reference is of an external entity.
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- External
Id string - Indicates the external ID. Applicable only when this reference is of an external entity.
- Id int
- Unique identifier for the Sandbox rule
- Name string
- Name of the Sandbox rule
- external
Id String - Indicates the external ID. Applicable only when this reference is of an external entity.
- id Integer
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
- external
Id string - Indicates the external ID. Applicable only when this reference is of an external entity.
- id number
- Unique identifier for the Sandbox rule
- name string
- Name of the Sandbox rule
- external_
id str - Indicates the external ID. Applicable only when this reference is of an external entity.
- id int
- Unique identifier for the Sandbox rule
- name str
- Name of the Sandbox rule
- external
Id String - Indicates the external ID. Applicable only when this reference is of an external entity.
- id Number
- Unique identifier for the Sandbox rule
- name String
- Name of the Sandbox rule
Package Details
- Repository
- zia zscaler/pulumi-zia
- License
- MIT
- Notes
- This Pulumi package is based on the
zia
Terraform Provider.