Skip to main content

private_endpoint_connections

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

Overview

Nameprivate_endpoint_connections
TypeResource
Idazure.notification_hubs.private_endpoint_connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
namestringThe name of the resource.
groupIdsarrayList of group ids. For Notification Hubs, it always contains a single "namespace" element.
privateEndpointobjectRepresents a Private Endpoint that is connected to Notification Hubs namespace using Private Endpoint Connection.
privateLinkServiceConnectionStateobjectState of the Private Link Service connection.
provisioningStatestringState of Private Endpoint Connection. Known values are: "Unknown", "Succeeded", "Creating", "Updating", "UpdatingByProxy", "Deleting", "DeletingByProxy", and "Deleted".
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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, namespace_name, private_endpoint_connection_name, subscription_idReturns a Private Endpoint Connection with a given name. This is a public API that can be called directly by Notification Hubs users. Returns a Private Endpoint Connection with a given name. This is a public API that can be called directly by Notification Hubs users.
get_group_idselectresource_group_name, namespace_name, sub_resource_name, subscription_idReturns Group Id response. This is a public API required by the Networking RP contract. It can be used directly by Notification Hubs users. Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request.
listselectresource_group_name, namespace_name, subscription_idReturns all Private Endpoint Connections that belong to the given Notification Hubs namespace. This is a public API that can be called directly by Notification Hubs users. Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. This is a public API that can be called directly by Notification Hubs users.
updateupdateresource_group_name, namespace_name, private_endpoint_connection_name, subscription_idApproves or rejects Private Endpoint Connection. This is a public API that can be called directly by Notification Hubs users. Approves or rejects Private Endpoint Connection. This is a public API that can be called directly by Notification Hubs users.
deletedeleteresource_group_name, namespace_name, private_endpoint_connection_name, subscription_idDeletes the Private Endpoint Connection. This is a public API that can be called directly by Notification Hubs users. Deletes the Private Endpoint Connection. This is a public API that can be called directly by Notification Hubs users.
list_group_idsexecresource_group_name, namespace_name, subscription_idReturns all Group Ids supported by the Notification Hubs RP. This is a public API required by the Networking RP contract. It can be used directly by Notification Hubs users. Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request.

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
namespace_namestringNamespace name. Required.
private_endpoint_connection_namestringPrivate Endpoint Connection Name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
sub_resource_namestringName of the Private Link sub-resource. The only supported sub-resource is "namespace". Required.
subscription_idstring

SELECT examples

Returns a Private Endpoint Connection with a given name. This is a public API that can be called directly by Notification Hubs users. Returns a Private Endpoint Connection with a given name. This is a public API that can be called directly by Notification Hubs users.

SELECT
id,
name,
groupIds,
privateEndpoint,
privateLinkServiceConnectionState,
provisioningState,
systemData,
type
FROM azure.notification_hubs.private_endpoint_connections
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND namespace_name = '{{ namespace_name }}' -- required
AND private_endpoint_connection_name = '{{ private_endpoint_connection_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

UPDATE examples

Approves or rejects Private Endpoint Connection. This is a public API that can be called directly by Notification Hubs users. Approves or rejects Private Endpoint Connection. This is a public API that can be called directly by Notification Hubs users.

UPDATE azure.notification_hubs.private_endpoint_connections
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND namespace_name = '{{ namespace_name }}' --required
AND private_endpoint_connection_name = '{{ private_endpoint_connection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes the Private Endpoint Connection. This is a public API that can be called directly by Notification Hubs users. Deletes the Private Endpoint Connection. This is a public API that can be called directly by Notification Hubs users.

DELETE FROM azure.notification_hubs.private_endpoint_connections
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND namespace_name = '{{ namespace_name }}' --required
AND private_endpoint_connection_name = '{{ private_endpoint_connection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Returns all Group Ids supported by the Notification Hubs RP. This is a public API required by the Networking RP contract. It can be used directly by Notification Hubs users. Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request.

EXEC azure.notification_hubs.private_endpoint_connections.list_group_ids 
@resource_group_name='{{ resource_group_name }}' --required,
@namespace_name='{{ namespace_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;