PrivateEndpointDestination Class

Class representing a Private Endpoint outbound rule.

Creating a PrivateEndpointDestination outbound rule object.


   from azure.ai.ml.entities import PrivateEndpointDestination

   # Example private endpoint outbound to a blob
   blobrule = PrivateEndpointDestination(
       name="blobrule",
       service_resource_id="/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/storage-name",
       subresource_target="blob",
       spark_enabled=False,
   )

Inheritance
azure.ai.ml.entities._workspace.networking.OutboundRule
PrivateEndpointDestination

Constructor

PrivateEndpointDestination(*, name: str, service_resource_id: str, subresource_target: str, spark_enabled: bool = False, **kwargs: Any)

Parameters

Name Description
name
Required
str

Name of the outbound rule.

service_resource_id
Required
str

The resource URI of the root service that supports creation of the private link.

subresource_target
Required
str

The target endpoint of the subresource of the service.

spark_enabled
Required

Indicates if the private endpoint can be used for Spark jobs, default is "false".

Keyword-Only Parameters

Name Description
name
Required
service_resource_id
Required
subresource_target
Required
spark_enabled
Required

Variables

Name Description
type
str

Type of the outbound rule. Set to "PrivateEndpoint" for this class.