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

oci.CloudGuard.getSecurityRecipe

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 Recipe resource in Oracle Cloud Infrastructure Cloud Guard service.

    Returns a security zone recipe (SecurityRecipe resource) identified by securityRecipeId.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSecurityRecipe = oci.CloudGuard.getSecurityRecipe({
        securityRecipeId: testSecurityRecipeOciCloudGuardSecurityRecipe.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_security_recipe = oci.CloudGuard.get_security_recipe(security_recipe_id=test_security_recipe_oci_cloud_guard_security_recipe["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.GetSecurityRecipe(ctx, &cloudguard.GetSecurityRecipeArgs{
    			SecurityRecipeId: testSecurityRecipeOciCloudGuardSecurityRecipe.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 = testSecurityRecipeOciCloudGuardSecurityRecipe.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(testSecurityRecipeOciCloudGuardSecurityRecipe.id())
                .build());
    
        }
    }
    
    variables:
      testSecurityRecipe:
        fn::invoke:
          Function: oci:CloudGuard:getSecurityRecipe
          Arguments:
            securityRecipeId: ${testSecurityRecipeOciCloudGuardSecurityRecipe.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 OCID of the compartment that contains the recipe
    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 recipe's description
    DisplayName string
    The recipe'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
    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 security policy IDs that are included in the recipe
    SecurityRecipeId string
    State string
    The current lifecycle 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 OCID of the compartment that contains the recipe
    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 recipe's description
    DisplayName string
    The recipe'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
    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 security policy IDs that are included in the recipe
    SecurityRecipeId string
    State string
    The current lifecycle 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 OCID of the compartment that contains the recipe
    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 recipe's description
    displayName String
    The recipe'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
    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 security policy IDs that are included in the recipe
    securityRecipeId String
    state String
    The current lifecycle 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 OCID of the compartment that contains the recipe
    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 recipe's description
    displayName string
    The recipe'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
    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 security policy IDs that are included in the recipe
    securityRecipeId string
    state string
    The current lifecycle 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 OCID of the compartment that contains the recipe
    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 recipe's description
    display_name str
    The recipe'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
    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 security policy IDs that are included in the recipe
    security_recipe_id str
    state str
    The current lifecycle 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 OCID of the compartment that contains the recipe
    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 recipe's description
    displayName String
    The recipe'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
    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 security policy IDs that are included in the recipe
    securityRecipeId String
    state String
    The current lifecycle 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 v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi