Skip to main content

wcf_relays

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

Overview

Namewcf_relays
TypeResource
Idazure.relay.wcf_relays

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 of the WCF relay.
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
getSELECTnamespaceName, relayName, resourceGroupName, subscriptionIdReturns the description for the specified WCF relay.
list_by_namespaceSELECTnamespaceName, resourceGroupName, subscriptionIdLists the WCF relays within the namespace.
create_or_updateINSERTnamespaceName, relayName, resourceGroupName, subscriptionIdCreates or updates a WCF relay. This operation is idempotent.
deleteDELETEnamespaceName, relayName, resourceGroupName, subscriptionIdDeletes a WCF relay.
regenerate_keysEXECauthorizationRuleName, namespaceName, relayName, resourceGroupName, subscriptionId, data__keyTypeRegenerates the primary or secondary connection strings to the WCF relay.

SELECT examples

Lists the WCF relays within the namespace.

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

INSERT example

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

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

DELETE example

Deletes the specified wcf_relays resource.

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