Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [Command] _grafana mpe create_
# [Command] _grafana managed-private-endpoint create_

Create a managed private endpoint.

Expand All @@ -12,5 +12,5 @@ Create a managed private endpoint.

- connect to an Azure SQL Server by resource ID
```bash
grafana mpe create -n MyManagedPrivateEndpoint -g MyResourceGroup --workspace-name MyGrafana --group-ids sqlServer --private-link-resource-id /subscriptions/3a7edf7d-1488-4017-a908-111111111111/resourceGroups/MyResourceGroup/providers/Microsoft.Sql/servers/MySQLServer
grafana managed-private-endpoint create -n MyManagedPrivateEndpoint -g MyResourceGroup --workspace-name MyGrafana --group-ids sqlServer --private-link-resource-id /subscriptions/3a7edf7d-1488-4017-a908-111111111111/resourceGroups/MyResourceGroup/providers/Microsoft.Sql/servers/MySQLServer
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [Command] _grafana mpe delete_
# [Command] _grafana managed-private-endpoint delete_

Delete a managed private endpoint.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [Command] _grafana mpe list_
# [Command] _grafana managed-private-endpoint list_

List all managed private endpoints.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [Command] _grafana mpe refresh_
# [Command] _grafana managed-private-endpoint refresh_

Refresh and sync managed private endpoints to latest state.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [Command] _grafana mpe show_
# [Command] _grafana managed-private-endpoint show_

Get a specific managed private endpoint.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [Command] _grafana mpe update_
# [Command] _grafana managed-private-endpoint update_

Update a managed private endpoint for a grafana resource.

Expand Down
23 changes: 23 additions & 0 deletions Commands/grafana/managed-private-endpoint/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# [Group] _grafana managed-private-endpoint_

Commands to manage managed private endpoints.

## Commands

- [create](/Commands/grafana/managed-private-endpoint/_create.md)
: Create a managed private endpoint.

- [delete](/Commands/grafana/managed-private-endpoint/_delete.md)
: Delete a managed private endpoint.

- [list](/Commands/grafana/managed-private-endpoint/_list.md)
: List all managed private endpoints.

- [refresh](/Commands/grafana/managed-private-endpoint/_refresh.md)
: Refresh and sync managed private endpoints to latest state.

- [show](/Commands/grafana/managed-private-endpoint/_show.md)
: Get a specific managed private endpoint.

- [update](/Commands/grafana/managed-private-endpoint/_update.md)
: Update a managed private endpoint for a grafana resource.
23 changes: 0 additions & 23 deletions Commands/grafana/mpe/readme.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [Command] _grafana list-available-plugin_
# [Command] _grafana plugin list_

list all the available plugins

Expand Down
8 changes: 8 additions & 0 deletions Commands/grafana/plugin/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# [Group] _grafana plugin_

Manage Plugin

## Commands

- [list](/Commands/grafana/plugin/_list.md)
: list all the available plugins
10 changes: 6 additions & 4 deletions Commands/grafana/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@

Commands to manage Azure Managed Grafana resources.

For optimized experience, not all data plane APIs, documented at https://grafana.com/docs/grafana/latest/http_api/, are exposed. On coverage gap, please reach out to ad4g@microsoft.com

## Subgroups

- [mpe](/Commands/grafana/mpe/readme.md)
- [managed-private-endpoint](/Commands/grafana/managed-private-endpoint/readme.md)
: Commands to manage managed private endpoints.

- [plugin](/Commands/grafana/plugin/readme.md)
: Manage Plugin

- [private-endpoint-connection](/Commands/grafana/private-endpoint-connection/readme.md)
: Commands to manage private endpoint connections.

Expand All @@ -21,9 +26,6 @@ Commands to manage Azure Managed Grafana resources.
- [list](/Commands/grafana/_list.md)
: List all resources of workspaces for Grafana under the specified subscription.

- [list-available-plugin](/Commands/grafana/_list-available-plugin.md)
: list all the available plugins

- [show](/Commands/grafana/_show.md)
: Get the properties of a specific workspace for Grafana resource.

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dashboard/grafana/{}/fetchavailableplugins", "version": "2023-09-01", "swagger": "mgmt-plane/dashboard/ResourceProviders/Microsoft.Dashboard/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGFzaGJvYXJkL2dyYWZhbmEve3dvcmtzcGFjZU5hbWV9L2ZldGNoQXZhaWxhYmxlUGx1Z2lucw==/V/MjAyMy0wOS0wMQ=="}], "commandGroups": [{"name": "grafana", "commands": [{"name": "list-available-plugin", "version": "2023-09-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dashboard/grafana/{}/fetchavailableplugins", "version": "2023-09-01", "swagger": "mgmt-plane/dashboard/ResourceProviders/Microsoft.Dashboard/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGFzaGJvYXJkL2dyYWZhbmEve3dvcmtzcGFjZU5hbWV9L2ZldGNoQXZhaWxhYmxlUGx1Z2lucw==/V/MjAyMy0wOS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.workspaceName", "options": ["n", "name", "workspace-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The workspace name of Azure Managed Grafana."}}]}], "operations": [{"operationId": "Grafana_FetchAvailablePlugins", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/fetchAvailablePlugins", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}, {"type": "string", "name": "workspaceName", "arg": "$Path.workspaceName", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2023-09-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "name"}, {"readOnly": true, "type": "string", "name": "pluginId"}]}, "identifiers": ["pluginId"]}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]}
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dashboard/grafana/{}/fetchavailableplugins", "version": "2023-09-01", "swagger": "mgmt-plane/dashboard/ResourceProviders/Microsoft.Dashboard/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGFzaGJvYXJkL2dyYWZhbmEve3dvcmtzcGFjZU5hbWV9L2ZldGNoQXZhaWxhYmxlUGx1Z2lucw==/V/MjAyMy0wOS0wMQ=="}], "commandGroups": [{"name": "grafana plugin", "commands": [{"name": "list", "version": "2023-09-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dashboard/grafana/{}/fetchavailableplugins", "version": "2023-09-01", "swagger": "mgmt-plane/dashboard/ResourceProviders/Microsoft.Dashboard/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGFzaGJvYXJkL2dyYWZhbmEve3dvcmtzcGFjZU5hbWV9L2ZldGNoQXZhaWxhYmxlUGx1Z2lucw==/V/MjAyMy0wOS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.workspaceName", "options": ["n", "name", "workspace-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The workspace name of Azure Managed Grafana."}}]}], "operations": [{"operationId": "Grafana_FetchAvailablePlugins", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/fetchAvailablePlugins", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}, {"type": "string", "name": "workspaceName", "arg": "$Path.workspaceName", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2023-09-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "name"}, {"readOnly": true, "type": "string", "name": "pluginId"}]}, "identifiers": ["pluginId"]}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dashboard/grafana/{}/fetchavailableplugins" version="2023-09-01" swagger="mgmt-plane/dashboard/ResourceProviders/Microsoft.Dashboard/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGFzaGJvYXJkL2dyYWZhbmEve3dvcmtzcGFjZU5hbWV9L2ZldGNoQXZhaWxhYmxlUGx1Z2lucw==/V/MjAyMy0wOS0wMQ=="/>
<commandGroup name="grafana">
<command name="list-available-plugin" version="2023-09-01" confirmation="">
<commandGroup name="grafana plugin">
<command name="list" version="2023-09-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dashboard/grafana/{}/fetchavailableplugins" version="2023-09-01" swagger="mgmt-plane/dashboard/ResourceProviders/Microsoft.Dashboard/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGFzaGJvYXJkL2dyYWZhbmEve3dvcmtzcGFjZU5hbWV9L2ZldGNoQXZhaWxhYmxlUGx1Z2lucw==/V/MjAyMy0wOS0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
Expand Down
Loading
Loading