Deleting a Load Balancer
You can delete a load balancer that you no longer need at any time. Deleting a load balancer does not modify the state of its backend virtual machines (VMs).
Deleting a Load Balancer Using Cockpit
Before you begin: Ensure the security groups of your backend VMs allow flows coming from another source than the load balancer. |
|
The DNS name will be deleted. |
-
In the Load Balancers dashboard, check the box of the load balancer you want to delete.
Multiselection is available.
The load balancer is selected.
-
Click
Delete.
A confirmation dialog box appears. -
In the confirmation dialog box, type "DELETE" in the text field and click Delete.
The load balancer is deleted.
Deleting a Load Balancer Using OSC CLI
Before you begin: Ensure the security groups of your backend VMs allow flows coming from another source than the load balancer. |
The DeleteLoadBalancer command deletes a specified load balancer.
$ osc-cli api DeleteLoadBalancer --profile "default" \
--LoadBalancerName "example-lbu"
This command contains the following attributes that you need to specify:
-
DryRun: (optional) If true, checks whether you have the required permissions to perform the action. -
LoadBalancerName: The name of the load balancer you want to delete.
The DeleteLoadBalancer command returns the following elements:
-
LoadBalancer: Information about the load balancer.-
AccessLog: Information about access logs.-
IsEnabled: If true, access logs are enabled for your load balancer. If false, they are not. If you set this to true in your request, theOsuBucketNameparameter is required. -
OsuBucketName: The name of the OOS bucket for the access logs. -
OsuBucketPrefix: The path to the folder of the access logs in your OOS bucket (by default, therootlevel of your bucket). -
PublicationInterval: The time interval for the publication of access logs in the OOS bucket, in minutes. This value can be either5or60(by default,60).
-
-
ApplicationStickyCookiePolicies: The stickiness policies defined for the load balancer.-
CookieName: The name of the application cookie used for stickiness, between 1 and 255 characters. -
PolicyName: The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.
-
-
BackendIps: One or more public IPs of backend VMs. -
BackendVmIds: One or more IDs of backend VMs for the load balancer. -
DnsName: The DNS name of the load balancer. -
HealthCheck: Information about the health check configuration.-
CheckInterval: The number of seconds between two requests (between5and600both included). -
HealthyThreshold: The number of consecutive successful requests before considering the VM as healthy (between2and10both included). -
Path: If you use the HTTP or HTTPS protocols, the request URL path. Always starts with a slash (/). -
Port: The port number (between1and65535, both included). -
Protocol: The protocol for the URL of the VM (HTTP|HTTPS|TCP|SSL). -
Timeout: The maximum waiting time for a response before considering the VM as unhealthy, in seconds (between2and60both included). -
UnhealthyThreshold: The number of consecutive failed requests before considering the VM as unhealthy (between2and10both included).
-
-
Listeners: The listeners for the load balancer.-
BackendPort: The port on which the backend VM is listening (between1and65535, both included). -
BackendProtocol: The protocol for routing traffic to backend VMs (HTTP|HTTPS|TCP|SSL). -
LoadBalancerPort: The port on which the load balancer is listening (between1and65535, both included). -
LoadBalancerProtocol: The routing protocol (HTTP|HTTPS|TCP|SSL). -
PolicyNames: The names of the policies. If there are no policies enabled, the list is empty. -
ServerCertificateId: The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see Resource Identifiers > OUTSCALE Resource Names (ORNs).
-
-
LoadBalancerName: The name of the load balancer. -
LoadBalancerStickyCookiePolicies: The policies defined for the load balancer.-
CookieExpirationPeriod: The time period, in seconds, after which the cookie should be considered stale.
If1, the stickiness session lasts for the duration of the browser session. -
PolicyName: The name of the stickiness policy.
-
-
LoadBalancerType: The type of load balancer. Valid only for load balancers in a Net.
IfLoadBalancerTypeisinternet-facing, the load balancer has a public DNS name that resolves to a public IP.
IfLoadBalancerTypeisinternal, the load balancer has a public DNS name that resolves to a private IP. -
NetId: The ID of the Net for the load balancer. -
PublicIp: (internet-facing only) The public IP associated with the load balancer. -
SecuredCookies: Whether secure cookies are enabled for the load balancer. -
SecurityGroups: One or more IDs of security groups for the load balancers. Valid only for load balancers in a Net. -
SourceSecurityGroup: Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs.
To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.-
SecurityGroupAccountId: The OUTSCALE account ID of the owner of the security group. -
SecurityGroupName: The name of the security group.
-
-
State: The state of the load balancer (provisioning|starting|reloading|active|reconfiguring|deleting|deleted). -
Subnets: The ID of the Subnet in which the load balancer was created. -
SubregionNames: The ID of the Subregion in which the load balancer was created. -
Tags: One or more tags associated with the load balancer.-
Key: The key of the tag, between 1 and 255 characters. -
Value: The value of the tag, between 0 and 255 characters.
-
-
-
ResponseContext: Information about the context of the response.-
RequestId: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
},
"LoadBalancer": {
"Tags": [],
"SourceSecurityGroup": {
"SecurityGroupName": "security-group-example",
"SecurityGroupAccountId": "123456789012"
},
"SecuredCookies": false,
"PublicIp": "192.0.2.0",
"Subnets": [
"subnet-12345678"
],
"NetId": "vpc-12345678",
"BackendVmIds": [],
"ApplicationStickyCookiePolicies": [],
"SecurityGroups": [
"sg-12345678"
],
"LoadBalancerType": "internet-facing",
"AccessLog": {
"PublicationInterval": 60,
"IsEnabled": false
},
"DnsName": "private-lb-example.123456789.eu-west-2.lbu.outscale.com",
"HealthCheck": {
"UnhealthyThreshold": 2,
"Timeout": 5,
"CheckInterval": 30,
"Protocol": "TCP",
"HealthyThreshold": 10,
"Port": 80
},
"LoadBalancerStickyCookiePolicies": [],
"SubregionNames": [
"eu-west-2a"
],
"Listeners": [
{
"ServerCertificateId": "orn:ows:idauth::012345678910:server-certificate/Certificate",
"BackendPort": 80,
"BackendProtocol": "HTTP",
"LoadBalancerPort": 443,
"LoadBalancerProtocol": "HTTPS"
}
],
"LoadBalancerName": "private-lb-example"
}
}
Deleting a Load Balancer Using oapi-cli
Before you begin: Ensure the security groups of your backend VMs allow flows coming from another source than the load balancer. |
The DeleteLoadBalancer command deletes a specified load balancer.
$ oapi-cli --profile "default" DeleteLoadBalancer \
--LoadBalancerName "example-lbu"
This command contains the following attributes that you need to specify:
-
DryRun: (optional) If true, checks whether you have the required permissions to perform the action. -
LoadBalancerName: The name of the load balancer you want to delete.
The DeleteLoadBalancer command returns the following elements:
-
LoadBalancer: Information about the load balancer.-
AccessLog: Information about access logs.-
IsEnabled: If true, access logs are enabled for your load balancer. If false, they are not. If you set this to true in your request, theOsuBucketNameparameter is required. -
OsuBucketName: The name of the OOS bucket for the access logs. -
OsuBucketPrefix: The path to the folder of the access logs in your OOS bucket (by default, therootlevel of your bucket). -
PublicationInterval: The time interval for the publication of access logs in the OOS bucket, in minutes. This value can be either5or60(by default,60).
-
-
ApplicationStickyCookiePolicies: The stickiness policies defined for the load balancer.-
CookieName: The name of the application cookie used for stickiness, between 1 and 255 characters. -
PolicyName: The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.
-
-
BackendIps: One or more public IPs of backend VMs. -
BackendVmIds: One or more IDs of backend VMs for the load balancer. -
DnsName: The DNS name of the load balancer. -
HealthCheck: Information about the health check configuration.-
CheckInterval: The number of seconds between two requests (between5and600both included). -
HealthyThreshold: The number of consecutive successful requests before considering the VM as healthy (between2and10both included). -
Path: If you use the HTTP or HTTPS protocols, the request URL path. Always starts with a slash (/). -
Port: The port number (between1and65535, both included). -
Protocol: The protocol for the URL of the VM (HTTP|HTTPS|TCP|SSL). -
Timeout: The maximum waiting time for a response before considering the VM as unhealthy, in seconds (between2and60both included). -
UnhealthyThreshold: The number of consecutive failed requests before considering the VM as unhealthy (between2and10both included).
-
-
Listeners: The listeners for the load balancer.-
BackendPort: The port on which the backend VM is listening (between1and65535, both included). -
BackendProtocol: The protocol for routing traffic to backend VMs (HTTP|HTTPS|TCP|SSL). -
LoadBalancerPort: The port on which the load balancer is listening (between1and65535, both included). -
LoadBalancerProtocol: The routing protocol (HTTP|HTTPS|TCP|SSL). -
PolicyNames: The names of the policies. If there are no policies enabled, the list is empty. -
ServerCertificateId: The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see Resource Identifiers > OUTSCALE Resource Names (ORNs).
-
-
LoadBalancerName: The name of the load balancer. -
LoadBalancerStickyCookiePolicies: The policies defined for the load balancer.-
CookieExpirationPeriod: The time period, in seconds, after which the cookie should be considered stale.
If1, the stickiness session lasts for the duration of the browser session. -
PolicyName: The name of the stickiness policy.
-
-
LoadBalancerType: The type of load balancer. Valid only for load balancers in a Net.
IfLoadBalancerTypeisinternet-facing, the load balancer has a public DNS name that resolves to a public IP.
IfLoadBalancerTypeisinternal, the load balancer has a public DNS name that resolves to a private IP. -
NetId: The ID of the Net for the load balancer. -
PublicIp: (internet-facing only) The public IP associated with the load balancer. -
SecuredCookies: Whether secure cookies are enabled for the load balancer. -
SecurityGroups: One or more IDs of security groups for the load balancers. Valid only for load balancers in a Net. -
SourceSecurityGroup: Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs.
To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.-
SecurityGroupAccountId: The OUTSCALE account ID of the owner of the security group. -
SecurityGroupName: The name of the security group.
-
-
State: The state of the load balancer (provisioning|starting|reloading|active|reconfiguring|deleting|deleted). -
Subnets: The ID of the Subnet in which the load balancer was created. -
SubregionNames: The ID of the Subregion in which the load balancer was created. -
Tags: One or more tags associated with the load balancer.-
Key: The key of the tag, between 1 and 255 characters. -
Value: The value of the tag, between 0 and 255 characters.
-
-
-
ResponseContext: Information about the context of the response.-
RequestId: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
},
"LoadBalancer": {
"Tags": [],
"SourceSecurityGroup": {
"SecurityGroupName": "security-group-example",
"SecurityGroupAccountId": "123456789012"
},
"SecuredCookies": false,
"PublicIp": "192.0.2.0",
"Subnets": [
"subnet-12345678"
],
"NetId": "vpc-12345678",
"BackendVmIds": [],
"ApplicationStickyCookiePolicies": [],
"SecurityGroups": [
"sg-12345678"
],
"LoadBalancerType": "internet-facing",
"AccessLog": {
"PublicationInterval": 60,
"IsEnabled": false
},
"DnsName": "private-lb-example.123456789.eu-west-2.lbu.outscale.com",
"HealthCheck": {
"UnhealthyThreshold": 2,
"Timeout": 5,
"CheckInterval": 30,
"Protocol": "TCP",
"HealthyThreshold": 10,
"Port": 80
},
"LoadBalancerStickyCookiePolicies": [],
"SubregionNames": [
"eu-west-2a"
],
"Listeners": [
{
"ServerCertificateId": "orn:ows:idauth::012345678910:server-certificate/Certificate",
"BackendPort": 80,
"BackendProtocol": "HTTP",
"LoadBalancerPort": 443,
"LoadBalancerProtocol": "HTTPS"
}
],
"LoadBalancerName": "private-lb-example"
}
}
Deleting a Load Balancer Using AWS CLI
Before you begin:
|
To delete a load balancer, use the delete-load-balancer command following this syntax:
$ aws elb delete-load-balancer \
--profile YOUR_PROFILE \
--load-balancer-name My-load-balancer \
--endpoint https://lbu.eu-west-2.outscale.com
This command contains the following options that you need to specify:
-
(optional)
profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI. -
load-balancer-name: The name of the load balancer. -
endpoint: The endpoint corresponding to the Region you want to send the request to. For more information, see Installing and Configuring AWS CLI.
The specified load balancer is deleted.
Related Page
Corresponding API Methods
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.