Resource¶
-
class
oci.cloud_guard.models.
Resource
(**kwargs)¶ Bases:
object
Details of cloud guard resource
Attributes
RISK_LEVEL_CRITICAL
A constant which can be used with the risk_level property of a Resource. RISK_LEVEL_HIGH
A constant which can be used with the risk_level property of a Resource. RISK_LEVEL_LOW
A constant which can be used with the risk_level property of a Resource. RISK_LEVEL_MEDIUM
A constant which can be used with the risk_level property of a Resource. RISK_LEVEL_MINOR
A constant which can be used with the risk_level property of a Resource. RISK_LEVEL_NONE
A constant which can be used with the risk_level property of a Resource. additional_details
Gets the additional_details of this Resource. compartment_id
[Required] Gets the compartment_id of this Resource. defined_tags
Gets the defined_tags of this Resource. freeform_tags
Gets the freeform_tags of this Resource. id
[Required] Gets the id of this Resource. open_ports_count
Gets the open_ports_count of this Resource. problem_count
Gets the problem_count of this Resource. region
[Required] Gets the region of this Resource. resource_name
Gets the resource_name of this Resource. resource_type
[Required] Gets the resource_type of this Resource. risk_level
Gets the risk_level of this Resource. system_tags
Gets the system_tags of this Resource. target_id
[Required] Gets the target_id of this Resource. target_name
Gets the target_name of this Resource. time_first_monitored
Gets the time_first_monitored of this Resource. time_last_monitored
Gets the time_last_monitored of this Resource. vulnerability_count
Gets the vulnerability_count of this Resource. Methods
__init__
(**kwargs)Initializes a new Resource object with values from keyword arguments. -
RISK_LEVEL_CRITICAL
= 'CRITICAL'¶ A constant which can be used with the risk_level property of a Resource. This constant has a value of “CRITICAL”
-
RISK_LEVEL_HIGH
= 'HIGH'¶ A constant which can be used with the risk_level property of a Resource. This constant has a value of “HIGH”
-
RISK_LEVEL_LOW
= 'LOW'¶ A constant which can be used with the risk_level property of a Resource. This constant has a value of “LOW”
-
RISK_LEVEL_MEDIUM
= 'MEDIUM'¶ A constant which can be used with the risk_level property of a Resource. This constant has a value of “MEDIUM”
-
RISK_LEVEL_MINOR
= 'MINOR'¶ A constant which can be used with the risk_level property of a Resource. This constant has a value of “MINOR”
-
RISK_LEVEL_NONE
= 'NONE'¶ A constant which can be used with the risk_level property of a Resource. This constant has a value of “NONE”
-
__init__
(**kwargs)¶ Initializes a new Resource 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 Resource.
- resource_name (str) – The value to assign to the resource_name property of this Resource.
- resource_type (str) – The value to assign to the resource_type property of this Resource.
- compartment_id (str) – The value to assign to the compartment_id property of this Resource.
- target_id (str) – The value to assign to the target_id property of this Resource.
- target_name (str) – The value to assign to the target_name property of this Resource.
- region (str) – The value to assign to the region property of this Resource.
- risk_level (str) – The value to assign to the risk_level property of this Resource. Allowed values for this property are: “CRITICAL”, “HIGH”, “MEDIUM”, “LOW”, “MINOR”, “NONE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- time_first_monitored (datetime) – The value to assign to the time_first_monitored property of this Resource.
- time_last_monitored (datetime) – The value to assign to the time_last_monitored property of this Resource.
- problem_count (int) – The value to assign to the problem_count property of this Resource.
- vulnerability_count (int) – The value to assign to the vulnerability_count property of this Resource.
- open_ports_count (int) – The value to assign to the open_ports_count property of this Resource.
- additional_details (oci.cloud_guard.models.ResourceAdditionalDetails) – The value to assign to the additional_details property of this Resource.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this Resource.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this Resource.
- system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this Resource.
-
additional_details
¶ Gets the additional_details of this Resource.
Returns: The additional_details of this Resource. Return type: oci.cloud_guard.models.ResourceAdditionalDetails
-
compartment_id
¶ [Required] Gets the compartment_id of this Resource. CompartmentId of CG Resource
Returns: The compartment_id of this Resource. Return type: str
Gets the defined_tags of this Resource. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
Returns: The defined_tags of this Resource. Return type: dict(str, dict(str, object))
Gets the freeform_tags of this Resource. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}
Avoid entering confidential information.
Returns: The freeform_tags of this Resource. Return type: dict(str, str)
-
id
¶ [Required] Gets the id of this Resource. Ocid for CG resource
Returns: The id of this Resource. Return type: str
-
open_ports_count
¶ Gets the open_ports_count of this Resource. Number of open ports in a resource
Returns: The open_ports_count of this Resource. Return type: int
-
problem_count
¶ Gets the problem_count of this Resource. Count of existing problems for a resource
Returns: The problem_count of this Resource. Return type: int
-
region
¶ [Required] Gets the region of this Resource. region of CG Resource
Returns: The region of this Resource. Return type: str
-
resource_name
¶ Gets the resource_name of this Resource. Name for the CG resource
Returns: The resource_name of this Resource. Return type: str
-
resource_type
¶ [Required] Gets the resource_type of this Resource. resource type of the CG resource
Returns: The resource_type of this Resource. Return type: str
-
risk_level
¶ Gets the risk_level of this Resource. The Risk Level
Allowed values for this property are: “CRITICAL”, “HIGH”, “MEDIUM”, “LOW”, “MINOR”, “NONE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The risk_level of this Resource. Return type: str
Gets the system_tags of this Resource. System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system.
Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
Returns: The system_tags of this Resource. Return type: dict(str, dict(str, object))
-
target_id
¶ [Required] Gets the target_id of this Resource. TargetId of CG Resource
Returns: The target_id of this Resource. Return type: str
-
target_name
¶ Gets the target_name of this Resource. Target name for the CG Resource
Returns: The target_name of this Resource. Return type: str
-
time_first_monitored
¶ Gets the time_first_monitored of this Resource. First monitored time
Returns: The time_first_monitored of this Resource. Return type: datetime
-
time_last_monitored
¶ Gets the time_last_monitored of this Resource. Last monitored time
Returns: The time_last_monitored of this Resource. Return type: datetime
-
vulnerability_count
¶ Gets the vulnerability_count of this Resource. Count of existing number of vulnerabilities in the resource
Returns: The vulnerability_count of this Resource. Return type: int
-