BulkCreatePrivateIpItem

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

Bases: object

Secondary private IPv4 address object to create as part of bulk creation.

Attributes

LIFETIME_EPHEMERAL A constant which can be used with the lifetime property of a BulkCreatePrivateIpItem.
LIFETIME_RESERVED A constant which can be used with the lifetime property of a BulkCreatePrivateIpItem.
cidr_prefix_length Gets the cidr_prefix_length of this BulkCreatePrivateIpItem.
defined_tags Gets the defined_tags of this BulkCreatePrivateIpItem.
display_name Gets the display_name of this BulkCreatePrivateIpItem.
freeform_tags Gets the freeform_tags of this BulkCreatePrivateIpItem.
hostname_label Gets the hostname_label of this BulkCreatePrivateIpItem.
ip_address Gets the ip_address of this BulkCreatePrivateIpItem.
ipv4_subnet_cidr_at_creation Gets the ipv4_subnet_cidr_at_creation of this BulkCreatePrivateIpItem.
lifetime Gets the lifetime of this BulkCreatePrivateIpItem.
route_table_id Gets the route_table_id of this BulkCreatePrivateIpItem.

Methods

__init__(**kwargs) Initializes a new BulkCreatePrivateIpItem object with values from keyword arguments.
LIFETIME_EPHEMERAL = 'EPHEMERAL'

A constant which can be used with the lifetime property of a BulkCreatePrivateIpItem. This constant has a value of “EPHEMERAL”

LIFETIME_RESERVED = 'RESERVED'

A constant which can be used with the lifetime property of a BulkCreatePrivateIpItem. This constant has a value of “RESERVED”

__init__(**kwargs)

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

Parameters:
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this BulkCreatePrivateIpItem.
  • display_name (str) – The value to assign to the display_name property of this BulkCreatePrivateIpItem.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this BulkCreatePrivateIpItem.
  • hostname_label (str) – The value to assign to the hostname_label property of this BulkCreatePrivateIpItem.
  • ip_address (str) – The value to assign to the ip_address property of this BulkCreatePrivateIpItem.
  • lifetime (str) – The value to assign to the lifetime property of this BulkCreatePrivateIpItem. Allowed values for this property are: “EPHEMERAL”, “RESERVED”
  • route_table_id (str) – The value to assign to the route_table_id property of this BulkCreatePrivateIpItem.
  • cidr_prefix_length (int) – The value to assign to the cidr_prefix_length property of this BulkCreatePrivateIpItem.
  • ipv4_subnet_cidr_at_creation (str) – The value to assign to the ipv4_subnet_cidr_at_creation property of this BulkCreatePrivateIpItem.
cidr_prefix_length

Gets the cidr_prefix_length of this BulkCreatePrivateIpItem. An optional field that when combined with the ipAddress field, will be used to allocate secondary IPv4 CIDRs. The CIDR range created by this combination must be within the subnet’s CIDR and the CIDR range should not collide with any existing IPv4 address allocation. The VNIC ID specified in the request object should not already been assigned more than the max IPv4 addresses. If you don’t specify a value, this option will be ignored.

Example: 18

Returns:The cidr_prefix_length of this BulkCreatePrivateIpItem.
Return type:int
defined_tags

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

Gets the display_name of this BulkCreatePrivateIpItem. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

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

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

Gets the hostname_label of this BulkCreatePrivateIpItem. The hostname for the private IP. Used for DNS. The value is the hostname portion of the private IP’s fully qualified domain name (FQDN) (for example, bminstance1 in FQDN bminstance1.subnet123.vcn1.oraclevcn.com). Must be unique across all VNICs in the subnet and comply with RFC 952 and RFC 1123.

For more information, see DNS in Your Virtual Cloud Network.

Example: bminstance1

Returns:The hostname_label of this BulkCreatePrivateIpItem.
Return type:str
ip_address

Gets the ip_address of this BulkCreatePrivateIpItem. A private IP address of your choice. Must be an available IP address within the subnet’s CIDR. If you don’t specify a value, Oracle automatically assigns a private IP address from the subnet.

Example: 10.0.3.3

Returns:The ip_address of this BulkCreatePrivateIpItem.
Return type:str
ipv4_subnet_cidr_at_creation

Gets the ipv4_subnet_cidr_at_creation of this BulkCreatePrivateIpItem. Any one of the IPv4 CIDRs allocated to the subnet.

Returns:The ipv4_subnet_cidr_at_creation of this BulkCreatePrivateIpItem.
Return type:str
lifetime

Gets the lifetime of this BulkCreatePrivateIpItem. Lifetime of the IP address. There are two types of IPs:

  • Ephemeral
  • Reserved

Allowed values for this property are: “EPHEMERAL”, “RESERVED”

Returns:The lifetime of this BulkCreatePrivateIpItem.
Return type:str
route_table_id

Gets the route_table_id of this BulkCreatePrivateIpItem. The OCID of the route table the IP address or VNIC will use. For more information, see Per-resource Routing.

Returns:The route_table_id of this BulkCreatePrivateIpItem.
Return type:str