RecoveryServiceSubnet¶
-
class
oci.recovery.models.
RecoveryServiceSubnet
(**kwargs)¶ Bases:
object
The details of a recovery service subnet. Recovery service subnets allows Recovery Service to access protected databases in each VCN. Each recovery service subnet uses a single private endpoint on a subnet of your choice within a VCN. The private endpoint need not be on the same subnet as the Oracle Cloud Database, although, it must be on a subnet that can communicate with the Oracle Cloud Database.
Attributes
LIFECYCLE_STATE_ACTIVE
A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnet. LIFECYCLE_STATE_CREATING
A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnet. LIFECYCLE_STATE_DELETED
A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnet. LIFECYCLE_STATE_DELETE_SCHEDULED
A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnet. LIFECYCLE_STATE_DELETING
A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnet. LIFECYCLE_STATE_FAILED
A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnet. LIFECYCLE_STATE_UPDATING
A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnet. compartment_id
[Required] Gets the compartment_id of this RecoveryServiceSubnet. defined_tags
Gets the defined_tags of this RecoveryServiceSubnet. display_name
Gets the display_name of this RecoveryServiceSubnet. freeform_tags
Gets the freeform_tags of this RecoveryServiceSubnet. id
[Required] Gets the id of this RecoveryServiceSubnet. lifecycle_details
Gets the lifecycle_details of this RecoveryServiceSubnet. lifecycle_state
Gets the lifecycle_state of this RecoveryServiceSubnet. nsg_ids
Gets the nsg_ids of this RecoveryServiceSubnet. subnet_id
[Required] Gets the subnet_id of this RecoveryServiceSubnet. subnets
Gets the subnets of this RecoveryServiceSubnet. system_tags
Gets the system_tags of this RecoveryServiceSubnet. time_created
Gets the time_created of this RecoveryServiceSubnet. time_updated
Gets the time_updated of this RecoveryServiceSubnet. vcn_id
[Required] Gets the vcn_id of this RecoveryServiceSubnet. Methods
__init__
(**kwargs)Initializes a new RecoveryServiceSubnet object with values from keyword arguments. -
LIFECYCLE_STATE_ACTIVE
= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnet. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_CREATING
= 'CREATING'¶ A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnet. This constant has a value of “CREATING”
-
LIFECYCLE_STATE_DELETED
= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnet. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETE_SCHEDULED
= 'DELETE_SCHEDULED'¶ A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnet. This constant has a value of “DELETE_SCHEDULED”
-
LIFECYCLE_STATE_DELETING
= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnet. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_FAILED
= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnet. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_UPDATING
= 'UPDATING'¶ A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnet. This constant has a value of “UPDATING”
-
__init__
(**kwargs)¶ Initializes a new RecoveryServiceSubnet 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 RecoveryServiceSubnet.
- display_name (str) – The value to assign to the display_name property of this RecoveryServiceSubnet.
- compartment_id (str) – The value to assign to the compartment_id property of this RecoveryServiceSubnet.
- vcn_id (str) – The value to assign to the vcn_id property of this RecoveryServiceSubnet.
- subnet_id (str) – The value to assign to the subnet_id property of this RecoveryServiceSubnet.
- subnets (list[str]) – The value to assign to the subnets property of this RecoveryServiceSubnet.
- nsg_ids (list[str]) – The value to assign to the nsg_ids property of this RecoveryServiceSubnet.
- time_created (datetime) – The value to assign to the time_created property of this RecoveryServiceSubnet.
- time_updated (datetime) – The value to assign to the time_updated property of this RecoveryServiceSubnet.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this RecoveryServiceSubnet. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETE_SCHEDULED”, “DELETING”, “DELETED”, “FAILED”, ‘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 RecoveryServiceSubnet.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this RecoveryServiceSubnet.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this RecoveryServiceSubnet.
- system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this RecoveryServiceSubnet.
-
compartment_id
¶ [Required] Gets the compartment_id of this RecoveryServiceSubnet. The compartment OCID.
Returns: The compartment_id of this RecoveryServiceSubnet. Return type: str
Gets the defined_tags of this RecoveryServiceSubnet. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}. For more information, see Resource Tags
Returns: The defined_tags of this RecoveryServiceSubnet. Return type: dict(str, dict(str, object))
-
display_name
¶ Gets the display_name of this RecoveryServiceSubnet. A user-provided name for the recovery service subnet.
Returns: The display_name of this RecoveryServiceSubnet. Return type: str
Gets the freeform_tags of this RecoveryServiceSubnet. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}
Returns: The freeform_tags of this RecoveryServiceSubnet. Return type: dict(str, str)
-
id
¶ [Required] Gets the id of this RecoveryServiceSubnet. The recovery service subnet OCID.
Returns: The id of this RecoveryServiceSubnet. Return type: str
-
lifecycle_details
¶ Gets the lifecycle_details of this RecoveryServiceSubnet. Detailed description about the current lifecycle state of the recovery service subnet. For example, it can be used to provide actionable information for a resource in a Failed state
Returns: The lifecycle_details of this RecoveryServiceSubnet. Return type: str
-
lifecycle_state
¶ Gets the lifecycle_state of this RecoveryServiceSubnet. The current state of the recovery service subnet.
Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETE_SCHEDULED”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The lifecycle_state of this RecoveryServiceSubnet. Return type: str
-
nsg_ids
¶ Gets the nsg_ids of this RecoveryServiceSubnet. A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. See
NetworkSecurityGroup
for more information.Returns: The nsg_ids of this RecoveryServiceSubnet. Return type: list[str]
-
subnet_id
¶ [Required] Gets the subnet_id of this RecoveryServiceSubnet. Deprecated. One of the subnets associated with the Recovery Service subnet.
Returns: The subnet_id of this RecoveryServiceSubnet. Return type: str
-
subnets
¶ Gets the subnets of this RecoveryServiceSubnet. A list of OCIDs of all the subnets associated with the Recovery Service subnet.
Returns: The subnets of this RecoveryServiceSubnet. Return type: list[str]
Gets the system_tags of this RecoveryServiceSubnet. Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}. For more information, see Resource Tags
Returns: The system_tags of this RecoveryServiceSubnet. Return type: dict(str, dict(str, object))
-
time_created
¶ Gets the time_created of this RecoveryServiceSubnet. An RFC3339 formatted datetime string that indicates the last created time for a recovery service subnet. For example: ‘2020-05-22T21:10:29.600Z’.
Returns: The time_created of this RecoveryServiceSubnet. Return type: datetime
-
time_updated
¶ Gets the time_updated of this RecoveryServiceSubnet. An RFC3339 formatted datetime string that indicates the last updated time for a recovery service subnet. For example: ‘2020-05-22T21:10:29.600Z’.
Returns: The time_updated of this RecoveryServiceSubnet. Return type: datetime
-
vcn_id
¶ [Required] Gets the vcn_id of this RecoveryServiceSubnet. VCN Identifier.
Returns: The vcn_id of this RecoveryServiceSubnet. Return type: str
-