Skip to main content

asset_endpoint_profiles

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

Overview

Nameasset_endpoint_profiles
TypeResource
Idazure.device_registry.asset_endpoint_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
additionalConfigurationstringStringified JSON that contains connectivity type specific further configuration (e.g. OPC UA, Modbus, ONVIF).
authenticationobjectDefines the client authentication mechanism to the server.
discoveredAssetEndpointProfileRefstringReference to a discovered asset endpoint profile. Populated only if the asset endpoint profile has been created from discovery flow. Discovered asset endpoint profile name must be provided.
endpointProfileTypestringDefines the configuration for the connector type that is being used with the endpoint profile. Required.
extendedLocationobjectThe extended location. Required.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringProvisioning state of the resource. Known values are: "Succeeded", "Failed", "Canceled", "Accepted", and "Deleting". (Succeeded, Failed, Canceled, Accepted, Deleting)
statusobjectRead only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
targetAddressstringThe local valid URI specifying the network address/DNS name of a southbound device. The scheme part of the targetAddress URI specifies the type of the device. The additionalConfiguration field holds further connector type specific configuration. Required.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
uuidstringGlobally unique, immutable, non-reusable id.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, asset_endpoint_profile_name, subscription_idGet a AssetEndpointProfile.
list_by_resource_groupselectresource_group_name, subscription_idList AssetEndpointProfile resources by resource group.
list_by_subscriptionselectsubscription_idList AssetEndpointProfile resources by subscription ID.
create_or_replaceinsertresource_group_name, asset_endpoint_profile_name, subscription_id, location, extendedLocationCreate a AssetEndpointProfile.
updateupdateresource_group_name, asset_endpoint_profile_name, subscription_idUpdate a AssetEndpointProfile.
create_or_replacereplaceresource_group_name, asset_endpoint_profile_name, subscription_id, location, extendedLocationCreate a AssetEndpointProfile.
deletedeleteresource_group_name, asset_endpoint_profile_name, subscription_idDelete a AssetEndpointProfile.

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
asset_endpoint_profile_namestringAsset Endpoint Profile name parameter. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get a AssetEndpointProfile.

SELECT
id,
name,
additionalConfiguration,
authentication,
discoveredAssetEndpointProfileRef,
endpointProfileType,
extendedLocation,
location,
provisioningState,
status,
systemData,
tags,
targetAddress,
type,
uuid
FROM azure.device_registry.asset_endpoint_profiles
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND asset_endpoint_profile_name = '{{ asset_endpoint_profile_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a AssetEndpointProfile.

INSERT INTO azure.device_registry.asset_endpoint_profiles (
tags,
location,
properties,
extendedLocation,
resource_group_name,
asset_endpoint_profile_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ extendedLocation }}' /* required */,
'{{ resource_group_name }}',
'{{ asset_endpoint_profile_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
extendedLocation,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update a AssetEndpointProfile.

UPDATE azure.device_registry.asset_endpoint_profiles
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND asset_endpoint_profile_name = '{{ asset_endpoint_profile_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
extendedLocation,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create a AssetEndpointProfile.

REPLACE azure.device_registry.asset_endpoint_profiles
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND asset_endpoint_profile_name = '{{ asset_endpoint_profile_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND extendedLocation = '{{ extendedLocation }}' --required
RETURNING
id,
name,
extendedLocation,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a AssetEndpointProfile.

DELETE FROM azure.device_registry.asset_endpoint_profiles
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND asset_endpoint_profile_name = '{{ asset_endpoint_profile_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;