diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/EventHub.json b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/EventHub.json index ff43617d3d09..a61419e0a5db 100644 --- a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/EventHub.json +++ b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/EventHub.json @@ -160,7 +160,7 @@ "description": "Lists the available Namespaces within a resource group.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -200,10 +200,10 @@ "description": "Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { "name": "parameters", @@ -260,10 +260,10 @@ "description": "Deletes an existing namespace. This operation also removes all associated resources under the namespace.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -302,10 +302,10 @@ "description": "Gets the description of the specified namespace.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -346,10 +346,10 @@ "description": "Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { "name": "parameters", @@ -404,10 +404,10 @@ "description": "Gets messaging plan for specified namespace.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -444,10 +444,10 @@ "description": "Gets a list of authorization rules for a Namespace.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -487,13 +487,13 @@ "description": "Creates or updates an AuthorizationRule for a Namespace.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/authorizationRuleNameParameter" + "$ref": "#/parameters/AuthorizationRuleNameParameter" }, { "name": "parameters", @@ -537,13 +537,13 @@ "description": "Deletes an AuthorizationRule for a Namespace.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/authorizationRuleNameParameter" + "$ref": "#/parameters/AuthorizationRuleNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -578,13 +578,13 @@ "description": "Gets an AuthorizationRule for a Namespace by rule name.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/authorizationRuleNameParameter" + "$ref": "#/parameters/AuthorizationRuleNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -621,13 +621,13 @@ "description": "Gets the primary and secondary connection strings for the Namespace.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/authorizationRuleNameParameter" + "$ref": "#/parameters/AuthorizationRuleNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -664,13 +664,13 @@ "description": "Regenerates the primary or secondary connection strings for the specified Namespace.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/authorizationRuleNameParameter" + "$ref": "#/parameters/AuthorizationRuleNameParameter" }, { "name": "parameters", @@ -722,10 +722,10 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { "name": "parameters", @@ -765,10 +765,10 @@ "description": "Gets all Alias(Disaster Recovery configurations)", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -808,13 +808,13 @@ "description": "Creates or updates a new Alias(Disaster Recovery configuration)", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/aliasNameParameter" + "$ref": "#/parameters/AliasNameParameter" }, { "name": "parameters", @@ -861,13 +861,13 @@ "description": "Deletes an Alias(Disaster Recovery configuration)", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/aliasNameParameter" + "$ref": "#/parameters/AliasNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -899,13 +899,13 @@ "description": "Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/aliasNameParameter" + "$ref": "#/parameters/AliasNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -942,13 +942,13 @@ "description": "This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/aliasNameParameter" + "$ref": "#/parameters/AliasNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -982,13 +982,13 @@ "description": "envokes GEO DR failover and reconfigure the alias to point to the secondary namespace", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/aliasNameParameter" + "$ref": "#/parameters/AliasNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1022,13 +1022,13 @@ "description": "Gets a list of authorization rules for a Namespace.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/aliasNameParameter" + "$ref": "#/parameters/AliasNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1068,16 +1068,16 @@ "description": "Gets an AuthorizationRule for a Namespace by rule name.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/aliasNameParameter" + "$ref": "#/parameters/AliasNameParameter" }, { - "$ref": "#/parameters/authorizationRuleNameParameter" + "$ref": "#/parameters/AuthorizationRuleNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1114,16 +1114,16 @@ "description": "Gets the primary and secondary connection strings for the Namespace.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/aliasNameParameter" + "$ref": "#/parameters/AliasNameParameter" }, { - "$ref": "#/parameters/authorizationRuleNameParameter" + "$ref": "#/parameters/AuthorizationRuleNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1160,10 +1160,10 @@ "description": "Gets all the Event Hubs in a Namespace.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1209,13 +1209,13 @@ "description": "Creates or updates a new Event Hub as a nested resource within a Namespace.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/eventHubNameParameter" + "$ref": "#/parameters/EventHubNameParameter" }, { "name": "parameters", @@ -1259,13 +1259,13 @@ "description": "Deletes an Event Hub from the specified Namespace and resource group.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/eventHubNameParameter" + "$ref": "#/parameters/EventHubNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1300,13 +1300,13 @@ "description": "Gets an Event Hubs description for the specified Event Hub.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/eventHubNameParameter" + "$ref": "#/parameters/EventHubNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1343,13 +1343,13 @@ "description": "Gets the authorization rules for an Event Hub.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/eventHubNameParameter" + "$ref": "#/parameters/EventHubNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1389,16 +1389,16 @@ "description": "Creates or updates an AuthorizationRule for the specified Event Hub.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/eventHubNameParameter" + "$ref": "#/parameters/EventHubNameParameter" }, { - "$ref": "#/parameters/authorizationRuleNameParameter" + "$ref": "#/parameters/AuthorizationRuleNameParameter" }, { "name": "parameters", @@ -1442,16 +1442,16 @@ "description": "Gets an AuthorizationRule for an Event Hub by rule name.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/eventHubNameParameter" + "$ref": "#/parameters/EventHubNameParameter" }, { - "$ref": "#/parameters/authorizationRuleNameParameter" + "$ref": "#/parameters/AuthorizationRuleNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1486,16 +1486,16 @@ "description": "Deletes an Event Hub AuthorizationRule.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/eventHubNameParameter" + "$ref": "#/parameters/EventHubNameParameter" }, { - "$ref": "#/parameters/authorizationRuleNameParameter" + "$ref": "#/parameters/AuthorizationRuleNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1532,16 +1532,16 @@ "description": "Gets the ACS and SAS connection strings for the Event Hub.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/eventHubNameParameter" + "$ref": "#/parameters/EventHubNameParameter" }, { - "$ref": "#/parameters/authorizationRuleNameParameter" + "$ref": "#/parameters/AuthorizationRuleNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1578,16 +1578,16 @@ "description": "Regenerates the ACS and SAS connection strings for the Event Hub.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/eventHubNameParameter" + "$ref": "#/parameters/EventHubNameParameter" }, { - "$ref": "#/parameters/authorizationRuleNameParameter" + "$ref": "#/parameters/AuthorizationRuleNameParameter" }, { "name": "parameters", @@ -1633,16 +1633,16 @@ "description": "Creates or updates an Event Hubs consumer group as a nested resource within a Namespace.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/eventHubNameParameter" + "$ref": "#/parameters/EventHubNameParameter" }, { - "$ref": "#/parameters/consumerGroupNameParameter" + "$ref": "#/parameters/ConsumerGroupNameParameter" }, { "name": "parameters", @@ -1686,16 +1686,16 @@ "description": "Deletes a consumer group from the specified Event Hub and resource group.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/eventHubNameParameter" + "$ref": "#/parameters/EventHubNameParameter" }, { - "$ref": "#/parameters/consumerGroupNameParameter" + "$ref": "#/parameters/ConsumerGroupNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1730,16 +1730,16 @@ "description": "Gets a description for the specified consumer group.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/eventHubNameParameter" + "$ref": "#/parameters/EventHubNameParameter" }, { - "$ref": "#/parameters/consumerGroupNameParameter" + "$ref": "#/parameters/ConsumerGroupNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1776,13 +1776,13 @@ "description": "Gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the Namespace.", "parameters": [ { - "$ref": "#/parameters/resourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "$ref": "#/parameters/NamespaceNameParameter" }, { - "$ref": "#/parameters/eventHubNameParameter" + "$ref": "#/parameters/EventHubNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1835,7 +1835,7 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/skuNameParameter" + "$ref": "#/parameters/SkuNameParameter" } ], "responses": { @@ -1856,6 +1856,376 @@ "nextLinkName": "nextLink" } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/ipfilterrules": { + "get": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_ListIPFilterRules", + "x-ms-examples": { + "ListIpFilterRules": { + "$ref": "./examples/NameSpaces/IPFilterRule/EHNameSpaceIPFilterRuleListAll.json" + } + }, + "description": "Gets a list of IP Filter rules for a Namespace.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Namespace IpFilterRule successfully returned.", + "schema": { + "$ref": "#/definitions/IpFilterRuleListResult" + } + }, + "default": { + "description": "Eventhub error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/ipfilterrules/{ipFilterRuleName}": { + "put": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_CreateOrUpdateIpFilterRule", + "x-ms-examples": { + "NameSpaceIpFilterRuleCreate": { + "$ref": "./examples/NameSpaces/IPFilterRule/EHNameSpaceIpFilterRuleCreateorUpdate.json" + } + }, + "description": "Creates or updates an IpFilterRule for a Namespace.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceNameParameter" + }, + { + "$ref": "#/parameters/IPFilterRuleNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/IpFilterRule" + }, + "description": "The Namespace IpFilterRule." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Namespace IpFilterRule created", + "schema": { + "$ref": "#/definitions/IpFilterRule" + } + }, + "default": { + "description": "Eventhub error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_DeleteIpFilterRule", + "x-ms-examples": { + "NameSpaceIpFilterRuleDelete": { + "$ref": "./examples/NameSpaces/IPFilterRule/EHNameSpaceIpFilterRuleDelete.json" + } + }, + "description": "Deletes an IpFilterRule for a Namespace.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceNameParameter" + }, + { + "$ref": "#/parameters/IPFilterRuleNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "No content." + }, + "200": { + "description": "Namespace IpFilterRule successfully deleted." + }, + "default": { + "description": "Eventhub error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_GetIpFilterRule", + "x-ms-examples": { + "NameSpaceIpFilterRuleGet": { + "$ref": "./examples/NameSpaces/IPFilterRule/EHNameSpaceIpFilterRuleGet.json" + } + }, + "description": "Gets an IpFilterRule for a Namespace by rule name.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceNameParameter" + }, + { + "$ref": "#/parameters/IPFilterRuleNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Namespace IpFilterRule returned successfully.", + "schema": { + "$ref": "#/definitions/IpFilterRule" + } + }, + "default": { + "description": "Eventhub error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/virtualnetworkrules": { + "get": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_ListVirtualNetworkRules", + "x-ms-examples": { + "ListIpFilterRules": { + "$ref": "./examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleListAll.json" + } + }, + "description": "Gets a list of VirtualNetwork rules for a Namespace.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Namespace VirtualNetworkRule successfully returned.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRuleListResult" + } + }, + "default": { + "description": "Eventhub error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/virtualnetworkrules/{virtualNetworkRuleName}": { + "put": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_CreateOrUpdateVirtualNetworkRule", + "x-ms-examples": { + "NameSpaceVirtualNetworkRuleCreate": { + "$ref": "./examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleCreateorUpdate.json" + } + }, + "description": "Creates or updates an VirtualNetworkRule for a Namespace.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceNameParameter" + }, + { + "$ref": "#/parameters/VirtualNetworkRuleNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + }, + "description": "The Namespace VirtualNetworkRule." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Namespace VirtualNetworkRule created", + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + }, + "default": { + "description": "Eventhub error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_DeleteVirtualNetworkRule", + "x-ms-examples": { + "NameSpaceVirtualNetworkRuleDelete": { + "$ref": "./examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleDelete.json" + } + }, + "description": "Deletes an VirtualNetworkRule for a Namespace.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceNameParameter" + }, + { + "$ref": "#/parameters/VirtualNetworkRuleNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "No content." + }, + "200": { + "description": "Namespace VirtualNetworkRule successfully deleted." + }, + "default": { + "description": "Eventhub error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_GetVirtualNetworkRule", + "x-ms-examples": { + "NameSpaceVirtualNetworkRuleGet": { + "$ref": "./examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleGet.json" + } + }, + "description": "Gets an VirtualNetworkRule for a Namespace by rule name.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/NamespaceNameParameter" + }, + { + "$ref": "#/parameters/VirtualNetworkRuleNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Namespace VirtualNetworkRule returned successfully.", + "schema": { + "$ref": "#/definitions/VirtualNetworkRule" + } + }, + "default": { + "description": "Eventhub error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } } }, "definitions": { @@ -1972,6 +2342,10 @@ "maximum": 20, "minimum": 0, "description": "Upper limit of throughput units when AutoInflate is enabled, vaule should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)" + }, + "kafkaEnabled": { + "type": "boolean", + "description": "Value that indicates whether Kafka is enabled for eventhub namespace." } }, "description": "Namespace properties supplied for create namespace operation." @@ -2604,6 +2978,94 @@ } ], "description": "Messaging Plan for the namespace" + }, + "IpFilterRule": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "properties": { + "ipMask": { + "type": "string", + "description": "IP Mask" + }, + "action": { + "type": "string", + "description": "The IP Filter Action", + "enum": [ + "Accept", + "Reject" + ], + "x-ms-enum": { + "name": "IPAction", + "modelAsString": true + } + }, + "filterName": { + "type": "string", + "description": "IP Filter name" + } + }, + "description": "Properties supplied to create or update IpFilterRules" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Single item in a List or Get IpFilterRules operation" + }, + "IpFilterRuleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/IpFilterRule" + }, + "description": "Result of the List IpFilter Rules operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results. Not empty if Value contains an incomplete list of IpFilter Rules" + } + }, + "description": "The response from the List namespace operation." + }, + "VirtualNetworkRule": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "properties": { + "virtualNetworkSubnetId": { + "type": "string", + "description": "ARM ID of Virtual Network Subnet" + } + }, + "description": "Properties supplied to create or update VirtualNetworkRules" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Single item in a List or Get VirtualNetworkRules operation" + }, + "VirtualNetworkRuleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualNetworkRule" + }, + "description": "Result of the List VirtualNetwork Rules operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results. Not empty if Value contains an incomplete list of VirtualNetwork Rules" + } + }, + "description": "The response from the List namespace operation." } }, "parameters": { @@ -2621,7 +3083,7 @@ "type": "string", "description": "Client API Version." }, - "resourceGroupNameParameter": { + "ResourceGroupNameParameter": { "name": "resourceGroupName", "in": "path", "required": true, @@ -2631,7 +3093,7 @@ "x-ms-parameter-location": "method", "description": "Name of the resource group within the azure subscription." }, - "namespaceNameParameter": { + "NamespaceNameParameter": { "name": "namespaceName", "in": "path", "required": true, @@ -2641,7 +3103,7 @@ "x-ms-parameter-location": "method", "description": "The Namespace name" }, - "authorizationRuleNameParameter": { + "AuthorizationRuleNameParameter": { "name": "authorizationRuleName", "in": "path", "required": true, @@ -2650,7 +3112,7 @@ "x-ms-parameter-location": "method", "description": "The authorization rule name." }, - "eventHubNameParameter": { + "EventHubNameParameter": { "name": "eventHubName", "in": "path", "required": true, @@ -2659,7 +3121,7 @@ "x-ms-parameter-location": "method", "description": "The Event Hub name" }, - "aliasNameParameter": { + "AliasNameParameter": { "name": "alias", "in": "path", "required": true, @@ -2669,7 +3131,7 @@ "x-ms-parameter-location": "method", "description": "The Disaster Recovery configuration name" }, - "consumerGroupNameParameter": { + "ConsumerGroupNameParameter": { "name": "consumerGroupName", "in": "path", "required": true, @@ -2679,7 +3141,7 @@ "x-ms-parameter-location": "method", "description": "The consumer group name" }, - "skuNameParameter": { + "SkuNameParameter": { "name": "sku", "in": "path", "required": true, @@ -2708,6 +3170,24 @@ "minimum": 1, "maximum": 1000, "x-ms-parameter-location": "method" + }, + "IPFilterRuleNameParameter": { + "name": "ipFilterRuleName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "x-ms-parameter-location": "method", + "description": "The IP Filter Rule name." + }, + "VirtualNetworkRuleNameParameter": { + "name": "virtualNetworkRuleName", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "x-ms-parameter-location": "method", + "description": "The Virtual Network Rule name." } } } \ No newline at end of file diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/IPFilterRule/EHNameSpaceIPFilterRuleListAll.json b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/IPFilterRule/EHNameSpaceIPFilterRuleListAll.json new file mode 100644 index 000000000000..58f7d161de90 --- /dev/null +++ b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/IPFilterRule/EHNameSpaceIPFilterRuleListAll.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace-5232", + "resourceGroupName": "ResourceGroup", + "api-version": "2017-04-01", + "subscriptionId": "Subscription" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/Subscription/resourceGroups/ResourceGroup/providers/Microsoft.EventHub/namespaces/sdk-Namespace-5232/ipfilterrules/sdk-IPFilterRules-7337", + "name": "sdk-IPFilterRules-7337", + "type": "Microsoft.EventHub/Namespaces/IpFilterRules", + "properties": { + "ipMask": "13.78.143.246/32", + "action": "Accept", + "filterName": "sdk-IPFilterRules-7337" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/IPFilterRule/EHNameSpaceIpFilterRuleCreateorUpdate.json b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/IPFilterRule/EHNameSpaceIpFilterRuleCreateorUpdate.json new file mode 100644 index 000000000000..0021793cc4ad --- /dev/null +++ b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/IPFilterRule/EHNameSpaceIpFilterRuleCreateorUpdate.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace-5232", + "resourceGroupName": "ResourceGroup", + "api-version": "2017-04-01", + "subscriptionId": "Subscription", + "ipFilterRuleName": "sdk-IPFilterRules-7337", + "parameters": { + "properties": { + "ipMask": "13.78.143.246/32", + "action": "Accept", + "filterName": "sdk-IPFilterRules-7337" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/Subscription/resourceGroups/ResourceGroup/providers/Microsoft.EventHub/namespaces/sdk-Namespace-5232/ipfilterrules/sdk-IPFilterRules-7337", + "name": "sdk-IPFilterRules-7337", + "type": "Microsoft.EventHub/Namespaces/IpFilterRules", + "properties": { + "ipMask": "13.78.143.246/32", + "action": "Accept", + "filterName": "sdk-IPFilterRules-7337" + } + } + } + } +} \ No newline at end of file diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/IPFilterRule/EHNameSpaceIpFilterRuleDelete.json b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/IPFilterRule/EHNameSpaceIpFilterRuleDelete.json new file mode 100644 index 000000000000..4b921fa62918 --- /dev/null +++ b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/IPFilterRule/EHNameSpaceIpFilterRuleDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace-5232", + "resourceGroupName": "ResourceGroup", + "api-version": "2017-04-01", + "subscriptionId": "Subscription", + "ipFilterRuleName": "sdk-IPFilterRules-7337" + }, + "responses": { + "200": { }, + "204": { } + } +} diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/IPFilterRule/EHNameSpaceIpFilterRuleGet.json b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/IPFilterRule/EHNameSpaceIpFilterRuleGet.json new file mode 100644 index 000000000000..30970870562b --- /dev/null +++ b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/IPFilterRule/EHNameSpaceIpFilterRuleGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace-5232", + "resourceGroupName": "ResourceGroup", + "api-version": "2017-04-01", + "subscriptionId": "Subscription", + "ipFilterRuleName": "sdk-IPFilterRules-7337" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/Subscription/resourceGroups/ResourceGroup/providers/Microsoft.EventHub/namespaces/sdk-Namespace-5232/ipfilterrules/sdk-IPFilterRules-7337", + "name": "sdk-IPFilterRules-7337", + "type": "Microsoft.EventHub/Namespaces/IpFilterRules", + "properties": { + "ipMask": "13.78.143.246/32", + "action": "Accept", + "filterName": "sdk-IPFilterRules-7337" + } + } + } + } +} \ No newline at end of file diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/IPFilterRule/EHNameSpaceIpFilterRuleUpdate.json b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/IPFilterRule/EHNameSpaceIpFilterRuleUpdate.json new file mode 100644 index 000000000000..b7a5a6803a03 --- /dev/null +++ b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/IPFilterRule/EHNameSpaceIpFilterRuleUpdate.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace-5849", + "resourceGroupName": "ResourceGroup", + "api-version": "2017-04-01", + "subscriptionId": "Subscription", + "ipFilterRuleName": "sdk-IPFilterRules-7337", + "parameters": { + "properties": { + "ipMask": "13.78.143.246/32", + "action": "Accept", + "filterName": "sdk-IPFilterRules-7337" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-NotificationHubs-AustraliaEast/providers/Microsoft.EventHub/namespaces/sdk-Namespace-5232/ipfilterrules/sdk-IPFilterRules-7337", + "name": "sdk-IPFilterRules-7337", + "type": "Microsoft.EventHub/Namespaces/IpFilterRules", + "properties": { + "ipMask": "13.78.143.246/32", + "action": "Accept", + "filterName": "sdk-IPFilterRules-7337" + } + } + } + } +} \ No newline at end of file diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleCreateorUpdate.json b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleCreateorUpdate.json new file mode 100644 index 000000000000..75d21c9265a5 --- /dev/null +++ b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleCreateorUpdate.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace-6019", + "resourceGroupName": "ResourceGroup", + "api-version": "2017-04-01", + "subscriptionId": "Subscription", + "virtualNetworkRuleName": "sdk-VirtualNetworkRules-9191", + "parameters": { + "properties": { + "virtualNetworkSubnetId": "/subscriptions/Subscription/resourceGroups/sbehvnettest/providers/Microsoft.Network/virtualNetworks/sbehvnettest/subnets/default" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/Subscription/resourceGroups/ResourceGroup/providers/Microsoft.EventHub/namespaces/sdk-Namespace-6019/virtualnetworkrules/sdk-VirtualNetworkRules-9191", + "name": "sdk-VirtualNetworkRules-9191", + "type": "Microsoft.EventHub/Namespaces/VirtualNetworkRules", + "properties": { + "virtualNetworkSubnetId": "/subscriptions/Subscription/resourceGroups/ResourceGroup/providers/Microsoft.Network/virtualNetworks/sbehvnettest/subnets/default" + } + } + } + } +} diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleDelete.json b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleDelete.json new file mode 100644 index 000000000000..bd3dd401c8d3 --- /dev/null +++ b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace-6019", + "resourceGroupName": "ResourceGroup", + "api-version": "2017-04-01", + "subscriptionId": "Subscription", + "virtualNetworkRuleName": "sdk-VirtualNetworkRules-9191" + }, + "responses": { + "200": { }, + "204": { } + } +} \ No newline at end of file diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleGet.json b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleGet.json new file mode 100644 index 000000000000..6c05fa0cf72f --- /dev/null +++ b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleGet.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace-6019", + "resourceGroupName": "ResourceGroup", + "api-version": "2017-04-01", + "subscriptionId": "Subscription", + "virtualNetworkRuleName": "sdk-VirtualNetworkRules-9191" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/Subscription/resourceGroups/ResourceGroup/providers/Microsoft.EventHub/namespaces/sdk-Namespace-6019/virtualnetworkrules/sdk-VirtualNetworkRules-9191", + "name": "sdk-VirtualNetworkRules-9191", + "type": "Microsoft.EventHub/Namespaces/VirtualNetworkRules", + "properties": { + "virtualNetworkSubnetId": "/subscriptions/Subscription/resourceGroups/ResourceGroup/providers/Microsoft.Network/virtualNetworks/sbehvnettest/subnets/default" + } + } + } + } +} diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleListAll.json b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleListAll.json new file mode 100644 index 000000000000..d5ba67e22ce3 --- /dev/null +++ b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleListAll.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace-6019", + "resourceGroupName": "ResourceGroup", + "api-version": "2017-04-01", + "subscriptionId": "Subscription" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/Subscription/resourceGroups/ResourceGroup/providers/Microsoft.EventHub/namespaces/sdk-Namespace-6019/virtualnetworkrules/sdk-VirtualNetworkRules-9191", + "name": "sdk-VirtualNetworkRules-9191", + "type": "Microsoft.EventHub/Namespaces/VirtualNetworkRules", + "properties": { + "virtualNetworkSubnetId": "/subscriptions/Subscription/resourceGroups/ResourceGroup/providers/Microsoft.Network/virtualNetworks/sbehvnettest/subnets/default" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleupdate.json b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleupdate.json new file mode 100644 index 000000000000..2bf72dee2cf0 --- /dev/null +++ b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/examples/NameSpaces/VirtualNetworkRule/EHNameSpaceVirtualNetworkRuleupdate.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace-6019", + "resourceGroupName": "ResourceGroup", + "api-version": "2017-04-01", + "subscriptionId": "Subscription", + "virtualNetworkRuleName": "sdk-VirtualNetworkRules-9191", + "parameters": { + "properties": { + "virtualNetworkSubnetId": "/subscriptions/Subscription/resourceGroups/sbehvnettest/providers/Microsoft.Network/virtualNetworks/sbehvnettest/subnets/default" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/Subscription/resourceGroups/ResourceGroup/providers/Microsoft.EventHub/namespaces/sdk-Namespace-6019/virtualnetworkrules/sdk-VirtualNetworkRules-9191", + "name": "sdk-VirtualNetworkRules-9191", + "type": "Microsoft.EventHub/Namespaces/VirtualNetworkRules", + "properties": { + "virtualNetworkSubnetId": "/subscriptions/Subscription/resourceGroups/ResourceGroup/providers/Microsoft.Network/virtualNetworks/sbehvnettest/subnets/default" + } + } + } + } +} \ No newline at end of file