Cloning an OCI Detector Recipe
You can clone an OCI detector recipe in Cloud Guard to make a copy that you can modify for different purposes.
You can use Oracle-managed detector recipes as is, but you can't change many of their settings. Also, you might want to create another detector recipe that's similar to a user-managed detector recipe that you cloned previously.
Whenever you want to create a detector recipe, you can clone the existing (Oracle-managed or user-managed) recipe with the settings that are most similar to what you want in the new recipe.
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
To clone a detector recipe, first use the oci cloud-guard detector-recipe get command and required parameters to get the specific detector recipe that you want to clone:
oci cloud-guard detector-recipe get --detector-recipe-id <detector_recipe_ocid> [OPTIONS]
Then use the oci cloud-guard detector-recipe create command and required parameters to save that detector recipe, with a new name:
oci cloud-guard detector-recipe create --compartment-id, -c <compartment_ocid> --display-name <display_name_text> [OPTIONS]
To clone a detector recipe, first run the GetDetectorRecipe operation to get the detector recipe that you want to clone.
Then run the CreatetDetectorRecipe operation to save that detector recipe with a new name and description.
What's Next
- Customize the cloned detector recipe's rules as needed. See Editing Rule Settings in an OCI Detector Recipe.
- Ensure that the cloned detector recipe is added to targets where you want it to be used. See Editing an OCI Target and Its Attached Recipes.