CreateNetworkLoadBalancerDetails¶
- class oci.network_load_balancer.models.CreateNetworkLoadBalancerDetails(**kwargs)¶
Bases:
objectThe properties that define a network load balancer. For more information, see Introduction to Network Load Balancer.
To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized, then contact an administrator. If you are an administrator who writes policies to give users access, then see Getting Started with Policies.
For information about endpoints and signing API requests, see About the API. For information about available SDKs and tools, see SDKS and Other Tools.
Attributes:
A constant which can be used with the nlb_ip_version property of a CreateNetworkLoadBalancerDetails.
A constant which can be used with the nlb_ip_version property of a CreateNetworkLoadBalancerDetails.
A constant which can be used with the nlb_ip_version property of a CreateNetworkLoadBalancerDetails.
Gets the assigned_ipv6 of this CreateNetworkLoadBalancerDetails.
Gets the assigned_private_ipv4 of this CreateNetworkLoadBalancerDetails.
Gets the backend_sets of this CreateNetworkLoadBalancerDetails.
[Required] Gets the compartment_id of this CreateNetworkLoadBalancerDetails.
Gets the defined_tags of this CreateNetworkLoadBalancerDetails.
[Required] Gets the display_name of this CreateNetworkLoadBalancerDetails.
Gets the freeform_tags of this CreateNetworkLoadBalancerDetails.
Gets the is_preserve_source_destination of this CreateNetworkLoadBalancerDetails.
Gets the is_private of this CreateNetworkLoadBalancerDetails.
Gets the is_symmetric_hash_enabled of this CreateNetworkLoadBalancerDetails.
Gets the listeners of this CreateNetworkLoadBalancerDetails.
Gets the network_security_group_ids of this CreateNetworkLoadBalancerDetails.
Gets the nlb_ip_version of this CreateNetworkLoadBalancerDetails.
Gets the reserved_ips of this CreateNetworkLoadBalancerDetails.
Gets the security_attributes of this CreateNetworkLoadBalancerDetails.
[Required] Gets the subnet_id of this CreateNetworkLoadBalancerDetails.
Gets the subnet_ipv6_cidr of this CreateNetworkLoadBalancerDetails.
Methods:
__init__(**kwargs)Initializes a new CreateNetworkLoadBalancerDetails object with values from keyword arguments.
- NLB_IP_VERSION_IPV4 = 'IPV4'¶
A constant which can be used with the nlb_ip_version property of a CreateNetworkLoadBalancerDetails. This constant has a value of “IPV4”
- NLB_IP_VERSION_IPV4_AND_IPV6 = 'IPV4_AND_IPV6'¶
A constant which can be used with the nlb_ip_version property of a CreateNetworkLoadBalancerDetails. This constant has a value of “IPV4_AND_IPV6”
- NLB_IP_VERSION_IPV6 = 'IPV6'¶
A constant which can be used with the nlb_ip_version property of a CreateNetworkLoadBalancerDetails. This constant has a value of “IPV6”
- __init__(**kwargs)¶
Initializes a new CreateNetworkLoadBalancerDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
compartment_id (str) – The value to assign to the compartment_id property of this CreateNetworkLoadBalancerDetails.
display_name (str) – The value to assign to the display_name property of this CreateNetworkLoadBalancerDetails.
is_preserve_source_destination (bool) – The value to assign to the is_preserve_source_destination property of this CreateNetworkLoadBalancerDetails.
is_symmetric_hash_enabled (bool) – The value to assign to the is_symmetric_hash_enabled property of this CreateNetworkLoadBalancerDetails.
reserved_ips (list[oci.network_load_balancer.models.ReservedIP]) – The value to assign to the reserved_ips property of this CreateNetworkLoadBalancerDetails.
is_private (bool) – The value to assign to the is_private property of this CreateNetworkLoadBalancerDetails.
subnet_id (str) – The value to assign to the subnet_id property of this CreateNetworkLoadBalancerDetails.
network_security_group_ids (list[str]) – The value to assign to the network_security_group_ids property of this CreateNetworkLoadBalancerDetails.
nlb_ip_version (str) – The value to assign to the nlb_ip_version property of this CreateNetworkLoadBalancerDetails. Allowed values for this property are: “IPV4”, “IPV4_AND_IPV6”, “IPV6”
subnet_ipv6_cidr (str) – The value to assign to the subnet_ipv6_cidr property of this CreateNetworkLoadBalancerDetails.
assigned_private_ipv4 (str) – The value to assign to the assigned_private_ipv4 property of this CreateNetworkLoadBalancerDetails.
assigned_ipv6 (str) – The value to assign to the assigned_ipv6 property of this CreateNetworkLoadBalancerDetails.
listeners (dict(str, ListenerDetails)) – The value to assign to the listeners property of this CreateNetworkLoadBalancerDetails.
backend_sets (dict(str, BackendSetDetails)) – The value to assign to the backend_sets property of this CreateNetworkLoadBalancerDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateNetworkLoadBalancerDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateNetworkLoadBalancerDetails.
security_attributes (dict(str, dict(str, object))) – The value to assign to the security_attributes property of this CreateNetworkLoadBalancerDetails.
- property assigned_ipv6¶
Gets the assigned_ipv6 of this CreateNetworkLoadBalancerDetails. IPv6 address to be assigned to the network load balancer being created. This IP address has to be part of one of the prefixes supported by the subnet. Example: “2607:9b80:9a0a:9a7e:abcd:ef01:2345:6789”
- Returns
The assigned_ipv6 of this CreateNetworkLoadBalancerDetails.
- Return type
str
- property assigned_private_ipv4¶
Gets the assigned_private_ipv4 of this CreateNetworkLoadBalancerDetails. Private IP address to be assigned to the network load balancer being created. This IP address has to be in the CIDR range of the subnet where network load balancer is being created Example: “10.0.0.1”
- Returns
The assigned_private_ipv4 of this CreateNetworkLoadBalancerDetails.
- Return type
str
- property backend_sets¶
Gets the backend_sets of this CreateNetworkLoadBalancerDetails. Backend sets associated with the network load balancer.
- Returns
The backend_sets of this CreateNetworkLoadBalancerDetails.
- Return type
dict(str, BackendSetDetails)
- property compartment_id¶
[Required] Gets the compartment_id of this CreateNetworkLoadBalancerDetails. The OCID of the compartment containing the network load balancer.
- Returns
The compartment_id of this CreateNetworkLoadBalancerDetails.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this CreateNetworkLoadBalancerDetails. 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 CreateNetworkLoadBalancerDetails.
- Return type
dict(str, dict(str, object))
- property display_name¶
[Required] Gets the display_name of this CreateNetworkLoadBalancerDetails. Network load balancer identifier, which can be renamed.
- Returns
The display_name of this CreateNetworkLoadBalancerDetails.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this CreateNetworkLoadBalancerDetails. 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 CreateNetworkLoadBalancerDetails.
- Return type
dict(str, str)
- property is_preserve_source_destination¶
Gets the is_preserve_source_destination of this CreateNetworkLoadBalancerDetails. This parameter can be enabled only if backends are compute OCIDs. When enabled, the skipSourceDestinationCheck parameter is automatically enabled on the load balancer VNIC, and packets are sent to the backend with the entire IP header intact.
- Returns
The is_preserve_source_destination of this CreateNetworkLoadBalancerDetails.
- Return type
bool
- property is_private¶
Gets the is_private of this CreateNetworkLoadBalancerDetails. Whether the network load balancer has a virtual cloud network-local (private) IP address.
If “true”, then the service assigns a private IP address to the network load balancer.
If “false”, then the service assigns a public IP address to the network load balancer.
A public network load balancer is accessible from the internet, depending on the security list rules for your virtual cloud network. For more information about public and private network load balancers, see Network Load Balancer Types. This value is true by default.
Example: true
- Returns
The is_private of this CreateNetworkLoadBalancerDetails.
- Return type
bool
- property is_symmetric_hash_enabled¶
Gets the is_symmetric_hash_enabled of this CreateNetworkLoadBalancerDetails. This can only be enabled when NLB is working in transparent mode with source destination header preservation enabled. This removes the additional dependency from NLB backends(like Firewalls) to perform SNAT.
- Returns
The is_symmetric_hash_enabled of this CreateNetworkLoadBalancerDetails.
- Return type
bool
- property listeners¶
Gets the listeners of this CreateNetworkLoadBalancerDetails. Listeners associated with the network load balancer.
- Returns
The listeners of this CreateNetworkLoadBalancerDetails.
- Return type
dict(str, ListenerDetails)
- property network_security_group_ids¶
Gets the network_security_group_ids of this CreateNetworkLoadBalancerDetails. An array of network security groups OCIDs associated with the network load balancer.
During the creation of the network load balancer, the service adds the new load balancer to the specified network security groups.
The benefits of associating the network load balancer with network security groups include:
Network security groups define network security rules to govern ingress and egress traffic for the network load balancer.
The network security rules of other resources can reference the network security groups associated with the network load balancer to ensure access.
Example: [“ocid1.nsg.oc1.phx.unique_ID”]
- Returns
The network_security_group_ids of this CreateNetworkLoadBalancerDetails.
- Return type
list[str]
- property nlb_ip_version¶
Gets the nlb_ip_version of this CreateNetworkLoadBalancerDetails. IP version associated with the NLB.
Allowed values for this property are: “IPV4”, “IPV4_AND_IPV6”, “IPV6”
- Returns
The nlb_ip_version of this CreateNetworkLoadBalancerDetails.
- Return type
str
- property reserved_ips¶
Gets the reserved_ips of this CreateNetworkLoadBalancerDetails. An array of reserved Ips. NLB supports reserved public ip, reserved private IP and reserved IPv6. Customer can pass 3 reserved IP ocids, with all items unique, and a maximum of 1 allowed for each entity type: public-ip, private-ip and IPv6 Note that NLB does not support changing an IP’s lifecycle state between ephemeral and reserved if the IP is already assigned to the NLB. While this type of lifecycle state change is supported by VCN IPs even when the IP is assigned to a resource, such changes will not be recognized or reflected by NLB.
- Returns
The reserved_ips of this CreateNetworkLoadBalancerDetails.
- Return type
- property security_attributes¶
Gets the security_attributes of this CreateNetworkLoadBalancerDetails. ZPR 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: {“oracle-zpr”: {“td”: {“value”: “42”, “mode”: “audit”}}}
- Returns
The security_attributes of this CreateNetworkLoadBalancerDetails.
- Return type
dict(str, dict(str, object))
- property subnet_id¶
[Required] Gets the subnet_id of this CreateNetworkLoadBalancerDetails. The subnet in which the network load balancer is spawned OCIDs.
- Returns
The subnet_id of this CreateNetworkLoadBalancerDetails.
- Return type
str
- property subnet_ipv6_cidr¶
Gets the subnet_ipv6_cidr of this CreateNetworkLoadBalancerDetails. IPv6 subnet prefix selection. If Ipv6 subnet prefix is passed, Nlb Ipv6 Address would be assign within the cidr block. NLB has to be dual or single stack ipv6 to support this.
- Returns
The subnet_ipv6_cidr of this CreateNetworkLoadBalancerDetails.
- Return type
str