ConsoleHistory¶
-
class
oci.core.models.
ConsoleHistory
(**kwargs)¶ Bases:
object
An instance’s serial console data. It includes configuration messages that occur when the instance boots, such as kernel and BIOS messages, and is useful for checking the status of the instance or diagnosing problems. The console data is minimally formatted ASCII text.
Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.
Attributes
LIFECYCLE_STATE_FAILED
A constant which can be used with the lifecycle_state property of a ConsoleHistory. LIFECYCLE_STATE_GETTING_HISTORY
A constant which can be used with the lifecycle_state property of a ConsoleHistory. LIFECYCLE_STATE_REQUESTED
A constant which can be used with the lifecycle_state property of a ConsoleHistory. LIFECYCLE_STATE_SUCCEEDED
A constant which can be used with the lifecycle_state property of a ConsoleHistory. availability_domain
[Required] Gets the availability_domain of this ConsoleHistory. compartment_id
[Required] Gets the compartment_id of this ConsoleHistory. defined_tags
Gets the defined_tags of this ConsoleHistory. display_name
Gets the display_name of this ConsoleHistory. freeform_tags
Gets the freeform_tags of this ConsoleHistory. id
[Required] Gets the id of this ConsoleHistory. instance_id
[Required] Gets the instance_id of this ConsoleHistory. lifecycle_state
[Required] Gets the lifecycle_state of this ConsoleHistory. time_created
[Required] Gets the time_created of this ConsoleHistory. Methods
__init__
(**kwargs)Initializes a new ConsoleHistory object with values from keyword arguments. -
LIFECYCLE_STATE_FAILED
= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a ConsoleHistory. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_GETTING_HISTORY
= 'GETTING-HISTORY'¶ A constant which can be used with the lifecycle_state property of a ConsoleHistory. This constant has a value of “GETTING-HISTORY”
-
LIFECYCLE_STATE_REQUESTED
= 'REQUESTED'¶ A constant which can be used with the lifecycle_state property of a ConsoleHistory. This constant has a value of “REQUESTED”
-
LIFECYCLE_STATE_SUCCEEDED
= 'SUCCEEDED'¶ A constant which can be used with the lifecycle_state property of a ConsoleHistory. This constant has a value of “SUCCEEDED”
-
__init__
(**kwargs)¶ Initializes a new ConsoleHistory object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - availability_domain (str) – The value to assign to the availability_domain property of this ConsoleHistory.
- compartment_id (str) – The value to assign to the compartment_id property of this ConsoleHistory.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this ConsoleHistory.
- display_name (str) – The value to assign to the display_name property of this ConsoleHistory.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this ConsoleHistory.
- id (str) – The value to assign to the id property of this ConsoleHistory.
- instance_id (str) – The value to assign to the instance_id property of this ConsoleHistory.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this ConsoleHistory. Allowed values for this property are: “REQUESTED”, “GETTING-HISTORY”, “SUCCEEDED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- time_created (datetime) – The value to assign to the time_created property of this ConsoleHistory.
-
availability_domain
¶ [Required] Gets the availability_domain of this ConsoleHistory. The availability domain of an instance.
Example: Uocm:PHX-AD-1
Returns: The availability_domain of this ConsoleHistory. Return type: str
-
compartment_id
¶ [Required] Gets the compartment_id of this ConsoleHistory. The OCID of the compartment.
Returns: The compartment_id of this ConsoleHistory. Return type: str
Gets the defined_tags of this ConsoleHistory. 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 ConsoleHistory. Return type: dict(str, dict(str, object))
-
display_name
¶ Gets the display_name of this ConsoleHistory. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
Returns: The display_name of this ConsoleHistory. Return type: str
Gets the freeform_tags of this ConsoleHistory. 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 ConsoleHistory. Return type: dict(str, str)
-
id
¶ [Required] Gets the id of this ConsoleHistory. The OCID of the console history metadata object.
Returns: The id of this ConsoleHistory. Return type: str
-
instance_id
¶ [Required] Gets the instance_id of this ConsoleHistory. The OCID of the instance this console history was fetched from.
Returns: The instance_id of this ConsoleHistory. Return type: str
-
lifecycle_state
¶ [Required] Gets the lifecycle_state of this ConsoleHistory. The current state of the console history.
Allowed values for this property are: “REQUESTED”, “GETTING-HISTORY”, “SUCCEEDED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The lifecycle_state of this ConsoleHistory. Return type: str
-