Managing a Load Balancer's Security Attributes
Add, update, and remove security attributes associated with a load balancer.
Use Zero Trust Packet Routing (ZPR) along with, or in place of, network security groups to control network access to OCI resources by applying security attributes to them and creating ZPR policies to control communication among them. For more information, see Zero Trust Packet Routing.
You can apply security attributes to a load balancer when you create it, or apply them to an existing load balancer. For more information, see Creating a Load Balancer and Editing a Load Balancer.
The following steps describe how to add security attributes to an existing load balancer in the Console. To add security attributes to a load balancer you're creating, see Creating a Load Balancer. The security attributes you added or updated are viewable on the Security tab in the load balancer's Details page. Use the
security-attributes
parameter to add ZPR security attributes when you're creating a new load balancer or updating an existing one:oci lb load-balancer create ... --security-attributes security_attributes [OPTIONS]
or
oci lb load-balancer update --load-balancer-id load_balancer_ocid --security-attributes security_attributes [OPTIONS]
where
security_attributes
are ZPR tags for this load balancer.For example:
--security-attributes '\{"oracle-zpr":{"sa-test-lbaas":{"mode":"enforce","value":"create-oracle-zpr"}}}'
This is a complex type whose value must be valid JSON. For more information, see Security Attributes.
For more information on how to create or update a load balancer, see Creating a Load Balancer and Editing a Load Balancer.
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the UpdateLoadBalancer operation to update a load balancer. Include the
securityAttributes
attributes and it values.