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.

    1. Navigate to the Detector recipes page and locate the recipe that you want to clone.
    2. To ensure the page displays all available items in the list, under Scope, set the value of Compartment to the tenancy's root compartment and select Include child compartments.
    3. Look for rows where the entry in the Type column is OCI.
    4. In the row for the recipe you want to clone, open its Actions menu Image of Action menu, and select Clone to open the Clone ... recipe panel.
      Note

      To clone a recipe, it must be in the same tenancy that you're logged in to.

    5. Click Change compartment to select a different compartment.
    6. Enter a Name and optional Description for the new recipe.
      Avoid entering confidential information.
    7. Select the Compartment to assign the new recipe to.
    8. Add tags to the recipe:
      1. Select a Tag namespace to add a defined tag, or select None to add a free-form tag.
      2. Select or enter a Tag key and Tag value.
      3. Add more tags or delete them as needed.
      4. Click Add tags.
    9. Click Clone.

      The new recipe appears in the list.

  • 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.