Skip to main content

managed_private_endpoints

Creates, updates, deletes, gets or lists a managed_private_endpoints resource.

Overview

Namemanaged_private_endpoints
TypeResource
Idazure.dashboard.managed_private_endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
connectionStateobjectThe state of managed private endpoint connection.
groupIdsarrayThe group Ids of the managed private endpoint.
locationstringThe geo-location where the resource lives. Required.
privateLinkResourceIdstringThe ARM resource ID of the resource for which the managed private endpoint is pointing to.
privateLinkResourceRegionstringThe region of the resource to which the managed private endpoint is pointing to.
privateLinkServicePrivateIPstringThe private IP of private endpoint after approval. This property is empty before connection is approved.
privateLinkServiceUrlstringThe URL of the data store behind the private link service. It would be the URL in the Grafana data source configuration page without the protocol and port.
provisioningStatestringProvisioning state of the resource. Known values are: "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and "NotSpecified". (Accepted, Creating, Updating, Deleting, Succeeded, Failed, Canceled, Deleted, NotSpecified)
requestMessagestringUser input request message of the managed private endpoint.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, managed_private_endpoint_name, subscription_idGet a specific managed private endpoint of a grafana resource.
listselectresource_group_name, workspace_name, subscription_idList all managed private endpoints of a grafana resource.
createinsertresource_group_name, workspace_name, managed_private_endpoint_name, subscription_id, locationCreate or update a managed private endpoint for a grafana resource.
updateupdateresource_group_name, workspace_name, managed_private_endpoint_name, subscription_idUpdate a managed private endpoint for an existing grafana resource.
deletedeleteresource_group_name, workspace_name, managed_private_endpoint_name, subscription_idDelete a managed private endpoint for a grafana resource.
refreshexecresource_group_name, workspace_name, subscription_idRefresh and sync managed private endpoints of a grafana resource to latest state.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
managed_private_endpoint_namestringThe managed private endpoint name of Azure Managed Grafana. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe workspace name of Azure Managed Grafana. Required.

SELECT examples

Get a specific managed private endpoint of a grafana resource.

SELECT
id,
name,
connectionState,
groupIds,
location,
privateLinkResourceId,
privateLinkResourceRegion,
privateLinkServicePrivateIP,
privateLinkServiceUrl,
provisioningState,
requestMessage,
systemData,
tags,
type
FROM azure.dashboard.managed_private_endpoints
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND managed_private_endpoint_name = '{{ managed_private_endpoint_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update a managed private endpoint for a grafana resource.

INSERT INTO azure.dashboard.managed_private_endpoints (
tags,
location,
properties,
resource_group_name,
workspace_name,
managed_private_endpoint_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ managed_private_endpoint_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update a managed private endpoint for an existing grafana resource.

UPDATE azure.dashboard.managed_private_endpoints
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND managed_private_endpoint_name = '{{ managed_private_endpoint_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a managed private endpoint for a grafana resource.

DELETE FROM azure.dashboard.managed_private_endpoints
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND managed_private_endpoint_name = '{{ managed_private_endpoint_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Refresh and sync managed private endpoints of a grafana resource to latest state.

EXEC azure.dashboard.managed_private_endpoints.refresh 
@resource_group_name='{{ resource_group_name }}' --required,
@workspace_name='{{ workspace_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;