Skip to main content

iot_connectors

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

Overview

Nameiot_connectors
TypeResource
Idazure_extras.health_data_services.iot_connectors

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.
deviceMappingobjectDevice Mappings.
etagstringAn etag associated with the resource, used for optimistic concurrency when editing it.
identityobjectSetting indicating whether the service has a managed identity associated with it.
ingestionEndpointConfigurationobjectSource configuration.
locationstringThe common properties for any location based resource, tracked or proxy.
provisioningStatestringThe provisioning state. Known values are: "Deleting", "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", "Deprovisioned", "Moving", "Suspended", "Warned", and "SystemMaintenance". (Deleting, Succeeded, Creating, Accepted, Verifying, Updating, Failed, Canceled, Deprovisioned, Moving, Suspended, Warned, SystemMaintenance)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectThe common properties of tracked resources in the service.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, iot_connector_name, subscription_idGets the properties of the specified IoT Connector.
list_by_workspaceselectresource_group_name, workspace_name, subscription_idLists all IoT Connectors for the given workspace.
create_or_updateinsertresource_group_name, workspace_name, iot_connector_name, subscription_idCreates or updates an IoT Connector resource with the specified parameters.
updateupdateresource_group_name, iot_connector_name, workspace_name, subscription_idPatch an IoT Connector.
create_or_updatereplaceresource_group_name, workspace_name, iot_connector_name, subscription_idCreates or updates an IoT Connector resource with the specified parameters.
deletedeleteresource_group_name, iot_connector_name, workspace_name, subscription_idDeletes an IoT Connector.

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
iot_connector_namestringThe name of IoT Connector resource. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of workspace resource. Required.

SELECT examples

Gets the properties of the specified IoT Connector.

SELECT
id,
name,
deviceMapping,
etag,
identity,
ingestionEndpointConfiguration,
location,
provisioningState,
systemData,
tags,
type
FROM azure_extras.health_data_services.iot_connectors
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND iot_connector_name = '{{ iot_connector_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates an IoT Connector resource with the specified parameters.

INSERT INTO azure_extras.health_data_services.iot_connectors (
properties,
tags,
location,
etag,
identity,
resource_group_name,
workspace_name,
iot_connector_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ etag }}',
'{{ identity }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ iot_connector_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Patch an IoT Connector.

UPDATE azure_extras.health_data_services.iot_connectors
SET
tags = '{{ tags }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND iot_connector_name = '{{ iot_connector_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
identity,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates or updates an IoT Connector resource with the specified parameters.

REPLACE azure_extras.health_data_services.iot_connectors
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
location = '{{ location }}',
etag = '{{ etag }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND iot_connector_name = '{{ iot_connector_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes an IoT Connector.

DELETE FROM azure_extras.health_data_services.iot_connectors
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND iot_connector_name = '{{ iot_connector_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;