Hostname

class oci.load_balancer.models.Hostname(**kwargs)

Bases: object

A hostname resource associated with a load balancer for use by one or more listeners.

Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.

Methods:

__init__(**kwargs)

Initializes a new Hostname object with values from keyword arguments.

Attributes:

hostname

[Required] Gets the hostname of this Hostname.

name

[Required] Gets the name of this Hostname.

__init__(**kwargs)

Initializes a new Hostname 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 Hostname.

  • hostname (str) – The value to assign to the hostname property of this Hostname.

property hostname

[Required] Gets the hostname of this Hostname. A virtual hostname. For more information about virtual hostname string construction, see Managing Request Routing.

Example: app.example.com

Returns

The hostname of this Hostname.

Return type

str

property name

[Required] Gets the name of this Hostname. A friendly name for the hostname resource. It must be unique and it cannot be changed. Avoid entering confidential information.

Example: example_hostname_001

Returns

The name of this Hostname.

Return type

str