bindings
Creates, updates, deletes, gets or lists a bindings
resource.
Overview
Name | bindings |
Type | Resource |
Id | azure.spring_apps.bindings |
Fields
- vw_bindings
- bindings
Name | Datatype | Description |
---|---|---|
appName | text | field from the properties object |
bindingName | text | field from the properties object |
binding_parameters | text | field from the properties object |
created_at | text | field from the properties object |
generated_properties | text | field from the properties object |
key | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resource_id | text | field from the properties object |
resource_name | text | field from the properties object |
resource_type | text | field from the properties object |
serviceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
updated_at | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Binding resource properties payload |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | appName, bindingName, resourceGroupName, serviceName, subscriptionId | Get a Binding and its properties. |
list | SELECT | appName, resourceGroupName, serviceName, subscriptionId | Handles requests to list all resources in an App. |
create_or_update | INSERT | appName, bindingName, resourceGroupName, serviceName, subscriptionId | Create a new Binding or update an exiting Binding. |
delete | DELETE | appName, bindingName, resourceGroupName, serviceName, subscriptionId | Operation to delete a Binding. |
update | UPDATE | appName, bindingName, resourceGroupName, serviceName, subscriptionId | Operation to update an exiting Binding. |
SELECT
examples
Handles requests to list all resources in an App.
- vw_bindings
- bindings
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 }}';
SELECT
properties
FROM azure.spring_apps.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.spring_apps.bindings (
appName,
bindingName,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ appName }}',
'{{ bindingName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: resourceName
value: string
- name: resourceType
value: string
- name: resourceId
value: string
- name: key
value: string
- name: bindingParameters
value: object
- name: generatedProperties
value: string
- name: createdAt
value: string
- name: updatedAt
value: string
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 }}';