Skip to main content

brokers

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

Overview

Namebrokers
TypeResource
Idazure.iotoperations.brokers

Fields

NameDatatypeDescription
advancedtextfield from the properties object
brokerNametextfield from the properties object
cardinalitytextfield from the properties object
diagnosticstextfield from the properties object
disk_backed_message_buffertextfield from the properties object
extended_locationtextfield from the properties object
generate_resource_limitstextfield from the properties object
instanceNametextfield from the properties object
memory_profiletextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTbrokerName, instanceName, resourceGroupName, subscriptionIdGet a BrokerResource
list_by_resource_groupSELECTinstanceName, resourceGroupName, subscriptionIdList BrokerResource resources by InstanceResource
create_or_updateINSERTbrokerName, instanceName, resourceGroupName, subscriptionId, data__extendedLocationCreate a BrokerResource
deleteDELETEbrokerName, instanceName, resourceGroupName, subscriptionIdDelete a BrokerResource

SELECT examples

List BrokerResource resources by InstanceResource

SELECT
advanced,
brokerName,
cardinality,
diagnostics,
disk_backed_message_buffer,
extended_location,
generate_resource_limits,
instanceName,
memory_profile,
provisioning_state,
resourceGroupName,
subscriptionId
FROM azure.iotoperations.vw_brokers
WHERE instanceName = '{{ instanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.iotoperations.brokers (
brokerName,
instanceName,
resourceGroupName,
subscriptionId,
data__extendedLocation,
properties,
extendedLocation
)
SELECT
'{{ brokerName }}',
'{{ instanceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__extendedLocation }}',
'{{ properties }}',
'{{ extendedLocation }}'
;

DELETE example

Deletes the specified brokers resource.

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