Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"parameters": {
"namespaceName": "sdk-Namespace-6019",
"resourceGroupName": "ResourceGroup",
"api-version": "2017-04-01",
"subscriptionId": "Subscription"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subscriptionid/resourceGroups/resourcegroupid/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-9659/networkrulesets/default",
"name": "default",
"type": "Microsoft.ServiceBus/Namespaces/NetworkRuleSet",
"properties": {
"defaultAction": "Deny",
"virtualNetworkRules": [
{
"subnet": {
"id": "/subscriptions/subscriptionid/resourcegroups/resourcegroupid/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet2"
},
"ignoreMissingVnetServiceEndpoint": true
},
{
"subnet": {
"id": "/subscriptions/subscriptionid/resourcegroups/resourcegroupid/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet3"
},
"ignoreMissingVnetServiceEndpoint": false
},
{
"subnet": {
"id": "/subscriptions/subscriptionid/resourcegroups/resourcegroupid/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet6"
},
"ignoreMissingVnetServiceEndpoint": false
}
],
"ipRules": [
{
"ipMask": "1.1.1.1",
"action": "Allow"
},
{
"ipMask": "1.1.1.2",
"action": "Allow"
},
{
"ipMask": "1.1.1.3",
"action": "Allow"
},
{
"ipMask": "1.1.1.4",
"action": "Allow"
},
{
"ipMask": "1.1.1.5",
"action": "Allow"
}
]
}
}
]

}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3212,6 +3212,51 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/networkRuleSets": {
"get": {
"tags": [
"Namespaces"
],
"x-ms-examples": {
"NameSpaceNetworkRuleSetList": {
"$ref": "./examples/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetList.json"
}
},
"operationId": "Namespaces_ListNetworkRuleSets",
"description": "Gets list of NetworkRuleSet for a Namespace.",
"parameters": [
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/NamespaceNameParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "List of NetworkRuleSets for Namespace successfully returned.",
"schema": {
"$ref": "#/definitions/NetworkRuleSetListResult"
}
},
"default": {
"description": "ServiceBus error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add x-ms-pageable declaration to this API (see other places in this file for reference).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolved

},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -4185,10 +4230,11 @@
"description": "The SQL expression. e.g. MyProperty='ABC'"
},
"compatibilityLevel": {
"readOnly": true,
"format": "int32",
"type": "integer",
"default": 20,
"minimum": 20,
"maximum": 20,
"description": "This property is reserved for future use. An integer value showing the compatibility level, currently hard-coded to 20."
},
"requiresPreprocessing": {
Expand Down Expand Up @@ -4716,6 +4762,22 @@
}
],
"description": "Description of NetworkRuleSet resource."
},
"NetworkRuleSetListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/NetworkRuleSet"
},
"description": "Result of the List NetworkRuleSet operation."
},
"nextLink": {
"type": "string",
"description": "Link to the next set of results. Not empty if Value contains incomplete list of NetworkRuleSet."
}
},
"description": "The response of the List NetworkRuleSet operation."
}
},
"parameters": {
Expand Down