Skip to main content

broker_authentications

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

Overview

Namebroker_authentications
TypeResource
Idazure.iot_mq.broker_authentications

Fields

The following fields are returned by SELECT queries:

Azure operation completed successfully.

NameDatatypeDescription
extendedLocationobjectExtended Location
locationstringThe geo-location where the resource lives
propertiesobjectThe resource-specific properties for this resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, mqName, brokerName, authenticationNameGet a BrokerAuthenticationResource
list_by_broker_resourceselectsubscriptionId, resourceGroupName, mqName, brokerNameList BrokerAuthenticationResource resources by BrokerResource
create_or_updateinsertsubscriptionId, resourceGroupName, mqName, brokerName, authenticationName, data__extendedLocationCreate a BrokerAuthenticationResource
updateupdatesubscriptionId, resourceGroupName, mqName, brokerName, authenticationNameUpdate a BrokerAuthenticationResource
deletedeletesubscriptionId, resourceGroupName, mqName, brokerName, authenticationNameDelete a BrokerAuthenticationResource

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.

NameDatatypeDescription
authenticationNamestringName of MQ broker/authentication resource
brokerNamestringName of MQ broker resource
mqNamestringName of MQ resource
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Get a BrokerAuthenticationResource

SELECT
extendedLocation,
location,
properties,
tags
FROM azure.iot_mq.broker_authentications
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND mqName = '{{ mqName }}' -- required
AND brokerName = '{{ brokerName }}' -- required
AND authenticationName = '{{ authenticationName }}' -- required
;

INSERT examples

Create a BrokerAuthenticationResource

INSERT INTO azure.iot_mq.broker_authentications (
data__properties,
data__extendedLocation,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
mqName,
brokerName,
authenticationName
)
SELECT
'{{ properties }}',
'{{ extendedLocation }}' /* required */,
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ mqName }}',
'{{ brokerName }}',
'{{ authenticationName }}'
RETURNING
extendedLocation,
location,
properties,
tags
;

UPDATE examples

Update a BrokerAuthenticationResource

UPDATE azure.iot_mq.broker_authentications
SET
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND mqName = '{{ mqName }}' --required
AND brokerName = '{{ brokerName }}' --required
AND authenticationName = '{{ authenticationName }}' --required
RETURNING
extendedLocation,
location,
properties,
tags;

DELETE examples

Delete a BrokerAuthenticationResource

DELETE FROM azure.iot_mq.broker_authentications
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND mqName = '{{ mqName }}' --required
AND brokerName = '{{ brokerName }}' --required
AND authenticationName = '{{ authenticationName }}' --required
;