Skip to main content

custom_domains

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

Overview

Namecustom_domains
TypeResource
Idazure.spring_apps.custom_domains

Fields

NameDatatypeDescription
appNametextfield from the properties object
app_nametextfield from the properties object
cert_nametextfield from the properties object
domainNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
thumbprinttextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTappName, domainName, resourceGroupName, serviceName, subscriptionIdGet the custom domain of one lifecycle application.
listSELECTappName, resourceGroupName, serviceName, subscriptionIdList the custom domains of one lifecycle application.
create_or_updateINSERTappName, domainName, resourceGroupName, serviceName, subscriptionIdCreate or update custom domain of one lifecycle application.
deleteDELETEappName, domainName, resourceGroupName, serviceName, subscriptionIdDelete the custom domain of one lifecycle application.
updateUPDATEappName, domainName, resourceGroupName, serviceName, subscriptionIdUpdate custom domain of one lifecycle application.

SELECT examples

List the custom domains of one lifecycle application.

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 }}';

INSERT example

Use the following StackQL query and manifest file to create a new custom_domains resource.

/*+ create */
INSERT INTO azure.spring_apps.custom_domains (
appName,
domainName,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ appName }}',
'{{ domainName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

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 }}';