Skip to main content

domains

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

Overview

Namedomains
TypeResource
Idazure.app_service.domains

Fields

NameDatatypeDescription
idstringResource Id.
namestringResource Name.
kindstringKind of resource.
locationstringResource Location.
propertiesobjectDomain resource specific properties
tagsobjectResource tags.
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdomainName, resourceGroupName, subscriptionIdDescription for Get a domain.
listSELECTsubscriptionIdDescription for Get all domains in a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdDescription for Get all domains in a resource group.
create_or_updateINSERTdomainName, resourceGroupName, subscriptionIdDescription for Creates or updates a domain.
deleteDELETEdomainName, resourceGroupName, subscriptionIdDescription for Delete a domain.
updateUPDATEdomainName, resourceGroupName, subscriptionIdDescription for Creates or updates a domain.
check_availabilityEXECsubscriptionIdDescription for Check if a domain is available for registration.
renewEXECdomainName, resourceGroupName, subscriptionIdDescription for Renew a domain.
transfer_outEXECdomainName, resourceGroupName, subscriptionId

SELECT examples

Description for Get all domains in a subscription.

SELECT
id,
name,
kind,
location,
properties,
tags,
type
FROM azure.app_service.domains
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.app_service.domains (
domainName,
resourceGroupName,
subscriptionId,
kind,
location,
tags,
properties
)
SELECT
'{{ domainName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a domains resource.

/*+ update */
UPDATE azure.app_service.domains
SET
kind = '{{ kind }}',
properties = '{{ properties }}'
WHERE
domainName = '{{ domainName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified domains resource.

/*+ delete */
DELETE FROM azure.app_service.domains
WHERE domainName = '{{ domainName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';