-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ReleasePR dashboard] Add Swagger spec of MICROSOFT.DASHBOARD for Pub…
…lic 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)
- Loading branch information
Showing
2 changed files
with
245 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,242 @@ | ||
{ | ||
"id": "https://schema.management.azure.com/schemas/2021-09-01-preview/Microsoft.Dashboard.json#", | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Microsoft.Dashboard", | ||
"description": "Microsoft Dashboard Resource Types", | ||
"resourceDefinitions": { | ||
"grafana": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2021-09-01-preview" | ||
] | ||
}, | ||
"identity": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/ManagedIdentity" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The managed identity of a resource." | ||
}, | ||
"location": { | ||
"type": "string", | ||
"description": "The geo-location where the grafana resource lives" | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "The name of Azure Managed Workspace for Grafana." | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/GrafanaResourceProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Properties specific to the grafana resource." | ||
}, | ||
"sku": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/ResourceSku" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
}, | ||
"systemData": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/SystemData" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
}, | ||
"tags": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"properties": {} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The tags for grafana resource." | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"Microsoft.Dashboard/grafana" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"name", | ||
"properties", | ||
"type" | ||
], | ||
"description": "Microsoft.Dashboard/grafana" | ||
} | ||
}, | ||
"definitions": { | ||
"GrafanaResourceProperties": { | ||
"type": "object", | ||
"properties": { | ||
"provisioningState": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"Accepted", | ||
"Creating", | ||
"Updating", | ||
"Deleting", | ||
"Succeeded", | ||
"Failed", | ||
"Canceled", | ||
"Deleted", | ||
"NotSpecified" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Provisioning state of the resource." | ||
}, | ||
"zoneRedundancy": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"Disabled", | ||
"Enabled" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
} | ||
}, | ||
"description": "Properties specific to the grafana resource." | ||
}, | ||
"ManagedIdentity": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"None", | ||
"SystemAssigned" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
}, | ||
"userAssignedIdentities": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"additionalProperties": { | ||
"$ref": "#/definitions/UserAssignedIdentity" | ||
}, | ||
"properties": {} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Dictionary of user assigned identities." | ||
} | ||
}, | ||
"description": "The managed identity of a resource." | ||
}, | ||
"ResourceSku": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"name" | ||
] | ||
}, | ||
"SystemData": { | ||
"type": "object", | ||
"properties": { | ||
"createdAt": { | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"createdBy": { | ||
"type": "string" | ||
}, | ||
"createdByType": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"User", | ||
"Application", | ||
"ManagedIdentity", | ||
"Key" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
}, | ||
"lastModifiedAt": { | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"lastModifiedBy": { | ||
"type": "string" | ||
}, | ||
"lastModifiedByType": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"User", | ||
"Application", | ||
"ManagedIdentity", | ||
"Key" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"UserAssignedIdentity": { | ||
"type": "object", | ||
"properties": {} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters