Skip to main content

bindings

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

Overview

Namebindings
TypeResource
Idazure.spring_apps.bindings

Fields

NameDatatypeDescription
appNametextfield from the properties object
bindingNametextfield from the properties object
binding_parameterstextfield from the properties object
created_attextfield from the properties object
generated_propertiestextfield from the properties object
keytextfield from the properties object
resourceGroupNametextfield from the properties object
resource_idtextfield from the properties object
resource_nametextfield from the properties object
resource_typetextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
updated_attextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTappName, bindingName, resourceGroupName, serviceName, subscriptionIdGet a Binding and its properties.
listSELECTappName, resourceGroupName, serviceName, subscriptionIdHandles requests to list all resources in an App.
create_or_updateINSERTappName, bindingName, resourceGroupName, serviceName, subscriptionIdCreate a new Binding or update an exiting Binding.
deleteDELETEappName, bindingName, resourceGroupName, serviceName, subscriptionIdOperation to delete a Binding.
updateUPDATEappName, bindingName, resourceGroupName, serviceName, subscriptionIdOperation to update an exiting Binding.

SELECT examples

Handles requests to list all resources in an App.

SELECT
appName,
bindingName,
binding_parameters,
created_at,
generated_properties,
key,
resourceGroupName,
resource_id,
resource_name,
resource_type,
serviceName,
subscriptionId,
updated_at
FROM azure.spring_apps.vw_bindings
WHERE appName = '{{ appName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.spring_apps.bindings (
appName,
bindingName,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ appName }}',
'{{ bindingName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a bindings resource.

/*+ update */
UPDATE azure.spring_apps.bindings
SET
properties = '{{ properties }}'
WHERE
appName = '{{ appName }}'
AND bindingName = '{{ bindingName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified bindings resource.

/*+ delete */
DELETE FROM azure.spring_apps.bindings
WHERE appName = '{{ appName }}'
AND bindingName = '{{ bindingName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';