Skip to main content

services

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

Overview

Nameservices
TypeResource
Idazure_extras.healthcare.services

Fields

NameDatatypeDescription
idtextThe resource identifier.
nametextThe resource name.
access_policiestextfield from the properties object
acr_configurationtextfield from the properties object
authentication_configurationtextfield from the properties object
cors_configurationtextfield from the properties object
cosmos_db_configurationtextfield from the properties object
etagtextAn etag associated with the resource, used for optimistic concurrency when editing it.
export_configurationtextfield from the properties object
identitytextSetting indicating whether the service has a managed identity associated with it.
import_configurationtextfield from the properties object
kindtextThe kind of the service.
locationtextThe resource location.
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextThe resource tags.
typetextThe resource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionIdGet the metadata of a service instance.
listSELECTsubscriptionIdGet all the service instances in a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet all the service instances in a resource group.
create_or_updateINSERTresourceGroupName, resourceName, subscriptionIdCreate or update the metadata of a service instance.
deleteDELETEresourceGroupName, resourceName, subscriptionIdDelete a service instance.
updateUPDATEresourceGroupName, resourceName, subscriptionIdUpdate the metadata of a service instance.
check_name_availabilityEXECsubscriptionId, data__name, data__typeCheck if a service instance name is available.

SELECT examples

Get all the service instances in a subscription.

SELECT
id,
name,
access_policies,
acr_configuration,
authentication_configuration,
cors_configuration,
cosmos_db_configuration,
etag,
export_configuration,
identity,
import_configuration,
kind,
location,
private_endpoint_connections,
provisioning_state,
public_network_access,
resourceGroupName,
resourceName,
subscriptionId,
system_data,
tags,
type
FROM azure_extras.healthcare.vw_services
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.healthcare.services (
resourceGroupName,
resourceName,
subscriptionId,
properties,
systemData,
kind,
location,
tags,
etag,
identity
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ systemData }}',
'{{ kind }}',
'{{ location }}',
'{{ tags }}',
'{{ etag }}',
'{{ identity }}'
;

UPDATE example

Updates a services resource.

/*+ update */
UPDATE azure_extras.healthcare.services
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified services resource.

/*+ delete */
DELETE FROM azure_extras.healthcare.services
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';