Skip to content

Commit 81e598c

Browse files
CaoxuyangXuyang Cao
andauthored
Update swagger for outbound public ip feature (Azure#10713)
* update swagger for outbound public ip feature * Update samples * prettier all the files * fix typo for 'outboundIPs' & 'publicIPs' properties Co-authored-by: Xuyang Cao <xuycao@microsoft.com>
1 parent 1a6985b commit 81e598c

File tree

14 files changed

+195
-20
lines changed

14 files changed

+195
-20
lines changed

specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/appplatform.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2479,6 +2479,21 @@
24792479
"appNetworkResourceGroup": {
24802480
"description": "Name of the resource group containing network resources of Azure Spring Cloud Apps",
24812481
"type": "string"
2482+
},
2483+
"outboundIPs": {
2484+
"description": "Desired outbound IP resources for Azure Spring Cloud instance.",
2485+
"type": "object",
2486+
"readOnly": true,
2487+
"properties": {
2488+
"publicIPs": {
2489+
"type": "array",
2490+
"readOnly": true,
2491+
"items": {
2492+
"type": "string"
2493+
},
2494+
"description": "A list of public IP addresses."
2495+
}
2496+
}
24822497
}
24832498
}
24842499
},

specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_CreateOrUpdate.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,15 @@
5454
"enabled": true,
5555
"appInsightInstrumentationKey": "00000000-0000-0000-0000-000000000000"
5656
},
57-
"serviceId": "12345678abcd1234abcd12345678abcd"
57+
"serviceId": "12345678abcd1234abcd12345678abcd",
58+
"networkProfile": {
59+
"outboundIPs": {
60+
"publicIPs": [
61+
"20.39.3.173",
62+
"40.64.67.13"
63+
]
64+
}
65+
}
5866
},
5967
"type": "Microsoft.AppPlatform/Spring",
6068
"sku": {
@@ -90,7 +98,15 @@
9098
"enabled": true,
9199
"appInsightInstrumentationKey": "00000000-0000-0000-0000-000000000000"
92100
},
93-
"serviceId": "12345678abcd1234abcd12345678abcd"
101+
"serviceId": "12345678abcd1234abcd12345678abcd",
102+
"networkProfile": {
103+
"outboundIPs": {
104+
"publicIPs": [
105+
"20.39.3.173",
106+
"40.64.67.13"
107+
]
108+
}
109+
}
94110
},
95111
"type": "Microsoft.AppPlatform/Spring",
96112
"sku": {

specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_CreateOrUpdate_VNetInjection.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@
3434
"appSubnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/apps",
3535
"serviceCidr": "10.8.0.0/16,10.244.0.0/16,10.245.0.1/16",
3636
"serviceRuntimeNetworkResourceGroup": "my-service-runtime-network-rg",
37-
"appNetworkResourceGroup": "my-app-network-rg"
37+
"appNetworkResourceGroup": "my-app-network-rg",
38+
"outboundIPs": {
39+
"publicIPs": [
40+
"40.64.67.13"
41+
]
42+
}
3843
},
3944
"serviceId": "12345678abcd1234abcd12345678abcd"
4045
},
@@ -60,7 +65,12 @@
6065
"appSubnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/apps",
6166
"serviceCidr": "10.8.0.0/16,10.244.0.0/16,10.245.0.1/16",
6267
"serviceRuntimeNetworkResourceGroup": "my-service-runtime-network-rg",
63-
"appNetworkResourceGroup": "my-app-network-rg"
68+
"appNetworkResourceGroup": "my-app-network-rg",
69+
"outboundIPs": {
70+
"publicIPs": [
71+
"40.64.67.13"
72+
]
73+
}
6474
},
6575
"serviceId": "12345678abcd1234abcd12345678abcd"
6676
},

specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_Get.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,15 @@
2727
"enabled": true,
2828
"appInsightInstrumentationKey": "00000000-0000-0000-0000-000000000000"
2929
},
30-
"serviceId": "12345678abcd1234abcd12345678abcd"
30+
"serviceId": "12345678abcd1234abcd12345678abcd",
31+
"networkProfile": {
32+
"outboundIPs": {
33+
"publicIPs": [
34+
"20.39.3.173",
35+
"40.64.67.13"
36+
]
37+
}
38+
}
3139
},
3240
"type": "Microsoft.AppPlatform/Spring",
3341
"sku": {

specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_List.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,15 @@
2828
"enabled": true,
2929
"appInsightInstrumentationKey": "00000000-0000-0000-0000-000000000000"
3030
},
31-
"serviceId": "12345678abcd1234abcd12345678abcd"
31+
"serviceId": "12345678abcd1234abcd12345678abcd",
32+
"networkProfile": {
33+
"outboundIPs": {
34+
"publicIPs": [
35+
"20.39.3.173",
36+
"40.64.67.13"
37+
]
38+
}
39+
}
3240
},
3341
"type": "Microsoft.AppPlatform/Spring",
3442
"sku": {

specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_ListBySubscription.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,15 @@
2727
"enabled": true,
2828
"appInsightInstrumentationKey": "00000000-0000-0000-0000-000000000000"
2929
},
30-
"serviceId": "12345678abcd1234abcd12345678abcd"
30+
"serviceId": "12345678abcd1234abcd12345678abcd",
31+
"networkProfile": {
32+
"outboundIPs": {
33+
"publicIPs": [
34+
"20.39.3.173",
35+
"40.64.67.13"
36+
]
37+
}
38+
}
3139
},
3240
"type": "Microsoft.AppPlatform/Spring",
3341
"sku": {

specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_Update.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,15 @@
5454
"enabled": true,
5555
"appInsightInstrumentationKey": "00000000-0000-0000-0000-000000000000"
5656
},
57-
"serviceId": "12345678abcd1234abcd12345678abcd"
57+
"serviceId": "12345678abcd1234abcd12345678abcd",
58+
"networkProfile": {
59+
"outboundIPs": {
60+
"publicIPs": [
61+
"20.39.3.173",
62+
"40.64.67.13"
63+
]
64+
}
65+
}
5866
},
5967
"type": "Microsoft.AppPlatform/Spring",
6068
"sku": {
@@ -90,7 +98,15 @@
9098
"enabled": true,
9199
"appInsightInstrumentationKey": "00000000-0000-0000-0000-000000000000"
92100
},
93-
"serviceId": "12345678abcd1234abcd12345678abcd"
101+
"serviceId": "12345678abcd1234abcd12345678abcd",
102+
"networkProfile": {
103+
"outboundIPs": {
104+
"publicIPs": [
105+
"20.39.3.173",
106+
"40.64.67.13"
107+
]
108+
}
109+
}
94110
},
95111
"type": "Microsoft.AppPlatform/Spring",
96112
"sku": {

specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2020-07-01/appplatform.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2951,6 +2951,21 @@
29512951
"appNetworkResourceGroup": {
29522952
"description": "Name of the resource group containing network resources of Azure Spring Cloud Apps",
29532953
"type": "string"
2954+
},
2955+
"outboundIPs": {
2956+
"description": "Desired outbound IP resources for Azure Spring Cloud instance.",
2957+
"type": "object",
2958+
"readOnly": true,
2959+
"properties": {
2960+
"publicIPs": {
2961+
"type": "array",
2962+
"readOnly": true,
2963+
"items": {
2964+
"type": "string"
2965+
},
2966+
"description": "A list of public IP addresses."
2967+
}
2968+
}
29542969
}
29552970
}
29562971
},

specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2020-07-01/examples/Services_CreateOrUpdate.json

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@
2121
"body": {
2222
"properties": {
2323
"provisioningState": "Creating",
24-
"serviceId": "12345678abcd1234abcd12345678abcd"
24+
"serviceId": "12345678abcd1234abcd12345678abcd",
25+
"networkProfile": {
26+
"outboundIPs": {
27+
"publicIPs": [
28+
"20.39.3.173",
29+
"40.64.67.13"
30+
]
31+
}
32+
}
2533
},
2634
"type": "Microsoft.AppPlatform/Spring",
2735
"sku": {
@@ -40,7 +48,15 @@
4048
"body": {
4149
"properties": {
4250
"provisioningState": "Succeeded",
43-
"serviceId": "12345678abcd1234abcd12345678abcd"
51+
"serviceId": "12345678abcd1234abcd12345678abcd",
52+
"networkProfile": {
53+
"outboundIPs": {
54+
"publicIPs": [
55+
"20.39.3.173",
56+
"40.64.67.13"
57+
]
58+
}
59+
}
4460
},
4561
"type": "Microsoft.AppPlatform/Spring",
4662
"sku": {
@@ -59,7 +75,15 @@
5975
"body": {
6076
"properties": {
6177
"provisioningState": "Updating",
62-
"serviceId": "12345678abcd1234abcd12345678abcd"
78+
"serviceId": "12345678abcd1234abcd12345678abcd",
79+
"networkProfile": {
80+
"outboundIPs": {
81+
"publicIPs": [
82+
"20.39.3.173",
83+
"40.64.67.13"
84+
]
85+
}
86+
}
6387
},
6488
"type": "Microsoft.AppPlatform/Spring",
6589
"sku": {

specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2020-07-01/examples/Services_CreateOrUpdate_VNetInjection.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@
3434
"appSubnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/apps",
3535
"serviceCidr": "10.8.0.0/16,10.244.0.0/16,10.245.0.1/16",
3636
"serviceRuntimeNetworkResourceGroup": "my-service-runtime-network-rg",
37-
"appNetworkResourceGroup": "my-app-network-rg"
37+
"appNetworkResourceGroup": "my-app-network-rg",
38+
"outboundIPs": {
39+
"publicIPs": [
40+
"40.64.67.13"
41+
]
42+
}
3843
},
3944
"serviceId": "12345678abcd1234abcd12345678abcd"
4045
},
@@ -60,7 +65,12 @@
6065
"appSubnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/apps",
6166
"serviceCidr": "10.8.0.0/16,10.244.0.0/16,10.245.0.1/16",
6267
"serviceRuntimeNetworkResourceGroup": "my-service-runtime-network-rg",
63-
"appNetworkResourceGroup": "my-app-network-rg"
68+
"appNetworkResourceGroup": "my-app-network-rg",
69+
"outboundIPs": {
70+
"publicIPs": [
71+
"40.64.67.13"
72+
]
73+
}
6474
},
6575
"serviceId": "12345678abcd1234abcd12345678abcd"
6676
},
@@ -86,7 +96,12 @@
8696
"appSubnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/apps",
8797
"serviceCidr": "10.8.0.0/16,10.244.0.0/16,10.245.0.1/16",
8898
"serviceRuntimeNetworkResourceGroup": "my-service-runtime-network-rg",
89-
"appNetworkResourceGroup": "my-app-network-rg"
99+
"appNetworkResourceGroup": "my-app-network-rg",
100+
"outboundIPs": {
101+
"publicIPs": [
102+
"40.64.67.13"
103+
]
104+
}
90105
},
91106
"serviceId": "12345678abcd1234abcd12345678abcd"
92107
},

0 commit comments

Comments
 (0)