diagnostic_services
Creates, updates, deletes, gets or lists a diagnostic_services
resource.
Overview
Name | diagnostic_services |
Type | Resource |
Id | azure.iot_mq.diagnostic_services |
Fields
- vw_diagnostic_services
- diagnostic_services
Name | Datatype | Description |
---|---|---|
data_export_frequency_seconds | text | field from the properties object |
diagnosticServiceName | text | field from the properties object |
extended_location | text | field from the properties object |
image | text | field from the properties object |
location | text | The geo-location where the resource lives |
log_format | text | field from the properties object |
log_level | text | field from the properties object |
max_data_storage_size | text | field from the properties object |
metrics_port | text | field from the properties object |
mqName | text | field from the properties object |
open_telemetry_traces_collector_addr | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
stale_data_timeout_seconds | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
extendedLocation | object | ExtendedLocation properties |
location | string | The geo-location where the resource lives |
properties | object | MQ Diagnostic Services Resource properties |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | diagnosticServiceName, mqName, resourceGroupName, subscriptionId | Get a DiagnosticServiceResource |
list_by_mq_resource | SELECT | mqName, resourceGroupName, subscriptionId | List DiagnosticServiceResource resources by MqResource |
create_or_update | INSERT | diagnosticServiceName, mqName, resourceGroupName, subscriptionId, data__extendedLocation | Create a DiagnosticServiceResource |
delete | DELETE | diagnosticServiceName, mqName, resourceGroupName, subscriptionId | Delete a DiagnosticServiceResource |
update | UPDATE | diagnosticServiceName, mqName, resourceGroupName, subscriptionId | Update a DiagnosticServiceResource |
SELECT
examples
List DiagnosticServiceResource resources by MqResource
- vw_diagnostic_services
- diagnostic_services
SELECT
data_export_frequency_seconds,
diagnosticServiceName,
extended_location,
image,
location,
log_format,
log_level,
max_data_storage_size,
metrics_port,
mqName,
open_telemetry_traces_collector_addr,
provisioning_state,
resourceGroupName,
stale_data_timeout_seconds,
subscriptionId,
tags
FROM azure.iot_mq.vw_diagnostic_services
WHERE mqName = '{{ mqName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
extendedLocation,
location,
properties,
tags
FROM azure.iot_mq.diagnostic_services
WHERE mqName = '{{ mqName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new diagnostic_services
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.iot_mq.diagnostic_services (
diagnosticServiceName,
mqName,
resourceGroupName,
subscriptionId,
data__extendedLocation,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ diagnosticServiceName }}',
'{{ mqName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__extendedLocation }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: dataExportFrequencySeconds
value: integer
- name: image
value:
- name: pullPolicy
value: string
- name: pullSecrets
value: string
- name: repository
value: string
- name: tag
value: string
- name: logFormat
value: string
- name: logLevel
value: string
- name: maxDataStorageSize
value: integer
- name: metricsPort
value: integer
- name: openTelemetryTracesCollectorAddr
value: string
- name: provisioningState
value: []
- name: staleDataTimeoutSeconds
value: integer
- name: extendedLocation
value:
- name: name
value: string
- name: type
value: []
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a diagnostic_services
resource.
/*+ update */
UPDATE azure.iot_mq.diagnostic_services
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
diagnosticServiceName = '{{ diagnosticServiceName }}'
AND mqName = '{{ mqName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified diagnostic_services
resource.
/*+ delete */
DELETE FROM azure.iot_mq.diagnostic_services
WHERE diagnosticServiceName = '{{ diagnosticServiceName }}'
AND mqName = '{{ mqName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';