Skip to content

Commit

Permalink
Add new NSP api versions (#26283)
Browse files Browse the repository at this point in the history
* Add API specs of the base version

* version update from the base version

* Add service tags property and update Readme

---------

Co-authored-by: Kaushal Kumar <[email protected]>
  • Loading branch information
2 people authored and jnlycklama committed Nov 8, 2023
1 parent 9fa791b commit 617bbe0
Show file tree
Hide file tree
Showing 61 changed files with 7,033 additions and 0 deletions.
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

0 comments on commit 617bbe0

Please sign in to comment.