Get a private link resource. Returns the configuration and status of private endpoint connectivity for Microsoft Defender for Cloud services in the specified region.
Uses Azure REST API version 2025-09-01-preview.
Other available API versions: 2026-01-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native security [ApiVersion]. See the version guide for details.
Using getPrivateLink
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPrivateLink(args: GetPrivateLinkArgs, opts?: InvokeOptions): Promise<GetPrivateLinkResult>
function getPrivateLinkOutput(args: GetPrivateLinkOutputArgs, opts?: InvokeOptions): Output<GetPrivateLinkResult>def get_private_link(private_link_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPrivateLinkResult
def get_private_link_output(private_link_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPrivateLinkResult]func LookupPrivateLink(ctx *Context, args *LookupPrivateLinkArgs, opts ...InvokeOption) (*LookupPrivateLinkResult, error)
func LookupPrivateLinkOutput(ctx *Context, args *LookupPrivateLinkOutputArgs, opts ...InvokeOption) LookupPrivateLinkResultOutput> Note: This function is named LookupPrivateLink in the Go SDK.
public static class GetPrivateLink
{
public static Task<GetPrivateLinkResult> InvokeAsync(GetPrivateLinkArgs args, InvokeOptions? opts = null)
public static Output<GetPrivateLinkResult> Invoke(GetPrivateLinkInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPrivateLinkResult> getPrivateLink(GetPrivateLinkArgs args, InvokeOptions options)
public static Output<GetPrivateLinkResult> getPrivateLink(GetPrivateLinkArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:security:getPrivateLink
arguments:
# arguments dictionaryThe following arguments are supported:
- Private
Link stringName - The name of the private link resource. Must be unique within the resource group and follow Azure naming conventions.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Private
Link stringName - The name of the private link resource. Must be unique within the resource group and follow Azure naming conventions.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- private
Link StringName - The name of the private link resource. Must be unique within the resource group and follow Azure naming conventions.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- private
Link stringName - The name of the private link resource. Must be unique within the resource group and follow Azure naming conventions.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- private_
link_ strname - The name of the private link resource. Must be unique within the resource group and follow Azure naming conventions.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- private
Link StringName - The name of the private link resource. Must be unique within the resource group and follow Azure naming conventions.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
getPrivateLink Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- Private
Endpoint List<Pulumi.Connections Azure Native. Security. Outputs. Private Endpoint Connection Response> - List of private endpoint connections associated with this private link. Each connection represents a private endpoint from a customer's virtual network.
- Private
Link List<Pulumi.Resources Azure Native. Security. Outputs. Private Link Resource Response> - List of private link resources available for connection. For Defender services, this typically includes the 'containers' group with 'api' and regional data endpoints.
- Provisioning
State string - The current provisioning state of the private link resource. Indicates whether the resource is being created, updated, deleted, or has completed successfully.
- System
Data Pulumi.Azure Native. Security. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Dictionary<string, string>
- Resource tags.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- Private
Endpoint []PrivateConnections Endpoint Connection Response - List of private endpoint connections associated with this private link. Each connection represents a private endpoint from a customer's virtual network.
- Private
Link []PrivateResources Link Resource Response - List of private link resources available for connection. For Defender services, this typically includes the 'containers' group with 'api' and regional data endpoints.
- Provisioning
State string - The current provisioning state of the private link resource. Indicates whether the resource is being created, updated, deleted, or has completed successfully.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- map[string]string
- Resource tags.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- private
Endpoint List<PrivateConnections Endpoint Connection Response> - List of private endpoint connections associated with this private link. Each connection represents a private endpoint from a customer's virtual network.
- private
Link List<PrivateResources Link Resource Response> - List of private link resources available for connection. For Defender services, this typically includes the 'containers' group with 'api' and regional data endpoints.
- provisioning
State String - The current provisioning state of the private link resource. Indicates whether the resource is being created, updated, deleted, or has completed successfully.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Map<String,String>
- Resource tags.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- location string
- The geo-location where the resource lives
- name string
- The name of the resource
- private
Endpoint PrivateConnections Endpoint Connection Response[] - List of private endpoint connections associated with this private link. Each connection represents a private endpoint from a customer's virtual network.
- private
Link PrivateResources Link Resource Response[] - List of private link resources available for connection. For Defender services, this typically includes the 'containers' group with 'api' and regional data endpoints.
- provisioning
State string - The current provisioning state of the private link resource. Indicates whether the resource is being created, updated, deleted, or has completed successfully.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- {[key: string]: string}
- Resource tags.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- location str
- The geo-location where the resource lives
- name str
- The name of the resource
- private_
endpoint_ Sequence[Privateconnections Endpoint Connection Response] - List of private endpoint connections associated with this private link. Each connection represents a private endpoint from a customer's virtual network.
- private_
link_ Sequence[Privateresources Link Resource Response] - List of private link resources available for connection. For Defender services, this typically includes the 'containers' group with 'api' and regional data endpoints.
- provisioning_
state str - The current provisioning state of the private link resource. Indicates whether the resource is being created, updated, deleted, or has completed successfully.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Mapping[str, str]
- Resource tags.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- private
Endpoint List<Property Map>Connections - List of private endpoint connections associated with this private link. Each connection represents a private endpoint from a customer's virtual network.
- private
Link List<Property Map>Resources - List of private link resources available for connection. For Defender services, this typically includes the 'containers' group with 'api' and regional data endpoints.
- provisioning
State String - The current provisioning state of the private link resource. Indicates whether the resource is being created, updated, deleted, or has completed successfully.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Map<String>
- Resource tags.
Supporting Types
PrivateEndpointConnectionResponse
- Group
Ids List<string> - The group ids for the private endpoint resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- Private
Link Pulumi.Service Connection State Azure Native. Security. Inputs. Private Link Service Connection State Response - A collection of information about the state of the connection between service consumer and provider.
- Provisioning
State string - The provisioning state of the private endpoint connection resource.
- System
Data Pulumi.Azure Native. Security. Inputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Private
Endpoint Pulumi.Azure Native. Security. Inputs. Private Endpoint Response - The private endpoint resource.
- Group
Ids []string - The group ids for the private endpoint resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- Private
Link PrivateService Connection State Link Service Connection State Response - A collection of information about the state of the connection between service consumer and provider.
- Provisioning
State string - The provisioning state of the private endpoint connection resource.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Private
Endpoint PrivateEndpoint Response - The private endpoint resource.
- group
Ids List<String> - The group ids for the private endpoint resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- private
Link PrivateService Connection State Link Service Connection State Response - A collection of information about the state of the connection between service consumer and provider.
- provisioning
State String - The provisioning state of the private endpoint connection resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- private
Endpoint PrivateEndpoint Response - The private endpoint resource.
- group
Ids string[] - The group ids for the private endpoint resource.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name string
- The name of the resource
- private
Link PrivateService Connection State Link Service Connection State Response - A collection of information about the state of the connection between service consumer and provider.
- provisioning
State string - The provisioning state of the private endpoint connection resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- private
Endpoint PrivateEndpoint Response - The private endpoint resource.
- group_
ids Sequence[str] - The group ids for the private endpoint resource.
- id str
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name str
- The name of the resource
- private_
link_ Privateservice_ connection_ state Link Service Connection State Response - A collection of information about the state of the connection between service consumer and provider.
- provisioning_
state str - The provisioning state of the private endpoint connection resource.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- private_
endpoint PrivateEndpoint Response - The private endpoint resource.
- group
Ids List<String> - The group ids for the private endpoint resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- private
Link Property MapService Connection State - A collection of information about the state of the connection between service consumer and provider.
- provisioning
State String - The provisioning state of the private endpoint connection resource.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- private
Endpoint Property Map - The private endpoint resource.
PrivateEndpointResponse
- Id string
- The ARM identifier for private endpoint.
- Id string
- The ARM identifier for private endpoint.
- id String
- The ARM identifier for private endpoint.
- id string
- The ARM identifier for private endpoint.
- id str
- The ARM identifier for private endpoint.
- id String
- The ARM identifier for private endpoint.
PrivateLinkResourceResponse
- Group
Id string - The private link resource group id.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- Required
Members List<string> - The private link resource required member names.
- System
Data Pulumi.Azure Native. Security. Inputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Required
Zone List<string>Names - The private link resource private link DNS zone name.
- Group
Id string - The private link resource group id.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- Required
Members []string - The private link resource required member names.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Required
Zone []stringNames - The private link resource private link DNS zone name.
- group
Id String - The private link resource group id.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- required
Members List<String> - The private link resource required member names.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- required
Zone List<String>Names - The private link resource private link DNS zone name.
- group
Id string - The private link resource group id.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name string
- The name of the resource
- required
Members string[] - The private link resource required member names.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- required
Zone string[]Names - The private link resource private link DNS zone name.
- group_
id str - The private link resource group id.
- id str
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name str
- The name of the resource
- required_
members Sequence[str] - The private link resource required member names.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- required_
zone_ Sequence[str]names - The private link resource private link DNS zone name.
- group
Id String - The private link resource group id.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- required
Members List<String> - The private link resource required member names.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- required
Zone List<String>Names - The private link resource private link DNS zone name.
PrivateLinkServiceConnectionStateResponse
- Actions
Required string - A message indicating if changes on the service provider require any updates on the consumer.
- Description string
- The reason for approval/rejection of the connection.
- Status string
- Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- Actions
Required string - A message indicating if changes on the service provider require any updates on the consumer.
- Description string
- The reason for approval/rejection of the connection.
- Status string
- Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- actions
Required String - A message indicating if changes on the service provider require any updates on the consumer.
- description String
- The reason for approval/rejection of the connection.
- status String
- Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- actions
Required string - A message indicating if changes on the service provider require any updates on the consumer.
- description string
- The reason for approval/rejection of the connection.
- status string
- Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- actions_
required str - A message indicating if changes on the service provider require any updates on the consumer.
- description str
- The reason for approval/rejection of the connection.
- status str
- Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- actions
Required String - A message indicating if changes on the service provider require any updates on the consumer.
- description String
- The reason for approval/rejection of the connection.
- status String
- Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
