Listing OCI Targets and Getting Their Details
List existing OCI and Security Zone targets in Cloud Guardand view the detector and responder recipes used in monitoring resources.
You can view the details of a Security Zone target in Cloud Guard. You must create and modify Security Zone targets in the OCI Security Zones application.
- Note
You can view the details of a Security Zone target in Cloud Guard. You must create and modify Security Zone targets in the OCI Security Zones application. For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Targets
Use the oci cloud-guard target get command and required parameters to get a specific target:
oci cloud-guard target get --target-id <target_ocid> [OPTIONS]
Use the oci cloud-guard target list command and required parameters to list targets in a compartment:
oci cloud-guard target list --compartment-id, -c <compartment_ocid> [OPTIONS]
Target Detector Recipes
Use the oci target-detector-recipe get command and required parameters to get a specific detector recipe for a target:
oci cloud-guard target-detector-recipe get --target-detector-recipe-id <target_detector_recipe_ocid> --target-id <target_ocid> [OPTIONS]
Use the oci cloud-guard target-detector-recipe list command and required parameters to list a target's detector recipes:
oci cloud-guard target-detector-recipe list --compartment-id, -c <compartment_ocid> --target-id <target_ocid> [OPTIONS]
Target Detector Recipe Rules
Use the oci target-detector-recipe-detector-rule get command and required parameters to get a specified detector rule, in a detector recipe that's attached to a target:
oci cloud-guard target-detector-recipe-detector-rule get --detector-rule-id <detector_rule_id> --target-detector-recipe-id <recipe_ocid> --target-id <target_ocid> [OPTIONS]
Use the oci target-detector-recipe-detector-rule list command and required parameters to list the detector rules in a detector recipe that's attached to a target:
oci cloud-guard target-detector-recipe-detector-rule list --compartment-id, -c <compartment_ocid> --target-detector-recipe-id <detector_recipe_ocid> --target-id <target_ocid> [OPTIONS]
Target Responder Recipes
Use the oci target-responder-recipe get command and required parameters to get a responder recipe that's attached to a target:
oci cloud-guard target-responder-recipe get --target-id <target_ocid> --target-responder-recipe-id <responder_recipe_ocid> [OPTIONS]
Use the oci target-responder-recipe list command and required parameters to list the responder recipes that are attached to a target:
oci cloud-guard target-responder-recipe list --compartment-id, -c <compartment_ocid> --target-id <target_ocid> [OPTIONS]
Target Responder Recipe Rules
Use the target-responder-recipe-responder-rule get command and required parameters to get a specified responder rule, in a responder recipe that's attached to a target:
oci cloud-guard target-responder-recipe-responder-rule get --responder-rule-id <responder_rule_id> --target-id <target_ocid> --target-responder-recipe-id <responder_recipe_ocid> [OPTIONS]
Use the target-responder-recipe-responder-rule list command and required parameters to list the responder rules in a responder recipe that's attached to a target:
oci cloud-guard target-responder-recipe-responder-rule list --compartment-id, -c <compartment_ocid> --target-id <target_ocid> --target-responder-recipe-id <responder_recipe_ocid> [OPTIONS]
Targets
Run the GetTarget operation to get a target.
Run the ListTargets operation to list targets.
Target Detector Recipes
Run the GetTargetDetectorRecipe operation to get a specific detector recipe that's attached to a target.
Run the ListTargetDetectorRecipes operation to list all the detector recipes that are attached to a target.
Target Detector Recipe Rules
Run the GetTargetDetectorRecipeDetectorRule operation to get a specific rule from a detector recipe that's attached to a target.
Run the ListTargetDetectorRecipeDetectorRules operation to list all the detector rules from a detector recipe that's attached to a target.
Target Responder Recipes
Run the GetTargetResponderRecipe operation to get a specific responder recipe that's attached to a target.
Run the ListTargetResponderRecipes operation to list all the responder recipes that are attached to a target.
Target Responder Recipe Rules
Run the GetTargetResponderRecipeResponderRule operation to get a specific responder rule from a responder recipe that's attached to a target.
Run the ListTargetResponderRecipeResponderRules operation to list all the responder rules from a responder recipe that's attached to a target.
What's Next
- To create a target, see Creating an OCI Target.
- To edit an existing target, see Editing an OCI Target and Its Attached Recipes.
- To delete a target, see Deleting an OCI Target.