InstanceConfigurationCreateVnicDetails¶
- class oci.core.models.InstanceConfigurationCreateVnicDetails(**kwargs)¶
Bases:
objectContains the properties of the VNIC for an instance configuration. See
CreateVnicDetailsand Instance Configurations for more information.Methods:
__init__(**kwargs)Initializes a new InstanceConfigurationCreateVnicDetails object with values from keyword arguments.
Attributes:
Gets the assign_ipv6_ip of this InstanceConfigurationCreateVnicDetails.
Gets the assign_private_dns_record of this InstanceConfigurationCreateVnicDetails.
Gets the assign_public_ip of this InstanceConfigurationCreateVnicDetails.
Gets the defined_tags of this InstanceConfigurationCreateVnicDetails.
Gets the display_name of this InstanceConfigurationCreateVnicDetails.
Gets the freeform_tags of this InstanceConfigurationCreateVnicDetails.
Gets the hostname_label of this InstanceConfigurationCreateVnicDetails.
Gets the ipv6_address_ipv6_subnet_cidr_pair_details of this InstanceConfigurationCreateVnicDetails.
Gets the nsg_ids of this InstanceConfigurationCreateVnicDetails.
Gets the private_ip of this InstanceConfigurationCreateVnicDetails.
Gets the private_ip_id of this InstanceConfigurationCreateVnicDetails.
Gets the security_attributes of this InstanceConfigurationCreateVnicDetails.
Gets the skip_source_dest_check of this InstanceConfigurationCreateVnicDetails.
Gets the subnet_cidr of this InstanceConfigurationCreateVnicDetails.
Gets the subnet_id of this InstanceConfigurationCreateVnicDetails.
- __init__(**kwargs)¶
Initializes a new InstanceConfigurationCreateVnicDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
assign_ipv6_ip (bool) – The value to assign to the assign_ipv6_ip property of this InstanceConfigurationCreateVnicDetails.
assign_public_ip (bool) – The value to assign to the assign_public_ip property of this InstanceConfigurationCreateVnicDetails.
assign_private_dns_record (bool) – The value to assign to the assign_private_dns_record property of this InstanceConfigurationCreateVnicDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this InstanceConfigurationCreateVnicDetails.
display_name (str) – The value to assign to the display_name property of this InstanceConfigurationCreateVnicDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this InstanceConfigurationCreateVnicDetails.
security_attributes (dict(str, dict(str, object))) – The value to assign to the security_attributes property of this InstanceConfigurationCreateVnicDetails.
ipv6_address_ipv6_subnet_cidr_pair_details (list[oci.core.models.InstanceConfigurationIpv6AddressIpv6SubnetCidrPairDetails]) – The value to assign to the ipv6_address_ipv6_subnet_cidr_pair_details property of this InstanceConfigurationCreateVnicDetails.
hostname_label (str) – The value to assign to the hostname_label property of this InstanceConfigurationCreateVnicDetails.
nsg_ids (list[str]) – The value to assign to the nsg_ids property of this InstanceConfigurationCreateVnicDetails.
subnet_cidr (str) – The value to assign to the subnet_cidr property of this InstanceConfigurationCreateVnicDetails.
private_ip (str) – The value to assign to the private_ip property of this InstanceConfigurationCreateVnicDetails.
private_ip_id (str) – The value to assign to the private_ip_id property of this InstanceConfigurationCreateVnicDetails.
skip_source_dest_check (bool) – The value to assign to the skip_source_dest_check property of this InstanceConfigurationCreateVnicDetails.
subnet_id (str) – The value to assign to the subnet_id property of this InstanceConfigurationCreateVnicDetails.
- property assign_ipv6_ip¶
Gets the assign_ipv6_ip of this InstanceConfigurationCreateVnicDetails. Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled subnet. Default: False. When provided you may optionally provide an IPv6 prefix (ipv6SubnetCidr) of your choice to assign the IPv6 address from. If ipv6SubnetCidr is not provided then an IPv6 prefix is chosen for you.
- Returns
The assign_ipv6_ip of this InstanceConfigurationCreateVnicDetails.
- Return type
bool
- property assign_private_dns_record¶
Gets the assign_private_dns_record of this InstanceConfigurationCreateVnicDetails. Whether the VNIC should be assigned a private DNS record. See the assignPrivateDnsRecord attribute of
CreateVnicDetailsfor more information.- Returns
The assign_private_dns_record of this InstanceConfigurationCreateVnicDetails.
- Return type
bool
- property assign_public_ip¶
Gets the assign_public_ip of this InstanceConfigurationCreateVnicDetails. Whether the VNIC should be assigned a public IP address. See the assignPublicIp attribute of
CreateVnicDetailsfor more information.- Returns
The assign_public_ip of this InstanceConfigurationCreateVnicDetails.
- Return type
bool
- property defined_tags¶
Gets the defined_tags of this InstanceConfigurationCreateVnicDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {“Operations”: {“CostCenter”: “42”}}
- Returns
The defined_tags of this InstanceConfigurationCreateVnicDetails.
- Return type
dict(str, dict(str, object))
- property display_name¶
Gets the display_name of this InstanceConfigurationCreateVnicDetails. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Returns
The display_name of this InstanceConfigurationCreateVnicDetails.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this InstanceConfigurationCreateVnicDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {“Department”: “Finance”}
- Returns
The freeform_tags of this InstanceConfigurationCreateVnicDetails.
- Return type
dict(str, str)
- property hostname_label¶
Gets the hostname_label of this InstanceConfigurationCreateVnicDetails. The hostname for the VNIC’s primary private IP. See the hostnameLabel attribute of
CreateVnicDetailsfor more information.- Returns
The hostname_label of this InstanceConfigurationCreateVnicDetails.
- Return type
str
- property ipv6_address_ipv6_subnet_cidr_pair_details¶
Gets the ipv6_address_ipv6_subnet_cidr_pair_details of this InstanceConfigurationCreateVnicDetails. A list of IPv6 prefixes from which the VNIC should be assigned an IPv6 address. You can provide only the prefix and OCI selects an available address from the range. You can optionally choose to leave the prefix range empty and instead provide the specific IPv6 address that should be used from within that range.
- Returns
The ipv6_address_ipv6_subnet_cidr_pair_details of this InstanceConfigurationCreateVnicDetails.
- Return type
list[oci.core.models.InstanceConfigurationIpv6AddressIpv6SubnetCidrPairDetails]
- property nsg_ids¶
Gets the nsg_ids of this InstanceConfigurationCreateVnicDetails. A list of the OCIDs of the network security groups (NSGs) to add the VNIC to. For more information about NSGs, see
NetworkSecurityGroup.- Returns
The nsg_ids of this InstanceConfigurationCreateVnicDetails.
- Return type
list[str]
- property private_ip¶
Gets the private_ip of this InstanceConfigurationCreateVnicDetails. A private IP address of your choice to assign to the VNIC. See the privateIp attribute of
CreateVnicDetailsfor more information.- Returns
The private_ip of this InstanceConfigurationCreateVnicDetails.
- Return type
str
- property private_ip_id¶
Gets the private_ip_id of this InstanceConfigurationCreateVnicDetails. An OCID that specifies a previously-reserved IP address to use for this VNIC. See the privateIpId attribute of
CreateVnicDetailsfor more information.- Returns
The private_ip_id of this InstanceConfigurationCreateVnicDetails.
- Return type
str
- property security_attributes¶
Gets the security_attributes of this InstanceConfigurationCreateVnicDetails. Security attributes are labels for a resource that can be referenced in a Zero Trust Packet Routing (ZPR) policy to control access to ZPR-supported resources.
Example: {“Oracle-DataSecurity-ZPR”: {“MaxEgressCount”: {“value”:”42”,”mode”:”audit”}}}
- Returns
The security_attributes of this InstanceConfigurationCreateVnicDetails.
- Return type
dict(str, dict(str, object))
- property skip_source_dest_check¶
Gets the skip_source_dest_check of this InstanceConfigurationCreateVnicDetails. Whether the source/destination check is disabled on the VNIC. See the skipSourceDestCheck attribute of
CreateVnicDetailsfor more information.- Returns
The skip_source_dest_check of this InstanceConfigurationCreateVnicDetails.
- Return type
bool
- property subnet_cidr¶
Gets the subnet_cidr of this InstanceConfigurationCreateVnicDetails. One of the IPv4 CIDR blocks allocated to the subnet. Represents the IP range from which the VNIC’s private IP address will be assigned if privateIp or privateIpId is not specified. Either this field or the privateIp (or privateIpId, if applicable) field must be provided, but not both simultaneously. Example: 192.168.1.0/28 See the subnetCidr attribute of
CreateVnicDetailsfor more information.- Returns
The subnet_cidr of this InstanceConfigurationCreateVnicDetails.
- Return type
str
- property subnet_id¶
Gets the subnet_id of this InstanceConfigurationCreateVnicDetails. The OCID of the subnet to create the VNIC in. See the subnetId attribute of
CreateVnicDetailsfor more information.- Returns
The subnet_id of this InstanceConfigurationCreateVnicDetails.
- Return type
str