apps
Creates, updates, deletes, gets or lists a apps
resource.
Overview
Name | apps |
Type | Resource |
Id | azure.spring_apps.apps |
Fields
- vw_apps
- apps
Name | Datatype | Description |
---|---|---|
addon_configs | text | field from the properties object |
appName | text | field from the properties object |
custom_persistent_disks | text | field from the properties object |
enable_end_to_end_tls | text | field from the properties object |
fqdn | text | field from the properties object |
https_only | text | field from the properties object |
identity | text | Managed identity properties retrieved from ARM request headers. |
ingress_settings | text | field from the properties object |
loaded_certificates | text | field from the properties object |
location | text | The GEO location of the application, always the same with its parent resource |
persistent_disk | text | field from the properties object |
provisioning_state | text | field from the properties object |
public | text | field from the properties object |
resourceGroupName | text | field from the properties object |
secrets | text | field from the properties object |
serviceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
temporary_disk | text | field from the properties object |
test_endpoint_auth_state | text | field from the properties object |
url | text | field from the properties object |
vnet_addons | text | field from the properties object |
workload_profile_name | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
identity | object | Managed identity properties retrieved from ARM request headers. |
location | string | The GEO location of the application, always the same with its parent resource |
properties | object | App resource properties payload |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | appName, resourceGroupName, serviceName, subscriptionId | Get an App and its properties. |
list | SELECT | resourceGroupName, serviceName, subscriptionId | Handles requests to list all resources in a Service. |
create_or_update | INSERT | appName, resourceGroupName, serviceName, subscriptionId | Create a new App or update an exiting App. |
delete | DELETE | appName, resourceGroupName, serviceName, subscriptionId | Operation to delete an App. |
update | UPDATE | appName, resourceGroupName, serviceName, subscriptionId | Operation to update an exiting App. |
set_active_deployments | EXEC | appName, resourceGroupName, serviceName, subscriptionId | Set existing Deployment under the app as active |
validate_domain | EXEC | appName, resourceGroupName, serviceName, subscriptionId, data__name | Check the resource name is valid as well as not in use. |
SELECT
examples
Handles requests to list all resources in a Service.
- vw_apps
- apps
SELECT
addon_configs,
appName,
custom_persistent_disks,
enable_end_to_end_tls,
fqdn,
https_only,
identity,
ingress_settings,
loaded_certificates,
location,
persistent_disk,
provisioning_state,
public,
resourceGroupName,
secrets,
serviceName,
subscriptionId,
temporary_disk,
test_endpoint_auth_state,
url,
vnet_addons,
workload_profile_name
FROM azure.spring_apps.vw_apps
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
identity,
location,
properties
FROM azure.spring_apps.apps
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new apps
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.spring_apps.apps (
appName,
resourceGroupName,
serviceName,
subscriptionId,
properties,
identity,
location
)
SELECT
'{{ appName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: public
value: boolean
- name: url
value: string
- name: addonConfigs
value: object
- name: provisioningState
value: string
- name: fqdn
value: string
- name: httpsOnly
value: boolean
- name: temporaryDisk
value:
- name: sizeInGB
value: integer
- name: mountPath
value: string
- name: persistentDisk
value:
- name: sizeInGB
value: integer
- name: usedInGB
value: integer
- name: mountPath
value: string
- name: customPersistentDisks
value: []
- name: enableEndToEndTLS
value: boolean
- name: loadedCertificates
value: []
- name: vnetAddons
value:
- name: publicEndpoint
value: boolean
- name: publicEndpointUrl
value: string
- name: ingressSettings
value:
- name: readTimeoutInSeconds
value: integer
- name: sendTimeoutInSeconds
value: integer
- name: sessionAffinity
value: string
- name: sessionCookieMaxAge
value: integer
- name: backendProtocol
value: string
- name: clientAuth
value:
- name: certificates
value:
- string
- name: secrets
value:
- - name: name
value: string
- name: value
value: string
- name: workloadProfileName
value: string
- name: testEndpointAuthState
value: string
- name: identity
value:
- name: type
value: string
- name: principalId
value: string
- name: tenantId
value: string
- name: userAssignedIdentities
value: []
- name: location
value: string
UPDATE
example
Updates a apps
resource.
/*+ update */
UPDATE azure.spring_apps.apps
SET
properties = '{{ properties }}',
identity = '{{ identity }}',
location = '{{ location }}'
WHERE
appName = '{{ appName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified apps
resource.
/*+ delete */
DELETE FROM azure.spring_apps.apps
WHERE appName = '{{ appName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';