Creating a Load Balancer Virtual Hostname

Create a virtual hostname for a load balancer.

For prerequisite information, see Virtual Hostnames for Load Balancers.

    1. Open the navigation menu, click Networking, and then click Load balancers. Click Load balancer. The Load balancers page appears.

    2. Select the Compartment from the list. All load balancers in that compartment are listed in tabular form.

    3. Select a State from the list to limit the load balancers displayed to that state.

    4. Select the load balancer for which you want to create a virtual hostname. The load balancer's Details page appears.

    5. Click Hostnames under Resources. The Hostnames list appears. All virtual hostnames are listed in tabular form.

    6. Click Create hostname. The Create hostname dialog box appears.

    7. Complete the following:

      • Name: Enter a friendly name for the hostname. The name must be unique, and can't be changed.

      • Hostname: Specify the virtual hostname. See Virtual Hostnames for Load Balancers for more information.

    8. Click Create. The Work request submitted dialog box opens.

    9. (optional) Click View all work requests to open the Work requests page and view the status of the work request.

    10. Click Close.

  • Use the oci lb hostname create command and required parameters to create a virtual hostname for a load balancer:

    oci lb hostname create --hostname hostname --name name --load-balancer-id load_balancer_id [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the CreateHostname operation to create a virtual hostname for a load balancer.