zpa.InspectionProfile
Explore with Pulumi AI
The zpa_inspection_profile resource creates an inspection profile in the Zscaler Private Access cloud. This resource can then be referenced in an inspection custom control resource.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zpa.ZpaFunctions;
import com.pulumi.zpa.inputs.GetInspectionAllPredefinedControlsArgs;
import com.pulumi.zpa.inputs.GetInspectionPredefinedControlsArgs;
import com.pulumi.zpa.InspectionProfile;
import com.pulumi.zpa.InspectionProfileArgs;
import com.pulumi.zpa.inputs.InspectionProfileControlsInfoArgs;
import com.pulumi.zpa.inputs.InspectionProfilePredefinedControlArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var thisInspectionAllPredefinedControls = ZpaFunctions.getInspectionAllPredefinedControls(GetInspectionAllPredefinedControlsArgs.builder()
.version("OWASP_CRS/3.3.0")
.groupName("Preprocessors")
.build());
final var thisInspectionPredefinedControls = ZpaFunctions.getInspectionPredefinedControls(GetInspectionPredefinedControlsArgs.builder()
.name("Failed to parse request body")
.version("OWASP_CRS/3.3.0")
.build());
var thisInspectionProfile = new InspectionProfile("thisInspectionProfile", InspectionProfileArgs.builder()
.description("Example")
.paranoiaLevel("1")
.predefinedControlsVersion("OWASP_CRS/3.3.0")
.incarnationNumber("6")
.controlsInfos(InspectionProfileControlsInfoArgs.builder()
.controlType("PREDEFINED")
.build())
.dynamic(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.predefinedControls(InspectionProfilePredefinedControlArgs.builder()
.id(thisInspectionPredefinedControls.applyValue(getInspectionPredefinedControlsResult -> getInspectionPredefinedControlsResult.id()))
.action("BLOCK")
.build())
.globalControlActions(
"PREDEFINED:PASS",
"CUSTOM:NONE",
"OVERRIDE_ACTION:COMMON")
.commonGlobalOverrideActionsConfig(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
}
}
Coming soon!
Create InspectionProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InspectionProfile(name: string, args?: InspectionProfileArgs, opts?: CustomResourceOptions);
@overload
def InspectionProfile(resource_name: str,
args: Optional[InspectionProfileArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def InspectionProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
associate_all_controls: Optional[bool] = None,
controls_infos: Optional[Sequence[InspectionProfileControlsInfoArgs]] = None,
custom_controls: Optional[Sequence[InspectionProfileCustomControlArgs]] = None,
description: Optional[str] = None,
global_control_actions: Optional[Sequence[str]] = None,
incarnation_number: Optional[str] = None,
name: Optional[str] = None,
paranoia_level: Optional[str] = None,
predefined_controls: Optional[Sequence[InspectionProfilePredefinedControlArgs]] = None,
predefined_controls_version: Optional[str] = None,
zs_defined_control_choice: Optional[str] = None)
func NewInspectionProfile(ctx *Context, name string, args *InspectionProfileArgs, opts ...ResourceOption) (*InspectionProfile, error)
public InspectionProfile(string name, InspectionProfileArgs? args = null, CustomResourceOptions? opts = null)
public InspectionProfile(String name, InspectionProfileArgs args)
public InspectionProfile(String name, InspectionProfileArgs args, CustomResourceOptions options)
type: zpa:InspectionProfile
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 InspectionProfileArgs
- 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 InspectionProfileArgs
- 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 InspectionProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InspectionProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InspectionProfileArgs
- 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 inspectionProfileResource = new Zpa.InspectionProfile("inspectionProfileResource", new()
{
AssociateAllControls = false,
ControlsInfos = new[]
{
new Zpa.Inputs.InspectionProfileControlsInfoArgs
{
ControlType = "string",
},
},
CustomControls = new[]
{
new Zpa.Inputs.InspectionProfileCustomControlArgs
{
Id = "string",
Action = "string",
ActionValue = "string",
},
},
Description = "string",
GlobalControlActions = new[]
{
"string",
},
IncarnationNumber = "string",
Name = "string",
ParanoiaLevel = "string",
PredefinedControls = new[]
{
new Zpa.Inputs.InspectionProfilePredefinedControlArgs
{
Action = "string",
ActionValue = "string",
ControlType = "string",
Id = "string",
ProtocolType = "string",
},
},
PredefinedControlsVersion = "string",
ZsDefinedControlChoice = "string",
});
example, err := zpa.NewInspectionProfile(ctx, "inspectionProfileResource", &zpa.InspectionProfileArgs{
AssociateAllControls: pulumi.Bool(false),
ControlsInfos: zpa.InspectionProfileControlsInfoArray{
&zpa.InspectionProfileControlsInfoArgs{
ControlType: pulumi.String("string"),
},
},
CustomControls: zpa.InspectionProfileCustomControlArray{
&zpa.InspectionProfileCustomControlArgs{
Id: pulumi.String("string"),
Action: pulumi.String("string"),
ActionValue: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
GlobalControlActions: pulumi.StringArray{
pulumi.String("string"),
},
IncarnationNumber: pulumi.String("string"),
Name: pulumi.String("string"),
ParanoiaLevel: pulumi.String("string"),
PredefinedControls: zpa.InspectionProfilePredefinedControlArray{
&zpa.InspectionProfilePredefinedControlArgs{
Action: pulumi.String("string"),
ActionValue: pulumi.String("string"),
ControlType: pulumi.String("string"),
Id: pulumi.String("string"),
ProtocolType: pulumi.String("string"),
},
},
PredefinedControlsVersion: pulumi.String("string"),
ZsDefinedControlChoice: pulumi.String("string"),
})
var inspectionProfileResource = new InspectionProfile("inspectionProfileResource", InspectionProfileArgs.builder()
.associateAllControls(false)
.controlsInfos(InspectionProfileControlsInfoArgs.builder()
.controlType("string")
.build())
.customControls(InspectionProfileCustomControlArgs.builder()
.id("string")
.action("string")
.actionValue("string")
.build())
.description("string")
.globalControlActions("string")
.incarnationNumber("string")
.name("string")
.paranoiaLevel("string")
.predefinedControls(InspectionProfilePredefinedControlArgs.builder()
.action("string")
.actionValue("string")
.controlType("string")
.id("string")
.protocolType("string")
.build())
.predefinedControlsVersion("string")
.zsDefinedControlChoice("string")
.build());
inspection_profile_resource = zpa.InspectionProfile("inspectionProfileResource",
associate_all_controls=False,
controls_infos=[zpa.InspectionProfileControlsInfoArgs(
control_type="string",
)],
custom_controls=[zpa.InspectionProfileCustomControlArgs(
id="string",
action="string",
action_value="string",
)],
description="string",
global_control_actions=["string"],
incarnation_number="string",
name="string",
paranoia_level="string",
predefined_controls=[zpa.InspectionProfilePredefinedControlArgs(
action="string",
action_value="string",
control_type="string",
id="string",
protocol_type="string",
)],
predefined_controls_version="string",
zs_defined_control_choice="string")
const inspectionProfileResource = new zpa.InspectionProfile("inspectionProfileResource", {
associateAllControls: false,
controlsInfos: [{
controlType: "string",
}],
customControls: [{
id: "string",
action: "string",
actionValue: "string",
}],
description: "string",
globalControlActions: ["string"],
incarnationNumber: "string",
name: "string",
paranoiaLevel: "string",
predefinedControls: [{
action: "string",
actionValue: "string",
controlType: "string",
id: "string",
protocolType: "string",
}],
predefinedControlsVersion: "string",
zsDefinedControlChoice: "string",
});
type: zpa:InspectionProfile
properties:
associateAllControls: false
controlsInfos:
- controlType: string
customControls:
- action: string
actionValue: string
id: string
description: string
globalControlActions:
- string
incarnationNumber: string
name: string
paranoiaLevel: string
predefinedControls:
- action: string
actionValue: string
controlType: string
id: string
protocolType: string
predefinedControlsVersion: string
zsDefinedControlChoice: string
InspectionProfile 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 InspectionProfile resource accepts the following input properties:
- Associate
All boolControls - Controls
Infos List<Zscaler.Zpa. Inputs. Inspection Profile Controls Info> - Custom
Controls List<Zscaler.Zpa. Inputs. Inspection Profile Custom Control> - The set of AppProtection controls used to define how inspections are managed
- Description string
- The description of the AppProtection profile
- Global
Control List<string>Actions - The actions of the predefined, custom, or override controls
- Incarnation
Number string - Name string
- Paranoia
Level string - The OWASP Predefined Paranoia Level
- Predefined
Controls List<Zscaler.Zpa. Inputs. Inspection Profile Predefined Control> - The predefined controls
- Predefined
Controls stringVersion - The protocol for the AppProtection application
- Zs
Defined stringControl Choice - Indicates the user's choice for the ThreatLabZ Controls. Supported values: ALL and SPECIFIC
- Associate
All boolControls - Controls
Infos []InspectionProfile Controls Info Args - Custom
Controls []InspectionProfile Custom Control Args - The set of AppProtection controls used to define how inspections are managed
- Description string
- The description of the AppProtection profile
- Global
Control []stringActions - The actions of the predefined, custom, or override controls
- Incarnation
Number string - Name string
- Paranoia
Level string - The OWASP Predefined Paranoia Level
- Predefined
Controls []InspectionProfile Predefined Control Args - The predefined controls
- Predefined
Controls stringVersion - The protocol for the AppProtection application
- Zs
Defined stringControl Choice - Indicates the user's choice for the ThreatLabZ Controls. Supported values: ALL and SPECIFIC
- associate
All BooleanControls - controls
Infos List<InspectionProfile Controls Info> - custom
Controls List<InspectionProfile Custom Control> - The set of AppProtection controls used to define how inspections are managed
- description String
- The description of the AppProtection profile
- global
Control List<String>Actions - The actions of the predefined, custom, or override controls
- incarnation
Number String - name String
- paranoia
Level String - The OWASP Predefined Paranoia Level
- predefined
Controls List<InspectionProfile Predefined Control> - The predefined controls
- predefined
Controls StringVersion - The protocol for the AppProtection application
- zs
Defined StringControl Choice - Indicates the user's choice for the ThreatLabZ Controls. Supported values: ALL and SPECIFIC
- associate
All booleanControls - controls
Infos InspectionProfile Controls Info[] - custom
Controls InspectionProfile Custom Control[] - The set of AppProtection controls used to define how inspections are managed
- description string
- The description of the AppProtection profile
- global
Control string[]Actions - The actions of the predefined, custom, or override controls
- incarnation
Number string - name string
- paranoia
Level string - The OWASP Predefined Paranoia Level
- predefined
Controls InspectionProfile Predefined Control[] - The predefined controls
- predefined
Controls stringVersion - The protocol for the AppProtection application
- zs
Defined stringControl Choice - Indicates the user's choice for the ThreatLabZ Controls. Supported values: ALL and SPECIFIC
- associate_
all_ boolcontrols - controls_
infos Sequence[InspectionProfile Controls Info Args] - custom_
controls Sequence[InspectionProfile Custom Control Args] - The set of AppProtection controls used to define how inspections are managed
- description str
- The description of the AppProtection profile
- global_
control_ Sequence[str]actions - The actions of the predefined, custom, or override controls
- incarnation_
number str - name str
- paranoia_
level str - The OWASP Predefined Paranoia Level
- predefined_
controls Sequence[InspectionProfile Predefined Control Args] - The predefined controls
- predefined_
controls_ strversion - The protocol for the AppProtection application
- zs_
defined_ strcontrol_ choice - Indicates the user's choice for the ThreatLabZ Controls. Supported values: ALL and SPECIFIC
- associate
All BooleanControls - controls
Infos List<Property Map> - custom
Controls List<Property Map> - The set of AppProtection controls used to define how inspections are managed
- description String
- The description of the AppProtection profile
- global
Control List<String>Actions - The actions of the predefined, custom, or override controls
- incarnation
Number String - name String
- paranoia
Level String - The OWASP Predefined Paranoia Level
- predefined
Controls List<Property Map> - The predefined controls
- predefined
Controls StringVersion - The protocol for the AppProtection application
- zs
Defined StringControl Choice - Indicates the user's choice for the ThreatLabZ Controls. Supported values: ALL and SPECIFIC
Outputs
All input properties are implicitly available as output properties. Additionally, the InspectionProfile resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing InspectionProfile Resource
Get an existing InspectionProfile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InspectionProfileState, opts?: CustomResourceOptions): InspectionProfile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
associate_all_controls: Optional[bool] = None,
controls_infos: Optional[Sequence[InspectionProfileControlsInfoArgs]] = None,
custom_controls: Optional[Sequence[InspectionProfileCustomControlArgs]] = None,
description: Optional[str] = None,
global_control_actions: Optional[Sequence[str]] = None,
incarnation_number: Optional[str] = None,
name: Optional[str] = None,
paranoia_level: Optional[str] = None,
predefined_controls: Optional[Sequence[InspectionProfilePredefinedControlArgs]] = None,
predefined_controls_version: Optional[str] = None,
zs_defined_control_choice: Optional[str] = None) -> InspectionProfile
func GetInspectionProfile(ctx *Context, name string, id IDInput, state *InspectionProfileState, opts ...ResourceOption) (*InspectionProfile, error)
public static InspectionProfile Get(string name, Input<string> id, InspectionProfileState? state, CustomResourceOptions? opts = null)
public static InspectionProfile get(String name, Output<String> id, InspectionProfileState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Associate
All boolControls - Controls
Infos List<Zscaler.Zpa. Inputs. Inspection Profile Controls Info> - Custom
Controls List<Zscaler.Zpa. Inputs. Inspection Profile Custom Control> - The set of AppProtection controls used to define how inspections are managed
- Description string
- The description of the AppProtection profile
- Global
Control List<string>Actions - The actions of the predefined, custom, or override controls
- Incarnation
Number string - Name string
- Paranoia
Level string - The OWASP Predefined Paranoia Level
- Predefined
Controls List<Zscaler.Zpa. Inputs. Inspection Profile Predefined Control> - The predefined controls
- Predefined
Controls stringVersion - The protocol for the AppProtection application
- Zs
Defined stringControl Choice - Indicates the user's choice for the ThreatLabZ Controls. Supported values: ALL and SPECIFIC
- Associate
All boolControls - Controls
Infos []InspectionProfile Controls Info Args - Custom
Controls []InspectionProfile Custom Control Args - The set of AppProtection controls used to define how inspections are managed
- Description string
- The description of the AppProtection profile
- Global
Control []stringActions - The actions of the predefined, custom, or override controls
- Incarnation
Number string - Name string
- Paranoia
Level string - The OWASP Predefined Paranoia Level
- Predefined
Controls []InspectionProfile Predefined Control Args - The predefined controls
- Predefined
Controls stringVersion - The protocol for the AppProtection application
- Zs
Defined stringControl Choice - Indicates the user's choice for the ThreatLabZ Controls. Supported values: ALL and SPECIFIC
- associate
All BooleanControls - controls
Infos List<InspectionProfile Controls Info> - custom
Controls List<InspectionProfile Custom Control> - The set of AppProtection controls used to define how inspections are managed
- description String
- The description of the AppProtection profile
- global
Control List<String>Actions - The actions of the predefined, custom, or override controls
- incarnation
Number String - name String
- paranoia
Level String - The OWASP Predefined Paranoia Level
- predefined
Controls List<InspectionProfile Predefined Control> - The predefined controls
- predefined
Controls StringVersion - The protocol for the AppProtection application
- zs
Defined StringControl Choice - Indicates the user's choice for the ThreatLabZ Controls. Supported values: ALL and SPECIFIC
- associate
All booleanControls - controls
Infos InspectionProfile Controls Info[] - custom
Controls InspectionProfile Custom Control[] - The set of AppProtection controls used to define how inspections are managed
- description string
- The description of the AppProtection profile
- global
Control string[]Actions - The actions of the predefined, custom, or override controls
- incarnation
Number string - name string
- paranoia
Level string - The OWASP Predefined Paranoia Level
- predefined
Controls InspectionProfile Predefined Control[] - The predefined controls
- predefined
Controls stringVersion - The protocol for the AppProtection application
- zs
Defined stringControl Choice - Indicates the user's choice for the ThreatLabZ Controls. Supported values: ALL and SPECIFIC
- associate_
all_ boolcontrols - controls_
infos Sequence[InspectionProfile Controls Info Args] - custom_
controls Sequence[InspectionProfile Custom Control Args] - The set of AppProtection controls used to define how inspections are managed
- description str
- The description of the AppProtection profile
- global_
control_ Sequence[str]actions - The actions of the predefined, custom, or override controls
- incarnation_
number str - name str
- paranoia_
level str - The OWASP Predefined Paranoia Level
- predefined_
controls Sequence[InspectionProfile Predefined Control Args] - The predefined controls
- predefined_
controls_ strversion - The protocol for the AppProtection application
- zs_
defined_ strcontrol_ choice - Indicates the user's choice for the ThreatLabZ Controls. Supported values: ALL and SPECIFIC
- associate
All BooleanControls - controls
Infos List<Property Map> - custom
Controls List<Property Map> - The set of AppProtection controls used to define how inspections are managed
- description String
- The description of the AppProtection profile
- global
Control List<String>Actions - The actions of the predefined, custom, or override controls
- incarnation
Number String - name String
- paranoia
Level String - The OWASP Predefined Paranoia Level
- predefined
Controls List<Property Map> - The predefined controls
- predefined
Controls StringVersion - The protocol for the AppProtection application
- zs
Defined StringControl Choice - Indicates the user's choice for the ThreatLabZ Controls. Supported values: ALL and SPECIFIC
Supporting Types
InspectionProfileControlsInfo, InspectionProfileControlsInfoArgs
- Control
Type string
- Control
Type string
- control
Type String
- control
Type string
- control_
type str
- control
Type String
InspectionProfileCustomControl, InspectionProfileCustomControlArgs
- Id string
- The unique identifier of the custom control
- Action string
- The action of the custom control
- Action
Value string - Denotes the action. Supports any string
- Id string
- The unique identifier of the custom control
- Action string
- The action of the custom control
- Action
Value string - Denotes the action. Supports any string
- id String
- The unique identifier of the custom control
- action String
- The action of the custom control
- action
Value String - Denotes the action. Supports any string
- id string
- The unique identifier of the custom control
- action string
- The action of the custom control
- action
Value string - Denotes the action. Supports any string
- id str
- The unique identifier of the custom control
- action str
- The action of the custom control
- action_
value str - Denotes the action. Supports any string
- id String
- The unique identifier of the custom control
- action String
- The action of the custom control
- action
Value String - Denotes the action. Supports any string
InspectionProfilePredefinedControl, InspectionProfilePredefinedControlArgs
- Action string
- The action of the predefined control
- Action
Value string - The value for the predefined controls action. This field is only required if the action is set to REDIRECT
- Control
Type string - The control type of the custom control
- Id string
- The unique identifier of the predefined control
- Protocol
Type string - The protocol type of the predefined control
- Action string
- The action of the predefined control
- Action
Value string - The value for the predefined controls action. This field is only required if the action is set to REDIRECT
- Control
Type string - The control type of the custom control
- Id string
- The unique identifier of the predefined control
- Protocol
Type string - The protocol type of the predefined control
- action String
- The action of the predefined control
- action
Value String - The value for the predefined controls action. This field is only required if the action is set to REDIRECT
- control
Type String - The control type of the custom control
- id String
- The unique identifier of the predefined control
- protocol
Type String - The protocol type of the predefined control
- action string
- The action of the predefined control
- action
Value string - The value for the predefined controls action. This field is only required if the action is set to REDIRECT
- control
Type string - The control type of the custom control
- id string
- The unique identifier of the predefined control
- protocol
Type string - The protocol type of the predefined control
- action str
- The action of the predefined control
- action_
value str - The value for the predefined controls action. This field is only required if the action is set to REDIRECT
- control_
type str - The control type of the custom control
- id str
- The unique identifier of the predefined control
- protocol_
type str - The protocol type of the predefined control
- action String
- The action of the predefined control
- action
Value String - The value for the predefined controls action. This field is only required if the action is set to REDIRECT
- control
Type String - The control type of the custom control
- id String
- The unique identifier of the predefined control
- protocol
Type String - The protocol type of the predefined control
Import
Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZPA configurations into Terraform-compliant HashiCorp Configuration Language.
Visit
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- zpa zscaler/pulumi-zpa
- License
- MIT
- Notes
- This Pulumi package is based on the
zpa
Terraform Provider.