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

sysdig.getSecureZone

Explore with Pulumi AI

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

    The sysdig.SecureZone data source allows you to retrieve information about a specific Sysdig Secure Zone.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sysdig from "@pulumi/sysdig";
    
    const sample = new sysdig.SecureZone("sample", {
        description: "Test secure zone",
        scopes: [{
            targetType: "aws",
            rules: "organization in (\"o1\", \"o2\") and account in (\"a1\", \"a2\")",
        }],
    });
    const test = sysdig.getSecureZoneOutput({
        name: sample.name,
    });
    
    import pulumi
    import pulumi_sysdig as sysdig
    
    sample = sysdig.SecureZone("sample",
        description="Test secure zone",
        scopes=[{
            "target_type": "aws",
            "rules": "organization in (\"o1\", \"o2\") and account in (\"a1\", \"a2\")",
        }])
    test = sysdig.get_secure_zone_output(name=sample.name)
    
    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 {
    		sample, err := sysdig.NewSecureZone(ctx, "sample", &sysdig.SecureZoneArgs{
    			Description: pulumi.String("Test secure zone"),
    			Scopes: sysdig.SecureZoneScopeArray{
    				&sysdig.SecureZoneScopeArgs{
    					TargetType: pulumi.String("aws"),
    					Rules:      pulumi.String("organization in (\"o1\", \"o2\") and account in (\"a1\", \"a2\")"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_ = sysdig.LookupSecureZoneOutput(ctx, sysdig.GetSecureZoneOutputArgs{
    			Name: sample.Name,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Sysdig = Pulumi.Sysdig;
    
    return await Deployment.RunAsync(() => 
    {
        var sample = new Sysdig.SecureZone("sample", new()
        {
            Description = "Test secure zone",
            Scopes = new[]
            {
                new Sysdig.Inputs.SecureZoneScopeArgs
                {
                    TargetType = "aws",
                    Rules = "organization in (\"o1\", \"o2\") and account in (\"a1\", \"a2\")",
                },
            },
        });
    
        var test = Sysdig.GetSecureZone.Invoke(new()
        {
            Name = sample.Name,
        });
    
    });
    
    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 com.pulumi.sysdig.SysdigFunctions;
    import com.pulumi.sysdig.inputs.GetSecureZoneArgs;
    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 sample = new SecureZone("sample", SecureZoneArgs.builder()
                .description("Test secure zone")
                .scopes(SecureZoneScopeArgs.builder()
                    .targetType("aws")
                    .rules("organization in (\"o1\", \"o2\") and account in (\"a1\", \"a2\")")
                    .build())
                .build());
    
            final var test = SysdigFunctions.getSecureZone(GetSecureZoneArgs.builder()
                .name(sample.name())
                .build());
    
        }
    }
    
    resources:
      sample:
        type: sysdig:SecureZone
        properties:
          description: Test secure zone
          scopes:
            - targetType: aws
              rules: organization in ("o1", "o2") and account in ("a1", "a2")
    variables:
      test:
        fn::invoke:
          function: sysdig:getSecureZone
          arguments:
            name: ${sample.name}
    

    Using getSecureZone

    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 getSecureZone(args: GetSecureZoneArgs, opts?: InvokeOptions): Promise<GetSecureZoneResult>
    function getSecureZoneOutput(args: GetSecureZoneOutputArgs, opts?: InvokeOptions): Output<GetSecureZoneResult>
    def get_secure_zone(id: Optional[str] = None,
                        name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetSecureZoneResult
    def get_secure_zone_output(id: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetSecureZoneResult]
    func LookupSecureZone(ctx *Context, args *LookupSecureZoneArgs, opts ...InvokeOption) (*LookupSecureZoneResult, error)
    func LookupSecureZoneOutput(ctx *Context, args *LookupSecureZoneOutputArgs, opts ...InvokeOption) LookupSecureZoneResultOutput

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

    public static class GetSecureZone 
    {
        public static Task<GetSecureZoneResult> InvokeAsync(GetSecureZoneArgs args, InvokeOptions? opts = null)
        public static Output<GetSecureZoneResult> Invoke(GetSecureZoneInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecureZoneResult> getSecureZone(GetSecureZoneArgs args, InvokeOptions options)
    public static Output<GetSecureZoneResult> getSecureZone(GetSecureZoneArgs args, InvokeOptions options)
    
    fn::invoke:
      function: sysdig:index/getSecureZone:getSecureZone
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of the Sysdig Secure Zone.
    Name string
    The name of the Sysdig Secure Zone.
    Id string
    The ID of the Sysdig Secure Zone.
    Name string
    The name of the Sysdig Secure Zone.
    id String
    The ID of the Sysdig Secure Zone.
    name String
    The name of the Sysdig Secure Zone.
    id string
    The ID of the Sysdig Secure Zone.
    name string
    The name of the Sysdig Secure Zone.
    id str
    The ID of the Sysdig Secure Zone.
    name str
    The name of the Sysdig Secure Zone.
    id String
    The ID of the Sysdig Secure Zone.
    name String
    The name of the Sysdig Secure Zone.

    getSecureZone Result

    The following output properties are available:

    Author string
    (Computed) The zone author.
    Description string
    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.
    Scopes List<GetSecureZoneScope>
    (Computed) The scope of the zone.
    Id string
    Name string
    Author string
    (Computed) The zone author.
    Description string
    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.
    Scopes []GetSecureZoneScope
    (Computed) The scope of the zone.
    Id string
    Name string
    author String
    (Computed) The zone author.
    description String
    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.
    scopes List<GetSecureZoneScope>
    (Computed) The scope of the zone.
    id String
    name String
    author string
    (Computed) The zone author.
    description string
    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.
    scopes GetSecureZoneScope[]
    (Computed) The scope of the zone.
    id string
    name string
    author str
    (Computed) The zone author.
    description str
    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.
    scopes Sequence[GetSecureZoneScope]
    (Computed) The scope of the zone.
    id str
    name str
    author String
    (Computed) The zone author.
    description String
    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.
    scopes List<Property Map>
    (Computed) The scope of the zone.
    id String
    name String

    Supporting Types

    GetSecureZoneScope

    Id double
    The ID of the Sysdig Secure Zone.
    Rules string
    TargetType string
    Id float64
    The ID of the Sysdig Secure Zone.
    Rules string
    TargetType string
    id Double
    The ID of the Sysdig Secure Zone.
    rules String
    targetType String
    id number
    The ID of the Sysdig Secure Zone.
    rules string
    targetType string
    id float
    The ID of the Sysdig Secure Zone.
    rules str
    target_type str
    id Number
    The ID of the Sysdig Secure Zone.
    rules String
    targetType String

    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