DatabaseSnapshot

class oci.database.models.DatabaseSnapshot(**kwargs)

Bases: object

Details of the Database Snapshot.

Attributes:

LIFECYCLE_STATE_AVAILABLE

A constant which can be used with the lifecycle_state property of a DatabaseSnapshot.

LIFECYCLE_STATE_CREATING

A constant which can be used with the lifecycle_state property of a DatabaseSnapshot.

LIFECYCLE_STATE_FAILED

A constant which can be used with the lifecycle_state property of a DatabaseSnapshot.

LIFECYCLE_STATE_TERMINATED

A constant which can be used with the lifecycle_state property of a DatabaseSnapshot.

LIFECYCLE_STATE_TERMINATING

A constant which can be used with the lifecycle_state property of a DatabaseSnapshot.

cluster_id

Gets the cluster_id of this DatabaseSnapshot.

compartment_id

Gets the compartment_id of this DatabaseSnapshot.

database_id

[Required] Gets the database_id of this DatabaseSnapshot.

defined_tags

Gets the defined_tags of this DatabaseSnapshot.

freeform_tags

Gets the freeform_tags of this DatabaseSnapshot.

id

[Required] Gets the id of this DatabaseSnapshot.

lifecycle_details

Gets the lifecycle_details of this DatabaseSnapshot.

lifecycle_state

Gets the lifecycle_state of this DatabaseSnapshot.

name

[Required] Gets the name of this DatabaseSnapshot.

system_tags

Gets the system_tags of this DatabaseSnapshot.

time_created

Gets the time_created of this DatabaseSnapshot.

Methods:

__init__(**kwargs)

Initializes a new DatabaseSnapshot object with values from keyword arguments.

LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'

A constant which can be used with the lifecycle_state property of a DatabaseSnapshot. This constant has a value of “AVAILABLE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a DatabaseSnapshot. This constant has a value of “CREATING”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a DatabaseSnapshot. This constant has a value of “FAILED”

LIFECYCLE_STATE_TERMINATED = 'TERMINATED'

A constant which can be used with the lifecycle_state property of a DatabaseSnapshot. This constant has a value of “TERMINATED”

LIFECYCLE_STATE_TERMINATING = 'TERMINATING'

A constant which can be used with the lifecycle_state property of a DatabaseSnapshot. This constant has a value of “TERMINATING”

__init__(**kwargs)

Initializes a new DatabaseSnapshot 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 DatabaseSnapshot.

  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this DatabaseSnapshot. Allowed values for this property are: “CREATING”, “AVAILABLE”, “TERMINATING”, “TERMINATED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • name (str) – The value to assign to the name property of this DatabaseSnapshot.

  • database_id (str) – The value to assign to the database_id property of this DatabaseSnapshot.

  • time_created (datetime) – The value to assign to the time_created property of this DatabaseSnapshot.

  • lifecycle_details (str) – The value to assign to the lifecycle_details property of this DatabaseSnapshot.

  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this DatabaseSnapshot.

  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this DatabaseSnapshot.

  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this DatabaseSnapshot.

  • compartment_id (str) – The value to assign to the compartment_id property of this DatabaseSnapshot.

  • cluster_id (str) – The value to assign to the cluster_id property of this DatabaseSnapshot.

property cluster_id

Gets the cluster_id of this DatabaseSnapshot. The OCID of the VM cluster.

Returns

The cluster_id of this DatabaseSnapshot.

Return type

str

property compartment_id

Gets the compartment_id of this DatabaseSnapshot. The OCID of the compartment.

Returns

The compartment_id of this DatabaseSnapshot.

Return type

str

property database_id

[Required] Gets the database_id of this DatabaseSnapshot. The OCID of the Exadata Database.

Returns

The database_id of this DatabaseSnapshot.

Return type

str

property defined_tags

Gets the defined_tags of this DatabaseSnapshot. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Returns

The defined_tags of this DatabaseSnapshot.

Return type

dict(str, dict(str, object))

property freeform_tags

Gets the freeform_tags of this DatabaseSnapshot. 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 DatabaseSnapshot.

Return type

dict(str, str)

property id

[Required] Gets the id of this DatabaseSnapshot. The OCID of the Exadata Database Snapshot.

Returns

The id of this DatabaseSnapshot.

Return type

str

property lifecycle_details

Gets the lifecycle_details of this DatabaseSnapshot. Additional information about the current lifecycle state of the Exadata Database Snapshot.

Returns

The lifecycle_details of this DatabaseSnapshot.

Return type

str

property lifecycle_state

Gets the lifecycle_state of this DatabaseSnapshot. The current state of the Exadata Database Snapshot.

Allowed values for this property are: “CREATING”, “AVAILABLE”, “TERMINATING”, “TERMINATED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The lifecycle_state of this DatabaseSnapshot.

Return type

str

property name

[Required] Gets the name of this DatabaseSnapshot. The user-friendly name for the Database Snapshot. The name should be unique.

Returns

The name of this DatabaseSnapshot.

Return type

str

property system_tags

Gets the system_tags of this DatabaseSnapshot. System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Returns

The system_tags of this DatabaseSnapshot.

Return type

dict(str, dict(str, object))

property time_created

Gets the time_created of this DatabaseSnapshot. The date and time that the Exadata Database Snapshot was created, as expressed in RFC 3339 format. For example: 2023-06-27T21:10:29Z

Returns

The time_created of this DatabaseSnapshot.

Return type

datetime