asset_endpoint_profiles
Creates, updates, deletes, gets or lists a asset_endpoint_profiles
resource.
Overview
Name | asset_endpoint_profiles |
Type | Resource |
Id | azure.device_registry.asset_endpoint_profiles |
Fields
- vw_asset_endpoint_profiles
- asset_endpoint_profiles
Name | Datatype | Description |
---|---|---|
additional_configuration | text | field from the properties object |
assetEndpointProfileName | text | field from the properties object |
authentication | text | field from the properties object |
discovered_asset_endpoint_profile_ref | 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 |
status | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
target_address | text | field from the properties object |
uuid | 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 Asset Endpoint Profile properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | assetEndpointProfileName, resourceGroupName, subscriptionId | Get a AssetEndpointProfile |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List AssetEndpointProfile resources by resource group |
list_by_subscription | SELECT | subscriptionId | List AssetEndpointProfile resources by subscription ID |
create_or_replace | INSERT | assetEndpointProfileName, resourceGroupName, subscriptionId, data__extendedLocation | Create a AssetEndpointProfile |
delete | DELETE | assetEndpointProfileName, resourceGroupName, subscriptionId | Delete a AssetEndpointProfile |
update | UPDATE | assetEndpointProfileName, resourceGroupName, subscriptionId | Update a AssetEndpointProfile |
SELECT
examples
List AssetEndpointProfile resources by subscription ID
- vw_asset_endpoint_profiles
- asset_endpoint_profiles
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 }}';
SELECT
extendedLocation,
location,
properties,
tags
FROM azure.device_registry.asset_endpoint_profiles
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new asset_endpoint_profiles
resource.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: uuid
value: string
- name: targetAddress
value: string
- name: endpointProfileType
value: string
- name: authentication
value:
- name: method
value: string
- name: usernamePasswordCredentials
value:
- name: usernameSecretName
value: string
- name: passwordSecretName
value: string
- name: x509Credentials
value:
- name: certificateSecretName
value: string
- name: additionalConfiguration
value: string
- name: discoveredAssetEndpointProfileRef
value: string
- name: status
value:
- name: errors
value:
- - name: code
value: integer
- name: message
value: string
- 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 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 }}';