Skip to main content

broker_listeners

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

Overview

Namebroker_listeners
TypeResource
Idazure.iotoperations.broker_listeners

Fields

NameDatatypeDescription
brokerNametextfield from the properties object
extended_locationtextfield from the properties object
instanceNametextfield from the properties object
listenerNametextfield from the properties object
portstextfield 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

Methods

NameAccessible byRequired ParamsDescription
getSELECTbrokerName, instanceName, listenerName, resourceGroupName, subscriptionIdGet a BrokerListenerResource
list_by_resource_groupSELECTbrokerName, instanceName, resourceGroupName, subscriptionIdList BrokerListenerResource resources by BrokerResource
create_or_updateINSERTbrokerName, instanceName, listenerName, resourceGroupName, subscriptionId, data__extendedLocationCreate a BrokerListenerResource
deleteDELETEbrokerName, instanceName, listenerName, resourceGroupName, subscriptionIdDelete a BrokerListenerResource

SELECT examples

List BrokerListenerResource resources by BrokerResource

SELECT
brokerName,
extended_location,
instanceName,
listenerName,
ports,
provisioning_state,
resourceGroupName,
service_name,
service_type,
subscriptionId
FROM azure.iotoperations.vw_broker_listeners
WHERE brokerName = '{{ brokerName }}'
AND instanceName = '{{ instanceName }}'
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.iotoperations.broker_listeners (
brokerName,
instanceName,
listenerName,
resourceGroupName,
subscriptionId,
data__extendedLocation,
properties,
extendedLocation
)
SELECT
'{{ brokerName }}',
'{{ instanceName }}',
'{{ listenerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__extendedLocation }}',
'{{ properties }}',
'{{ extendedLocation }}'
;

DELETE example

Deletes the specified broker_listeners resource.

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