Oracle Cloud Infrastructure v0.20.0, May 31 23
Oracle Cloud Infrastructure v0.20.0, May 31 23
oci.CloudGuard.getSecurityZone
Explore with Pulumi AI
This data source provides details about a specific Security Zone resource in Oracle Cloud Infrastructure Cloud Guard service.
Gets a security zone by its identifier. A security zone is associated with a security zone recipe and enforces all security zone policies in the recipe. Any actions in the zone’s compartments that violate a policy are denied.
Example Usage
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 = oci_cloud_guard_security_zone.Test_security_zone.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/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: oci_cloud_guard_security_zone.Test_security_zone.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
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(oci_cloud_guard_security_zone.test_security_zone().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_security_zone = oci.CloudGuard.get_security_zone(security_zone_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSecurityZone = oci.CloudGuard.getSecurityZone({
securityZoneId: oci_cloud_guard_security_zone.test_security_zone.id,
});
variables:
testSecurityZone:
fn::invoke:
Function: oci:CloudGuard:getSecurityZone
Arguments:
securityZoneId: ${oci_cloud_guard_security_zone.test_security_zone.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:
- Security
Zone stringId The unique identifier of the security zone (
SecurityZone
)
- Security
Zone stringId The unique identifier of the security zone (
SecurityZone
)
- security
Zone StringId The unique identifier of the security zone (
SecurityZone
)
- security
Zone stringId The unique identifier of the security zone (
SecurityZone
)
- security_
zone_ strid The unique identifier of the security zone (
SecurityZone
)
- security
Zone StringId The unique identifier of the security zone (
SecurityZone
)
getSecurityZone Result
The following output properties are available:
- Compartment
Id string The OCID of the compartment for the security zone
- Dictionary<string, object>
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
- Display
Name string The security zone's name
- Dictionary<string, object>
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 is immutable on creation
- Inherited
By List<string>Compartments List of inherited compartments
- Lifecycle
Details 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.- Security
Zone stringId - Security
Zone stringRecipe Id The OCID of the recipe (
SecurityRecipe
) for the security zone- Security
Zone stringTarget Id The OCID of the target associated with the security zone
- State string
The current state of the security zone
- Time
Created string The time the security zone was created. An RFC3339 formatted datetime string.
- Time
Updated string The time the security zone was last updated. An RFC3339 formatted datetime string.
- Compartment
Id string The OCID of the compartment for the security zone
- map[string]interface{}
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
- Display
Name string The security zone's name
- map[string]interface{}
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 is immutable on creation
- Inherited
By []stringCompartments List of inherited compartments
- Lifecycle
Details 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.- Security
Zone stringId - Security
Zone stringRecipe Id The OCID of the recipe (
SecurityRecipe
) for the security zone- Security
Zone stringTarget Id The OCID of the target associated with the security zone
- State string
The current state of the security zone
- Time
Created string The time the security zone was created. An RFC3339 formatted datetime string.
- Time
Updated string The time the security zone was last updated. An RFC3339 formatted datetime string.
- compartment
Id String The OCID of the compartment for the security zone
- Map<String,Object>
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
- display
Name String The security zone's name
- Map<String,Object>
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 is immutable on creation
- inherited
By List<String>Compartments List of inherited compartments
- lifecycle
Details 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.- security
Zone StringId - security
Zone StringRecipe Id The OCID of the recipe (
SecurityRecipe
) for the security zone- security
Zone StringTarget Id The OCID of the target associated with the security zone
- state String
The current state of the security zone
- time
Created String The time the security zone was created. An RFC3339 formatted datetime string.
- time
Updated String The time the security zone was last updated. An RFC3339 formatted datetime string.
- compartment
Id string The OCID of the compartment for the security zone
- {[key: string]: any}
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
- display
Name string The security zone's name
- {[key: string]: any}
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 is immutable on creation
- inherited
By string[]Compartments List of inherited compartments
- lifecycle
Details 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.- security
Zone stringId - security
Zone stringRecipe Id The OCID of the recipe (
SecurityRecipe
) for the security zone- security
Zone stringTarget Id The OCID of the target associated with the security zone
- state string
The current state of the security zone
- time
Created string The time the security zone was created. An RFC3339 formatted datetime string.
- time
Updated 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
- Mapping[str, Any]
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 name
- Mapping[str, Any]
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 is immutable on creation
- inherited_
by_ Sequence[str]compartments 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_ strid - security_
zone_ strrecipe_ id The OCID of the recipe (
SecurityRecipe
) for the security zone- security_
zone_ strtarget_ id The OCID of the target associated with the security zone
- state str
The current 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.
- compartment
Id String The OCID of the compartment for the security zone
- Map<Any>
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
- display
Name String The security zone's name
- Map<Any>
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 is immutable on creation
- inherited
By List<String>Compartments List of inherited compartments
- lifecycle
Details 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.- security
Zone StringId - security
Zone StringRecipe Id The OCID of the recipe (
SecurityRecipe
) for the security zone- security
Zone StringTarget Id The OCID of the target associated with the security zone
- state String
The current state of the security zone
- time
Created String The time the security zone was created. An RFC3339 formatted datetime string.
- time
Updated 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.