Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.CloudGuard.getSecurityRecipe
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 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/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:
- Security
Recipe stringId - The unique identifier of the security zone recipe. (
SecurityRecipe
)
- Security
Recipe stringId - The unique identifier of the security zone recipe. (
SecurityRecipe
)
- security
Recipe StringId - The unique identifier of the security zone recipe. (
SecurityRecipe
)
- security
Recipe stringId - The unique identifier of the security zone recipe. (
SecurityRecipe
)
- security_
recipe_ strid - The unique identifier of the security zone recipe. (
SecurityRecipe
)
- security
Recipe StringId - The unique identifier of the security zone recipe. (
SecurityRecipe
)
getSecurityRecipe Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment that contains the recipe
- 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
- Display
Name string - The recipe'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
- Lifecycle
Details 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
- Security
Policies List<string> - The list of security policy IDs that are included in the recipe
- Security
Recipe stringId - State string
- The current lifecycle state of the recipe
- Time
Created string - The time the recipe was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time the recipe was last updated. An RFC3339 formatted datetime string.
- Compartment
Id string - The OCID of the compartment that contains the recipe
- 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
- Display
Name string - The recipe'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
- Lifecycle
Details 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
- Security
Policies []string - The list of security policy IDs that are included in the recipe
- Security
Recipe stringId - State string
- The current lifecycle state of the recipe
- Time
Created string - The time the recipe was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time the recipe was last updated. An RFC3339 formatted datetime string.
- compartment
Id String - The OCID of the compartment that contains the recipe
- 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
- display
Name String - The recipe'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
- lifecycle
Details 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
- security
Policies List<String> - The list of security policy IDs that are included in the recipe
- security
Recipe StringId - state String
- The current lifecycle state of the recipe
- time
Created String - The time the recipe was created. An RFC3339 formatted datetime string.
- time
Updated String - The time the recipe was last updated. An RFC3339 formatted datetime string.
- compartment
Id string - The OCID of the compartment that contains the recipe
- {[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
- display
Name string - The recipe'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
- lifecycle
Details 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
- security
Policies string[] - The list of security policy IDs that are included in the recipe
- security
Recipe stringId - state string
- The current lifecycle state of the recipe
- time
Created string - The time the recipe was created. An RFC3339 formatted datetime string.
- time
Updated 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
- 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 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
- 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_ strid - 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.
- compartment
Id String - The OCID of the compartment that contains the recipe
- 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
- display
Name String - The recipe'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
- lifecycle
Details 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
- security
Policies List<String> - The list of security policy IDs that are included in the recipe
- security
Recipe StringId - state String
- The current lifecycle state of the recipe
- time
Created String - The time the recipe was created. An RFC3339 formatted datetime string.
- time
Updated 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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi