hybrid_connections_authorization_rules
Creates, updates, deletes, gets or lists a hybrid_connections_authorization_rules
resource.
Overview
Name | hybrid_connections_authorization_rules |
Type | Resource |
Id | azure.relay.hybrid_connections_authorization_rules |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | string | The name of the resource |
location | string | The geo-location where the resource lives |
properties | `` | Properties supplied to create or update AuthorizationRule |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | authorizationRuleName, hybridConnectionName, namespaceName, resourceGroupName, subscriptionId | Hybrid connection authorization rule for a hybrid connection by name. |
list | SELECT | hybridConnectionName, namespaceName, resourceGroupName, subscriptionId | Authorization rules for a hybrid connection. |
create_or_update | INSERT | authorizationRuleName, hybridConnectionName, namespaceName, resourceGroupName, subscriptionId | Creates or updates an authorization rule for a hybrid connection. |
delete | DELETE | authorizationRuleName, hybridConnectionName, namespaceName, resourceGroupName, subscriptionId | Deletes a hybrid connection authorization rule. |
SELECT
examples
Authorization rules for a hybrid connection.
SELECT
id,
name,
location,
properties,
systemData,
type
FROM azure.relay.hybrid_connections_authorization_rules
WHERE hybridConnectionName = '{{ hybridConnectionName }}'
AND namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new hybrid_connections_authorization_rules
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.relay.hybrid_connections_authorization_rules (
authorizationRuleName,
hybridConnectionName,
namespaceName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ authorizationRuleName }}',
'{{ hybridConnectionName }}',
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
DELETE
example
Deletes the specified hybrid_connections_authorization_rules
resource.
/*+ delete */
DELETE FROM azure.relay.hybrid_connections_authorization_rules
WHERE authorizationRuleName = '{{ authorizationRuleName }}'
AND hybridConnectionName = '{{ hybridConnectionName }}'
AND namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';