1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudGuard
  5. getSecurityRecipe
Oracle Cloud Infrastructure v1.27.0 published on Friday, Mar 15, 2024 by Pulumi

oci.CloudGuard.getSecurityRecipe

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.27.0 published on Friday, Mar 15, 2024 by Pulumi

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

    Gets a security zone recipe by identifier. A security zone recipe is a collection of security zone policies.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSecurityRecipe = oci.CloudGuard.getSecurityRecipe({
        securityRecipeId: oci_cloud_guard_security_recipe.test_security_recipe.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_security_recipe = oci.CloudGuard.get_security_recipe(security_recipe_id=oci_cloud_guard_security_recipe["test_security_recipe"]["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.GetSecurityRecipe(ctx, &cloudguard.GetSecurityRecipeArgs{
    			SecurityRecipeId: oci_cloud_guard_security_recipe.Test_security_recipe.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 testSecurityRecipe = Oci.CloudGuard.GetSecurityRecipe.Invoke(new()
        {
            SecurityRecipeId = oci_cloud_guard_security_recipe.Test_security_recipe.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.GetSecurityRecipeArgs;
    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 testSecurityRecipe = CloudGuardFunctions.getSecurityRecipe(GetSecurityRecipeArgs.builder()
                .securityRecipeId(oci_cloud_guard_security_recipe.test_security_recipe().id())
                .build());
    
        }
    }
    
    variables:
      testSecurityRecipe:
        fn::invoke:
          Function: oci:CloudGuard:getSecurityRecipe
          Arguments:
            securityRecipeId: ${oci_cloud_guard_security_recipe.test_security_recipe.id}
    

    Using getSecurityRecipe

    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 getSecurityRecipe(args: GetSecurityRecipeArgs, opts?: InvokeOptions): Promise<GetSecurityRecipeResult>
    function getSecurityRecipeOutput(args: GetSecurityRecipeOutputArgs, opts?: InvokeOptions): Output<GetSecurityRecipeResult>
    def get_security_recipe(security_recipe_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetSecurityRecipeResult
    def get_security_recipe_output(security_recipe_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetSecurityRecipeResult]
    func GetSecurityRecipe(ctx *Context, args *GetSecurityRecipeArgs, opts ...InvokeOption) (*GetSecurityRecipeResult, error)
    func GetSecurityRecipeOutput(ctx *Context, args *GetSecurityRecipeOutputArgs, opts ...InvokeOption) GetSecurityRecipeResultOutput

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

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

    The following arguments are supported:

    SecurityRecipeId string
    The unique identifier of the security zone recipe (SecurityRecipe)
    SecurityRecipeId string
    The unique identifier of the security zone recipe (SecurityRecipe)
    securityRecipeId String
    The unique identifier of the security zone recipe (SecurityRecipe)
    securityRecipeId string
    The unique identifier of the security zone recipe (SecurityRecipe)
    security_recipe_id str
    The unique identifier of the security zone recipe (SecurityRecipe)
    securityRecipeId String
    The unique identifier of the security zone recipe (SecurityRecipe)

    getSecurityRecipe Result

    The following output properties are available:

    CompartmentId string
    The id of the compartment that contains the recipe
    DefinedTags 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 recipe's description
    DisplayName string
    The recipe's name
    FreeformTags 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
    LifecycleDetails string
    A message describing the current state in more detail. For example, this can be used to provide actionable information for a recipe in the Failed state.
    Owner string
    The owner of the recipe
    SecurityPolicies List<string>
    The list of SecurityPolicy ids that are included in the recipe
    SecurityRecipeId string
    State string
    The current state of the recipe
    TimeCreated string
    The time the recipe was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time the recipe was last updated. An RFC3339 formatted datetime string.
    CompartmentId string
    The id of the compartment that contains the recipe
    DefinedTags 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 recipe's description
    DisplayName string
    The recipe's name
    FreeformTags 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
    LifecycleDetails string
    A message describing the current state in more detail. For example, this can be used to provide actionable information for a recipe in the Failed state.
    Owner string
    The owner of the recipe
    SecurityPolicies []string
    The list of SecurityPolicy ids that are included in the recipe
    SecurityRecipeId string
    State string
    The current state of the recipe
    TimeCreated string
    The time the recipe was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time the recipe was last updated. An RFC3339 formatted datetime string.
    compartmentId String
    The id of the compartment that contains the recipe
    definedTags 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 recipe's description
    displayName String
    The recipe's name
    freeformTags 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
    lifecycleDetails String
    A message describing the current state in more detail. For example, this can be used to provide actionable information for a recipe in the Failed state.
    owner String
    The owner of the recipe
    securityPolicies List<String>
    The list of SecurityPolicy ids that are included in the recipe
    securityRecipeId String
    state String
    The current state of the recipe
    timeCreated String
    The time the recipe was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time the recipe was last updated. An RFC3339 formatted datetime string.
    compartmentId string
    The id of the compartment that contains the recipe
    definedTags {[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 recipe's description
    displayName string
    The recipe's name
    freeformTags {[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
    lifecycleDetails string
    A message describing the current state in more detail. For example, this can be used to provide actionable information for a recipe in the Failed state.
    owner string
    The owner of the recipe
    securityPolicies string[]
    The list of SecurityPolicy ids that are included in the recipe
    securityRecipeId string
    state string
    The current state of the recipe
    timeCreated string
    The time the recipe was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time the recipe was last updated. An RFC3339 formatted datetime string.
    compartment_id str
    The id of the compartment that contains the recipe
    defined_tags 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 recipe's description
    display_name str
    The recipe's name
    freeform_tags 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
    lifecycle_details str
    A message describing the current state in more detail. For example, this can be used to provide actionable information for a recipe in the Failed state.
    owner str
    The owner of the recipe
    security_policies Sequence[str]
    The list of SecurityPolicy ids that are included in the recipe
    security_recipe_id str
    state str
    The current state of the recipe
    time_created str
    The time the recipe was created. An RFC3339 formatted datetime string.
    time_updated str
    The time the recipe was last updated. An RFC3339 formatted datetime string.
    compartmentId String
    The id of the compartment that contains the recipe
    definedTags 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 recipe's description
    displayName String
    The recipe's name
    freeformTags 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
    lifecycleDetails String
    A message describing the current state in more detail. For example, this can be used to provide actionable information for a recipe in the Failed state.
    owner String
    The owner of the recipe
    securityPolicies List<String>
    The list of SecurityPolicy ids that are included in the recipe
    securityRecipeId String
    state String
    The current state of the recipe
    timeCreated String
    The time the recipe was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time the recipe 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 v1.27.0 published on Friday, Mar 15, 2024 by Pulumi