sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs
sysdig.getSecureZone
Explore with Pulumi AI
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:
getSecureZone Result
The following output properties are available:
- string
- (Computed) The zone author.
- Description string
- 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.
- Scopes
List<Get
Secure Zone Scope> - (Computed) The scope of the zone.
- Id string
- Name string
- string
- (Computed) The zone author.
- Description string
- 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.
- Scopes
[]Get
Secure Zone Scope - (Computed) The scope of the zone.
- Id string
- Name string
- String
- (Computed) The zone author.
- description String
- 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.
- scopes
List<Get
Secure Zone Scope> - (Computed) The scope of the zone.
- id String
- name String
- string
- (Computed) The zone author.
- description string
- 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.
- scopes
Get
Secure Zone Scope[] - (Computed) The scope of the zone.
- id string
- name string
- str
- (Computed) The zone author.
- description str
- 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.
- scopes
Sequence[Get
Secure Zone Scope] - (Computed) The scope of the zone.
- id str
- name str
- String
- (Computed) The zone author.
- description String
- 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.
- 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
- Target
Type string
- Id float64
- The ID of the Sysdig Secure Zone.
- Rules string
- Target
Type string
- id Double
- The ID of the Sysdig Secure Zone.
- rules String
- target
Type String
- id number
- The ID of the Sysdig Secure Zone.
- rules string
- target
Type 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
- target
Type String
Package Details
- Repository
- sysdig sysdiglabs/terraform-provider-sysdig
- License
- Notes
- This Pulumi package is based on the
sysdig
Terraform Provider.
sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs