Tagging a Load Balancer at Creation

Add metadata to a load balancer when you first create it. This metadata enables you to define keys and values and associate them with resources.

    1. Begin the steps for creating a load balancer using the Oracle Cloud Infrastructure Console as described in Creating a Load Balancer.

    2. At the end of Add details page, click Show advanced options. The advanced options appear.

    3. Click the Tagging tab.

    4. Complete the following. See Overview of Tagging for descriptions of these fields.

      • Tag namespace

      • Tag key

      • Value

    5. Click +Additional tag to add another tag. Click X to remove the associated tag.

    6. Click Next to continue with the load balancer creation.

  • Use the --defined-tags or --freeform-tags options when running the oci lb load-balancer create command to tag a load balancer when creating a load balancer:

    oci lb load-balancer create [...] [--defined-tags | --freeform-tags] tags [OPTIONS]

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

  • Run the CreateLoadBalancer operation to create a load balancer. Include the definedTags and freeformTags attributes and their values.