forwarding_rules
Creates, updates, deletes, gets or lists a forwarding_rules
resource.
Overview
Name | forwarding_rules |
Type | Resource |
Id | digitalocean.load_balancers.forwarding_rules |
Fields
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
load_balancers_add_forwarding_rules | INSERT | lb_id, data__forwarding_rules | To add an additional forwarding rule to a load balancer instance, send a POST request to /v2/load_balancers/$LOAD_BALANCER_ID/forwarding_rules . In the body of the request, there should be a forwarding_rules attribute containing an array of rules to be added. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data. |
load_balancers_remove_forwarding_rules | DELETE | lb_id, data__forwarding_rules | To remove forwarding rules from a load balancer instance, send a DELETE request to /v2/load_balancers/$LOAD_BALANCER_ID/forwarding_rules . In the body of the request, there should be a forwarding_rules attribute containing an array of rules to be removed. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data. |
INSERT
example
Use the following StackQL query and manifest file to create a new forwarding_rules
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO digitalocean.load_balancers.forwarding_rules (
data__forwarding_rules,
lb_id
)
SELECT
'{{ forwarding_rules }}',
'{{ lb_id }}'
;
- name: forwarding_rules
props:
- name: lb_id
value: string
- name: data__forwarding_rules
value: string
- name: forwarding_rules
value: array
props:
- name: entry_protocol
value: string
- name: entry_port
value: integer
- name: target_protocol
value: string
- name: target_port
value: integer
- name: certificate_id
value: string
- name: tls_passthrough
value: boolean
DELETE
example
Deletes the specified forwarding_rules
resource.
/*+ delete */
DELETE FROM digitalocean.load_balancers.forwarding_rules
WHERE lb_id = '{{ lb_id }}'
AND data__forwarding_rules = '{{ data__forwarding_rules }}';