-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding NSP resource in the Network Manager preview version (#15553)
* Defining the APIs for the new NSP resource * Adding the perimeter associable resources in 02-01-preview * Removing the etags to be same with the 03-01-pre version * Update networkSecurityPerimeter.json Fixing a lint error. Co-authored-by: Hari Prasad Perabattula <[email protected]>
- Loading branch information
Showing
8 changed files
with
658 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...Microsoft.Network/preview/2021-02-01-preview/examples/NetworkSecurityPerimeterDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"title": "Delete Network Security Perimeter", | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "subId", | ||
"resourceGroupName": "rg1", | ||
"networkSecurityPerimeterName": "testNSP1" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...er/Microsoft.Network/preview/2021-02-01-preview/examples/NetworkSecurityPerimeterGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"title": "Get Network Security Perimeter", | ||
"parameters": { | ||
"api-version": "2021-02-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", | ||
"properties": { | ||
"displayName": "nsp1", | ||
"description": "Test Network Security Periemter", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...r/Microsoft.Network/preview/2021-02-01-preview/examples/NetworkSecurityPerimeterList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"title": "List Network Security Perimeter", | ||
"parameters": { | ||
"api-version": "2021-02-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", | ||
"properties": { | ||
"displayName": "TestNetworkSecurityPerimeter1", | ||
"description": "Description for TestNetworkSecurityPerimeter1", | ||
"provisioningState": "Succeeded" | ||
} | ||
}, | ||
{ | ||
"name": "testNSP2", | ||
"id": "/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/testNSP2", | ||
"type": "Microsoft.Network/networkSecurityPerimeters", | ||
"properties": { | ||
"displayName": "TestNetworkSecurityPerimeter2", | ||
"description": "Description for TestNetworkSecurityPerimeter2", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
], | ||
"nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters?api-version=2021-02-01-preview&$skipToken=10" | ||
} | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...icrosoft.Network/preview/2021-02-01-preview/examples/NetworkSecurityPerimeterListAll.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"title": "List all the Network Security Perimeters in a Subscription", | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "subId" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "testNSP1", | ||
"id": "/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/testNSP1", | ||
"type": "Microsoft.Network/networkSecurityPerimeters", | ||
"properties": { | ||
"displayName": "TestNetworkSecurityPerimeter1", | ||
"description": "Description for TestNetworkSecurityPerimeter1", | ||
"provisioningState": "Succeeded" | ||
} | ||
}, | ||
{ | ||
"name": "testNSP2", | ||
"id": "/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/testNSP2", | ||
"type": "Microsoft.Network/networkSecurityPerimeters", | ||
"properties": { | ||
"displayName": "TestNetworkSecurityPerimeter2", | ||
"description": "Description for TestNetworkSecurityPerimeter2", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
], | ||
"nextLink": "{baseurl}/subscriptions/subId/providers/Microsoft.Network/networkSecurityPerimeters?api-version=2021-02-01-preview&$skipToken=10" | ||
} | ||
} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...er/Microsoft.Network/preview/2021-02-01-preview/examples/NetworkSecurityPerimeterPut.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"title": "Create/Update Network Security Perimeter", | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "subId", | ||
"resourceGroupName": "rg1", | ||
"networkSecurityPerimeterName": "nsp1", | ||
"parameters": { | ||
"properties": { | ||
"displayName": "TestNetworkSecurityPerimeter", | ||
"description": "Description of TestNetworkSecurityPerimeter" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "TestNetworkSecurityPerimeter", | ||
"id": "/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/TestNetworkSecurityPerimeter", | ||
"type": "Microsoft.Network/networkSecurityPerimeters", | ||
"properties": { | ||
"displayName": "TestNetworkSecurityPerimeter", | ||
"description": "Description of TestNetworkSecurityPerimeter", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "TestNetworkSecurityPerimeter", | ||
"id": "/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/TestNetworkSecurityPerimeter", | ||
"type": "Microsoft.Network/networkSecurityPerimeters", | ||
"properties": { | ||
"displayName": "TestNetworkSecurityPerimeter", | ||
"description": "Description of TestNetworkSecurityPerimeter", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...crosoft.Network/preview/2021-02-01-preview/examples/PerimeterAssociableResourcesList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"title": "List of resources onboarded for network security perimeter feature (perimeter associable resources).", | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "subId", | ||
"location": "westus" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.Sql.servers", | ||
"id": "/subscriptions/{subscriptionID}/providers/Microsoft.Network/perimeterAssociableResourceTypes/Microsoft.Sql.servers", | ||
"type": "Microsoft.Network/PerimeterAssociableResourceTypes", | ||
"properties": { | ||
"resourceType": "Microsoft.Sql/servers", | ||
"displayName": "Microsoft.Sql/servers", | ||
"publicDnsZones": [ | ||
"database.windows.net" | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.Storage.accounts", | ||
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.Network/perimeterAssociableResourceTypes/Microsoft.Storage.storageAccounts", | ||
"type": "Microsoft.Network/PerimeterAssociableResourceTypes", | ||
"properties": { | ||
"resourceType": "Microsoft.Storage/accounts", | ||
"displayName": "Microsoft.Storage/accounts", | ||
"publicDnsZones": [ | ||
"blob.core.windows.net", | ||
"table.core.windows.net", | ||
"queue.core.windows.net", | ||
"file.core.windows.net" | ||
] | ||
} | ||
} | ||
], | ||
"nextLink": "{baseurl}/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/perimeterAssociableResourceTypes?api-version=2021-02-01-preview&$skipToken=10" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.