1. Packages
  2. Sysdig Provider
  3. API Docs
  4. SecureZone
sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs

sysdig.SecureZone

Explore with Pulumi AI

sysdig logo
sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sysdig from "@pulumi/sysdig";
    
    const example = new sysdig.SecureZone("example", {
        description: "An example Sysdig zone",
        scopes: [
            {
                rules: "organization in (\"o1\", \"o2\") and account in (\"a1\", \"a2\")",
                targetType: "aws",
            },
            {
                rules: "organization contains \"o1\"",
                targetType: "azure",
            },
        ],
    });
    
    import pulumi
    import pulumi_sysdig as sysdig
    
    example = sysdig.SecureZone("example",
        description="An example Sysdig zone",
        scopes=[
            {
                "rules": "organization in (\"o1\", \"o2\") and account in (\"a1\", \"a2\")",
                "target_type": "aws",
            },
            {
                "rules": "organization contains \"o1\"",
                "target_type": "azure",
            },
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/sysdig/sysdig"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sysdig.NewSecureZone(ctx, "example", &sysdig.SecureZoneArgs{
    			Description: pulumi.String("An example Sysdig zone"),
    			Scopes: sysdig.SecureZoneScopeArray{
    				&sysdig.SecureZoneScopeArgs{
    					Rules:      pulumi.String("organization in (\"o1\", \"o2\") and account in (\"a1\", \"a2\")"),
    					TargetType: pulumi.String("aws"),
    				},
    				&sysdig.SecureZoneScopeArgs{
    					Rules:      pulumi.String("organization contains \"o1\""),
    					TargetType: pulumi.String("azure"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Sysdig = Pulumi.Sysdig;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Sysdig.SecureZone("example", new()
        {
            Description = "An example Sysdig zone",
            Scopes = new[]
            {
                new Sysdig.Inputs.SecureZoneScopeArgs
                {
                    Rules = "organization in (\"o1\", \"o2\") and account in (\"a1\", \"a2\")",
                    TargetType = "aws",
                },
                new Sysdig.Inputs.SecureZoneScopeArgs
                {
                    Rules = "organization contains \"o1\"",
                    TargetType = "azure",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sysdig.SecureZone;
    import com.pulumi.sysdig.SecureZoneArgs;
    import com.pulumi.sysdig.inputs.SecureZoneScopeArgs;
    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) {
            var example = new SecureZone("example", SecureZoneArgs.builder()
                .description("An example Sysdig zone")
                .scopes(            
                    SecureZoneScopeArgs.builder()
                        .rules("organization in (\"o1\", \"o2\") and account in (\"a1\", \"a2\")")
                        .targetType("aws")
                        .build(),
                    SecureZoneScopeArgs.builder()
                        .rules("organization contains \"o1\"")
                        .targetType("azure")
                        .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: sysdig:SecureZone
        properties:
          description: An example Sysdig zone
          scopes:
            - rules: organization in ("o1", "o2") and account in ("a1", "a2")
              targetType: aws
            - rules: organization contains "o1"
              targetType: azure
    

    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)
    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",
                Id = 0,
                Rules = "string",
            },
        },
        Description = "string",
        Name = "string",
        SecureZoneId = "string",
    });
    
    example, err := sysdig.NewSecureZone(ctx, "secureZoneResource", &sysdig.SecureZoneArgs{
    	Scopes: sysdig.SecureZoneScopeArray{
    		&sysdig.SecureZoneScopeArgs{
    			TargetType: pulumi.String("string"),
    			Id:         pulumi.Float64(0),
    			Rules:      pulumi.String("string"),
    		},
    	},
    	Description:  pulumi.String("string"),
    	Name:         pulumi.String("string"),
    	SecureZoneId: pulumi.String("string"),
    })
    
    var secureZoneResource = new SecureZone("secureZoneResource", SecureZoneArgs.builder()
        .scopes(SecureZoneScopeArgs.builder()
            .targetType("string")
            .id(0)
            .rules("string")
            .build())
        .description("string")
        .name("string")
        .secureZoneId("string")
        .build());
    
    secure_zone_resource = sysdig.SecureZone("secureZoneResource",
        scopes=[{
            "target_type": "string",
            "id": 0,
            "rules": "string",
        }],
        description="string",
        name="string",
        secure_zone_id="string")
    
    const secureZoneResource = new sysdig.SecureZone("secureZoneResource", {
        scopes: [{
            targetType: "string",
            id: 0,
            rules: "string",
        }],
        description: "string",
        name: "string",
        secureZoneId: "string",
    });
    
    type: sysdig:SecureZone
    properties:
        description: string
        name: string
        scopes:
            - id: 0
              rules: string
              targetType: string
        secureZoneId: 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<SecureZoneScope>
    Description string
    The description of the Zone.
    Name string
    The name of the Zone.
    SecureZoneId string
    (Computed) The ID of the Zone.
    Scopes []SecureZoneScopeArgs
    Description string
    The description of the Zone.
    Name string
    The name of the Zone.
    SecureZoneId string
    (Computed) The ID of the Zone.
    scopes List<SecureZoneScope>
    description String
    The description of the Zone.
    name String
    The name of the Zone.
    secureZoneId String
    (Computed) The ID of the Zone.
    scopes SecureZoneScope[]
    description string
    The description of the Zone.
    name string
    The name of the Zone.
    secureZoneId string
    (Computed) The ID of the Zone.
    scopes Sequence[SecureZoneScopeArgs]
    description str
    The description of the Zone.
    name str
    The name of the Zone.
    secure_zone_id str
    (Computed) The ID of the Zone.
    scopes List<Property Map>
    description String
    The description of the Zone.
    name String
    The name of the Zone.
    secureZoneId String
    (Computed) The ID of the Zone.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecureZone resource produces the following output properties:

    Author string
    (Computed) The zone author.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsSystem bool
    (Computed) Whether the Zone is a system zone.
    LastModifiedBy string
    (Computed) By whom is last modification made.
    LastUpdated string
    (Computed) Timestamp of last modification of zone.
    Author string
    (Computed) The zone author.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsSystem bool
    (Computed) Whether the Zone is a system zone.
    LastModifiedBy string
    (Computed) By whom is last modification made.
    LastUpdated string
    (Computed) Timestamp of last modification of zone.
    author String
    (Computed) The zone author.
    id String
    The provider-assigned unique ID for this managed resource.
    isSystem Boolean
    (Computed) Whether the Zone is a system zone.
    lastModifiedBy String
    (Computed) By whom is last modification made.
    lastUpdated String
    (Computed) Timestamp of last modification of zone.
    author string
    (Computed) The zone author.
    id string
    The provider-assigned unique ID for this managed resource.
    isSystem boolean
    (Computed) Whether the Zone is a system zone.
    lastModifiedBy string
    (Computed) By whom is last modification made.
    lastUpdated string
    (Computed) Timestamp of last modification of zone.
    author 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_by str
    (Computed) By whom is last modification made.
    last_updated str
    (Computed) Timestamp of last modification of zone.
    author String
    (Computed) The zone author.
    id String
    The provider-assigned unique ID for this managed resource.
    isSystem Boolean
    (Computed) Whether the Zone is a system zone.
    lastModifiedBy String
    (Computed) By whom is last modification made.
    lastUpdated 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) -> SecureZone
    func 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.
    The following state arguments are supported:
    Author string
    (Computed) The zone author.
    Description string
    The description of the Zone.
    IsSystem bool
    (Computed) Whether the Zone is a system zone.
    LastModifiedBy string
    (Computed) By whom is last modification made.
    LastUpdated string
    (Computed) Timestamp of last modification of zone.
    Name string
    The name of the Zone.
    Scopes List<SecureZoneScope>
    SecureZoneId string
    (Computed) The ID of the Zone.
    Author string
    (Computed) The zone author.
    Description string
    The description of the Zone.
    IsSystem bool
    (Computed) Whether the Zone is a system zone.
    LastModifiedBy string
    (Computed) By whom is last modification made.
    LastUpdated string
    (Computed) Timestamp of last modification of zone.
    Name string
    The name of the Zone.
    Scopes []SecureZoneScopeArgs
    SecureZoneId string
    (Computed) The ID of the Zone.
    author String
    (Computed) The zone author.
    description String
    The description of the Zone.
    isSystem Boolean
    (Computed) Whether the Zone is a system zone.
    lastModifiedBy String
    (Computed) By whom is last modification made.
    lastUpdated String
    (Computed) Timestamp of last modification of zone.
    name String
    The name of the Zone.
    scopes List<SecureZoneScope>
    secureZoneId String
    (Computed) The ID of the Zone.
    author string
    (Computed) The zone author.
    description string
    The description of the Zone.
    isSystem boolean
    (Computed) Whether the Zone is a system zone.
    lastModifiedBy string
    (Computed) By whom is last modification made.
    lastUpdated string
    (Computed) Timestamp of last modification of zone.
    name string
    The name of the Zone.
    scopes SecureZoneScope[]
    secureZoneId string
    (Computed) The ID of the Zone.
    author 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_by str
    (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[SecureZoneScopeArgs]
    secure_zone_id str
    (Computed) The ID of the Zone.
    author String
    (Computed) The zone author.
    description String
    The description of the Zone.
    isSystem Boolean
    (Computed) Whether the Zone is a system zone.
    lastModifiedBy String
    (Computed) By whom is last modification made.
    lastUpdated String
    (Computed) Timestamp of last modification of zone.
    name String
    The name of the Zone.
    scopes List<Property Map>
    secureZoneId String
    (Computed) The ID of the Zone.

    Supporting Types

    SecureZoneScope, SecureZoneScopeArgs

    TargetType string
    The target type for the scope. Supported types:

    • AWS - aws
    • GCP - gcp
    • Azure - azure
    • Kubernetes - kubernetes
    • Image - image
    • Host - host
    • Git - git
    Id double
    (Computed) The ID of the Zone.
    Rules string

    Query language expression for filtering results. Empty rules means no filtering.

    Operators:

    TargetType string
    The target type for the scope. Supported types:

    • AWS - aws
    • GCP - gcp
    • Azure - azure
    • Kubernetes - kubernetes
    • Image - image
    • Host - host
    • Git - git
    Id float64
    (Computed) The ID of the Zone.
    Rules string

    Query language expression for filtering results. Empty rules means no filtering.

    Operators:

    targetType String
    The target type for the scope. Supported types:

    • AWS - aws
    • GCP - gcp
    • Azure - azure
    • Kubernetes - kubernetes
    • Image - image
    • Host - host
    • Git - git
    id Double
    (Computed) The ID of the Zone.
    rules String

    Query language expression for filtering results. Empty rules means no filtering.

    Operators:

    targetType string
    The target type for the scope. Supported types:

    • AWS - aws
    • GCP - gcp
    • Azure - azure
    • Kubernetes - kubernetes
    • Image - image
    • Host - host
    • Git - git
    id number
    (Computed) The ID of the Zone.
    rules string

    Query language expression for filtering results. Empty rules means no filtering.

    Operators:

    target_type str
    The target type for the scope. Supported types:

    • AWS - aws
    • GCP - gcp
    • Azure - azure
    • Kubernetes - kubernetes
    • Image - image
    • Host - host
    • Git - git
    id float
    (Computed) The ID of the Zone.
    rules str

    Query language expression for filtering results. Empty rules means no filtering.

    Operators:

    targetType String
    The target type for the scope. Supported types:

    • AWS - aws
    • GCP - gcp
    • Azure - azure
    • Kubernetes - kubernetes
    • Image - image
    • Host - host
    • Git - git
    id Number
    (Computed) The ID of the Zone.
    rules String

    Query language expression for filtering results. Empty rules means no filtering.

    Operators:

    Import

    Zone can be imported using the ID, e.g.

    $ pulumi import sysdig:index/secureZone:SecureZone example 12345
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    sysdig sysdiglabs/terraform-provider-sysdig
    License
    Notes
    This Pulumi package is based on the sysdig Terraform Provider.
    sysdig logo
    sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs