Skip to main content

broker_authorizations

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

Overview

Namebroker_authorizations
TypeResource
Idazure.iotoperations.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
instanceNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTauthorizationName, brokerName, instanceName, resourceGroupName, subscriptionIdGet a BrokerAuthorizationResource
list_by_resource_groupSELECTbrokerName, instanceName, resourceGroupName, subscriptionIdList BrokerAuthorizationResource resources by BrokerResource
create_or_updateINSERTauthorizationName, brokerName, instanceName, resourceGroupName, subscriptionId, data__extendedLocationCreate a BrokerAuthorizationResource
deleteDELETEauthorizationName, brokerName, instanceName, resourceGroupName, subscriptionIdDelete a BrokerAuthorizationResource

SELECT examples

List BrokerAuthorizationResource resources by BrokerResource

SELECT
authorizationName,
authorization_policies,
brokerName,
extended_location,
instanceName,
provisioning_state,
resourceGroupName,
subscriptionId
FROM azure.iotoperations.vw_broker_authorizations
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_authorizations resource.

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

DELETE example

Deletes the specified broker_authorizations resource.

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