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.
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.