Using Console
Using CLI
[TARGET_HTTPS_PROXY_NAME]
with the name of the HTTPS load balancer that needs to be remediated.
sslPolicy: RESTRICTED
.
Using Python
google-cloud-load-balancer
library using the following command:
GOOGLE_APPLICATION_CREDENTIALS
with the path to your service account key file.
google.cloud.load_balancer_v1beta1
module to retrieve the SSL policy that is attached to your load balancer. You can use the following code snippet to achieve this:
RESTRICTED
by checking the value of the profile
field. If the profile
is not set to RESTRICTED
, you need to update the SSL policy. You can use the following code snippet to achieve this:
profile
field again.