Skip to content

Commit 3aaa3dd

Browse files
author
msftbot[bot]
authored
[ReleasePR dashboard] Add Swagger spec of MICROSOFT.DASHBOARD for Public Preview (#2209)
Create to sync Azure/azure-rest-api-specs#17667 [ReCreate this PR](https://github.com/azure-resource-manager-schemas/compare/main...AzureSDKAutomation:sdkAuto/dashboard?expand=1)
2 parents b3d5d91 + 880dc18 commit 3aaa3dd

File tree

2 files changed

+245
-0
lines changed

2 files changed

+245
-0
lines changed
Lines changed: 242 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,242 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2021-09-01-preview/Microsoft.Dashboard.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.Dashboard",
5+
"description": "Microsoft Dashboard Resource Types",
6+
"resourceDefinitions": {
7+
"grafana": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2021-09-01-preview"
14+
]
15+
},
16+
"identity": {
17+
"oneOf": [
18+
{
19+
"$ref": "#/definitions/ManagedIdentity"
20+
},
21+
{
22+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
23+
}
24+
],
25+
"description": "The managed identity of a resource."
26+
},
27+
"location": {
28+
"type": "string",
29+
"description": "The geo-location where the grafana resource lives"
30+
},
31+
"name": {
32+
"type": "string",
33+
"description": "The name of Azure Managed Workspace for Grafana."
34+
},
35+
"properties": {
36+
"oneOf": [
37+
{
38+
"$ref": "#/definitions/GrafanaResourceProperties"
39+
},
40+
{
41+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
42+
}
43+
],
44+
"description": "Properties specific to the grafana resource."
45+
},
46+
"sku": {
47+
"oneOf": [
48+
{
49+
"$ref": "#/definitions/ResourceSku"
50+
},
51+
{
52+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
53+
}
54+
]
55+
},
56+
"systemData": {
57+
"oneOf": [
58+
{
59+
"$ref": "#/definitions/SystemData"
60+
},
61+
{
62+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
63+
}
64+
]
65+
},
66+
"tags": {
67+
"oneOf": [
68+
{
69+
"type": "object",
70+
"additionalProperties": {
71+
"type": "string"
72+
},
73+
"properties": {}
74+
},
75+
{
76+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
77+
}
78+
],
79+
"description": "The tags for grafana resource."
80+
},
81+
"type": {
82+
"type": "string",
83+
"enum": [
84+
"Microsoft.Dashboard/grafana"
85+
]
86+
}
87+
},
88+
"required": [
89+
"apiVersion",
90+
"name",
91+
"properties",
92+
"type"
93+
],
94+
"description": "Microsoft.Dashboard/grafana"
95+
}
96+
},
97+
"definitions": {
98+
"GrafanaResourceProperties": {
99+
"type": "object",
100+
"properties": {
101+
"provisioningState": {
102+
"oneOf": [
103+
{
104+
"type": "string",
105+
"enum": [
106+
"Accepted",
107+
"Creating",
108+
"Updating",
109+
"Deleting",
110+
"Succeeded",
111+
"Failed",
112+
"Canceled",
113+
"Deleted",
114+
"NotSpecified"
115+
]
116+
},
117+
{
118+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
119+
}
120+
],
121+
"description": "Provisioning state of the resource."
122+
},
123+
"zoneRedundancy": {
124+
"oneOf": [
125+
{
126+
"type": "string",
127+
"enum": [
128+
"Disabled",
129+
"Enabled"
130+
]
131+
},
132+
{
133+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
134+
}
135+
]
136+
}
137+
},
138+
"description": "Properties specific to the grafana resource."
139+
},
140+
"ManagedIdentity": {
141+
"type": "object",
142+
"properties": {
143+
"type": {
144+
"oneOf": [
145+
{
146+
"type": "string",
147+
"enum": [
148+
"None",
149+
"SystemAssigned"
150+
]
151+
},
152+
{
153+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
154+
}
155+
]
156+
},
157+
"userAssignedIdentities": {
158+
"oneOf": [
159+
{
160+
"type": "object",
161+
"additionalProperties": {
162+
"$ref": "#/definitions/UserAssignedIdentity"
163+
},
164+
"properties": {}
165+
},
166+
{
167+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
168+
}
169+
],
170+
"description": "Dictionary of user assigned identities."
171+
}
172+
},
173+
"description": "The managed identity of a resource."
174+
},
175+
"ResourceSku": {
176+
"type": "object",
177+
"properties": {
178+
"name": {
179+
"type": "string"
180+
}
181+
},
182+
"required": [
183+
"name"
184+
]
185+
},
186+
"SystemData": {
187+
"type": "object",
188+
"properties": {
189+
"createdAt": {
190+
"type": "string",
191+
"format": "date-time"
192+
},
193+
"createdBy": {
194+
"type": "string"
195+
},
196+
"createdByType": {
197+
"oneOf": [
198+
{
199+
"type": "string",
200+
"enum": [
201+
"User",
202+
"Application",
203+
"ManagedIdentity",
204+
"Key"
205+
]
206+
},
207+
{
208+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
209+
}
210+
]
211+
},
212+
"lastModifiedAt": {
213+
"type": "string",
214+
"format": "date-time"
215+
},
216+
"lastModifiedBy": {
217+
"type": "string"
218+
},
219+
"lastModifiedByType": {
220+
"oneOf": [
221+
{
222+
"type": "string",
223+
"enum": [
224+
"User",
225+
"Application",
226+
"ManagedIdentity",
227+
"Key"
228+
]
229+
},
230+
{
231+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
232+
}
233+
]
234+
}
235+
}
236+
},
237+
"UserAssignedIdentity": {
238+
"type": "object",
239+
"properties": {}
240+
}
241+
}
242+
}

schemas/common/autogeneratedResources.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4720,6 +4720,9 @@
47204720
{
47214721
"$ref": "https://schema.management.azure.com/schemas/2018-09-01-preview/Microsoft.CustomProviders.json#/resourceDefinitions/resourceProviders"
47224722
},
4723+
{
4724+
"$ref": "https://schema.management.azure.com/schemas/2021-09-01-preview/Microsoft.Dashboard.json#/resourceDefinitions/grafana"
4725+
},
47234726
{
47244727
"$ref": "https://schema.management.azure.com/schemas/2018-01-01/Microsoft.DataBox.json#/resourceDefinitions/jobs"
47254728
},

0 commit comments

Comments
 (0)