Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.CloudGuard.getSecurityZone
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 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/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:
- Security
Zone stringId - The unique identifier of the security zone (
SecurityZone
resource).
- Security
Zone stringId - The unique identifier of the security zone (
SecurityZone
resource).
- security
Zone StringId - The unique identifier of the security zone (
SecurityZone
resource).
- security
Zone stringId - The unique identifier of the security zone (
SecurityZone
resource).
- security_
zone_ strid - The unique identifier of the security zone (
SecurityZone
resource).
- security
Zone StringId - The unique identifier of the security zone (
SecurityZone
resource).
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 display 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 can’t be changed after 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
resource) for the security zone - Security
Zone stringTarget Id - The OCID of the target associated with the security zone
- State string
- The current lifecycle 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 display 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 can’t be changed after 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
resource) for the security zone - Security
Zone stringTarget Id - The OCID of the target associated with the security zone
- State string
- The current lifecycle 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 display 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 can’t be changed after 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
resource) for the security zone - security
Zone StringTarget Id - The OCID of the target associated with the security zone
- state String
- The current lifecycle 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 display 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 can’t be changed after 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
resource) for the security zone - security
Zone stringTarget Id - The OCID of the target associated with the security zone
- state string
- The current lifecycle 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 display 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 can’t be changed after 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
resource) for the security zone - security_
zone_ strtarget_ id - 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.
- 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 display 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 can’t be changed after 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
resource) for the security zone - security
Zone StringTarget Id - The OCID of the target associated with the security zone
- state String
- The current lifecycle 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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi