1. Packages
  2. Sysdig Provider
  3. API Docs
  4. getSecureZone
sysdig 1.53.0 published on Thursday, Apr 17, 2025 by sysdiglabs

sysdig.getSecureZone

Explore with Pulumi AI

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func LookupSecureZone(ctx *Context, args *LookupSecureZoneArgs, opts ...InvokeOption) (*LookupSecureZoneResult, error)
func LookupSecureZoneOutput(ctx *Context, args *LookupSecureZoneOutputArgs, opts ...InvokeOption) LookupSecureZoneResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetSecureZoneResult> getSecureZone(GetSecureZoneArgs args, InvokeOptions options)
public static Output<GetSecureZoneResult> getSecureZone(GetSecureZoneArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: sysdig:index/getSecureZone:getSecureZone
  arguments:
    # arguments dictionary
Copy

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 This property is required. double
The ID of the Sysdig Secure Zone.
Rules This property is required. string
TargetType This property is required. string
Id This property is required. float64
The ID of the Sysdig Secure Zone.
Rules This property is required. string
TargetType This property is required. string
id This property is required. Double
The ID of the Sysdig Secure Zone.
rules This property is required. String
targetType This property is required. String
id This property is required. number
The ID of the Sysdig Secure Zone.
rules This property is required. string
targetType This property is required. string
id This property is required. float
The ID of the Sysdig Secure Zone.
rules This property is required. str
target_type This property is required. str
id This property is required. Number
The ID of the Sysdig Secure Zone.
rules This property is required. String
targetType This property is required. String

Package Details

Repository
sysdig sysdiglabs/terraform-provider-sysdig
License
Notes
This Pulumi package is based on the sysdig Terraform Provider.