Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new NSP api versions #26283

Merged
merged 3 commits into from
Oct 25, 2023
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,13 @@
{
"title": "Delete Network Security Perimeter",
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "subId",
"resourceGroupName": "rg1",
"networkSecurityPerimeterName": "testNSP1"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"title": "Get Network Security Perimeter",
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "subId",
"resourceGroupName": "rg1",
"networkSecurityPerimeterName": "nsp1"
},
"responses": {
"200": {
"body": {
"name": "nsp1",
"id": "/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1",
"type": "Microsoft.Network/networkSecurityPerimeters",
"tags": {},
"location": "East US 2 EUAP",
"properties": {
"perimeterGuid": "guid",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"title": "List Network Security Perimeter",
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "subId",
"resourceGroupName": "rg1"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "testNSP1",
"id": "/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/testNSP1",
"type": "Microsoft.Network/networkSecurityPerimeters",
"tags": {},
"location": "East US 2 EUAP",
"properties": {
"perimeterGuid": "guid",
"provisioningState": "Succeeded"
}
},
{
"name": "testNSP2",
"id": "/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/testNSP2",
"type": "Microsoft.Network/networkSecurityPerimeters",
"tags": {},
"location": "East US 2 EUAP",
"properties": {
"perimeterGuid": "guid",
"provisioningState": "Succeeded"
}
}
],
"nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters?api-version=2023-07-01-preview&$skipToken=10"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"title": "List all the Network Security Perimeters in a Subscription",
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "subId"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "testNSP1",
"id": "/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/testNSP1",
"type": "Microsoft.Network/networkSecurityPerimeters",
"tags": {},
"location": "East US 2 EUAP",
"properties": {
"perimeterGuid": "guid",
"provisioningState": "Succeeded"
}
},
{
"name": "testNSP2",
"id": "/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/testNSP2",
"type": "Microsoft.Network/networkSecurityPerimeters",
"tags": {},
"location": "East US 2 EUAP",
"properties": {
"perimeterGuid": "guid",
"provisioningState": "Succeeded"
}
}
],
"nextLink": "{baseurl}/subscriptions/subId/providers/Microsoft.Network/networkSecurityPerimeters?api-version=2023-07-01-preview&$skipToken=10"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"title": "Patch Network Security Perimeter",
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "subId",
"resourceGroupName": "rg1",
"networkSecurityPerimeterName": "nsp1",
"parameters": {
"tags": {
"description": "nsp1"
}
}
},
"responses": {
"200": {
"body": {
"name": "TestNetworkSecurityPerimeter",
"id": "/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/TestNetworkSecurityPerimeter",
"type": "Microsoft.Network/networkSecurityPerimeters",
"tags": {
"description": "nsp1"
},
"location": "East US 2 EUAP",
"properties": {
"perimeterGuid": "guid",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"title": "Create/Update Network Security Perimeter",
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "subId",
"resourceGroupName": "rg1",
"networkSecurityPerimeterName": "nsp1",
"parameters": {
"properties": {}
}
},
"responses": {
"200": {
"body": {
"name": "TestNetworkSecurityPerimeter",
"id": "/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/TestNetworkSecurityPerimeter",
"type": "Microsoft.Network/networkSecurityPerimeters",
"tags": {},
"location": "East US 2 EUAP",
"properties": {
"perimeterGuid": "guid",
"provisioningState": "Succeeded"
}
}
},
"201": {
"body": {
"name": "TestNetworkSecurityPerimeter",
"id": "/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/TestNetworkSecurityPerimeter",
"type": "Microsoft.Network/networkSecurityPerimeters",
"tags": {},
"location": "East US 2 EUAP",
"properties": {
"perimeterGuid": "guid",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"title": "Delete NSP access rule",
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "subId",
"resourceGroupName": "rg1",
"networkSecurityPerimeterName": "nsp1",
"profileName": "profile1",
"accessRuleName": "accessRule1"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"title": "Get NSP Access Rule",
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "subId",
"resourceGroupName": "rg1",
"networkSecurityPerimeterName": "nsp1",
"profileName": "profile1",
"accessRuleName": "accessRule1"
},
"responses": {
"200": {
"body": {
"name": "accessRule1",
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/profile1/accessRules/accessRule1",
"type": "Microsoft.Network/networkSecurityPerimeters/profiles/accessRules",
"properties": {
"provisioningState": "Succeeded",
"direction": "Outbound",
"addressPrefixes": [],
"fullyQualifiedDomainNames": [
"paasrp1.contoso.org",
"paasrp2.contoso.org"
],
"subscriptions": [],
"networkSecurityPerimeters": [],
"emailAddresses": [],
"phoneNumbers": []
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"title": "List NSP Access Rules",
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "subId",
"resourceGroupName": "rg1",
"networkSecurityPerimeterName": "nsp1",
"profileName": "profile1"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "accessRule1",
"id": "/subscriptions/rg1/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/profile1/accessRules/accessRule1",
"type": "Microsoft.Network/networkSecurityPerimeters/profiles/accessRules",
"properties": {
"provisioningState": "Succeeded",
"direction": "Inbound",
"addressPrefixes": [
"10.11.0.0/16",
"10.10.1.0/24"
],
"fullyQualifiedDomainNames": [],
"subscriptions": [],
"networkSecurityPerimeters": [],
"emailAddresses": [],
"phoneNumbers": []
}
},
{
"name": "accessRule2",
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/profile1/accessRules/accessRule2",
"type": "Microsoft.Network/networkSecurityPerimeters/profiles/accessRules",
"properties": {
"provisioningState": "Succeeded",
"direction": "Outbound",
"addressPrefixes": [],
"fullyQualifiedDomainNames": [
"paasrp1.contoso.org",
"paasrp2.contoso.org"
],
"subscriptions": [],
"networkSecurityPerimeters": [],
"emailAddresses": [],
"phoneNumbers": []
}
}
],
"nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/profile1/accessRules?api-version=2023-07-01-preview&$skipToken=10"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"title": "Create/Update NSP access rule",
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "subId",
"resourceGroupName": "rg1",
"networkSecurityPerimeterName": "nsp1",
"profileName": "profile1",
"accessRuleName": "accessRule1",
"parameters": {
"properties": {
"direction": "Inbound",
"addressPrefixes": [
"10.11.0.0/16",
"10.10.1.0/24"
]
}
}
},
"responses": {
"200": {
"body": {
"name": "accessRule1",
"id": "/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/profile1/accessRules/accessRule1",
"type": "Microsoft.Network/networkSecurityPerimeters/profiles/accessRules",
"properties": {
"provisioningState": "Succeeded",
"direction": "Inbound",
"addressPrefixes": [
"10.11.0.0/16",
"10.10.1.0/24"
],
"fullyQualifiedDomainNames": [],
"subscriptions": [],
"networkSecurityPerimeters": [],
"emailAddresses": [],
"phoneNumbers": []
}
}
},
"201": {
"body": {
"name": "accessRule1",
"id": "/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/profile1/accessRules/accessRule1",
"type": "Microsoft.Network/networkSecurityPerimeters/profiles/accessRules",
"properties": {
"provisioningState": "Succeeded",
"direction": "Inbound",
"addressPrefixes": [
"10.11.0.0/16",
"10.10.1.0/24"
],
"fullyQualifiedDomainNames": [],
"subscriptions": [],
"networkSecurityPerimeters": [],
"emailAddresses": [],
"phoneNumbers": []
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"title": "Reconcile NSP access rule",
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "subId",
"resourceGroupName": "rg1",
"networkSecurityPerimeterName": "nsp1",
"profileName": "profile1",
"accessRuleName": "accessRuleName1",
"parameters": {
"properties": {}
}
},
"responses": {
"200": {
"body": {}
}
}
}
Loading