Skip to main content

broker_listeners

Creates, updates, deletes, gets or lists a broker_listeners resource.

Overview

Namebroker_listeners
TypeResource
Idazure.iot_mq.broker_listeners

Fields

NameDatatypeDescription
authentication_enabledtextfield from the properties object
authorization_enabledtextfield from the properties object
brokerNametextfield from the properties object
broker_reftextfield from the properties object
extended_locationtextfield from the properties object
listenerNametextfield from the properties object
locationtextThe geo-location where the resource lives
mqNametextfield from the properties object
node_porttextfield from the properties object
porttextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
service_nametextfield from the properties object
service_typetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
tlstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTbrokerName, listenerName, mqName, resourceGroupName, subscriptionIdGet a BrokerListenerResource
list_by_broker_resourceSELECTbrokerName, mqName, resourceGroupName, subscriptionIdList BrokerListenerResource resources by BrokerResource
create_or_updateINSERTbrokerName, listenerName, mqName, resourceGroupName, subscriptionId, data__extendedLocationCreate a BrokerListenerResource
deleteDELETEbrokerName, listenerName, mqName, resourceGroupName, subscriptionIdDelete a BrokerListenerResource
updateUPDATEbrokerName, listenerName, mqName, resourceGroupName, subscriptionIdUpdate a BrokerListenerResource

SELECT examples

List BrokerListenerResource resources by BrokerResource

SELECT
authentication_enabled,
authorization_enabled,
brokerName,
broker_ref,
extended_location,
listenerName,
location,
mqName,
node_port,
port,
provisioning_state,
resourceGroupName,
service_name,
service_type,
subscriptionId,
tags,
tls
FROM azure.iot_mq.vw_broker_listeners
WHERE brokerName = '{{ brokerName }}'
AND mqName = '{{ mqName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new broker_listeners resource.

/*+ create */
INSERT INTO azure.iot_mq.broker_listeners (
brokerName,
listenerName,
mqName,
resourceGroupName,
subscriptionId,
data__extendedLocation,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ brokerName }}',
'{{ listenerName }}',
'{{ mqName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__extendedLocation }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a broker_listeners resource.

/*+ update */
UPDATE azure.iot_mq.broker_listeners
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
brokerName = '{{ brokerName }}'
AND listenerName = '{{ listenerName }}'
AND mqName = '{{ mqName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified broker_listeners resource.

/*+ delete */
DELETE FROM azure.iot_mq.broker_listeners
WHERE brokerName = '{{ brokerName }}'
AND listenerName = '{{ listenerName }}'
AND mqName = '{{ mqName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';