CreateContainerVnicDetails

class oci.container_instances.models.CreateContainerVnicDetails(**kwargs)

Bases: object

Information to create a virtual network interface card (VNIC) which gives the containers on this container instance access to a virtual client network (VCN).

You use this object when creating the primary VNIC during container instance launch or when creating a secondary VNIC. This VNIC is created in the same compartment as the specified subnet on behalf of the customer.

The VNIC created by this call contains both the tags specified in this object as well as any tags specified in the parent container instance.

Methods

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

Attributes

defined_tags Gets the defined_tags of this CreateContainerVnicDetails.
display_name Gets the display_name of this CreateContainerVnicDetails.
freeform_tags Gets the freeform_tags of this CreateContainerVnicDetails.
hostname_label Gets the hostname_label of this CreateContainerVnicDetails.
is_public_ip_assigned Gets the is_public_ip_assigned of this CreateContainerVnicDetails.
nsg_ids Gets the nsg_ids of this CreateContainerVnicDetails.
private_ip Gets the private_ip of this CreateContainerVnicDetails.
skip_source_dest_check Gets the skip_source_dest_check of this CreateContainerVnicDetails.
subnet_id [Required] Gets the subnet_id of this CreateContainerVnicDetails.
__init__(**kwargs)

Initializes a new CreateContainerVnicDetails 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 CreateContainerVnicDetails.
  • hostname_label (str) – The value to assign to the hostname_label property of this CreateContainerVnicDetails.
  • is_public_ip_assigned (bool) – The value to assign to the is_public_ip_assigned property of this CreateContainerVnicDetails.
  • skip_source_dest_check (bool) – The value to assign to the skip_source_dest_check property of this CreateContainerVnicDetails.
  • nsg_ids (list[str]) – The value to assign to the nsg_ids property of this CreateContainerVnicDetails.
  • private_ip (str) – The value to assign to the private_ip property of this CreateContainerVnicDetails.
  • subnet_id (str) – The value to assign to the subnet_id property of this CreateContainerVnicDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateContainerVnicDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateContainerVnicDetails.
defined_tags

Gets the defined_tags of this CreateContainerVnicDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}.

Returns:The defined_tags of this CreateContainerVnicDetails.
Return type:dict(str, dict(str, object))
display_name

Gets the display_name of this CreateContainerVnicDetails. A user-friendly name for the VNIC. Does not have to be unique. Avoid entering confidential information.

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

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

Gets the hostname_label of this CreateContainerVnicDetails. The hostname for the VNIC’s primary private IP. Used for DNS.

Returns:The hostname_label of this CreateContainerVnicDetails.
Return type:str
is_public_ip_assigned

Gets the is_public_ip_assigned of this CreateContainerVnicDetails. Whether the VNIC should be assigned a public IP address.

Returns:The is_public_ip_assigned of this CreateContainerVnicDetails.
Return type:bool
nsg_ids

Gets the nsg_ids of this CreateContainerVnicDetails. A list of the OCIDs of the network security groups (NSGs) to add the VNIC to.

Returns:The nsg_ids of this CreateContainerVnicDetails.
Return type:list[str]
private_ip

Gets the private_ip of this CreateContainerVnicDetails. A private IP address of your choice to assign to the VNIC. Must be an available IP address within the subnet’s CIDR.

Returns:The private_ip of this CreateContainerVnicDetails.
Return type:str
skip_source_dest_check

Gets the skip_source_dest_check of this CreateContainerVnicDetails. Whether the source/destination check is disabled on the VNIC.

Returns:The skip_source_dest_check of this CreateContainerVnicDetails.
Return type:bool
subnet_id

[Required] Gets the subnet_id of this CreateContainerVnicDetails. The OCID of the subnet to create the VNIC in.

Returns:The subnet_id of this CreateContainerVnicDetails.
Return type:str