Skip to main content

namespaces_network_rule_sets

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

Overview

Namenamespaces_network_rule_sets
TypeResource
Idazure.service_bus.namespaces_network_rule_sets

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``NetworkRuleSet properties
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, resourceGroupName, subscriptionIdGets NetworkRuleSet for a Namespace.
listSELECTnamespaceName, resourceGroupName, subscriptionIdGets list of NetworkRuleSet for a Namespace.
create_or_updateINSERTnamespaceName, resourceGroupName, subscriptionIdCreate or update NetworkRuleSet for a Namespace.

SELECT examples

Gets NetworkRuleSet for a Namespace.

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

INSERT example

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

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