Skip to main content

asset_endpoint_profiles

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

Overview

Nameasset_endpoint_profiles
TypeResource
Idazure.device_registry.asset_endpoint_profiles

Fields

NameDatatypeDescription
additional_configurationtextfield from the properties object
assetEndpointProfileNametextfield from the properties object
authenticationtextfield from the properties object
discovered_asset_endpoint_profile_reftextfield from the properties object
endpoint_profile_typetextfield from the properties object
extended_locationtextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
target_addresstextfield from the properties object
uuidtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTassetEndpointProfileName, resourceGroupName, subscriptionIdGet a AssetEndpointProfile
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList AssetEndpointProfile resources by resource group
list_by_subscriptionSELECTsubscriptionIdList AssetEndpointProfile resources by subscription ID
create_or_replaceINSERTassetEndpointProfileName, resourceGroupName, subscriptionId, data__extendedLocationCreate a AssetEndpointProfile
deleteDELETEassetEndpointProfileName, resourceGroupName, subscriptionIdDelete a AssetEndpointProfile
updateUPDATEassetEndpointProfileName, resourceGroupName, subscriptionIdUpdate a AssetEndpointProfile

SELECT examples

List AssetEndpointProfile resources by subscription ID

SELECT
additional_configuration,
assetEndpointProfileName,
authentication,
discovered_asset_endpoint_profile_ref,
endpoint_profile_type,
extended_location,
location,
provisioning_state,
resourceGroupName,
status,
subscriptionId,
tags,
target_address,
uuid
FROM azure.device_registry.vw_asset_endpoint_profiles
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.device_registry.asset_endpoint_profiles (
assetEndpointProfileName,
resourceGroupName,
subscriptionId,
data__extendedLocation,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ assetEndpointProfileName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__extendedLocation }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a asset_endpoint_profiles resource.

/*+ update */
UPDATE azure.device_registry.asset_endpoint_profiles
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
assetEndpointProfileName = '{{ assetEndpointProfileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified asset_endpoint_profiles resource.

/*+ delete */
DELETE FROM azure.device_registry.asset_endpoint_profiles
WHERE assetEndpointProfileName = '{{ assetEndpointProfileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';