Skip to main content

wcf_relays_authorization_rules

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

Overview

Namewcf_relays_authorization_rules
TypeResource
Idazure.relay.wcf_relays_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, namespaceName, relayName, resourceGroupName, subscriptionIdGet authorizationRule for a WCF relay by name.
listSELECTnamespaceName, relayName, resourceGroupName, subscriptionIdAuthorization rules for a WCF relay.
create_or_updateINSERTauthorizationRuleName, namespaceName, relayName, resourceGroupName, subscriptionIdCreates or updates an authorization rule for a WCF relay.
deleteDELETEauthorizationRuleName, namespaceName, relayName, resourceGroupName, subscriptionIdDeletes a WCF relay authorization rule.

SELECT examples

Authorization rules for a WCF relay.

SELECT
id,
name,
location,
properties,
systemData,
type
FROM azure.relay.wcf_relays_authorization_rules
WHERE namespaceName = '{{ namespaceName }}'
AND relayName = '{{ relayName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new wcf_relays_authorization_rules resource.

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

DELETE example

Deletes the specified wcf_relays_authorization_rules resource.

/*+ delete */
DELETE FROM azure.relay.wcf_relays_authorization_rules
WHERE authorizationRuleName = '{{ authorizationRuleName }}'
AND namespaceName = '{{ namespaceName }}'
AND relayName = '{{ relayName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';