Skip to main content

discovered_asset_endpoint_profiles

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

Overview

Namediscovered_asset_endpoint_profiles
TypeResource
Idazure.device_registry.discovered_asset_endpoint_profiles

Fields

NameDatatypeDescription
additional_configurationtextfield from the properties object
discoveredAssetEndpointProfileNametextfield from the properties object
discovery_idtextfield 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
subscriptionIdtextfield from the properties object
supported_authentication_methodstextfield from the properties object
tagstextResource tags.
target_addresstextfield from the properties object
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdiscoveredAssetEndpointProfileName, resourceGroupName, subscriptionIdGet a DiscoveredAssetEndpointProfile
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList DiscoveredAssetEndpointProfile resources by resource group
list_by_subscriptionSELECTsubscriptionIdList DiscoveredAssetEndpointProfile resources by subscription ID
create_or_replaceINSERTdiscoveredAssetEndpointProfileName, resourceGroupName, subscriptionId, data__extendedLocationCreate a DiscoveredAssetEndpointProfile
deleteDELETEdiscoveredAssetEndpointProfileName, resourceGroupName, subscriptionIdDelete a DiscoveredAssetEndpointProfile
updateUPDATEdiscoveredAssetEndpointProfileName, resourceGroupName, subscriptionIdUpdate a DiscoveredAssetEndpointProfile

SELECT examples

List DiscoveredAssetEndpointProfile resources by subscription ID

SELECT
additional_configuration,
discoveredAssetEndpointProfileName,
discovery_id,
endpoint_profile_type,
extended_location,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
supported_authentication_methods,
tags,
target_address,
version
FROM azure.device_registry.vw_discovered_asset_endpoint_profiles
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a discovered_asset_endpoint_profiles resource.

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

DELETE example

Deletes the specified discovered_asset_endpoint_profiles resource.

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