Skip to content

Commit 2a3f9f0

Browse files
AzureStackHub FabricLocation new API (#18323)
* Copy existing FabricLocation * AzureStack Admin API - Fabric RP - FabricLocation - 2022-03-01 * Revert to original Fabric.json for common type
1 parent 3439439 commit 2a3f9f0

File tree

5 files changed

+349
-4
lines changed

5 files changed

+349
-4
lines changed
Lines changed: 236 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,236 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"description": "Fabric location operation endpoints and objects.",
5+
"title": "FabricAdminClient",
6+
"version": "2022-03-01"
7+
},
8+
"host": "management.azure.com",
9+
"schemes": [
10+
"https"
11+
],
12+
"produces": [
13+
"application/json"
14+
],
15+
"consumes": [
16+
"application/json"
17+
],
18+
"paths": {
19+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations/{fabricLocation}": {
20+
"get": {
21+
"x-ms-examples": {
22+
"Returns the requested fabric location.": {
23+
"$ref": "./examples/FabricLocation/Get.json"
24+
}
25+
},
26+
"tags": [
27+
"FabricLocations"
28+
],
29+
"description": "Returns the requested fabric location.",
30+
"operationId": "FabricLocations_Get",
31+
"parameters": [
32+
{
33+
"$ref": "../../preview/2016-05-01/Fabric.json#/parameters/SubscriptionIdParameter"
34+
},
35+
{
36+
"$ref": "../../preview/2016-05-01/Fabric.json#/parameters/ResourceGroupParameter"
37+
},
38+
{
39+
"$ref": "#/parameters/FabricLocationParameter"
40+
},
41+
{
42+
"$ref": "../../preview/2016-05-01/Fabric.json#/parameters/ApiVersionParameter"
43+
}
44+
],
45+
"responses": {
46+
"200": {
47+
"description": "OK",
48+
"schema": {
49+
"$ref": "#/definitions/FabricLocation"
50+
}
51+
},
52+
"default": {
53+
"description": "Error Response.",
54+
"schema": {
55+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
56+
}
57+
}
58+
}
59+
}
60+
},
61+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations": {
62+
"get": {
63+
"x-ms-examples": {
64+
"Returns a list of all fabric locations.": {
65+
"$ref": "./examples/FabricLocation/List.json"
66+
}
67+
},
68+
"tags": [
69+
"FabricLocations"
70+
],
71+
"description": "Returns a list of all fabric locations.",
72+
"operationId": "FabricLocations_List",
73+
"parameters": [
74+
{
75+
"$ref": "../../preview/2016-05-01/Fabric.json#/parameters/SubscriptionIdParameter"
76+
},
77+
{
78+
"$ref": "../../preview/2016-05-01/Fabric.json#/parameters/ResourceGroupParameter"
79+
},
80+
{
81+
"$ref": "../../preview/2016-05-01/Fabric.json#/parameters/ApiVersionParameter"
82+
},
83+
{
84+
"$ref": "../../preview/2016-05-01/Fabric.json#/parameters/FilterParameter"
85+
}
86+
],
87+
"responses": {
88+
"200": {
89+
"description": "OK",
90+
"schema": {
91+
"$ref": "#/definitions/FabricLocationList"
92+
}
93+
},
94+
"default": {
95+
"description": "Error Response.",
96+
"schema": {
97+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
98+
}
99+
}
100+
},
101+
"x-ms-pageable": {
102+
"nextLinkName": "nextLink"
103+
},
104+
"x-ms-odata": "#/definitions/FabricLocation"
105+
}
106+
}
107+
},
108+
"definitions": {
109+
"FabricLocation": {
110+
"description": "Fabric Location resource.",
111+
"type": "object",
112+
"properties": {
113+
"properties": {
114+
"description": "Properties of a FabricLocation.",
115+
"x-ms-client-flatten": true,
116+
"$ref": "#/definitions/FabricLocationModel"
117+
}
118+
},
119+
"allOf": [
120+
{
121+
"$ref": "../../preview/2016-05-01/Fabric.json#/definitions/Resource"
122+
}
123+
]
124+
},
125+
"FabricLocationModel": {
126+
"description": "All properties of a fabric location resource.",
127+
"type": "object",
128+
"properties": {
129+
"pepIpAddresses": {
130+
"description": "The IP addresses of the privileged endpoints.",
131+
"type": "array",
132+
"items": {
133+
"type": "string"
134+
}
135+
},
136+
"timeServer": {
137+
"description": "The IP address of the time server.",
138+
"type": "string"
139+
},
140+
"stampInformationId": {
141+
"description": "The deployment id of the stamp.",
142+
"type": "string"
143+
},
144+
"stampCloudId": {
145+
"description": "The cloud id of the stamp.",
146+
"type": "string"
147+
},
148+
"externalDNSIPAddress01": {
149+
"description": "First external IP address of the DNS server.",
150+
"type": "string"
151+
},
152+
"externalDNSIPAddress02": {
153+
"description": "Second external IP Address of the DNS server.",
154+
"type": "string"
155+
},
156+
"exclusiveAdminOperationRunning": {
157+
"description": "Value for whether an exclusive admin operation is running.",
158+
"type": "boolean"
159+
},
160+
"exclusiveAdminOperationName": {
161+
"description": "Name of the running exclusive admin operation.",
162+
"type": "string"
163+
},
164+
"startUpActionPlanStartTime": {
165+
"description": "Last known stamp start time for the start up action plan.",
166+
"type": "string",
167+
"format": "date-time"
168+
},
169+
"startUpActionPlanEndTime": {
170+
"description": "Last known stamp stop time for the start up action plan.",
171+
"type": "string",
172+
"format": "date-time"
173+
},
174+
"shutDownActionPlanStartTime": {
175+
"description": "Last known stamp start time for the shut down action plan",
176+
"type": "string",
177+
"format": "date-time"
178+
},
179+
"shutDownActionPlanEndTime": {
180+
"description": "Last known stamp stop time for the shut down action plan.",
181+
"type": "string",
182+
"format": "date-time"
183+
},
184+
"dataGeoLocation": {
185+
"description": "Data storage geo location for compliance.",
186+
"type": "string"
187+
}
188+
}
189+
},
190+
"FabricLocationList": {
191+
"description": "Pageable list of fabric locations.",
192+
"type": "object",
193+
"properties": {
194+
"value": {
195+
"description": "List of fabric locations.",
196+
"type": "array",
197+
"items": {
198+
"$ref": "#/definitions/FabricLocation"
199+
}
200+
},
201+
"nextLink": {
202+
"description": "URI to the next page.",
203+
"type": "string"
204+
}
205+
}
206+
}
207+
},
208+
"parameters": {
209+
"FabricLocationParameter": {
210+
"description": "Fabric location.",
211+
"name": "fabricLocation",
212+
"type": "string",
213+
"in": "path",
214+
"required": true,
215+
"x-ms-parameter-location": "method"
216+
}
217+
},
218+
"securityDefinitions": {
219+
"azure_auth": {
220+
"type": "oauth2",
221+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
222+
"flow": "implicit",
223+
"description": "Authorization uses an Azure Active Directory OAuth2 flow.",
224+
"scopes": {
225+
"user_impersonation": "impersonate your user account"
226+
}
227+
}
228+
},
229+
"security": [
230+
{
231+
"azure_auth": [
232+
"user_impersonation"
233+
]
234+
}
235+
]
236+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01",
4+
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
5+
"resourceGroupName": "System.local",
6+
"fabricLocation": "local"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/23a94a7f-64b3-42d8-807c-733284339015/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local",
12+
"name": "local",
13+
"type": "Microsoft.Fabric.Admin/fabricLocations",
14+
"location": "local",
15+
"tags": {},
16+
"properties": {
17+
"pepIpAddresses": [
18+
"192.168.200.224",
19+
"192.168.200.225",
20+
"192.168.200.226"
21+
],
22+
"timeServer": "10.221.192.41",
23+
"stampInformationId": "25c08b46-523c-4678-9cbc-9a5dd4406683",
24+
"stampCloudId": "66be2306-27d2-4223-9d52-f49db5530a53",
25+
"externalDNSIPAddress01": "192.168.102.10",
26+
"externalDNSIPAddress02": "192.168.102.12",
27+
"exclusiveAdminOperationRunning": true,
28+
"exclusiveAdminOperationName": "MAS Update",
29+
"startUpActionPlanStartTime": "2022-03-01T13:25:59.99999999Z",
30+
"startUpActionPlanEndTime": "2022-03-01T13:59:59.99999999Z",
31+
"shutDownActionPlanStartTime": "2022-03-01T10:15:59.99999999Z",
32+
"shutDownActionPlanEndTime": "2022-03-01T10:30:59.99999999Z",
33+
"dataGeoLocation": "europe"
34+
}
35+
}
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01",
4+
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
5+
"resourceGroupName": "System.local"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/subscriptions/23a94a7f-64b3-42d8-807c-733284339015/resourceGroups/System.local/providers/Microsoft.Fabric.Admin/fabricLocations/local",
13+
"name": "local",
14+
"type": "Microsoft.Fabric.Admin/fabricLocations",
15+
"location": "local",
16+
"tags": {},
17+
"properties": {
18+
"pepIpAddresses": [
19+
"192.168.200.224",
20+
"192.168.200.225",
21+
"192.168.200.226"
22+
],
23+
"timeServer": "10.221.192.41",
24+
"stampInformationId": "25c08b46-523c-4678-9cbc-9a5dd4406683",
25+
"stampCloudId": "66be2306-27d2-4223-9d52-f49db5530a53",
26+
"externalDNSIPAddress01": "192.168.102.10",
27+
"externalDNSIPAddress02": "192.168.102.12",
28+
"exclusiveAdminOperationRunning": true,
29+
"exclusiveAdminOperationName": "MAS Update",
30+
"startUpActionPlanStartTime": "2022-03-01T13:25:59.99999999Z",
31+
"startUpActionPlanEndTime": "2022-03-01T13:59:59.99999999Z",
32+
"shutDownActionPlanStartTime": "2022-03-01T10:15:59.99999999Z",
33+
"shutDownActionPlanEndTime": "2022-03-01T10:30:59.99999999Z",
34+
"dataGeoLocation": "europe"
35+
}
36+
}
37+
]
38+
}
39+
}
40+
}
41+
}

