Skip to content

Commit

Permalink
change to shortened mpe
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeralan committed Aug 21, 2024
1 parent 9ec7dff commit 210e33a
Show file tree
Hide file tree
Showing 16 changed files with 50 additions and 46 deletions.
23 changes: 0 additions & 23 deletions Commands/grafana/managed-private-endpoint/readme.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [Command] _grafana managed-private-endpoint create_
# [Command] _grafana mpe 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 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
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
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [Command] _grafana managed-private-endpoint delete_
# [Command] _grafana mpe delete_

Delete a managed private endpoint.

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

List all managed private endpoints.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [Command] _grafana managed-private-endpoint refresh_
# [Command] _grafana mpe 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 managed-private-endpoint show_
# [Command] _grafana mpe 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 managed-private-endpoint update_
# [Command] _grafana mpe update_

Update a managed private endpoint for a grafana resource.

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

Commands to manage managed private endpoints.

## Commands

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

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

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

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

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

- [update](/Commands/grafana/mpe/_update.md)
: Update a managed private endpoint for a grafana resource.
2 changes: 1 addition & 1 deletion Commands/grafana/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Commands to manage Azure Managed Grafana resources.

## Subgroups

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

- [private-endpoint-connection](/Commands/grafana/private-endpoint-connection/readme.md)
Expand Down
22 changes: 13 additions & 9 deletions Commands/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -48102,23 +48102,23 @@
},
"grafana": {
"commandGroups": {
"managed-private-endpoint": {
"mpe": {
"commands": {
"create": {
"help": {
"short": "Create a managed private endpoint."
},
"names": [
"grafana",
"managed-private-endpoint",
"mpe",
"create"
],
"versions": [
{
"examples": [
{
"commands": [
"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"
"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"
],
"name": "connect to an Azure SQL Server by resource ID"
}
Expand All @@ -48140,7 +48140,7 @@
},
"names": [
"grafana",
"managed-private-endpoint",
"mpe",
"delete"
],
"versions": [
Expand All @@ -48162,7 +48162,7 @@
},
"names": [
"grafana",
"managed-private-endpoint",
"mpe",
"list"
],
"versions": [
Expand All @@ -48184,7 +48184,7 @@
},
"names": [
"grafana",
"managed-private-endpoint",
"mpe",
"refresh"
],
"versions": [
Expand All @@ -48206,7 +48206,7 @@
},
"names": [
"grafana",
"managed-private-endpoint",
"mpe",
"show"
],
"versions": [
Expand All @@ -48228,7 +48228,7 @@
},
"names": [
"grafana",
"managed-private-endpoint",
"mpe",
"update"
],
"versions": [
Expand All @@ -48250,7 +48250,7 @@
},
"names": [
"grafana",
"managed-private-endpoint"
"mpe"
]
},
"private-endpoint-connection": {
Expand Down Expand Up @@ -48381,6 +48381,7 @@
"grafana",
"private-endpoint-connection"
]
}
},
"commands": {
"create": {
Expand Down Expand Up @@ -48517,6 +48518,9 @@
}
},
"help": {
"lines": [
"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 [email protected]"
],
"short": "Commands to manage Azure Managed Grafana resources."
},
"names": [
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/{}/managedprivateendpoints", "version": "2023-09-01", "swagger": "mgmt-plane/dashboard/ResourceProviders/Microsoft.Dashboard/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGFzaGJvYXJkL2dyYWZhbmEve3dvcmtzcGFjZU5hbWV9L21hbmFnZWRQcml2YXRlRW5kcG9pbnRz/V/MjAyMy0wOS0wMQ=="}], "commandGroups": [{"name": "grafana managed-private-endpoint", "commands": [{"name": "list", "version": "2023-09-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dashboard/grafana/{}/managedprivateendpoints", "version": "2023-09-01", "swagger": "mgmt-plane/dashboard/ResourceProviders/Microsoft.Dashboard/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGFzaGJvYXJkL2dyYWZhbmEve3dvcmtzcGFjZU5hbWV9L21hbmFnZWRQcml2YXRlRW5kcG9pbnRz/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": ["workspace-name"], "required": true, "idPart": "name", "help": {"short": "The workspace name of Azure Managed Grafana."}}]}], "operations": [{"operationId": "ManagedPrivateEndpoints_List", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/managedPrivateEndpoints", "request": {"method": "get", "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": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Dashboard/grafana/{}/managedPrivateEndpoints/{}"}}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"readOnly": true, "type": "object", "name": "connectionState", "props": [{"readOnly": true, "type": "string", "name": "description"}, {"readOnly": true, "type": "string", "name": "status", "enum": {"items": [{"value": "Approved"}, {"value": "Disconnected"}, {"value": "Pending"}, {"value": "Rejected"}]}}]}, {"type": "array<string>", "name": "groupIds", "item": {"type": "string"}}, {"type": "string", "name": "privateLinkResourceId"}, {"type": "string", "name": "privateLinkResourceRegion"}, {"readOnly": true, "type": "string", "name": "privateLinkServicePrivateIP"}, {"type": "string", "name": "privateLinkServiceUrl"}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Accepted"}, {"value": "Canceled"}, {"value": "Creating"}, {"value": "Deleted"}, {"value": "Deleting"}, {"value": "Failed"}, {"value": "NotSpecified"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "string", "name": "requestMessage"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dashboard/grafana/{}/managedprivateendpoints", "version": "2023-09-01", "swagger": "mgmt-plane/dashboard/ResourceProviders/Microsoft.Dashboard/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGFzaGJvYXJkL2dyYWZhbmEve3dvcmtzcGFjZU5hbWV9L21hbmFnZWRQcml2YXRlRW5kcG9pbnRz/V/MjAyMy0wOS0wMQ=="}], "commandGroups": [{"name": "grafana mpe", "commands": [{"name": "list", "version": "2023-09-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dashboard/grafana/{}/managedprivateendpoints", "version": "2023-09-01", "swagger": "mgmt-plane/dashboard/ResourceProviders/Microsoft.Dashboard/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGFzaGJvYXJkL2dyYWZhbmEve3dvcmtzcGFjZU5hbWV9L21hbmFnZWRQcml2YXRlRW5kcG9pbnRz/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": ["workspace-name"], "required": true, "idPart": "name", "help": {"short": "The workspace name of Azure Managed Grafana."}}]}], "operations": [{"operationId": "ManagedPrivateEndpoints_List", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/managedPrivateEndpoints", "request": {"method": "get", "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": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Dashboard/grafana/{}/managedPrivateEndpoints/{}"}}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"readOnly": true, "type": "object", "name": "connectionState", "props": [{"readOnly": true, "type": "string", "name": "description"}, {"readOnly": true, "type": "string", "name": "status", "enum": {"items": [{"value": "Approved"}, {"value": "Disconnected"}, {"value": "Pending"}, {"value": "Rejected"}]}}]}, {"type": "array<string>", "name": "groupIds", "item": {"type": "string"}}, {"type": "string", "name": "privateLinkResourceId"}, {"type": "string", "name": "privateLinkResourceRegion"}, {"readOnly": true, "type": "string", "name": "privateLinkServicePrivateIP"}, {"type": "string", "name": "privateLinkServiceUrl"}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Accepted"}, {"value": "Canceled"}, {"value": "Creating"}, {"value": "Deleted"}, {"value": "Deleting"}, {"value": "Failed"}, {"value": "NotSpecified"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "string", "name": "requestMessage"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dashboard/grafana/{}/managedprivateendpoints" version="2023-09-01" swagger="mgmt-plane/dashboard/ResourceProviders/Microsoft.Dashboard/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGFzaGJvYXJkL2dyYWZhbmEve3dvcmtzcGFjZU5hbWV9L21hbmFnZWRQcml2YXRlRW5kcG9pbnRz/V/MjAyMy0wOS0wMQ=="/>
<commandGroup name="grafana managed-private-endpoint">
<commandGroup name="grafana mpe">
<command name="list" version="2023-09-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dashboard/grafana/{}/managedprivateendpoints" version="2023-09-01" swagger="mgmt-plane/dashboard/ResourceProviders/Microsoft.Dashboard/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGFzaGJvYXJkL2dyYWZhbmEve3dvcmtzcGFjZU5hbWV9L21hbmFnZWRQcml2YXRlRW5kcG9pbnRz/V/MjAyMy0wOS0wMQ=="/>
<argGroup name="">
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dashboard/grafana/{}/managedprivateendpoints/{}" version="2023-09-01" swagger="mgmt-plane/dashboard/ResourceProviders/Microsoft.Dashboard/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGFzaGJvYXJkL2dyYWZhbmEve3dvcmtzcGFjZU5hbWV9L21hbmFnZWRQcml2YXRlRW5kcG9pbnRzL3ttYW5hZ2VkUHJpdmF0ZUVuZHBvaW50TmFtZX0=/V/MjAyMy0wOS0wMQ=="/>
<commandGroup name="grafana managed-private-endpoint">
<commandGroup name="grafana mpe">
<command name="show" version="2023-09-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dashboard/grafana/{}/managedprivateendpoints/{}" version="2023-09-01" swagger="mgmt-plane/dashboard/ResourceProviders/Microsoft.Dashboard/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGFzaGJvYXJkL2dyYWZhbmEve3dvcmtzcGFjZU5hbWV9L21hbmFnZWRQcml2YXRlRW5kcG9pbnRzL3ttYW5hZ2VkUHJpdmF0ZUVuZHBvaW50TmFtZX0=/V/MjAyMy0wOS0wMQ=="/>
<argGroup name="">
Expand Down
Loading

0 comments on commit 210e33a

Please sign in to comment.