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

sysdig.getSecurePostureZone

Explore with Pulumi AI

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

    The sysdig.SecurePostureZone data source allows you to retrieve information about a specific secure posture zone by its ID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sysdig from "@pulumi/sysdig";
    
    const example = sysdig.getSecurePostureZone({
        id: "454678",
    });
    
    import pulumi
    import pulumi_sysdig as sysdig
    
    example = sysdig.get_secure_posture_zone(id="454678")
    
    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.LookupSecurePostureZone(ctx, &sysdig.LookupSecurePostureZoneArgs{
    			Id: "454678",
    		}, nil)
    		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 = Sysdig.GetSecurePostureZone.Invoke(new()
        {
            Id = "454678",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sysdig.SysdigFunctions;
    import com.pulumi.sysdig.inputs.GetSecurePostureZoneArgs;
    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) {
            final var example = SysdigFunctions.getSecurePostureZone(GetSecurePostureZoneArgs.builder()
                .id("454678")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: sysdig:getSecurePostureZone
          arguments:
            id: '454678'
    

    Using getSecurePostureZone

    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 getSecurePostureZone(args: GetSecurePostureZoneArgs, opts?: InvokeOptions): Promise<GetSecurePostureZoneResult>
    function getSecurePostureZoneOutput(args: GetSecurePostureZoneOutputArgs, opts?: InvokeOptions): Output<GetSecurePostureZoneResult>
    def get_secure_posture_zone(id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetSecurePostureZoneResult
    def get_secure_posture_zone_output(id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetSecurePostureZoneResult]
    func LookupSecurePostureZone(ctx *Context, args *LookupSecurePostureZoneArgs, opts ...InvokeOption) (*LookupSecurePostureZoneResult, error)
    func LookupSecurePostureZoneOutput(ctx *Context, args *LookupSecurePostureZoneOutputArgs, opts ...InvokeOption) LookupSecurePostureZoneResultOutput

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

    public static class GetSecurePostureZone 
    {
        public static Task<GetSecurePostureZoneResult> InvokeAsync(GetSecurePostureZoneArgs args, InvokeOptions? opts = null)
        public static Output<GetSecurePostureZoneResult> Invoke(GetSecurePostureZoneInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecurePostureZoneResult> getSecurePostureZone(GetSecurePostureZoneArgs args, InvokeOptions options)
    public static Output<GetSecurePostureZoneResult> getSecurePostureZone(GetSecurePostureZoneArgs args, InvokeOptions options)
    
    fn::invoke:
      function: sysdig:index/getSecurePostureZone:getSecurePostureZone
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of the secure posture zone to retrieve.
    Id string
    The ID of the secure posture zone to retrieve.
    id String
    The ID of the secure posture zone to retrieve.
    id string
    The ID of the secure posture zone to retrieve.
    id str
    The ID of the secure posture zone to retrieve.
    id String
    The ID of the secure posture zone to retrieve.

    getSecurePostureZone Result

    The following output properties are available:

    Author string
    The author of the secure posture zone.
    Description string
    The description of the secure posture zone.
    Id string
    LastModifiedBy string
    The user who last modified the secure posture zone.
    LastUpdated string
    The timestamp of the last update to the secure posture zone.
    Name string
    The name of the secure posture zone.
    PolicyIds List<double>
    A list of policy IDs associated with the secure posture zone.
    Scopes List<GetSecurePostureZoneScope>
    A list of scopes associated with the secure posture zone. Each scope contains:
    Author string
    The author of the secure posture zone.
    Description string
    The description of the secure posture zone.
    Id string
    LastModifiedBy string
    The user who last modified the secure posture zone.
    LastUpdated string
    The timestamp of the last update to the secure posture zone.
    Name string
    The name of the secure posture zone.
    PolicyIds []float64
    A list of policy IDs associated with the secure posture zone.
    Scopes []GetSecurePostureZoneScope
    A list of scopes associated with the secure posture zone. Each scope contains:
    author String
    The author of the secure posture zone.
    description String
    The description of the secure posture zone.
    id String
    lastModifiedBy String
    The user who last modified the secure posture zone.
    lastUpdated String
    The timestamp of the last update to the secure posture zone.
    name String
    The name of the secure posture zone.
    policyIds List<Double>
    A list of policy IDs associated with the secure posture zone.
    scopes List<GetSecurePostureZoneScope>
    A list of scopes associated with the secure posture zone. Each scope contains:
    author string
    The author of the secure posture zone.
    description string
    The description of the secure posture zone.
    id string
    lastModifiedBy string
    The user who last modified the secure posture zone.
    lastUpdated string
    The timestamp of the last update to the secure posture zone.
    name string
    The name of the secure posture zone.
    policyIds number[]
    A list of policy IDs associated with the secure posture zone.
    scopes GetSecurePostureZoneScope[]
    A list of scopes associated with the secure posture zone. Each scope contains:
    author str
    The author of the secure posture zone.
    description str
    The description of the secure posture zone.
    id str
    last_modified_by str
    The user who last modified the secure posture zone.
    last_updated str
    The timestamp of the last update to the secure posture zone.
    name str
    The name of the secure posture zone.
    policy_ids Sequence[float]
    A list of policy IDs associated with the secure posture zone.
    scopes Sequence[GetSecurePostureZoneScope]
    A list of scopes associated with the secure posture zone. Each scope contains:
    author String
    The author of the secure posture zone.
    description String
    The description of the secure posture zone.
    id String
    lastModifiedBy String
    The user who last modified the secure posture zone.
    lastUpdated String
    The timestamp of the last update to the secure posture zone.
    name String
    The name of the secure posture zone.
    policyIds List<Number>
    A list of policy IDs associated with the secure posture zone.
    scopes List<Property Map>
    A list of scopes associated with the secure posture zone. Each scope contains:

    Supporting Types

    GetSecurePostureZoneScope

    Rules string
    The rules associated with the scope.
    TargetType string
    The target type of the scope.
    Rules string
    The rules associated with the scope.
    TargetType string
    The target type of the scope.
    rules String
    The rules associated with the scope.
    targetType String
    The target type of the scope.
    rules string
    The rules associated with the scope.
    targetType string
    The target type of the scope.
    rules str
    The rules associated with the scope.
    target_type str
    The target type of the scope.
    rules String
    The rules associated with the scope.
    targetType String
    The target type of the scope.

    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