Creating an OCI Target

A target defines the scope of resources that Cloud Guard monitors, and the detector and responder recipes to be used in the monitoring.

    1. Open the navigation menu and click Identity & Security. Under Cloud Guard, click Targets.
    2. On the Targets page, click Create new target.
    3. In the Create new target panel, enter a Target name and an optional Description for the target.
      Avoid entering confidential information.
    4. Select the Compartment to assign to the target.
      Note

      An OCI compartment can only be assigned to a single target.

      • You can select only a single compartment. Any child compartments under the selected compartment inherit the detector and responder recipe settings for the target.
      • To exclude a child compartment from the monitoring that applies to the rest of the target, create a separate target that's assigned just to that child compartment.
    5. Select required and optional detector recipes.
      For information about each type of detector recipe, see Detector Recipe Reference.
      Note

      If responders are enabled, and you don't add a responder recipe to the target, full functionality for responders isn't available within the target.
    6. (Optional) To add tags, click Show advanced options, and then enter the following values:
      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.
    7. To create the resource, choose one of the following options:
      • To create the resource now, click Create.
      • To create the resource later using Resource Manager and Terraform, click Save as Stack to save the resource definition as a Terraform configuration.

        For more information about saving stacks from resource definitions, see Creating a Stack from a Resource Creation Page.

  • For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

    Use the oci cloud-guard target create command and required parameters to create a target:

    oci cloud-guard target create --compartment-id, -c <compartment_ocid> --display-name <detector_template_identifier> --target-resource-id <monitored_resource_id> --target-resource-type <type_of_target> [OPTIONS]
  • Run the CreateTarget operation to create a target.

What's Next