ComputeInstanceVnicMapping¶
- class oci.disaster_recovery.models.ComputeInstanceVnicMapping(**kwargs)¶
Bases:
objectDeprecated. Source VNIC to destination subnet mapping for a compute instance.
Methods:
__init__(**kwargs)Initializes a new ComputeInstanceVnicMapping object with values from keyword arguments.
Attributes:
Gets the destination_nsg_id_list of this ComputeInstanceVnicMapping.
[Required] Gets the destination_subnet_id of this ComputeInstanceVnicMapping.
[Required] Gets the source_vnic_id of this ComputeInstanceVnicMapping.
- __init__(**kwargs)¶
Initializes a new ComputeInstanceVnicMapping object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
source_vnic_id (str) – The value to assign to the source_vnic_id property of this ComputeInstanceVnicMapping.
destination_subnet_id (str) – The value to assign to the destination_subnet_id property of this ComputeInstanceVnicMapping.
destination_nsg_id_list (list[str]) – The value to assign to the destination_nsg_id_list property of this ComputeInstanceVnicMapping.
- property destination_nsg_id_list¶
Gets the destination_nsg_id_list of this ComputeInstanceVnicMapping. A list of OCIDs of network security groups (NSG) in the destination region which should be assigned to the source VNIC.
Example: [ ocid1.networksecuritygroup.oc1..uniqueID1, ocid1.networksecuritygroup.oc1..uniqueID2 ]
- Returns
The destination_nsg_id_list of this ComputeInstanceVnicMapping.
- Return type
list[str]
- property destination_subnet_id¶
[Required] Gets the destination_subnet_id of this ComputeInstanceVnicMapping. The OCID of the destination subnet to which the source VNIC should connect.
Example: ocid1.subnet.oc1..uniqueID
- Returns
The destination_subnet_id of this ComputeInstanceVnicMapping.
- Return type
str
- property source_vnic_id¶
[Required] Gets the source_vnic_id of this ComputeInstanceVnicMapping. The OCID of the VNIC.
Example: ocid1.vnic.oc1..uniqueID
- Returns
The source_vnic_id of this ComputeInstanceVnicMapping.
- Return type
str