turbot/oci

steampipe plugin install ocisteampipe plugin install oci
On This Page
Get Involved

Table: oci_cloud_guard_detector_recipe

OCI Cloud Guard detector recipe uses multiple detector rules, each of which a specific definition of a class of resources, with specific actions or configurations, that cause a detector to report a problem. If any one rule is triggered, it causes the detector to report a problem.

Examples

Basic info

select
name,
id,
time_created,
lifecycle_state as state
from
oci_cloud_guard_detector_recipe;

List detector recipes which are not active

select
name,
id,
time_created,
lifecycle_state as state
from
oci_cloud_guard_detector_recipe
where
lifecycle_state <> 'ACTIVE';
select
name,
e ->> 'detectorRuleId' as Rule_name,
e -> 'details' ->> 'isEnabled' as status
from
oci_cloud_guard_detector_recipe,
jsonb_array_elements(effective_detector_rules) as e
where
e ->> 'detectorRuleId' = 'PASSWORD_TOO_OLD'
or e ->> 'detectorRuleId' = 'PASSWORD_POLICY_NOT_COMPLEX';

.inspect oci_cloud_guard_detector_recipe

OCI Cloud Guard Detector Recipe

NameTypeDescription
compartment_idtextThe OCID of the compartment in Tenant in which the resource is located.
defined_tagsjsonbDefined tags for resource. Defined tags are set up in your tenancy by an administrator. Only users granted permission to work with the defined tags can apply them to resources.
descriptiontextDetector recipe description.
detectortextType of detector.
detector_rulesjsonbList of detector rules for the detector type for recipe.
effective_detector_rulesjsonbList of detector rules for the detector type for recipe.
freeform_tagsjsonbFree-form tags for resource. This tags can be applied by any user with permissions on the resource.
idtextOcid for detector recipe.
lifecycle_statetextThe current state of the detector recipe.
nametextDisplayName of detector recipe.
ownertextOwner of detector recipe.
source_detector_recipe_idtextRecipe Ocid of the Source Recipe to be cloned.
system_tagsjsonbSystem tags for resource. System tags can be viewed by users, but can only be created by the system.
tagsjsonbA map of tags for the resource.
tenant_idtextThe OCID of the Tenant in which the resource is located.
time_createdtimestamp without time zoneThe date and time the detector recipe was created.
time_updatedtimestamp without time zoneThe date and time the detector recipe was updated.
titletextTitle of the resource.