BackendDetails

class oci.network_load_balancer.models.BackendDetails(**kwargs)

Bases: object

The network network load balancing configuration details of a backend server.

Methods

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

Attributes

ip_address Gets the ip_address of this BackendDetails.
is_backup Gets the is_backup of this BackendDetails.
is_drain Gets the is_drain of this BackendDetails.
is_offline Gets the is_offline of this BackendDetails.
name Gets the name of this BackendDetails.
port [Required] Gets the port of this BackendDetails.
target_id Gets the target_id of this BackendDetails.
weight Gets the weight of this BackendDetails.
__init__(**kwargs)

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

Parameters:
  • name (str) – The value to assign to the name property of this BackendDetails.
  • ip_address (str) – The value to assign to the ip_address property of this BackendDetails.
  • target_id (str) – The value to assign to the target_id property of this BackendDetails.
  • port (int) – The value to assign to the port property of this BackendDetails.
  • weight (int) – The value to assign to the weight property of this BackendDetails.
  • is_backup (bool) – The value to assign to the is_backup property of this BackendDetails.
  • is_drain (bool) – The value to assign to the is_drain property of this BackendDetails.
  • is_offline (bool) – The value to assign to the is_offline property of this BackendDetails.
ip_address

Gets the ip_address of this BackendDetails. The IP address of the backend server.

Example: 10.0.0.3

Returns:The ip_address of this BackendDetails.
Return type:str
is_backup

Gets the is_backup of this BackendDetails. Whether the network load balancer should treat this server as a backup unit. If true, then the network load balancer forwards no ingress traffic to this backend server unless all other backend servers not marked as “isBackup” fail the health check policy.

Example: false

Returns:The is_backup of this BackendDetails.
Return type:bool
is_drain

Gets the is_drain of this BackendDetails. Whether the network load balancer should drain this server. Servers marked “isDrain” receive no incoming traffic.

Example: false

Returns:The is_drain of this BackendDetails.
Return type:bool
is_offline

Gets the is_offline of this BackendDetails. Whether the network load balancer should treat this server as offline. Offline servers receive no incoming traffic.

Example: false

Returns:The is_offline of this BackendDetails.
Return type:bool
name

Gets the name of this BackendDetails. A read-only field showing the IP address/OCID and port that uniquely identify this backend server in the backend set.

Example: 10.0.0.3:8080, or ocid1.privateip..oc1.<var>&lt;unique_ID&gt;</var>:443 or 10.0.0.3:0

Returns:The name of this BackendDetails.
Return type:str
port

[Required] Gets the port of this BackendDetails. The communication port for the backend server.

Example: 8080

Returns:The port of this BackendDetails.
Return type:int
target_id

Gets the target_id of this BackendDetails. The IP OCID/Instance OCID associated with the backend server. Example: ocid1.privateip..oc1.<var>&lt;unique_ID&gt;</var>

Returns:The target_id of this BackendDetails.
Return type:str
weight

Gets the weight of this BackendDetails. The network load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger proportion of incoming traffic. For example, a server weighted ‘3’ receives three times the number of new connections as a server weighted ‘1’. For more information about load balancing policies, see How Network Load Balancing Policies Work.

Example: 3

Returns:The weight of this BackendDetails.
Return type:int