Skip to main content

domain_services

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

Overview

Namedomain_services
TypeResource
Idazure.aad_domain_services.domain_services

Fields

The following fields are returned by SELECT queries:

HTTP 200 (OK) if the operation was successful.

NameDatatypeDescription
idstringResource Id
namestringResource name
etagstringResource etag
locationstringResource location
propertiesobjectDomain service properties
systemDataobjectThe system meta data relating to this resource.
tagsobjectResource tags
typestringResource type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, domainServiceNameThe Get Domain Service operation retrieves a json representation of the Domain Service.
list_by_resource_groupselectsubscriptionId, resourceGroupNameThe List Domain Services in Resource Group operation lists all the domain services available under the given resource group.
listselectsubscriptionIdThe List Domain Services in Subscription operation lists all the domain services available under the given subscription (and across all resource groups within that subscription).
create_or_updateinsertsubscriptionId, resourceGroupName, domainServiceNameThe Create Domain Service operation creates a new domain service with the specified parameters. If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged.
updateupdatesubscriptionId, resourceGroupName, domainServiceNameThe Update Domain Service operation can be used to update the existing deployment. The update call only supports the properties listed in the PATCH body.
deletedeletesubscriptionId, resourceGroupName, domainServiceNameThe Delete Domain Service operation deletes an existing Domain Service.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
domainServiceNamestringThe name of the domain service.
resourceGroupNamestringThe name of the resource group within the user's subscription. The name is case insensitive.
subscriptionIdstringGets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

The Get Domain Service operation retrieves a json representation of the Domain Service.

SELECT
id,
name,
etag,
location,
properties,
systemData,
tags,
type
FROM azure.aad_domain_services.domain_services
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND domainServiceName = '{{ domainServiceName }}' -- required
;

INSERT examples

The Create Domain Service operation creates a new domain service with the specified parameters. If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged.

INSERT INTO azure.aad_domain_services.domain_services (
data__properties,
data__location,
data__tags,
data__etag,
subscriptionId,
resourceGroupName,
domainServiceName
)
SELECT
'{{ properties }}',
'{{ location }}',
'{{ tags }}',
'{{ etag }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ domainServiceName }}'
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

The Update Domain Service operation can be used to update the existing deployment. The update call only supports the properties listed in the PATCH body.

UPDATE azure.aad_domain_services.domain_services
SET
data__properties = '{{ properties }}',
data__location = '{{ location }}',
data__tags = '{{ tags }}',
data__etag = '{{ etag }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND domainServiceName = '{{ domainServiceName }}' --required
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type;

DELETE examples

The Delete Domain Service operation deletes an existing Domain Service.

DELETE FROM azure.aad_domain_services.domain_services
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND domainServiceName = '{{ domainServiceName }}' --required
;