load_balancers
Creates, updates, deletes, gets or lists a load_balancers
resource.
Overview
Name | load_balancers |
Type | Resource |
Id | azure.k8s_runtime.load_balancers |
Fields
- vw_load_balancers
- load_balancers
Name | Datatype | Description |
---|---|---|
addresses | text | field from the properties object |
advertise_mode | text | field from the properties object |
loadBalancerName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceUri | text | field from the properties object |
service_selector | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Details of the LoadBalancer. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | loadBalancerName, resourceUri | Get a LoadBalancer |
list | SELECT | resourceUri | List LoadBalancer resources by parent |
create_or_update | INSERT | loadBalancerName, resourceUri | Create a LoadBalancer |
delete | DELETE | loadBalancerName, resourceUri | Delete a LoadBalancer |
SELECT
examples
List LoadBalancer resources by parent
- vw_load_balancers
- load_balancers
SELECT
addresses,
advertise_mode,
loadBalancerName,
provisioning_state,
resourceUri,
service_selector
FROM azure.k8s_runtime.vw_load_balancers
WHERE resourceUri = '{{ resourceUri }}';
SELECT
properties
FROM azure.k8s_runtime.load_balancers
WHERE resourceUri = '{{ resourceUri }}';
INSERT
example
Use the following StackQL query and manifest file to create a new load_balancers
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.k8s_runtime.load_balancers (
loadBalancerName,
resourceUri,
properties
)
SELECT
'{{ loadBalancerName }}',
'{{ resourceUri }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: addresses
value:
- string
- name: serviceSelector
value: object
- name: advertiseMode
value: []
- name: provisioningState
value: []
DELETE
example
Deletes the specified load_balancers
resource.
/*+ delete */
DELETE FROM azure.k8s_runtime.load_balancers
WHERE loadBalancerName = '{{ loadBalancerName }}'
AND resourceUri = '{{ resourceUri }}';