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.
-
Begin the steps for creating a load balancer using the Oracle Cloud Infrastructure Console as described in Creating a Load Balancer.
-
At the end of Add details page, click Show advanced options. The advanced options appear.
-
Click the Tagging tab.
-
Complete the following. See Overview of Tagging for descriptions of these fields.
-
Tag namespace
-
Tag key
-
Value
-
-
Click +Additional tag to add another tag. Click X to remove the associated tag.
-
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
andfreeformTags
attributes and their values.