specification/azsadmin/resource-manager/fabric/readme.azsautogen.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ These are the global settings for the Fabric API.
2424
title: FabricAdminClient
2525
description: Fabric Admin Client
2626
openapi-type: arm
27-
tag: package-2019-05-01
27+
tag: package-2022-03-01
2828
```
2929
3030
``` yaml
@@ -34,7 +34,6 @@ input-file:
3434
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/Fabric.json
3535
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/EdgeGateway.json
3636
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/EdgeGatewayPool.json
37-
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/FabricLocation.json
3837
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/FileShare.json
3938
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/InfraRole.json
4039
- $(this-folder)/Microsoft.Fabric.Admin/preview/2016-05-01/InfraRoleInstance.json
@@ -53,6 +52,7 @@ input-file:
5352
- $(this-folder)/Microsoft.Fabric.Admin/preview/2019-05-01/NasCluster.json"
5453
- $(this-folder)/Microsoft.Fabric.Admin/preview/2020-10-01/ScaleUnit.json"
5554
- $(this-folder)/Microsoft.Fabric.Admin/preview/2020-10-01/ScaleUnitNode.json"
55+
- $(this-folder)/Microsoft.Fabric.Admin/stable/2022-03-01/FabricLocation.json
5656
```
5757
5858
---

specification/azsadmin/resource-manager/fabric/readme.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ These are the global settings for the Fabric API.
2424
title: FabricAdminClient
2525
description: Fabric Admin Client
2626
openapi-type: arm
27-
tag: package-2019-05-01
27+
tag: package-2022-03-01
2828
```
2929
3030
### Tag: package-2016-05-01
@@ -117,6 +117,36 @@ input-file:
117117
- "Microsoft.Fabric.Admin/preview/2020-10-01/ScaleUnitNode.json"
118118
```
119119

120+
### Tag: package-2022-03-01
121+
122+
These settings apply only when `--tag=package-2022-03-01` is specified on the command line.
123+
124+
``` yaml $(tag) == 'package-2022-03-01'
125+
input-file:
126+
- "Microsoft.Fabric.Admin/preview/2016-05-01/ApplicationOperationResults.json"
127+
- "Microsoft.Fabric.Admin/preview/2016-05-01/Fabric.json"
128+
- "Microsoft.Fabric.Admin/preview/2016-05-01/EdgeGateway.json"
129+
- "Microsoft.Fabric.Admin/preview/2016-05-01/EdgeGatewayPool.json"
130+
- "Microsoft.Fabric.Admin/preview/2016-05-01/FileShare.json"
131+
- "Microsoft.Fabric.Admin/preview/2016-05-01/InfraRole.json"
132+
- "Microsoft.Fabric.Admin/preview/2016-05-01/InfraRoleInstance.json"
133+
- "Microsoft.Fabric.Admin/preview/2016-05-01/IpPool.json"
134+
- "Microsoft.Fabric.Admin/preview/2016-05-01/LogicalNetwork.json"
135+
- "Microsoft.Fabric.Admin/preview/2016-05-01/LogicalSubnet.json"
136+
- "Microsoft.Fabric.Admin/preview/2016-05-01/MacAddressPool.json"
137+
- "Microsoft.Fabric.Admin/preview/2016-05-01/NetworkOperationResults.json"
138+
- "Microsoft.Fabric.Admin/preview/2016-05-01/SlbMuxInstance.json"
139+
- "Microsoft.Fabric.Admin/preview/2016-05-01/StorageOperationResults.json"
140+
- "Microsoft.Fabric.Admin/preview/2018-10-01/StorageSubSystem.json"
141+
- "Microsoft.Fabric.Admin/preview/2019-05-01/Drive.json"
142+
- "Microsoft.Fabric.Admin/preview/2019-05-01/Volume.json"
143+
- "Microsoft.Fabric.Admin/preview/2019-05-01/NasCluster.json"
144+
- "Microsoft.Fabric.Admin/preview/2020-10-01/ComputeOperationResults.json"
145+
- "Microsoft.Fabric.Admin/preview/2020-10-01/ScaleUnit.json"
146+
- "Microsoft.Fabric.Admin/preview/2020-10-01/ScaleUnitNode.json"
147+
- "Microsoft.Fabric.Admin/stable/2022-03-01/FabricLocation.json"
148+
```
149+
120150
## Suppression
121151
``` yaml
122152
directive:
@@ -190,7 +220,7 @@ input-file:
190220
- $(this-folder)/Microsoft.Fabric.Admin/preview/2020-10-01/ScaleUnit.json
191221
- $(this-folder)/Microsoft.Fabric.Admin/preview/2020-10-01/ScaleUnitNode.json
192222
- $(this-folder)/Microsoft.Fabric.Admin/preview/2020-10-01/ComputeOperationResults.json
193-
223+
- $(this-folder)/Microsoft.Fabric.Admin/stable/2022-03-01/FabricLocation.json
194224
```
195225

196226
If there are files that should not be in the `all-api-versions` set,

0 commit comments

Comments
 (0)