Skip to main content

hybrid_connections_authorization_rules

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

Overview

Namehybrid_connections_authorization_rules
TypeResource
Idazure.relay.hybrid_connections_authorization_rules

Fields

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
locationstringThe geo-location where the resource lives
properties``Properties supplied to create or update AuthorizationRule
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"

Methods

NameAccessible byRequired ParamsDescription
getSELECTauthorizationRuleName, hybridConnectionName, namespaceName, resourceGroupName, subscriptionIdHybrid connection authorization rule for a hybrid connection by name.
listSELECThybridConnectionName, namespaceName, resourceGroupName, subscriptionIdAuthorization rules for a hybrid connection.
create_or_updateINSERTauthorizationRuleName, hybridConnectionName, namespaceName, resourceGroupName, subscriptionIdCreates or updates an authorization rule for a hybrid connection.
deleteDELETEauthorizationRuleName, hybridConnectionName, namespaceName, resourceGroupName, subscriptionIdDeletes 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.

/*+ create */
INSERT INTO azure.relay.hybrid_connections_authorization_rules (
authorizationRuleName,
hybridConnectionName,
namespaceName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ authorizationRuleName }}',
'{{ hybridConnectionName }}',
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

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 }}';