AuditPolicySummary¶
-
class
oci.data_safe.models.AuditPolicySummary(**kwargs)¶ Bases:
objectThe resource represents all available audit policies relevant for the target database with their corresponding audit conditions. The audit policies could be in any one of the following 3 states in the target database 1) Created and enabled 2) Created but not enabled 3) Not created For more details on available audit policies, refer to documentation.
Attributes
LIFECYCLE_STATE_ACTIVEA constant which can be used with the lifecycle_state property of a AuditPolicySummary. LIFECYCLE_STATE_CREATINGA constant which can be used with the lifecycle_state property of a AuditPolicySummary. LIFECYCLE_STATE_DELETEDA constant which can be used with the lifecycle_state property of a AuditPolicySummary. LIFECYCLE_STATE_DELETINGA constant which can be used with the lifecycle_state property of a AuditPolicySummary. LIFECYCLE_STATE_FAILEDA constant which can be used with the lifecycle_state property of a AuditPolicySummary. LIFECYCLE_STATE_NEEDS_ATTENTIONA constant which can be used with the lifecycle_state property of a AuditPolicySummary. LIFECYCLE_STATE_UPDATINGA constant which can be used with the lifecycle_state property of a AuditPolicySummary. audit_specificationsGets the audit_specifications of this AuditPolicySummary. compartment_id[Required] Gets the compartment_id of this AuditPolicySummary. defined_tagsGets the defined_tags of this AuditPolicySummary. descriptionGets the description of this AuditPolicySummary. display_name[Required] Gets the display_name of this AuditPolicySummary. freeform_tagsGets the freeform_tags of this AuditPolicySummary. id[Required] Gets the id of this AuditPolicySummary. is_data_safe_service_account_excluded[Required] Gets the is_data_safe_service_account_excluded of this AuditPolicySummary. lifecycle_detailsGets the lifecycle_details of this AuditPolicySummary. lifecycle_state[Required] Gets the lifecycle_state of this AuditPolicySummary. target_id[Required] Gets the target_id of this AuditPolicySummary. time_created[Required] Gets the time_created of this AuditPolicySummary. time_last_provisionedGets the time_last_provisioned of this AuditPolicySummary. time_last_retrievedGets the time_last_retrieved of this AuditPolicySummary. time_updatedGets the time_updated of this AuditPolicySummary. Methods
__init__(**kwargs)Initializes a new AuditPolicySummary object with values from keyword arguments. -
LIFECYCLE_STATE_ACTIVE= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a AuditPolicySummary. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_CREATING= 'CREATING'¶ A constant which can be used with the lifecycle_state property of a AuditPolicySummary. This constant has a value of “CREATING”
-
LIFECYCLE_STATE_DELETED= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a AuditPolicySummary. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETING= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a AuditPolicySummary. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_FAILED= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a AuditPolicySummary. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_NEEDS_ATTENTION= 'NEEDS_ATTENTION'¶ A constant which can be used with the lifecycle_state property of a AuditPolicySummary. This constant has a value of “NEEDS_ATTENTION”
-
LIFECYCLE_STATE_UPDATING= 'UPDATING'¶ A constant which can be used with the lifecycle_state property of a AuditPolicySummary. This constant has a value of “UPDATING”
-
__init__(**kwargs)¶ Initializes a new AuditPolicySummary object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - id (str) – The value to assign to the id property of this AuditPolicySummary.
- compartment_id (str) – The value to assign to the compartment_id property of this AuditPolicySummary.
- display_name (str) – The value to assign to the display_name property of this AuditPolicySummary.
- description (str) – The value to assign to the description property of this AuditPolicySummary.
- time_created (datetime) – The value to assign to the time_created property of this AuditPolicySummary.
- time_updated (datetime) – The value to assign to the time_updated property of this AuditPolicySummary.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this AuditPolicySummary. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “FAILED”, “NEEDS_ATTENTION”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- lifecycle_details (str) – The value to assign to the lifecycle_details property of this AuditPolicySummary.
- target_id (str) – The value to assign to the target_id property of this AuditPolicySummary.
- is_data_safe_service_account_excluded (bool) – The value to assign to the is_data_safe_service_account_excluded property of this AuditPolicySummary.
- audit_specifications (list[oci.data_safe.models.AuditSpecification]) – The value to assign to the audit_specifications property of this AuditPolicySummary.
- time_last_provisioned (datetime) – The value to assign to the time_last_provisioned property of this AuditPolicySummary.
- time_last_retrieved (datetime) – The value to assign to the time_last_retrieved property of this AuditPolicySummary.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this AuditPolicySummary.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this AuditPolicySummary.
-
audit_specifications¶ Gets the audit_specifications of this AuditPolicySummary. Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to documentation.
Returns: The audit_specifications of this AuditPolicySummary. Return type: list[oci.data_safe.models.AuditSpecification]
-
compartment_id¶ [Required] Gets the compartment_id of this AuditPolicySummary. The OCID of the compartment containing the audit policy.
Returns: The compartment_id of this AuditPolicySummary. Return type: str
Gets the defined_tags of this AuditPolicySummary. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {“Operations”: {“CostCenter”: “42”}}
Returns: The defined_tags of this AuditPolicySummary. Return type: dict(str, dict(str, object))
-
description¶ Gets the description of this AuditPolicySummary. Description of the audit policy.
Returns: The description of this AuditPolicySummary. Return type: str
-
display_name¶ [Required] Gets the display_name of this AuditPolicySummary. The display name of the audit policy.
Returns: The display_name of this AuditPolicySummary. Return type: str
Gets the freeform_tags of this AuditPolicySummary. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags
Example: {“Department”: “Finance”}
Returns: The freeform_tags of this AuditPolicySummary. Return type: dict(str, str)
-
id¶ [Required] Gets the id of this AuditPolicySummary. The OCID of the audit policy.
Returns: The id of this AuditPolicySummary. Return type: str
-
is_data_safe_service_account_excluded¶ [Required] Gets the is_data_safe_service_account_excluded of this AuditPolicySummary. Option provided to users at the target to indicate whether the Data Safe service account has to be excluded while provisioning the audit policies.
Returns: The is_data_safe_service_account_excluded of this AuditPolicySummary. Return type: bool
-
lifecycle_details¶ Gets the lifecycle_details of this AuditPolicySummary. Details about the current state of the audit policy in Data Safe.
Returns: The lifecycle_details of this AuditPolicySummary. Return type: str
-
lifecycle_state¶ [Required] Gets the lifecycle_state of this AuditPolicySummary. The current state of the audit policy.
Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “FAILED”, “NEEDS_ATTENTION”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The lifecycle_state of this AuditPolicySummary. Return type: str
-
target_id¶ [Required] Gets the target_id of this AuditPolicySummary. The OCID of the target for which the audit policy is created.
Returns: The target_id of this AuditPolicySummary. Return type: str
-
time_created¶ [Required] Gets the time_created of this AuditPolicySummary. The time the the audit policy was created, in the format defined by RFC3339.
Returns: The time_created of this AuditPolicySummary. Return type: datetime
-
time_last_provisioned¶ Gets the time_last_provisioned of this AuditPolicySummary. Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339.
Returns: The time_last_provisioned of this AuditPolicySummary. Return type: datetime
-
time_last_retrieved¶ Gets the time_last_retrieved of this AuditPolicySummary. The time when the audit policies was last retrieved from this target, in the format defined by RFC3339.
Returns: The time_last_retrieved of this AuditPolicySummary. Return type: datetime
-
time_updated¶ Gets the time_updated of this AuditPolicySummary. The last date and time the audit policy was updated, in the format defined by RFC3339.
Returns: The time_updated of this AuditPolicySummary. Return type: datetime
-