1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudGuard
  5. getSecurityZone
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.CloudGuard.getSecurityZone

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides details about a specific Security Zone resource in Oracle Cloud Infrastructure Cloud Guard service.

    Returns a security zone (SecurityZone resource) identified by securityZoneId.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSecurityZone = oci.CloudGuard.getSecurityZone({
        securityZoneId: testSecurityZoneOciCloudGuardSecurityZone.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_security_zone = oci.CloudGuard.get_security_zone(security_zone_id=test_security_zone_oci_cloud_guard_security_zone["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/CloudGuard"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := CloudGuard.GetSecurityZone(ctx, &cloudguard.GetSecurityZoneArgs{
    			SecurityZoneId: testSecurityZoneOciCloudGuardSecurityZone.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testSecurityZone = Oci.CloudGuard.GetSecurityZone.Invoke(new()
        {
            SecurityZoneId = testSecurityZoneOciCloudGuardSecurityZone.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.CloudGuard.CloudGuardFunctions;
    import com.pulumi.oci.CloudGuard.inputs.GetSecurityZoneArgs;
    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 testSecurityZone = CloudGuardFunctions.getSecurityZone(GetSecurityZoneArgs.builder()
                .securityZoneId(testSecurityZoneOciCloudGuardSecurityZone.id())
                .build());
    
        }
    }
    
    variables:
      testSecurityZone:
        fn::invoke:
          Function: oci:CloudGuard:getSecurityZone
          Arguments:
            securityZoneId: ${testSecurityZoneOciCloudGuardSecurityZone.id}
    

    Using getSecurityZone

    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 getSecurityZone(args: GetSecurityZoneArgs, opts?: InvokeOptions): Promise<GetSecurityZoneResult>
    function getSecurityZoneOutput(args: GetSecurityZoneOutputArgs, opts?: InvokeOptions): Output<GetSecurityZoneResult>
    def get_security_zone(security_zone_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetSecurityZoneResult
    def get_security_zone_output(security_zone_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetSecurityZoneResult]
    func GetSecurityZone(ctx *Context, args *GetSecurityZoneArgs, opts ...InvokeOption) (*GetSecurityZoneResult, error)
    func GetSecurityZoneOutput(ctx *Context, args *GetSecurityZoneOutputArgs, opts ...InvokeOption) GetSecurityZoneResultOutput

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

    public static class GetSecurityZone 
    {
        public static Task<GetSecurityZoneResult> InvokeAsync(GetSecurityZoneArgs args, InvokeOptions? opts = null)
        public static Output<GetSecurityZoneResult> Invoke(GetSecurityZoneInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecurityZoneResult> getSecurityZone(GetSecurityZoneArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:CloudGuard/getSecurityZone:getSecurityZone
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SecurityZoneId string
    The unique identifier of the security zone (SecurityZone resource).
    SecurityZoneId string
    The unique identifier of the security zone (SecurityZone resource).
    securityZoneId String
    The unique identifier of the security zone (SecurityZone resource).
    securityZoneId string
    The unique identifier of the security zone (SecurityZone resource).
    security_zone_id str
    The unique identifier of the security zone (SecurityZone resource).
    securityZoneId String
    The unique identifier of the security zone (SecurityZone resource).

    getSecurityZone Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment for the security zone
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    The security zone's description
    DisplayName string
    The security zone's display name
    FreeformTags Dictionary<string, string>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    Unique identifier that can’t be changed after creation
    InheritedByCompartments List<string>
    List of inherited compartments
    LifecycleDetails string
    A message describing the current state in more detail. For example, this can be used to provide actionable information for a zone in the Failed state.
    SecurityZoneId string
    SecurityZoneRecipeId string
    The OCID of the recipe (SecurityRecipe resource) for the security zone
    SecurityZoneTargetId string
    The OCID of the target associated with the security zone
    State string
    The current lifecycle state of the security zone
    TimeCreated string
    The time the security zone was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time the security zone was last updated. An RFC3339 formatted datetime string.
    CompartmentId string
    The OCID of the compartment for the security zone
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    The security zone's description
    DisplayName string
    The security zone's display name
    FreeformTags map[string]string
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    Unique identifier that can’t be changed after creation
    InheritedByCompartments []string
    List of inherited compartments
    LifecycleDetails string
    A message describing the current state in more detail. For example, this can be used to provide actionable information for a zone in the Failed state.
    SecurityZoneId string
    SecurityZoneRecipeId string
    The OCID of the recipe (SecurityRecipe resource) for the security zone
    SecurityZoneTargetId string
    The OCID of the target associated with the security zone
    State string
    The current lifecycle state of the security zone
    TimeCreated string
    The time the security zone was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time the security zone was last updated. An RFC3339 formatted datetime string.
    compartmentId String
    The OCID of the compartment for the security zone
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    The security zone's description
    displayName String
    The security zone's display name
    freeformTags Map<String,String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    Unique identifier that can’t be changed after creation
    inheritedByCompartments List<String>
    List of inherited compartments
    lifecycleDetails String
    A message describing the current state in more detail. For example, this can be used to provide actionable information for a zone in the Failed state.
    securityZoneId String
    securityZoneRecipeId String
    The OCID of the recipe (SecurityRecipe resource) for the security zone
    securityZoneTargetId String
    The OCID of the target associated with the security zone
    state String
    The current lifecycle state of the security zone
    timeCreated String
    The time the security zone was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time the security zone was last updated. An RFC3339 formatted datetime string.
    compartmentId string
    The OCID of the compartment for the security zone
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    The security zone's description
    displayName string
    The security zone's display name
    freeformTags {[key: string]: string}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id string
    Unique identifier that can’t be changed after creation
    inheritedByCompartments string[]
    List of inherited compartments
    lifecycleDetails string
    A message describing the current state in more detail. For example, this can be used to provide actionable information for a zone in the Failed state.
    securityZoneId string
    securityZoneRecipeId string
    The OCID of the recipe (SecurityRecipe resource) for the security zone
    securityZoneTargetId string
    The OCID of the target associated with the security zone
    state string
    The current lifecycle state of the security zone
    timeCreated string
    The time the security zone was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time the security zone was last updated. An RFC3339 formatted datetime string.
    compartment_id str
    The OCID of the compartment for the security zone
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    The security zone's description
    display_name str
    The security zone's display name
    freeform_tags Mapping[str, str]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id str
    Unique identifier that can’t be changed after creation
    inherited_by_compartments Sequence[str]
    List of inherited compartments
    lifecycle_details str
    A message describing the current state in more detail. For example, this can be used to provide actionable information for a zone in the Failed state.
    security_zone_id str
    security_zone_recipe_id str
    The OCID of the recipe (SecurityRecipe resource) for the security zone
    security_zone_target_id str
    The OCID of the target associated with the security zone
    state str
    The current lifecycle state of the security zone
    time_created str
    The time the security zone was created. An RFC3339 formatted datetime string.
    time_updated str
    The time the security zone was last updated. An RFC3339 formatted datetime string.
    compartmentId String
    The OCID of the compartment for the security zone
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    The security zone's description
    displayName String
    The security zone's display name
    freeformTags Map<String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    Unique identifier that can’t be changed after creation
    inheritedByCompartments List<String>
    List of inherited compartments
    lifecycleDetails String
    A message describing the current state in more detail. For example, this can be used to provide actionable information for a zone in the Failed state.
    securityZoneId String
    securityZoneRecipeId String
    The OCID of the recipe (SecurityRecipe resource) for the security zone
    securityZoneTargetId String
    The OCID of the target associated with the security zone
    state String
    The current lifecycle state of the security zone
    timeCreated String
    The time the security zone was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time the security zone was last updated. An RFC3339 formatted datetime string.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi