sysdig 1.56.1 published on Thursday, May 8, 2025 by sysdiglabs
sysdig.getSecurePostureZone
Explore with Pulumi AI
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:
- string
- The author of the secure posture zone.
- Description string
- The description of the secure posture zone.
- Id string
- Last
Modified stringBy - The user who last modified the secure posture zone.
- Last
Updated string - The timestamp of the last update to the secure posture zone.
- Name string
- The name of the secure posture zone.
- Policy
Ids List<double> - A list of policy IDs associated with the secure posture zone.
- Scopes
List<Get
Secure Posture Zone Scope> - A list of scopes associated with the secure posture zone. Each scope contains:
- string
- The author of the secure posture zone.
- Description string
- The description of the secure posture zone.
- Id string
- Last
Modified stringBy - The user who last modified the secure posture zone.
- Last
Updated string - The timestamp of the last update to the secure posture zone.
- Name string
- The name of the secure posture zone.
- Policy
Ids []float64 - A list of policy IDs associated with the secure posture zone.
- Scopes
[]Get
Secure Posture Zone Scope - A list of scopes associated with the secure posture zone. Each scope contains:
- String
- The author of the secure posture zone.
- description String
- The description of the secure posture zone.
- id String
- last
Modified StringBy - The user who last modified the secure posture zone.
- last
Updated String - The timestamp of the last update to the secure posture zone.
- name String
- The name of the secure posture zone.
- policy
Ids List<Double> - A list of policy IDs associated with the secure posture zone.
- scopes
List<Get
Secure Posture Zone Scope> - A list of scopes associated with the secure posture zone. Each scope contains:
- string
- The author of the secure posture zone.
- description string
- The description of the secure posture zone.
- id string
- last
Modified stringBy - The user who last modified the secure posture zone.
- last
Updated string - The timestamp of the last update to the secure posture zone.
- name string
- The name of the secure posture zone.
- policy
Ids number[] - A list of policy IDs associated with the secure posture zone.
- scopes
Get
Secure Posture Zone Scope[] - A list of scopes associated with the secure posture zone. Each scope contains:
- str
- The author of the secure posture zone.
- description str
- The description of the secure posture zone.
- id str
- last_
modified_ strby - 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[Get
Secure Posture Zone Scope] - A list of scopes associated with the secure posture zone. Each scope contains:
- String
- The author of the secure posture zone.
- description String
- The description of the secure posture zone.
- id String
- last
Modified StringBy - The user who last modified the secure posture zone.
- last
Updated String - The timestamp of the last update to the secure posture zone.
- name String
- The name of the secure posture zone.
- policy
Ids 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.
- Target
Type string - The target type of the scope.
- Rules string
- The rules associated with the scope.
- Target
Type string - The target type of the scope.
- rules String
- The rules associated with the scope.
- target
Type String - The target type of the scope.
- rules string
- The rules associated with the scope.
- target
Type 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.
- target
Type 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.