Creating a Load Balancer Virtual Hostname

Create a virtual hostname for a load balancer.

For prerequisite information, see Virtual Hostnames for Load Balancers.

    1. On the Load balancers list page, find the load balancer that you want to work with. If you need help finding the list page or the load balancer, see Listing Load Balancers.
    2. On the load balancer's details page, select Hostnames.
    3. In the Hostnames section, select Create hostname.
    4. Enter the following information:
      • 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 more information.

    5. Select Create.

      The Work request submitted dialog box opens.

    6. (Optional) Select View all work requests to open the Work requests page and view the status of the work request.
    7. Select 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.