Skip to main content

event_hubs

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

Overview

Nameevent_hubs
TypeResource
Idazure.event_hubs.event_hubs

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 the Create Or Update Event Hub operation.
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
getSELECTeventHubName, namespaceName, resourceGroupName, subscriptionIdGets an Event Hubs description for the specified Event Hub.
list_by_namespaceSELECTnamespaceName, resourceGroupName, subscriptionIdGets all the Event Hubs in a Namespace.
create_or_updateINSERTeventHubName, namespaceName, resourceGroupName, subscriptionIdCreates or updates a new Event Hub as a nested resource within a Namespace.
deleteDELETEeventHubName, namespaceName, resourceGroupName, subscriptionIdDeletes an Event Hub from the specified Namespace and resource group.
regenerate_keysEXECauthorizationRuleName, eventHubName, namespaceName, resourceGroupName, subscriptionId, data__keyTypeRegenerates the ACS and SAS connection strings for the Event Hub.

SELECT examples

Gets all the Event Hubs in a Namespace.

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

INSERT example

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

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

DELETE example

Deletes the specified event_hubs resource.

/*+ delete */
DELETE FROM azure.event_hubs.event_hubs
WHERE eventHubName = '{{ eventHubName }}'
AND namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';