discovered_asset_endpoint_profiles
Creates, updates, deletes, gets or lists a discovered_asset_endpoint_profiles
resource.
Overview
Name | discovered_asset_endpoint_profiles |
Type | Resource |
Id | azure.device_registry.discovered_asset_endpoint_profiles |
Fields
- vw_discovered_asset_endpoint_profiles
- discovered_asset_endpoint_profiles
Name | Datatype | Description |
---|---|---|
additional_configuration | text | field from the properties object |
discoveredAssetEndpointProfileName | text | field from the properties object |
discovery_id | text | field from the properties object |
endpoint_profile_type | text | field from the properties object |
extended_location | text | field from the properties object |
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
supported_authentication_methods | text | field from the properties object |
tags | text | Resource tags. |
target_address | text | field from the properties object |
version | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
extendedLocation | object | The extended location. |
location | string | The geo-location where the resource lives |
properties | object | Defines the Discovered Asset Endpoint Profile properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | discoveredAssetEndpointProfileName, resourceGroupName, subscriptionId | Get a DiscoveredAssetEndpointProfile |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List DiscoveredAssetEndpointProfile resources by resource group |
list_by_subscription | SELECT | subscriptionId | List DiscoveredAssetEndpointProfile resources by subscription ID |
create_or_replace | INSERT | discoveredAssetEndpointProfileName, resourceGroupName, subscriptionId, data__extendedLocation | Create a DiscoveredAssetEndpointProfile |
delete | DELETE | discoveredAssetEndpointProfileName, resourceGroupName, subscriptionId | Delete a DiscoveredAssetEndpointProfile |
update | UPDATE | discoveredAssetEndpointProfileName, resourceGroupName, subscriptionId | Update a DiscoveredAssetEndpointProfile |
SELECT
examples
List DiscoveredAssetEndpointProfile resources by subscription ID
- vw_discovered_asset_endpoint_profiles
- discovered_asset_endpoint_profiles
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 }}';
SELECT
extendedLocation,
location,
properties,
tags
FROM azure.device_registry.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: targetAddress
value: string
- name: additionalConfiguration
value: string
- name: supportedAuthenticationMethods
value:
- []
- name: endpointProfileType
value: string
- name: discoveryId
value: string
- name: version
value: integer
- name: provisioningState
value: []
- name: extendedLocation
value:
- name: type
value: string
- name: name
value: string
- name: tags
value: object
- name: location
value: string
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 }}';