CreateHostnameDetails

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

Bases: object

The details of the hostname resource to add to a load balancer.

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

Methods

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

Attributes

hostname [Required] Gets the hostname of this CreateHostnameDetails.
name [Required] Gets the name of this CreateHostnameDetails.
__init__(**kwargs)

Initializes a new CreateHostnameDetails 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 CreateHostnameDetails.
  • hostname (str) – The value to assign to the hostname property of this CreateHostnameDetails.
hostname

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

Example: app.example.com

Returns:The hostname of this CreateHostnameDetails.
Return type:str
name

[Required] Gets the name of this CreateHostnameDetails. 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 CreateHostnameDetails.
Return type:str