Skip to content

Commit 9205777

Browse files
vineetmimrotanandanthony
authored andcommitted
[Hub Generated] Review request for Microsoft.Network to add version preview/2021-02-01-preview (Azure#21040)
* NSP Link API changes * minor fix * fix errors * fix error * fix error * fix lint error * skip location from proxy resource * fix sdk error * fix linter check * immutability flag changes * removed v2 properties. * minor fix * removed default value as it is not supported by swagger * make outbound profile read only * minor change * add x-ms-long-running-operation-options * Fix review comments * minor fix
1 parent 817c1c0 commit 9205777

File tree

10 files changed

+922
-0
lines changed

10 files changed

+922
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"title": "Delete NSP link",
3+
"parameters": {
4+
"api-version": "2021-02-01-preview",
5+
"subscriptionId": "subId",
6+
"resourceGroupName": "rg1",
7+
"networkSecurityPerimeterName": "nsp1",
8+
"linkName": "link1"
9+
},
10+
"responses": {
11+
"200": {},
12+
"202": {
13+
"headers": {
14+
"location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/links/{linkName}/operationResults/{operationId}?api-version={api-version}"
15+
}
16+
},
17+
"204": {}
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"title": "Get NSP Link",
3+
"parameters": {
4+
"api-version": "2021-02-01-preview",
5+
"subscriptionId": "subId",
6+
"resourceGroupName": "rg1",
7+
"networkSecurityPerimeterName": "nsp1",
8+
"linkName": "link1"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"name": "link1",
14+
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/links/link1",
15+
"type": "Microsoft.Network/networkSecurityPerimeters/links",
16+
"properties": {
17+
"provisioningState": "Succeeded",
18+
"autoApprovedRemotePerimeterResourceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp2",
19+
"remotePerimeterGuid": "guid",
20+
"localInboundProfiles": [
21+
"*"
22+
],
23+
"localOutboundProfiles": [
24+
"*"
25+
],
26+
"remoteInboundProfiles": [
27+
"*"
28+
],
29+
"remoteOutboundProfiles": [
30+
"*"
31+
],
32+
"description": "Auto Approved",
33+
"status": "Approved"
34+
}
35+
}
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"title": "List NSP Links",
3+
"parameters": {
4+
"api-version": "2021-02-01-preview",
5+
"subscriptionId": "subId",
6+
"resourceGroupName": "rg1",
7+
"networkSecurityPerimeterName": "nsp1"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"name": "link1",
15+
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/links/link1",
16+
"type": "Microsoft.Network/networkSecurityPerimeters/links",
17+
"properties": {
18+
"provisioningState": "Succeeded",
19+
"autoApprovedRemotePerimeterResourceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp2",
20+
"remotePerimeterGuid": "guid",
21+
"localInboundProfiles": [
22+
"*"
23+
],
24+
"localOutboundProfiles": [
25+
"*"
26+
],
27+
"remoteInboundProfiles": [
28+
"*"
29+
],
30+
"remoteOutboundProfiles": [
31+
"*"
32+
],
33+
"description": "Auto Approved",
34+
"status": "Approved"
35+
}
36+
}
37+
],
38+
"nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/links?api-version=2021-02-01-preview&$skipToken=10"
39+
}
40+
}
41+
}
42+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"title": "Create/Update NSP link",
3+
"parameters": {
4+
"api-version": "2021-02-01-preview",
5+
"subscriptionId": "subId",
6+
"resourceGroupName": "rg1",
7+
"networkSecurityPerimeterName": "nsp1",
8+
"linkName": "link1",
9+
"parameters": {
10+
"properties": {
11+
"autoApprovedRemotePerimeterResourceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp2"
12+
}
13+
}
14+
},
15+
"responses": {
16+
"200": {
17+
"body": {
18+
"name": "link1",
19+
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/links/link1",
20+
"type": "Microsoft.Network/networkSecurityPerimeters/links",
21+
"properties": {
22+
"provisioningState": "Succeeded",
23+
"autoApprovedRemotePerimeterResourceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp2",
24+
"remotePerimeterGuid": "guid",
25+
"localInboundProfiles": [
26+
"*"
27+
],
28+
"localOutboundProfiles": [
29+
"*"
30+
],
31+
"remoteInboundProfiles": [
32+
"*"
33+
],
34+
"remoteOutboundProfiles": [
35+
"*"
36+
],
37+
"description": "Auto Approved",
38+
"status": "Approved"
39+
}
40+
}
41+
},
42+
"201": {
43+
"body": {
44+
"name": "link1",
45+
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/links/link1",
46+
"type": "Microsoft.Network/networkSecurityPerimeters/links",
47+
"properties": {
48+
"provisioningState": "Succeeded",
49+
"autoApprovedRemotePerimeterResourceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp2",
50+
"remotePerimeterGuid": "guid",
51+
"localInboundProfiles": [
52+
"*"
53+
],
54+
"localOutboundProfiles": [
55+
"*"
56+
],
57+
"remoteInboundProfiles": [
58+
"*"
59+
],
60+
"remoteOutboundProfiles": [
61+
"*"
62+
],
63+
"description": "Auto Approved",
64+
"status": "Approved"
65+
}
66+
}
67+
}
68+
}
69+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"title": "Reconcile NSP link",
3+
"parameters": {
4+
"api-version": "2021-02-01-preview",
5+
"subscriptionId": "subId",
6+
"resourceGroupName": "rg1",
7+
"networkSecurityPerimeterName": "nsp1",
8+
"linkName": "link1"
9+
},
10+
"responses": {
11+
"200": {}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"title": "Delete NSP linkReference",
3+
"parameters": {
4+
"api-version": "2021-02-01-preview",
5+
"subscriptionId": "subId",
6+
"resourceGroupName": "rg1",
7+
"networkSecurityPerimeterName": "nsp2",
8+
"linkReferenceName": "link1-guid"
9+
},
10+
"responses": {
11+
"200": {},
12+
"202": {
13+
"headers": {
14+
"location": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/linkreferences/{linkReferenceName}/operationResults/{operationId}?api-version={api-version}"
15+
}
16+
},
17+
"204": {}
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"title": "Get NSP LinkReference",
3+
"parameters": {
4+
"api-version": "2021-02-01-preview",
5+
"subscriptionId": "subId",
6+
"resourceGroupName": "rg1",
7+
"networkSecurityPerimeterName": "nsp2",
8+
"linkReferenceName": "link1-guid"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"name": "link1-guid",
14+
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp2/linkreferences/link1-guid",
15+
"type": "Microsoft.Network/networkSecurityPerimeters/linkreferences",
16+
"properties": {
17+
"provisioningState": "Succeeded",
18+
"remotePerimeterResourceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1",
19+
"remotePerimeterGuid": "guid",
20+
"localInboundProfiles": [
21+
"*"
22+
],
23+
"localOutboundProfiles": [
24+
"*"
25+
],
26+
"remoteInboundProfiles": [
27+
"*"
28+
],
29+
"remoteOutboundProfiles": [
30+
"*"
31+
],
32+
"description": "Auto Approved",
33+
"status": "Approved"
34+
}
35+
}
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"title": "List NSP LinkReferences",
3+
"parameters": {
4+
"api-version": "2021-02-01-preview",
5+
"subscriptionId": "subId",
6+
"resourceGroupName": "rg1",
7+
"networkSecurityPerimeterName": "nsp2"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"name": "link1-guid",
15+
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp2/linkreferences/link1-guid",
16+
"type": "Microsoft.Network/networkSecurityPerimeters/linkreferences",
17+
"properties": {
18+
"provisioningState": "Succeeded",
19+
"remotePerimeterResourceId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1",
20+
"remotePerimeterGuid": "guid",
21+
"localInboundProfiles": [
22+
"*"
23+
],
24+
"localOutboundProfiles": [
25+
"*"
26+
],
27+
"remoteInboundProfiles": [
28+
"*"
29+
],
30+
"remoteOutboundProfiles": [
31+
"*"
32+
],
33+
"description": "Auto Approved",
34+
"status": "Approved"
35+
}
36+
}
37+
],
38+
"nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp2/linkreferences?api-version=2021-02-01-preview&$skipToken=10"
39+
}
40+
}
41+
}
42+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"title": "Reconcile NSP linkreference",
3+
"parameters": {
4+
"api-version": "2021-02-01-preview",
5+
"subscriptionId": "subId",
6+
"resourceGroupName": "rg1",
7+
"networkSecurityPerimeterName": "nsp1",
8+
"linkReferenceName": "link1-guid"
9+
},
10+
"responses": {
11+
"200": {}
12+
}
13+
}

0 commit comments

Comments
 (0)