InstanceConfigurationAttachVnicDetails

class oci.core.models.InstanceConfigurationAttachVnicDetails(**kwargs)

Bases: object

InstanceConfigurationAttachVnicDetails model.

__init__(**kwargs)

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

Parameters:
  • create_vnic_details (InstanceConfigurationCreateVnicDetails) -- The value to assign to the create_vnic_details property of this InstanceConfigurationAttachVnicDetails.
  • display_name (str) -- The value to assign to the display_name property of this InstanceConfigurationAttachVnicDetails.
  • nic_index (int) -- The value to assign to the nic_index property of this InstanceConfigurationAttachVnicDetails.
create_vnic_details

Gets the create_vnic_details of this InstanceConfigurationAttachVnicDetails. Details for creating a new VNIC.

Returns:The create_vnic_details of this InstanceConfigurationAttachVnicDetails.
Return type:InstanceConfigurationCreateVnicDetails
display_name

Gets the display_name of this InstanceConfigurationAttachVnicDetails. A user-friendly name for the attachment. Does not have to be unique, and it cannot be changed.

Returns:The display_name of this InstanceConfigurationAttachVnicDetails.
Return type:str
nic_index

Gets the nic_index of this InstanceConfigurationAttachVnicDetails. Which physical network interface card (NIC) the VNIC will use. Defaults to 0. Certain bare metal instance shapes have two active physical NICs (0 and 1). If you add a secondary VNIC to one of these instances, you can specify which NIC the VNIC will use. For more information, see Virtual Network Interface Cards (VNICs).

Returns:The nic_index of this InstanceConfigurationAttachVnicDetails.
Return type:int