Edit

Share via


Managed Private Endpoints - Create Workspace Managed Private Endpoint

Note

This API is in preview.

Creates a managed private endpoint in the specified workspace.

Permissions

The caller must have admin workspace role.

Required Delegated Scopes

Workspace.ReadWrite.All.

Limitations

Microsoft Entra supported identities

This API supports the Microsoft identities listed in this section.

Identity Support
User Yes
Service principal and Managed identities Yes

Interface

POST https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/managedPrivateEndpoints

URI Parameters

Name In Required Type Description
workspaceId
path True

string (uuid)

The workspace ID.

Request Body

Name Required Type Description
name True

string

The private endpoint name. Should not be more than 64 characters.

targetPrivateLinkResourceId True

string

Resource Id of data source for which private endpoint needs to be created.

targetSubresourceType True

string

Sub-resource pointing to Private-link resoure.

requestMessage

string

Message to approve private endpoint request. Should not be more than 140 characters.

Responses

Name Type Description
201 Created

ManagedPrivateEndpoint

Request completed successfully.

Headers

Location: string

Other Status Codes

ErrorResponse

Common error codes:

  • UnknownError - An error occurred.

Examples

Create a managed private endpoint example

Sample request

POST https://api.fabric.microsoft.com/v1/workspaces/47482db6-4583-4672-86dd-999d0f8f4d7a/managedPrivateEndpoints

{
  "name": "testprivatendpoint1",
  "targetPrivateLinkResourceId": "/subscriptions/2374e587-d28b-4898-a39c-6070e078ae31/resourceGroups/testrg/providers/Microsoft.Sql/servers/testsql1",
  "targetSubresourceType": "sqlServer",
  "requestMessage": "Request message to approve private endpoint"
}

Sample response

Location: https://api.fabric.microsoft.com/v1/workspaces/47482db6-4583-4672-86dd-999d0f8f4d7a/managedPrivateEndpoints/59a92b06-6e5a-468c-b748-e28c8ff28da3
{
  "id": "59a92b06-6e5a-468c-b748-e28c8ff28da3",
  "name": "SqlPE",
  "targetPrivateLinkResourceId": "/subscriptions/e3bf3f1a-4d64-4e42-85e9-aa1b84e3874/resourceGroups/testRG/providers/Microsoft.SqlServer/SqlServer/sql1",
  "provisioningState": "Provisioning",
  "targetSubresourceType": "sqlServer"
}

Definitions

Name Description
ConnectionStatus

Private endpoint connection status. Additional connection status may be added over time.

CreateManagedPrivateEndpointRequest

Create managed private endpoint request payload.

ErrorRelatedResource

The error related resource details object.

ErrorResponse

The error response.

ErrorResponseDetails

The error response details.

ManagedPrivateEndpoint

Managed private endpoint.

PrivateEndpointConnectionState

Private endpoint connection state

PrivateEndpointProvisioningState

Provisioning state of endpoint.

ConnectionStatus

Private endpoint connection status. Additional connection status may be added over time.

Value Description
Approved

Endpoint approved

Disconnected

Endpoint disconnected

Pending

Pending approval

Rejected

Endpoint rejected

CreateManagedPrivateEndpointRequest

Create managed private endpoint request payload.

Name Type Description
name

string

The private endpoint name. Should not be more than 64 characters.

requestMessage

string

Message to approve private endpoint request. Should not be more than 140 characters.

targetPrivateLinkResourceId

string

Resource Id of data source for which private endpoint needs to be created.

targetSubresourceType

string

Sub-resource pointing to Private-link resoure.

ErrorRelatedResource

The error related resource details object.

Name Type Description
resourceId

string

The resource ID that's involved in the error.

resourceType

string

The type of the resource that's involved in the error.

ErrorResponse

The error response.

Name Type Description
errorCode

string

A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users.

message

string

A human readable representation of the error.

moreDetails

ErrorResponseDetails[]

List of additional error details.

relatedResource

ErrorRelatedResource

The error related resource details.

requestId

string

ID of the request associated with the error.

ErrorResponseDetails

The error response details.

Name Type Description
errorCode

string

A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users.

message

string

A human readable representation of the error.

relatedResource

ErrorRelatedResource

The error related resource details.

ManagedPrivateEndpoint

Managed private endpoint.

Name Type Description
connectionState

PrivateEndpointConnectionState

Endpoint connection state of provisioned endpoints.

id

string (uuid)

Managed private endpoint Id.

name

string

The private endpoint name.

provisioningState

PrivateEndpointProvisioningState

Provisioning state of endpoint.

targetPrivateLinkResourceId

string

Resource Id of data source for which private endpoint is created

targetSubresourceType

string

Sub-resource pointing to Private-link resoure.

PrivateEndpointConnectionState

Private endpoint connection state

Name Type Description
actionsRequired

string

Actions required to establish connection.

description

string

Description message (if any) provided on approving or rejecting the end point.

status

ConnectionStatus

Connection status

PrivateEndpointProvisioningState

Provisioning state of endpoint.

Value Description
Deleting

Private endpoint deleting

Failed

Private endpoint provisioning failed

Provisioning

Private endpoint in provisioning is in-progress

Succeeded

Private endpoint provisioning Succeeded

Updating

Private endpoint updating