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,
)
# Example private endpoint outbound to an application gateway
appGwRule = PrivateEndpointDestination(
name="appGwRule",
service_resource_id="/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.Network/applicationGateways/appgw-name", # cspell:disable-line
subresource_target="appGwPrivateFrontendIpIPv4",
spark_enabled=False,
fqdns=["contoso.com", "contoso2.com"],
)
Constructor
PrivateEndpointDestination(*, name: str, service_resource_id: str, subresource_target: str, spark_enabled: bool = False, fqdns: List[str] | None = None, **kwargs: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
name
|
Name of the outbound rule. |
|
service_resource_id
|
The resource URI of the root service that supports creation of the private link. |
|
subresource_target
|
The target endpoint of the subresource of the service. |
|
spark_enabled
|
Indicates if the private endpoint can be used for Spark jobs, default is "false". Default value: False
|
|
fqdns
|
String list of FQDNs particular to the Private Endpoint resource creation. For application gateway Private Endpoints, this is the FQDN which will resolve to the private IP of the application gateway PE inside the workspace's managed network. Default value: None
|
Variables
| Name | Description |
|---|---|
|
type
|
Type of the outbound rule. Set to "PrivateEndpoint" for this class. |