CreateBackendDetails

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

Bases: object

The configuration of a backend server that is a member of a network load balancer backend set. For more information, see Managing Backend Servers.

Methods

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

Attributes

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

Initializes a new CreateBackendDetails 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 CreateBackendDetails.
  • ip_address (str) – The value to assign to the ip_address property of this CreateBackendDetails.
  • target_id (str) – The value to assign to the target_id property of this CreateBackendDetails.
  • port (int) – The value to assign to the port property of this CreateBackendDetails.
  • weight (int) – The value to assign to the weight property of this CreateBackendDetails.
  • is_drain (bool) – The value to assign to the is_drain property of this CreateBackendDetails.
  • is_backup (bool) – The value to assign to the is_backup property of this CreateBackendDetails.
  • is_offline (bool) – The value to assign to the is_offline property of this CreateBackendDetails.
ip_address

Gets the ip_address of this CreateBackendDetails. The IP address of the backend server. Example: 10.0.0.3

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

Gets the is_backup of this CreateBackendDetails. 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 CreateBackendDetails.
Return type:bool
is_drain

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

Example: false

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

Gets the is_offline of this CreateBackendDetails. 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 CreateBackendDetails.
Return type:bool
name

Gets the name of this CreateBackendDetails. Optional unique name identifying the backend within the backend set. If not specified, then one will be generated. Example: webServer1

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

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

Example: 8080

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

Gets the target_id of this CreateBackendDetails. 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 CreateBackendDetails.
Return type:str
weight

Gets the weight of this CreateBackendDetails. 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 CreateBackendDetails.
Return type:int