akri_connector_template
Creates, updates, deletes, gets or lists an akri_connector_template resource.
Overview
| Name | akri_connector_template |
| Type | Resource |
| Id | azure.iot_operations.akri_connector_template |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_instance_resource
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
aioMetadata | object | Metadata about AIO. |
connectorMetadataRef | string | A reference to a connector metadata document reference in a container registry. |
deviceInboundEndpointTypes | array | Device inbound endpoint types. Required. |
diagnostics | object | Diagnostics settings for the Connector template. |
extendedLocation | object | Edge location of the resource. |
healthState | string | The health state of the resource. Known values are: "Available", "Degraded", "Unavailable", and "Unknown". (Available, Degraded, Unavailable, Unknown) |
mqttConnectionConfiguration | object | Mqtt connection configuration settings. |
provisioningState | string | The status of the last operation. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". (Succeeded, Failed, Canceled, Provisioning, Updating, Deleting, Accepted) |
runtimeConfiguration | object | The runtime configuration for the Connector template. Required. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
aioMetadata | object | Metadata about AIO. |
connectorMetadataRef | string | A reference to a connector metadata document reference in a container registry. |
deviceInboundEndpointTypes | array | Device inbound endpoint types. Required. |
diagnostics | object | Diagnostics settings for the Connector template. |
extendedLocation | object | Edge location of the resource. |
healthState | string | The health state of the resource. Known values are: "Available", "Degraded", "Unavailable", and "Unknown". (Available, Degraded, Unavailable, Unknown) |
mqttConnectionConfiguration | object | Mqtt connection configuration settings. |
provisioningState | string | The status of the last operation. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". (Succeeded, Failed, Canceled, Provisioning, Updating, Deleting, Accepted) |
runtimeConfiguration | object | The runtime configuration for the Connector template. Required. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, instance_name, akri_connector_template_name, subscription_id | Get a AkriConnectorTemplateResource. | |
list_by_instance_resource | select | resource_group_name, instance_name, subscription_id | List AkriConnectorTemplateResource resources by InstanceResource. | |
create_or_update | insert | resource_group_name, instance_name, akri_connector_template_name, subscription_id | Create a AkriConnectorTemplateResource. | |
create_or_update | replace | resource_group_name, instance_name, akri_connector_template_name, subscription_id | Create a AkriConnectorTemplateResource. | |
delete | delete | resource_group_name, instance_name, akri_connector_template_name, subscription_id | Delete a AkriConnectorTemplateResource. |
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.
| Name | Datatype | Description |
|---|---|---|
akri_connector_template_name | string | Name of AkriConnectorTemplate resource. Required. |
instance_name | string | Name of instance. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- get
- list_by_instance_resource
Get a AkriConnectorTemplateResource.
SELECT
id,
name,
aioMetadata,
connectorMetadataRef,
deviceInboundEndpointTypes,
diagnostics,
extendedLocation,
healthState,
mqttConnectionConfiguration,
provisioningState,
runtimeConfiguration,
systemData,
type
FROM azure.iot_operations.akri_connector_template
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND instance_name = '{{ instance_name }}' -- required
AND akri_connector_template_name = '{{ akri_connector_template_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
List AkriConnectorTemplateResource resources by InstanceResource.
SELECT
id,
name,
aioMetadata,
connectorMetadataRef,
deviceInboundEndpointTypes,
diagnostics,
extendedLocation,
healthState,
mqttConnectionConfiguration,
provisioningState,
runtimeConfiguration,
systemData,
type
FROM azure.iot_operations.akri_connector_template
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND instance_name = '{{ instance_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Create a AkriConnectorTemplateResource.
INSERT INTO azure.iot_operations.akri_connector_template (
properties,
extendedLocation,
resource_group_name,
instance_name,
akri_connector_template_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ extendedLocation }}',
'{{ resource_group_name }}',
'{{ instance_name }}',
'{{ akri_connector_template_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
extendedLocation,
properties,
systemData,
type
;
# Description fields are for documentation purposes
- name: akri_connector_template
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the akri_connector_template resource.
- name: instance_name
value: "{{ instance_name }}"
description: Required parameter for the akri_connector_template resource.
- name: akri_connector_template_name
value: "{{ akri_connector_template_name }}"
description: Required parameter for the akri_connector_template resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the akri_connector_template resource.
- name: properties
description: |
The resource-specific properties for this resource.
value:
provisioningState: "{{ provisioningState }}"
aioMetadata:
aioMinVersion: "{{ aioMinVersion }}"
aioMaxVersion: "{{ aioMaxVersion }}"
runtimeConfiguration:
runtimeConfigurationType: "{{ runtimeConfigurationType }}"
diagnostics:
logs:
level: "{{ level }}"
deviceInboundEndpointTypes:
- displayName: "{{ displayName }}"
endpointType: "{{ endpointType }}"
version: "{{ version }}"
mqttConnectionConfiguration:
authentication:
method: "{{ method }}"
host: "{{ host }}"
protocol: "{{ protocol }}"
keepAliveSeconds: {{ keepAliveSeconds }}
maxInflightMessages: {{ maxInflightMessages }}
sessionExpirySeconds: {{ sessionExpirySeconds }}
tls:
mode: "{{ mode }}"
trustedCaCertificateConfigMapRef: "{{ trustedCaCertificateConfigMapRef }}"
connectorMetadataRef: "{{ connectorMetadataRef }}"
healthState: "{{ healthState }}"
- name: extendedLocation
description: |
Edge location of the resource.
value:
name: "{{ name }}"
type: "{{ type }}"
REPLACE examples
- create_or_update
Create a AkriConnectorTemplateResource.
REPLACE azure.iot_operations.akri_connector_template
SET
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND instance_name = '{{ instance_name }}' --required
AND akri_connector_template_name = '{{ akri_connector_template_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
extendedLocation,
properties,
systemData,
type;
DELETE examples
- delete
Delete a AkriConnectorTemplateResource.
DELETE FROM azure.iot_operations.akri_connector_template
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND instance_name = '{{ instance_name }}' --required
AND akri_connector_template_name = '{{ akri_connector_template_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;