Delen via


Private Endpoints - PrivateEndpointConnections CreateOrUpdate

Update the status of a private endpoint connection with the given name.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}?api-version=2023-01-31

URI Parameters

Name In Required Type Description
privateEndpointConnectionName
path True

string

The name of the private endpoint connection.

resourceGroupName
path True

string

The name of the resource group that contains the DigitalTwinsInstance.

resourceName
path True

string

The name of the DigitalTwinsInstance.

Regex pattern: ^(?!-)[A-Za-z0-9-]{3,63}(?<!-)$

subscriptionId
path True

string

The subscription identifier.

api-version
query True

string

Version of the DigitalTwinsInstance Management API.

Request Body

Name Required Type Description
properties True

ConnectionProperties

The connection properties.

Responses

Name Type Description
200 OK

PrivateEndpointConnection

This is returned as a response when the resource already exists and was updated successfully.

202 Accepted

PrivateEndpointConnection

This is a long running operation. The operation returns a 202 if the validation is complete. The response includes an Azure-AsyncOperation header that contains a status URL. Clients are expected to poll the status URL for the status of the operation. If successful, the operation returns HTTP status code of 200 (OK).

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation Impersonate your user account

Examples

Update the status of a private endpoint connection with the given name

Sample request

PUT https://management.azure.com/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourceGroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/privateEndpointConnections/myPrivateConnection?api-version=2023-01-31

{
  "properties": {
    "privateLinkServiceConnectionState": {
      "status": "Approved",
      "description": "Approved by johndoe@company.com."
    }
  }
}

Sample response

{
  "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/privateEndpointConnections/myPrivateConnection",
  "name": "myPrivateConnection",
  "type": "Microsoft.DigitalTwins/digitalTwinsInstances/privateEndpointConnections",
  "properties": {
    "provisioningState": "Succeeded",
    "privateEndpoint": {
      "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourceGroups/resRg/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
    },
    "groupIds": [
      "digitalTwinsInstance"
    ],
    "privateLinkServiceConnectionState": {
      "status": "Approved",
      "description": "Approved by johndoe@company.com."
    }
  }
}
azure-asyncoperation: https://management.azure.com/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/providers/Microsoft.DigitalTwins/locations/westus2/operationStatuses/12345678-1234-1234-123456789012
location: https://management.azure.com/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/providers/Microsoft.DigitalTwins/locations/westus2/operationResults/12345678-1234-1234-123456789012
retry-after: 10
{
  "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwinsInstances/myDigitalTwinsService/privateEndpointConnections/myPrivateConnection",
  "name": "myPrivateConnection",
  "type": "Microsoft.DigitalTwins/digitalTwinsInstances/privateEndpointConnections",
  "properties": {
    "provisioningState": "Succeeded",
    "privateEndpoint": {
      "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourceGroups/resRg/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
    },
    "groupIds": [
      "digitalTwinsInstance"
    ],
    "privateLinkServiceConnectionState": {
      "status": "Pending",
      "description": "Awaiting approval."
    }
  }
}

Definitions

Name Description
ConnectionProperties

The properties of a private endpoint connection.

ConnectionPropertiesProvisioningState

The provisioning state.

createdByType

The type of identity that created the resource.

ErrorDefinition

Error definition.

ErrorResponse

Error response.

PrivateEndpoint

The private endpoint property of a private endpoint connection.

PrivateEndpointConnection

The private endpoint connection of a Digital Twin.

PrivateLinkServiceConnectionState

The connection state.

PrivateLinkServiceConnectionStatus

The status of a private endpoint connection.

SystemData

Metadata pertaining to creation and last modification of the resource.

ConnectionProperties

The properties of a private endpoint connection.

Name Type Description
groupIds

string[]

The list of group ids for the private endpoint connection.

privateEndpoint

PrivateEndpoint

The private endpoint.

privateLinkServiceConnectionState

PrivateLinkServiceConnectionState

The connection state.

provisioningState

ConnectionPropertiesProvisioningState

The provisioning state.

ConnectionPropertiesProvisioningState

The provisioning state.

Name Type Description
Approved

string

Disconnected

string

Pending

string

Rejected

string

createdByType

The type of identity that created the resource.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

ErrorDefinition

Error definition.

Name Type Description
code

string

Service specific error code which serves as the substatus for the HTTP error code.

details

ErrorDefinition[]

Internal error details.

message

string

Description of the error.

ErrorResponse

Error response.

Name Type Description
error

ErrorDefinition

Error description

PrivateEndpoint

The private endpoint property of a private endpoint connection.

Name Type Description
id

string

The resource identifier.

PrivateEndpointConnection

The private endpoint connection of a Digital Twin.

Name Type Description
id

string

The resource identifier.

name

string

The resource name.

properties

ConnectionProperties

The connection properties.

systemData

SystemData

Metadata pertaining to creation and last modification of the private endpoint connection.

type

string

The resource type.

PrivateLinkServiceConnectionState

The connection state.

Name Type Description
actionsRequired

string

Actions required for a private endpoint connection.

description

string

The description for the current state of a private endpoint connection.

status

PrivateLinkServiceConnectionStatus

The status of a private endpoint connection.

PrivateLinkServiceConnectionStatus

The status of a private endpoint connection.

Name Type Description
Approved

string

Disconnected

string

Pending

string

Rejected

string

SystemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.