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

Adding APIs for the new resource - Network Security Perimeter (NSP) #14433

Merged
merged 19 commits into from
Jul 15, 2021
Merged
Show file tree
Hide file tree
Changes from 4 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": "2021-02-01-preview",
"subscriptionId": "subId",
"resourceGroupName": "rg1",
"networkSecurityPerimeterName": "testNSP1"
},
"responses": {
"200": {},
"204": {}
}
}
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": {
Copy link
Contributor

Choose a reason for hiding this comment

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

"body"

Your get call also returns an "etag" property right? might be a good idea to include it here as well to prevent confusions (mainly because your other examples do include an etag property)

Copy link
Contributor Author

@harics24 harics24 May 18, 2021

Choose a reason for hiding this comment

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

Removed everywhere after discussing internally.

"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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"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",
"etag": "sadf-asdf-asdf-asdf",
"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",
"etag": "sadf-asdf-asdf-addf",
"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"
}
}
}
}
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": "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",
"etag": "sadf-asdf-asdf-asdf",
"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",
"etag": "sadf-asdf-asdf-asdf",
"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"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"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",
"etag": "sadf-badf-sasf-basf",
"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",
"etag": "sadf-badf-sasf-basf",
"properties": {
"displayName": "TestNetworkSecurityPerimeter",
"description": "Description of TestNetworkSecurityPerimeter",
"provisioningState": "Succeeded"
}
}
}
}
}
Loading