Skip to main content

bindings

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

Overview

Namebindings
TypeResource
Idazure_extras.app_platform.bindings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource Id for the resource.
namestringThe name of the resource.
bindingParametersobjectBinding parameters of the Binding resource.
createdAtstringCreation time of the Binding resource.
generatedPropertiesstringThe generated Spring Boot property file for this binding. The secret will be deducted.
keystringThe key of the bound resource.
resourceIdstringThe Azure resource id of the bound resource.
resourceNamestringThe name of the bound resource.
resourceTypestringThe standard Azure resource type of the bound resource.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource.
updatedAtstringUpdate time of the Binding resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, service_name, app_name, binding_name, subscription_idGet a Binding and its properties.
listselectresource_group_name, service_name, app_name, subscription_idHandles requests to list all resources in an App.
create_or_updateinsertresource_group_name, service_name, app_name, binding_name, subscription_idCreate a new Binding or update an exiting Binding.
updateupdateresource_group_name, service_name, app_name, binding_name, subscription_idOperation to update an exiting Binding.
create_or_updatereplaceresource_group_name, service_name, app_name, binding_name, subscription_idCreate a new Binding or update an exiting Binding.
deletedeleteresource_group_name, service_name, app_name, binding_name, subscription_idOperation 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
app_namestringThe name of the App resource. Required.
binding_namestringThe name of the Binding resource. Required.
resource_group_namestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required.
service_namestringThe name of the Service resource. Required.
subscription_idstring

SELECT examples

Get a Binding and its properties.

SELECT
id,
name,
bindingParameters,
createdAt,
generatedProperties,
key,
resourceId,
resourceName,
resourceType,
systemData,
type,
updatedAt
FROM azure_extras.app_platform.bindings
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND app_name = '{{ app_name }}' -- required
AND binding_name = '{{ binding_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a new Binding or update an exiting Binding.

INSERT INTO azure_extras.app_platform.bindings (
properties,
resource_group_name,
service_name,
app_name,
binding_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ service_name }}',
'{{ app_name }}',
'{{ binding_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Operation to update an exiting Binding.

UPDATE azure_extras.app_platform.bindings
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND app_name = '{{ app_name }}' --required
AND binding_name = '{{ binding_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Create a new Binding or update an exiting Binding.

REPLACE azure_extras.app_platform.bindings
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND app_name = '{{ app_name }}' --required
AND binding_name = '{{ binding_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Operation to delete a Binding.

DELETE FROM azure_extras.app_platform.bindings
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND app_name = '{{ app_name }}' --required
AND binding_name = '{{ binding_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;