broker_authorizations
Creates, updates, deletes, gets or lists a broker_authorizations
resource.
Overview
Name | broker_authorizations |
Type | Resource |
Id | azure.iotoperations.broker_authorizations |
Fields
- vw_broker_authorizations
- broker_authorizations
Name | Datatype | Description |
---|---|---|
authorizationName | text | field from the properties object |
authorization_policies | text | field from the properties object |
brokerName | text | field from the properties object |
extended_location | text | field from the properties object |
instanceName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
extendedLocation | object | Extended location is an extension of Azure locations. They provide a way to use their Azure ARC enabled Kubernetes clusters as target locations for deploying Azure services instances. |
properties | object | BrokerAuthorization Resource properties |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | authorizationName, brokerName, instanceName, resourceGroupName, subscriptionId | Get a BrokerAuthorizationResource |
list_by_resource_group | SELECT | brokerName, instanceName, resourceGroupName, subscriptionId | List BrokerAuthorizationResource resources by BrokerResource |
create_or_update | INSERT | authorizationName, brokerName, instanceName, resourceGroupName, subscriptionId, data__extendedLocation | Create a BrokerAuthorizationResource |
delete | DELETE | authorizationName, brokerName, instanceName, resourceGroupName, subscriptionId | Delete a BrokerAuthorizationResource |
SELECT
examples
List BrokerAuthorizationResource resources by BrokerResource
- vw_broker_authorizations
- broker_authorizations
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 }}';
SELECT
extendedLocation,
properties
FROM azure.iotoperations.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: authorizationPolicies
value:
- name: cache
value: string
- name: rules
value:
- - name: brokerResources
value:
- - name: method
value: []
- name: clientIds
value:
- string
- name: topics
value:
- string
- name: principals
value:
- name: attributes
value:
- object
- name: clientIds
value:
- string
- name: usernames
value:
- string
- name: stateStoreResources
value:
- - name: keyType
value: []
- name: keys
value:
- string
- name: method
value: []
- name: provisioningState
value: []
- name: extendedLocation
value:
- name: name
value: string
- name: type
value: []
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 }}';