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

sysdig.SecurePostureZone

Explore with Pulumi AI

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

    Example Usage

    Create SecurePostureZone Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SecurePostureZone(name: string, args?: SecurePostureZoneArgs, opts?: CustomResourceOptions);
    @overload
    def SecurePostureZone(resource_name: str,
                          args: Optional[SecurePostureZoneArgs] = None,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecurePostureZone(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          description: Optional[str] = None,
                          name: Optional[str] = None,
                          policy_ids: Optional[Sequence[float]] = None,
                          scopes: Optional[SecurePostureZoneScopesArgs] = None,
                          secure_posture_zone_id: Optional[str] = None,
                          timeouts: Optional[SecurePostureZoneTimeoutsArgs] = None)
    func NewSecurePostureZone(ctx *Context, name string, args *SecurePostureZoneArgs, opts ...ResourceOption) (*SecurePostureZone, error)
    public SecurePostureZone(string name, SecurePostureZoneArgs? args = null, CustomResourceOptions? opts = null)
    public SecurePostureZone(String name, SecurePostureZoneArgs args)
    public SecurePostureZone(String name, SecurePostureZoneArgs args, CustomResourceOptions options)
    
    type: sysdig:SecurePostureZone
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SecurePostureZoneArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SecurePostureZoneArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SecurePostureZoneArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecurePostureZoneArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecurePostureZoneArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var securePostureZoneResource = new Sysdig.SecurePostureZone("securePostureZoneResource", new()
    {
        Description = "string",
        Name = "string",
        PolicyIds = new[]
        {
            0,
        },
        Scopes = new Sysdig.Inputs.SecurePostureZoneScopesArgs
        {
            Scopes = new[]
            {
                new Sysdig.Inputs.SecurePostureZoneScopesScopeArgs
                {
                    TargetType = "string",
                    Rules = "string",
                },
            },
        },
        SecurePostureZoneId = "string",
        Timeouts = new Sysdig.Inputs.SecurePostureZoneTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Read = "string",
            Update = "string",
        },
    });
    
    example, err := sysdig.NewSecurePostureZone(ctx, "securePostureZoneResource", &sysdig.SecurePostureZoneArgs{
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	PolicyIds: pulumi.Float64Array{
    		pulumi.Float64(0),
    	},
    	Scopes: &sysdig.SecurePostureZoneScopesArgs{
    		Scopes: sysdig.SecurePostureZoneScopesScopeArray{
    			&sysdig.SecurePostureZoneScopesScopeArgs{
    				TargetType: pulumi.String("string"),
    				Rules:      pulumi.String("string"),
    			},
    		},
    	},
    	SecurePostureZoneId: pulumi.String("string"),
    	Timeouts: &sysdig.SecurePostureZoneTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Read:   pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var securePostureZoneResource = new SecurePostureZone("securePostureZoneResource", SecurePostureZoneArgs.builder()
        .description("string")
        .name("string")
        .policyIds(0)
        .scopes(SecurePostureZoneScopesArgs.builder()
            .scopes(SecurePostureZoneScopesScopeArgs.builder()
                .targetType("string")
                .rules("string")
                .build())
            .build())
        .securePostureZoneId("string")
        .timeouts(SecurePostureZoneTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .read("string")
            .update("string")
            .build())
        .build());
    
    secure_posture_zone_resource = sysdig.SecurePostureZone("securePostureZoneResource",
        description="string",
        name="string",
        policy_ids=[0],
        scopes={
            "scopes": [{
                "target_type": "string",
                "rules": "string",
            }],
        },
        secure_posture_zone_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "read": "string",
            "update": "string",
        })
    
    const securePostureZoneResource = new sysdig.SecurePostureZone("securePostureZoneResource", {
        description: "string",
        name: "string",
        policyIds: [0],
        scopes: {
            scopes: [{
                targetType: "string",
                rules: "string",
            }],
        },
        securePostureZoneId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            read: "string",
            update: "string",
        },
    });
    
    type: sysdig:SecurePostureZone
    properties:
        description: string
        name: string
        policyIds:
            - 0
        scopes:
            scopes:
                - rules: string
                  targetType: string
        securePostureZoneId: string
        timeouts:
            create: string
            delete: string
            read: string
            update: string
    

    SecurePostureZone Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SecurePostureZone resource accepts the following input properties:

    Description string
    The description of the Posture Zone.
    Name string
    The name of the Posture Zone.
    PolicyIds List<double>
    The list of Posture Policy IDs attached to Zone.
    Scopes SecurePostureZoneScopes
    Scopes block defines list of scopes attached to Zone.
    SecurePostureZoneId string
    Timeouts SecurePostureZoneTimeouts
    Description string
    The description of the Posture Zone.
    Name string
    The name of the Posture Zone.
    PolicyIds []float64
    The list of Posture Policy IDs attached to Zone.
    Scopes SecurePostureZoneScopesArgs
    Scopes block defines list of scopes attached to Zone.
    SecurePostureZoneId string
    Timeouts SecurePostureZoneTimeoutsArgs
    description String
    The description of the Posture Zone.
    name String
    The name of the Posture Zone.
    policyIds List<Double>
    The list of Posture Policy IDs attached to Zone.
    scopes SecurePostureZoneScopes
    Scopes block defines list of scopes attached to Zone.
    securePostureZoneId String
    timeouts SecurePostureZoneTimeouts
    description string
    The description of the Posture Zone.
    name string
    The name of the Posture Zone.
    policyIds number[]
    The list of Posture Policy IDs attached to Zone.
    scopes SecurePostureZoneScopes
    Scopes block defines list of scopes attached to Zone.
    securePostureZoneId string
    timeouts SecurePostureZoneTimeouts
    description str
    The description of the Posture Zone.
    name str
    The name of the Posture Zone.
    policy_ids Sequence[float]
    The list of Posture Policy IDs attached to Zone.
    scopes SecurePostureZoneScopesArgs
    Scopes block defines list of scopes attached to Zone.
    secure_posture_zone_id str
    timeouts SecurePostureZoneTimeoutsArgs
    description String
    The description of the Posture Zone.
    name String
    The name of the Posture Zone.
    policyIds List<Number>
    The list of Posture Policy IDs attached to Zone.
    scopes Property Map
    Scopes block defines list of scopes attached to Zone.
    securePostureZoneId String
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecurePostureZone resource produces the following output properties:

    Author string
    (Computed) The zone author.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedBy string
    (Computed) By whom is last modification made.
    LastUpdated string
    (Computed) Timestamp of last modification of zone.
    Author string
    (Computed) The zone author.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedBy string
    (Computed) By whom is last modification made.
    LastUpdated string
    (Computed) Timestamp of last modification of zone.
    author String
    (Computed) The zone author.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedBy String
    (Computed) By whom is last modification made.
    lastUpdated String
    (Computed) Timestamp of last modification of zone.
    author string
    (Computed) The zone author.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModifiedBy string
    (Computed) By whom is last modification made.
    lastUpdated string
    (Computed) Timestamp of last modification of zone.
    author str
    (Computed) The zone author.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified_by str
    (Computed) By whom is last modification made.
    last_updated str
    (Computed) Timestamp of last modification of zone.
    author String
    (Computed) The zone author.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedBy String
    (Computed) By whom is last modification made.
    lastUpdated String
    (Computed) Timestamp of last modification of zone.

    Look up Existing SecurePostureZone Resource

    Get an existing SecurePostureZone resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SecurePostureZoneState, opts?: CustomResourceOptions): SecurePostureZone
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            author: Optional[str] = None,
            description: Optional[str] = None,
            last_modified_by: Optional[str] = None,
            last_updated: Optional[str] = None,
            name: Optional[str] = None,
            policy_ids: Optional[Sequence[float]] = None,
            scopes: Optional[SecurePostureZoneScopesArgs] = None,
            secure_posture_zone_id: Optional[str] = None,
            timeouts: Optional[SecurePostureZoneTimeoutsArgs] = None) -> SecurePostureZone
    func GetSecurePostureZone(ctx *Context, name string, id IDInput, state *SecurePostureZoneState, opts ...ResourceOption) (*SecurePostureZone, error)
    public static SecurePostureZone Get(string name, Input<string> id, SecurePostureZoneState? state, CustomResourceOptions? opts = null)
    public static SecurePostureZone get(String name, Output<String> id, SecurePostureZoneState state, CustomResourceOptions options)
    resources:  _:    type: sysdig:SecurePostureZone    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Author string
    (Computed) The zone author.
    Description string
    The description of the Posture Zone.
    LastModifiedBy string
    (Computed) By whom is last modification made.
    LastUpdated string
    (Computed) Timestamp of last modification of zone.
    Name string
    The name of the Posture Zone.
    PolicyIds List<double>
    The list of Posture Policy IDs attached to Zone.
    Scopes SecurePostureZoneScopes
    Scopes block defines list of scopes attached to Zone.
    SecurePostureZoneId string
    Timeouts SecurePostureZoneTimeouts
    Author string
    (Computed) The zone author.
    Description string
    The description of the Posture Zone.
    LastModifiedBy string
    (Computed) By whom is last modification made.
    LastUpdated string
    (Computed) Timestamp of last modification of zone.
    Name string
    The name of the Posture Zone.
    PolicyIds []float64
    The list of Posture Policy IDs attached to Zone.
    Scopes SecurePostureZoneScopesArgs
    Scopes block defines list of scopes attached to Zone.
    SecurePostureZoneId string
    Timeouts SecurePostureZoneTimeoutsArgs
    author String
    (Computed) The zone author.
    description String
    The description of the Posture Zone.
    lastModifiedBy String
    (Computed) By whom is last modification made.
    lastUpdated String
    (Computed) Timestamp of last modification of zone.
    name String
    The name of the Posture Zone.
    policyIds List<Double>
    The list of Posture Policy IDs attached to Zone.
    scopes SecurePostureZoneScopes
    Scopes block defines list of scopes attached to Zone.
    securePostureZoneId String
    timeouts SecurePostureZoneTimeouts
    author string
    (Computed) The zone author.
    description string
    The description of the Posture Zone.
    lastModifiedBy string
    (Computed) By whom is last modification made.
    lastUpdated string
    (Computed) Timestamp of last modification of zone.
    name string
    The name of the Posture Zone.
    policyIds number[]
    The list of Posture Policy IDs attached to Zone.
    scopes SecurePostureZoneScopes
    Scopes block defines list of scopes attached to Zone.
    securePostureZoneId string
    timeouts SecurePostureZoneTimeouts
    author str
    (Computed) The zone author.
    description str
    The description of the Posture Zone.
    last_modified_by str
    (Computed) By whom is last modification made.
    last_updated str
    (Computed) Timestamp of last modification of zone.
    name str
    The name of the Posture Zone.
    policy_ids Sequence[float]
    The list of Posture Policy IDs attached to Zone.
    scopes SecurePostureZoneScopesArgs
    Scopes block defines list of scopes attached to Zone.
    secure_posture_zone_id str
    timeouts SecurePostureZoneTimeoutsArgs
    author String
    (Computed) The zone author.
    description String
    The description of the Posture Zone.
    lastModifiedBy String
    (Computed) By whom is last modification made.
    lastUpdated String
    (Computed) Timestamp of last modification of zone.
    name String
    The name of the Posture Zone.
    policyIds List<Number>
    The list of Posture Policy IDs attached to Zone.
    scopes Property Map
    Scopes block defines list of scopes attached to Zone.
    securePostureZoneId String
    timeouts Property Map

    Supporting Types

    SecurePostureZoneScopes, SecurePostureZoneScopesArgs

    SecurePostureZoneScopesScope, SecurePostureZoneScopesScopeArgs

    TargetType string
    The target type for the scope. Supported types:

    • AWS - aws
    • GCP - gcp
    • Azure - azure
    • Kubernetes - kubernetes
    • Image - image
    • Host - host
    • Git - git
    Rules string

    Query language expression for filtering results. Empty rules means no filtering.

    Operators:

    TargetType string
    The target type for the scope. Supported types:

    • AWS - aws
    • GCP - gcp
    • Azure - azure
    • Kubernetes - kubernetes
    • Image - image
    • Host - host
    • Git - git
    Rules string

    Query language expression for filtering results. Empty rules means no filtering.

    Operators:

    targetType String
    The target type for the scope. Supported types:

    • AWS - aws
    • GCP - gcp
    • Azure - azure
    • Kubernetes - kubernetes
    • Image - image
    • Host - host
    • Git - git
    rules String

    Query language expression for filtering results. Empty rules means no filtering.

    Operators:

    targetType string
    The target type for the scope. Supported types:

    • AWS - aws
    • GCP - gcp
    • Azure - azure
    • Kubernetes - kubernetes
    • Image - image
    • Host - host
    • Git - git
    rules string

    Query language expression for filtering results. Empty rules means no filtering.

    Operators:

    target_type str
    The target type for the scope. Supported types:

    • AWS - aws
    • GCP - gcp
    • Azure - azure
    • Kubernetes - kubernetes
    • Image - image
    • Host - host
    • Git - git
    rules str

    Query language expression for filtering results. Empty rules means no filtering.

    Operators:

    targetType String
    The target type for the scope. Supported types:

    • AWS - aws
    • GCP - gcp
    • Azure - azure
    • Kubernetes - kubernetes
    • Image - image
    • Host - host
    • Git - git
    rules String

    Query language expression for filtering results. Empty rules means no filtering.

    Operators:

    SecurePostureZoneTimeouts, SecurePostureZoneTimeoutsArgs

    Create string
    Delete string
    Read string
    Update string
    Create string
    Delete string
    Read string
    Update string
    create String
    delete String
    read String
    update String
    create string
    delete string
    read string
    update string
    create str
    delete str
    read str
    update str
    create String
    delete String
    read String
    update String

    Import

    Posture zone can be imported using the ID, e.g.

    $ pulumi import sysdig:index/securePostureZone:SecurePostureZone example 12345
    

    To learn more about importing existing cloud resources, see Importing resources.

    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