published on Wednesday, May 6, 2026 by sysdiglabs
published on Wednesday, May 6, 2026 by sysdiglabs
Import
Zone can be imported using the ID, e.g.
$ pulumi import sysdig:index/secureZone:SecureZone example 12345
~> Note: Imported zones are always represented using the rules string in initial state. If your configuration uses expression blocks, the first pulumi preview after import will show changes to converge to the expression-based representation. Apply once to align state with your config.
Create SecureZone Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecureZone(name: string, args: SecureZoneArgs, opts?: CustomResourceOptions);@overload
def SecureZone(resource_name: str,
args: SecureZoneArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecureZone(resource_name: str,
opts: Optional[ResourceOptions] = None,
scopes: Optional[Sequence[SecureZoneScopeArgs]] = None,
description: Optional[str] = None,
name: Optional[str] = None,
secure_zone_id: Optional[str] = None,
timeouts: Optional[SecureZoneTimeoutsArgs] = None)func NewSecureZone(ctx *Context, name string, args SecureZoneArgs, opts ...ResourceOption) (*SecureZone, error)public SecureZone(string name, SecureZoneArgs args, CustomResourceOptions? opts = null)
public SecureZone(String name, SecureZoneArgs args)
public SecureZone(String name, SecureZoneArgs args, CustomResourceOptions options)
type: sysdig:SecureZone
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 SecureZoneArgs
- 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 SecureZoneArgs
- 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 SecureZoneArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecureZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecureZoneArgs
- 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 secureZoneResource = new Sysdig.SecureZone("secureZoneResource", new()
{
Scopes = new[]
{
new Sysdig.Inputs.SecureZoneScopeArgs
{
TargetType = "string",
Expressions = new[]
{
new Sysdig.Inputs.SecureZoneScopeExpressionArgs
{
Field = "string",
Operator = "string",
Value = "string",
Values = new[]
{
"string",
},
},
},
Id = 0,
Rules = "string",
},
},
Description = "string",
Name = "string",
SecureZoneId = "string",
Timeouts = new Sysdig.Inputs.SecureZoneTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
});
example, err := sysdig.NewSecureZone(ctx, "secureZoneResource", &sysdig.SecureZoneArgs{
Scopes: sysdig.SecureZoneScopeArray{
&sysdig.SecureZoneScopeArgs{
TargetType: pulumi.String("string"),
Expressions: sysdig.SecureZoneScopeExpressionArray{
&sysdig.SecureZoneScopeExpressionArgs{
Field: pulumi.String("string"),
Operator: pulumi.String("string"),
Value: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Id: pulumi.Float64(0),
Rules: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
SecureZoneId: pulumi.String("string"),
Timeouts: &sysdig.SecureZoneTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var secureZoneResource = new SecureZone("secureZoneResource", SecureZoneArgs.builder()
.scopes(SecureZoneScopeArgs.builder()
.targetType("string")
.expressions(SecureZoneScopeExpressionArgs.builder()
.field("string")
.operator("string")
.value("string")
.values("string")
.build())
.id(0.0)
.rules("string")
.build())
.description("string")
.name("string")
.secureZoneId("string")
.timeouts(SecureZoneTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.build());
secure_zone_resource = sysdig.SecureZone("secureZoneResource",
scopes=[{
"target_type": "string",
"expressions": [{
"field": "string",
"operator": "string",
"value": "string",
"values": ["string"],
}],
"id": float(0),
"rules": "string",
}],
description="string",
name="string",
secure_zone_id="string",
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
})
const secureZoneResource = new sysdig.SecureZone("secureZoneResource", {
scopes: [{
targetType: "string",
expressions: [{
field: "string",
operator: "string",
value: "string",
values: ["string"],
}],
id: 0,
rules: "string",
}],
description: "string",
name: "string",
secureZoneId: "string",
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
});
type: sysdig:SecureZone
properties:
description: string
name: string
scopes:
- expressions:
- field: string
operator: string
value: string
values:
- string
id: 0
rules: string
targetType: string
secureZoneId: string
timeouts:
create: string
delete: string
read: string
update: string
SecureZone Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SecureZone resource accepts the following input properties:
- Scopes
List<Secure
Zone Scope> - One or more
scopeblocks attached to the Zone. - Description string
- The description of the Zone.
- Name string
- The name of the Zone.
- Secure
Zone stringId - (Computed) The ID of the Zone.
- Timeouts
Secure
Zone Timeouts
- Scopes
[]Secure
Zone Scope Args - One or more
scopeblocks attached to the Zone. - Description string
- The description of the Zone.
- Name string
- The name of the Zone.
- Secure
Zone stringId - (Computed) The ID of the Zone.
- Timeouts
Secure
Zone Timeouts Args
- scopes
List<Secure
Zone Scope> - One or more
scopeblocks attached to the Zone. - description String
- The description of the Zone.
- name String
- The name of the Zone.
- secure
Zone StringId - (Computed) The ID of the Zone.
- timeouts
Secure
Zone Timeouts
- scopes
Secure
Zone Scope[] - One or more
scopeblocks attached to the Zone. - description string
- The description of the Zone.
- name string
- The name of the Zone.
- secure
Zone stringId - (Computed) The ID of the Zone.
- timeouts
Secure
Zone Timeouts
- scopes
Sequence[Secure
Zone Scope Args] - One or more
scopeblocks attached to the Zone. - description str
- The description of the Zone.
- name str
- The name of the Zone.
- secure_
zone_ strid - (Computed) The ID of the Zone.
- timeouts
Secure
Zone Timeouts Args
- scopes List<Property Map>
- One or more
scopeblocks attached to the Zone. - description String
- The description of the Zone.
- name String
- The name of the Zone.
- secure
Zone StringId - (Computed) The ID of the Zone.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the SecureZone resource produces the following output properties:
- string
- (Computed) The zone author.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
System bool - (Computed) Whether the Zone is a system zone.
- Last
Modified stringBy - (Computed) By whom is last modification made.
- Last
Updated string - (Computed) Timestamp of last modification of zone.
- string
- (Computed) The zone author.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
System bool - (Computed) Whether the Zone is a system zone.
- Last
Modified stringBy - (Computed) By whom is last modification made.
- Last
Updated string - (Computed) Timestamp of last modification of zone.
- String
- (Computed) The zone author.
- id String
- The provider-assigned unique ID for this managed resource.
- is
System Boolean - (Computed) Whether the Zone is a system zone.
- last
Modified StringBy - (Computed) By whom is last modification made.
- last
Updated String - (Computed) Timestamp of last modification of zone.
- string
- (Computed) The zone author.
- id string
- The provider-assigned unique ID for this managed resource.
- is
System boolean - (Computed) Whether the Zone is a system zone.
- last
Modified stringBy - (Computed) By whom is last modification made.
- last
Updated string - (Computed) Timestamp of last modification of zone.
- str
- (Computed) The zone author.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
system bool - (Computed) Whether the Zone is a system zone.
- last_
modified_ strby - (Computed) By whom is last modification made.
- last_
updated str - (Computed) Timestamp of last modification of zone.
- String
- (Computed) The zone author.
- id String
- The provider-assigned unique ID for this managed resource.
- is
System Boolean - (Computed) Whether the Zone is a system zone.
- last
Modified StringBy - (Computed) By whom is last modification made.
- last
Updated String - (Computed) Timestamp of last modification of zone.
Look up Existing SecureZone Resource
Get an existing SecureZone 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?: SecureZoneState, opts?: CustomResourceOptions): SecureZone@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
author: Optional[str] = None,
description: Optional[str] = None,
is_system: Optional[bool] = None,
last_modified_by: Optional[str] = None,
last_updated: Optional[str] = None,
name: Optional[str] = None,
scopes: Optional[Sequence[SecureZoneScopeArgs]] = None,
secure_zone_id: Optional[str] = None,
timeouts: Optional[SecureZoneTimeoutsArgs] = None) -> SecureZonefunc GetSecureZone(ctx *Context, name string, id IDInput, state *SecureZoneState, opts ...ResourceOption) (*SecureZone, error)public static SecureZone Get(string name, Input<string> id, SecureZoneState? state, CustomResourceOptions? opts = null)public static SecureZone get(String name, Output<String> id, SecureZoneState state, CustomResourceOptions options)resources: _: type: sysdig:SecureZone get: id: ${id}- 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.
- string
- (Computed) The zone author.
- Description string
- The description of the Zone.
- Is
System bool - (Computed) Whether the Zone is a system zone.
- Last
Modified stringBy - (Computed) By whom is last modification made.
- Last
Updated string - (Computed) Timestamp of last modification of zone.
- Name string
- The name of the Zone.
- Scopes
List<Secure
Zone Scope> - One or more
scopeblocks attached to the Zone. - Secure
Zone stringId - (Computed) The ID of the Zone.
- Timeouts
Secure
Zone Timeouts
- string
- (Computed) The zone author.
- Description string
- The description of the Zone.
- Is
System bool - (Computed) Whether the Zone is a system zone.
- Last
Modified stringBy - (Computed) By whom is last modification made.
- Last
Updated string - (Computed) Timestamp of last modification of zone.
- Name string
- The name of the Zone.
- Scopes
[]Secure
Zone Scope Args - One or more
scopeblocks attached to the Zone. - Secure
Zone stringId - (Computed) The ID of the Zone.
- Timeouts
Secure
Zone Timeouts Args
- String
- (Computed) The zone author.
- description String
- The description of the Zone.
- is
System Boolean - (Computed) Whether the Zone is a system zone.
- last
Modified StringBy - (Computed) By whom is last modification made.
- last
Updated String - (Computed) Timestamp of last modification of zone.
- name String
- The name of the Zone.
- scopes
List<Secure
Zone Scope> - One or more
scopeblocks attached to the Zone. - secure
Zone StringId - (Computed) The ID of the Zone.
- timeouts
Secure
Zone Timeouts
- string
- (Computed) The zone author.
- description string
- The description of the Zone.
- is
System boolean - (Computed) Whether the Zone is a system zone.
- last
Modified stringBy - (Computed) By whom is last modification made.
- last
Updated string - (Computed) Timestamp of last modification of zone.
- name string
- The name of the Zone.
- scopes
Secure
Zone Scope[] - One or more
scopeblocks attached to the Zone. - secure
Zone stringId - (Computed) The ID of the Zone.
- timeouts
Secure
Zone Timeouts
- str
- (Computed) The zone author.
- description str
- The description of the Zone.
- is_
system bool - (Computed) Whether the Zone is a system zone.
- last_
modified_ strby - (Computed) By whom is last modification made.
- last_
updated str - (Computed) Timestamp of last modification of zone.
- name str
- The name of the Zone.
- scopes
Sequence[Secure
Zone Scope Args] - One or more
scopeblocks attached to the Zone. - secure_
zone_ strid - (Computed) The ID of the Zone.
- timeouts
Secure
Zone Timeouts Args
- String
- (Computed) The zone author.
- description String
- The description of the Zone.
- is
System Boolean - (Computed) Whether the Zone is a system zone.
- last
Modified StringBy - (Computed) By whom is last modification made.
- last
Updated String - (Computed) Timestamp of last modification of zone.
- name String
- The name of the Zone.
- scopes List<Property Map>
- One or more
scopeblocks attached to the Zone. - secure
Zone StringId - (Computed) The ID of the Zone.
- timeouts Property Map
Supporting Types
SecureZoneScope, SecureZoneScopeArgs
- Target
Type string - The resource type this scope applies to. Supported types:
- AWS -
aws - GCP -
gcp - Azure -
azure - Kubernetes -
kubernetes - Image -
image - Host -
host - Git -
git - IBM -
ibm - OCI -
oci
- AWS -
- Expressions
List<Secure
Zone Scope Expression> One or more blocks that define the scope as a list of filter expressions.
A scope must specify either
rulesor at least oneexpressionblock.- Id double
- (Computed) The ID of the Zone.
- Rules string
Query language expression for filtering results.
Note: The
rulesfield supports both v2 and legacy (v1) syntax. When using legacy v1 attributes (labels,labelValues,agentTags), a deprecation warning will be shown — migrate toexpressionblocks with v2 field names (label.<key>,agent.tag.<key>). Rules using v2-compatible syntax (e.g.,organization,account,cluster) are fully supported and produce no warning.rulesandexpressioncannot be used together within the samescope.
- Target
Type string - The resource type this scope applies to. Supported types:
- AWS -
aws - GCP -
gcp - Azure -
azure - Kubernetes -
kubernetes - Image -
image - Host -
host - Git -
git - IBM -
ibm - OCI -
oci
- AWS -
- Expressions
[]Secure
Zone Scope Expression One or more blocks that define the scope as a list of filter expressions.
A scope must specify either
rulesor at least oneexpressionblock.- Id float64
- (Computed) The ID of the Zone.
- Rules string
Query language expression for filtering results.
Note: The
rulesfield supports both v2 and legacy (v1) syntax. When using legacy v1 attributes (labels,labelValues,agentTags), a deprecation warning will be shown — migrate toexpressionblocks with v2 field names (label.<key>,agent.tag.<key>). Rules using v2-compatible syntax (e.g.,organization,account,cluster) are fully supported and produce no warning.rulesandexpressioncannot be used together within the samescope.
- target
Type String - The resource type this scope applies to. Supported types:
- AWS -
aws - GCP -
gcp - Azure -
azure - Kubernetes -
kubernetes - Image -
image - Host -
host - Git -
git - IBM -
ibm - OCI -
oci
- AWS -
- expressions
List<Secure
Zone Scope Expression> One or more blocks that define the scope as a list of filter expressions.
A scope must specify either
rulesor at least oneexpressionblock.- id Double
- (Computed) The ID of the Zone.
- rules String
Query language expression for filtering results.
Note: The
rulesfield supports both v2 and legacy (v1) syntax. When using legacy v1 attributes (labels,labelValues,agentTags), a deprecation warning will be shown — migrate toexpressionblocks with v2 field names (label.<key>,agent.tag.<key>). Rules using v2-compatible syntax (e.g.,organization,account,cluster) are fully supported and produce no warning.rulesandexpressioncannot be used together within the samescope.
- target
Type string - The resource type this scope applies to. Supported types:
- AWS -
aws - GCP -
gcp - Azure -
azure - Kubernetes -
kubernetes - Image -
image - Host -
host - Git -
git - IBM -
ibm - OCI -
oci
- AWS -
- expressions
Secure
Zone Scope Expression[] One or more blocks that define the scope as a list of filter expressions.
A scope must specify either
rulesor at least oneexpressionblock.- id number
- (Computed) The ID of the Zone.
- rules string
Query language expression for filtering results.
Note: The
rulesfield supports both v2 and legacy (v1) syntax. When using legacy v1 attributes (labels,labelValues,agentTags), a deprecation warning will be shown — migrate toexpressionblocks with v2 field names (label.<key>,agent.tag.<key>). Rules using v2-compatible syntax (e.g.,organization,account,cluster) are fully supported and produce no warning.rulesandexpressioncannot be used together within the samescope.
- target_
type str - The resource type this scope applies to. Supported types:
- AWS -
aws - GCP -
gcp - Azure -
azure - Kubernetes -
kubernetes - Image -
image - Host -
host - Git -
git - IBM -
ibm - OCI -
oci
- AWS -
- expressions
Sequence[Secure
Zone Scope Expression] One or more blocks that define the scope as a list of filter expressions.
A scope must specify either
rulesor at least oneexpressionblock.- id float
- (Computed) The ID of the Zone.
- rules str
Query language expression for filtering results.
Note: The
rulesfield supports both v2 and legacy (v1) syntax. When using legacy v1 attributes (labels,labelValues,agentTags), a deprecation warning will be shown — migrate toexpressionblocks with v2 field names (label.<key>,agent.tag.<key>). Rules using v2-compatible syntax (e.g.,organization,account,cluster) are fully supported and produce no warning.rulesandexpressioncannot be used together within the samescope.
- target
Type String - The resource type this scope applies to. Supported types:
- AWS -
aws - GCP -
gcp - Azure -
azure - Kubernetes -
kubernetes - Image -
image - Host -
host - Git -
git - IBM -
ibm - OCI -
oci
- AWS -
- expressions List<Property Map>
One or more blocks that define the scope as a list of filter expressions.
A scope must specify either
rulesor at least oneexpressionblock.- id Number
- (Computed) The ID of the Zone.
- rules String
Query language expression for filtering results.
Note: The
rulesfield supports both v2 and legacy (v1) syntax. When using legacy v1 attributes (labels,labelValues,agentTags), a deprecation warning will be shown — migrate toexpressionblocks with v2 field names (label.<key>,agent.tag.<key>). Rules using v2-compatible syntax (e.g.,organization,account,cluster) are fully supported and produce no warning.rulesandexpressioncannot be used together within the samescope.
SecureZoneScopeExpression, SecureZoneScopeExpressionArgs
- Field string
- Field name to filter on. See the "Supported fields" section below.
- Operator string
- Operator to apply.
- Value string
- Single value for operators that take one argument.
- Values List<string>
List of values for operators such as
in.Note: Provide either
valueorvaluesfor anexpressionblock (depending on the operator). If both are set,valuestakes precedence.
- Field string
- Field name to filter on. See the "Supported fields" section below.
- Operator string
- Operator to apply.
- Value string
- Single value for operators that take one argument.
- Values []string
List of values for operators such as
in.Note: Provide either
valueorvaluesfor anexpressionblock (depending on the operator). If both are set,valuestakes precedence.
- field String
- Field name to filter on. See the "Supported fields" section below.
- operator String
- Operator to apply.
- value String
- Single value for operators that take one argument.
- values List<String>
List of values for operators such as
in.Note: Provide either
valueorvaluesfor anexpressionblock (depending on the operator). If both are set,valuestakes precedence.
- field string
- Field name to filter on. See the "Supported fields" section below.
- operator string
- Operator to apply.
- value string
- Single value for operators that take one argument.
- values string[]
List of values for operators such as
in.Note: Provide either
valueorvaluesfor anexpressionblock (depending on the operator). If both are set,valuestakes precedence.
- field str
- Field name to filter on. See the "Supported fields" section below.
- operator str
- Operator to apply.
- value str
- Single value for operators that take one argument.
- values Sequence[str]
List of values for operators such as
in.Note: Provide either
valueorvaluesfor anexpressionblock (depending on the operator). If both are set,valuestakes precedence.
- field String
- Field name to filter on. See the "Supported fields" section below.
- operator String
- Operator to apply.
- value String
- Single value for operators that take one argument.
- values List<String>
List of values for operators such as
in.Note: Provide either
valueorvaluesfor anexpressionblock (depending on the operator). If both are set,valuestakes precedence.
SecureZoneTimeouts, SecureZoneTimeoutsArgs
Package Details
- Repository
- sysdig sysdiglabs/terraform-provider-sysdig
- License
- Notes
- This Pulumi package is based on the
sysdigTerraform Provider.
published on Wednesday, May 6, 2026 by sysdiglabs
