CreateRecoveryServiceSubnetDetails

class oci.recovery.models.CreateRecoveryServiceSubnetDetails(**kwargs)

Bases: object

Describes the parameters required to create a Recovery Service Subnet.

Methods

__init__(**kwargs) Initializes a new CreateRecoveryServiceSubnetDetails object with values from keyword arguments.

Attributes

compartment_id [Required] Gets the compartment_id of this CreateRecoveryServiceSubnetDetails.
defined_tags Gets the defined_tags of this CreateRecoveryServiceSubnetDetails.
display_name [Required] Gets the display_name of this CreateRecoveryServiceSubnetDetails.
freeform_tags Gets the freeform_tags of this CreateRecoveryServiceSubnetDetails.
nsg_ids Gets the nsg_ids of this CreateRecoveryServiceSubnetDetails.
subnet_id Gets the subnet_id of this CreateRecoveryServiceSubnetDetails.
subnets Gets the subnets of this CreateRecoveryServiceSubnetDetails.
vcn_id [Required] Gets the vcn_id of this CreateRecoveryServiceSubnetDetails.
__init__(**kwargs)

Initializes a new CreateRecoveryServiceSubnetDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • display_name (str) – The value to assign to the display_name property of this CreateRecoveryServiceSubnetDetails.
  • subnet_id (str) – The value to assign to the subnet_id property of this CreateRecoveryServiceSubnetDetails.
  • subnets (list[str]) – The value to assign to the subnets property of this CreateRecoveryServiceSubnetDetails.
  • nsg_ids (list[str]) – The value to assign to the nsg_ids property of this CreateRecoveryServiceSubnetDetails.
  • vcn_id (str) – The value to assign to the vcn_id property of this CreateRecoveryServiceSubnetDetails.
  • compartment_id (str) – The value to assign to the compartment_id property of this CreateRecoveryServiceSubnetDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateRecoveryServiceSubnetDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateRecoveryServiceSubnetDetails.
compartment_id

[Required] Gets the compartment_id of this CreateRecoveryServiceSubnetDetails. The compartment OCID.

Returns:The compartment_id of this CreateRecoveryServiceSubnetDetails.
Return type:str
defined_tags

Gets the defined_tags of this CreateRecoveryServiceSubnetDetails. 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 CreateRecoveryServiceSubnetDetails.
Return type:dict(str, dict(str, object))
display_name

[Required] Gets the display_name of this CreateRecoveryServiceSubnetDetails. A user-provided name for the recovery service subnet. The ‘displayName’ does not have to be unique, and it can be modified. Avoid entering confidential information.

Returns:The display_name of this CreateRecoveryServiceSubnetDetails.
Return type:str
freeform_tags

Gets the freeform_tags of this CreateRecoveryServiceSubnetDetails. 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 CreateRecoveryServiceSubnetDetails.
Return type:dict(str, str)
nsg_ids

Gets the nsg_ids of this CreateRecoveryServiceSubnetDetails. 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 CreateRecoveryServiceSubnetDetails.
Return type:list[str]
subnet_id

Gets the subnet_id of this CreateRecoveryServiceSubnetDetails. Deprecated. One of the subnets associated with the Recovery Service subnet.

Returns:The subnet_id of this CreateRecoveryServiceSubnetDetails.
Return type:str
subnets

Gets the subnets of this CreateRecoveryServiceSubnetDetails. A list of OCIDs of the subnets associated with the Recovery Service subnet.

Returns:The subnets of this CreateRecoveryServiceSubnetDetails.
Return type:list[str]
vcn_id

[Required] Gets the vcn_id of this CreateRecoveryServiceSubnetDetails. The OCID of the virtual cloud network (VCN) that contains the recovery service subnet. You can create a single recovery service subnet per VCN.

Returns:The vcn_id of this CreateRecoveryServiceSubnetDetails.
Return type:str