Skip to main content

load_balancers

Creates, updates, deletes, gets or lists a load_balancers resource.

Overview

Nameload_balancers
TypeResource
Idazure.k8s_runtime.load_balancers

Fields

NameDatatypeDescription
addressestextfield from the properties object
advertise_modetextfield from the properties object
loadBalancerNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceUritextfield from the properties object
service_selectortextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTloadBalancerName, resourceUriGet a LoadBalancer
listSELECTresourceUriList LoadBalancer resources by parent
create_or_updateINSERTloadBalancerName, resourceUriCreate a LoadBalancer
deleteDELETEloadBalancerName, resourceUriDelete a LoadBalancer

SELECT examples

List LoadBalancer resources by parent

SELECT
addresses,
advertise_mode,
loadBalancerName,
provisioning_state,
resourceUri,
service_selector
FROM azure.k8s_runtime.vw_load_balancers
WHERE resourceUri = '{{ resourceUri }}';

INSERT example

Use the following StackQL query and manifest file to create a new load_balancers resource.

/*+ create */
INSERT INTO azure.k8s_runtime.load_balancers (
loadBalancerName,
resourceUri,
properties
)
SELECT
'{{ loadBalancerName }}',
'{{ resourceUri }}',
'{{ properties }}'
;

DELETE example

Deletes the specified load_balancers resource.

/*+ delete */
DELETE FROM azure.k8s_runtime.load_balancers
WHERE loadBalancerName = '{{ loadBalancerName }}'
AND resourceUri = '{{ resourceUri }}';