custom_domains
Creates, updates, deletes, gets or lists a custom_domains
resource.
Overview
Name | custom_domains |
Type | Resource |
Id | azure.spring_apps.custom_domains |
Fields
- vw_custom_domains
- custom_domains
Name | Datatype | Description |
---|---|---|
appName | text | field from the properties object |
app_name | text | field from the properties object |
cert_name | text | field from the properties object |
domainName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
serviceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
thumbprint | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Custom domain of app resource payload. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | appName, domainName, resourceGroupName, serviceName, subscriptionId | Get the custom domain of one lifecycle application. |
list | SELECT | appName, resourceGroupName, serviceName, subscriptionId | List the custom domains of one lifecycle application. |
create_or_update | INSERT | appName, domainName, resourceGroupName, serviceName, subscriptionId | Create or update custom domain of one lifecycle application. |
delete | DELETE | appName, domainName, resourceGroupName, serviceName, subscriptionId | Delete the custom domain of one lifecycle application. |
update | UPDATE | appName, domainName, resourceGroupName, serviceName, subscriptionId | Update custom domain of one lifecycle application. |
SELECT
examples
List the custom domains of one lifecycle application.
- vw_custom_domains
- custom_domains
SELECT
appName,
app_name,
cert_name,
domainName,
provisioning_state,
resourceGroupName,
serviceName,
subscriptionId,
thumbprint
FROM azure.spring_apps.vw_custom_domains
WHERE appName = '{{ appName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.spring_apps.custom_domains
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 custom_domains
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.spring_apps.custom_domains (
appName,
domainName,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ appName }}',
'{{ domainName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: thumbprint
value: string
- name: appName
value: string
- name: certName
value: string
- name: provisioningState
value: string
UPDATE
example
Updates a custom_domains
resource.
/*+ update */
UPDATE azure.spring_apps.custom_domains
SET
properties = '{{ properties }}'
WHERE
appName = '{{ appName }}'
AND domainName = '{{ domainName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified custom_domains
resource.
/*+ delete */
DELETE FROM azure.spring_apps.custom_domains
WHERE appName = '{{ appName }}'
AND domainName = '{{ domainName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';