Skip to main content

bindings

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

Overview

Namebindings
TypeResource
Idazure.spring_apps.bindings

Fields

The following fields are returned by SELECT queries:

Success. The response describes the corresponding Binding.

NameDatatypeDescription
propertiesobjectProperties of the Binding resource

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, serviceName, appName, bindingNameGet a Binding and its properties.
listselectsubscriptionId, resourceGroupName, serviceName, appNameHandles requests to list all resources in an App.
create_or_updateinsertsubscriptionId, resourceGroupName, serviceName, appName, bindingNameCreate a new Binding or update an exiting Binding.
updateupdatesubscriptionId, resourceGroupName, serviceName, appName, bindingNameOperation to update an exiting Binding.
deletedeletesubscriptionId, resourceGroupName, serviceName, appName, bindingNameOperation to delete a Binding.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
appNamestringThe name of the App resource.
bindingNamestringThe name of the Binding resource.
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serviceNamestringThe name of the Service resource.
subscriptionIdstringGets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Get a Binding and its properties.

SELECT
properties
FROM azure.spring_apps.bindings
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND appName = '{{ appName }}' -- required
AND bindingName = '{{ bindingName }}' -- required
;

INSERT examples

Create a new Binding or update an exiting Binding.

INSERT INTO azure.spring_apps.bindings (
data__properties,
subscriptionId,
resourceGroupName,
serviceName,
appName,
bindingName
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ appName }}',
'{{ bindingName }}'
RETURNING
properties
;

UPDATE examples

Operation to update an exiting Binding.

UPDATE azure.spring_apps.bindings
SET
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND appName = '{{ appName }}' --required
AND bindingName = '{{ bindingName }}' --required
RETURNING
properties;

DELETE examples

Operation to delete a Binding.

DELETE FROM azure.spring_apps.bindings
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND appName = '{{ appName }}' --required
AND bindingName = '{{ bindingName }}' --required
;