namespaces
Creates, updates, deletes, gets or lists a namespaces
resource.
Overview
Name | namespaces |
Type | Resource |
Id | azure.event_hubs.namespaces |
Fields
Name | Datatype | Description |
---|---|---|
identity | object | Properties to configure Identity for Bring your Own Keys |
location | string | Resource location. |
properties | `` | Namespace properties supplied for create namespace operation. |
sku | object | SKU parameters supplied to the create namespace operation |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | namespaceName, resourceGroupName, subscriptionId | Gets the description of the specified namespace. |
list | SELECT | subscriptionId | Lists all the available Namespaces within a subscription, irrespective of the resource groups. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Lists the available Namespaces within a resource group. |
create_or_update | INSERT | namespaceName, resourceGroupName, subscriptionId | Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. |
delete | DELETE | namespaceName, resourceGroupName, subscriptionId | Deletes an existing namespace. This operation also removes all associated resources under the namespace. |
update | UPDATE | namespaceName, resourceGroupName, subscriptionId | Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. |
check_name_availability | EXEC | subscriptionId, data__name | Check the give Namespace name availability. |
regenerate_keys | EXEC | authorizationRuleName, namespaceName, resourceGroupName, subscriptionId, data__keyType | Regenerates the primary or secondary connection strings for the specified Namespace. |
SELECT
examples
Lists all the available Namespaces within a subscription, irrespective of the resource groups.
SELECT
identity,
location,
properties,
sku,
systemData,
tags
FROM azure.event_hubs.namespaces
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new namespaces
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.event_hubs.namespaces (
namespaceName,
resourceGroupName,
subscriptionId,
sku,
identity,
properties,
location,
tags
)
SELECT
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ sku }}',
'{{ identity }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: sku
value:
- name: name
value: string
- name: tier
value: string
- name: capacity
value: integer
- name: identity
value:
- name: principalId
value: string
- name: tenantId
value: string
- name: type
value: string
- name: userAssignedIdentities
value: object
- 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: properties
value: string
- name: location
value: string
- name: tags
value: object
UPDATE
example
Updates a namespaces
resource.
/*+ update */
UPDATE azure.event_hubs.namespaces
SET
sku = '{{ sku }}',
identity = '{{ identity }}',
properties = '{{ properties }}',
location = '{{ location }}',
tags = '{{ tags }}'
WHERE
namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified namespaces
resource.
/*+ delete */
DELETE FROM azure.event_hubs.namespaces
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';