Remove Rules from a Load Balancer
- Name
delete
- Type
- /v1/load_balancers/:uuid/rules
- Description
Send a
DELETE
request to delete rules from a load balancer.
Request
Attributes
The request must contain at least one forwarding rule
. The load balancer's rules
attribute is made up of an array of objects with the following attributes:
Required
- Name
protocol
- Type
- string
- Description
The protocol which the health checks use in order to sent connection attempt to the backend Stacklets. The possible values are: "http", "https", "http2", or "tcp".
- Name
source_port
- Type
- integer
- Description
The port on which the load balancer instance will listen.
- Name
target_port
- Type
- integer
- Description
The port on the backend Stacklets to which the load balancer will send traffic to.
Optional
- Name
certificate_id
- Type
- integer
- Description
The ID of the TLS certificate used for SSL termination.
- Name
tls_passthrough
- Type
- boolean
- Description
A value indicating whether the SSL encrypted traffic will be passed through to the backend Stacklets. Default value for this attribute is false.
Example
curl -X DELETE "https://api.simplystack.com/v1/load_balancers/21848c7e-0389-4fdf-95bf-7d4d58d62c22/rules" \
-H "Content-Type: application/json" \
-H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
-d '{"rules": [{"protocol": "http","source_port": 80,"target_port": 80,"certificate_id": null,"tls_passthrough": false}]}'
Response
Response to DELETE
to /v1/load_balancers/:uuid/rules
will not return any results, only the message (204 No Content) which indicates that the deletion was successful.