Skip to main content

broker_authorizations

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

Overview

Namebroker_authorizations
TypeResource
Idazure.iot_mq.broker_authorizations

Fields

NameDatatypeDescription
authorizationNametextfield from the properties object
authorization_policiestextfield from the properties object
brokerNametextfield from the properties object
extended_locationtextfield from the properties object
listener_reftextfield from the properties object
locationtextThe geo-location where the resource lives
mqNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTauthorizationName, brokerName, mqName, resourceGroupName, subscriptionIdGet a BrokerAuthorizationResource
list_by_broker_resourceSELECTbrokerName, mqName, resourceGroupName, subscriptionIdList BrokerAuthorizationResource resources by BrokerResource
create_or_updateINSERTauthorizationName, brokerName, mqName, resourceGroupName, subscriptionId, data__extendedLocationCreate a BrokerAuthorizationResource
deleteDELETEauthorizationName, brokerName, mqName, resourceGroupName, subscriptionIdDelete a BrokerAuthorizationResource
updateUPDATEauthorizationName, brokerName, mqName, resourceGroupName, subscriptionIdUpdate a BrokerAuthorizationResource

SELECT examples

List BrokerAuthorizationResource resources by BrokerResource

SELECT
authorizationName,
authorization_policies,
brokerName,
extended_location,
listener_ref,
location,
mqName,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.iot_mq.vw_broker_authorizations
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_authorizations resource.

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

UPDATE example

Updates a broker_authorizations resource.

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

DELETE example

Deletes the specified broker_authorizations resource.

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