We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.monitoring.getDataCollectionEndpoint
Explore with Pulumi AI
Use this data source to access information about an existing Data Collection Endpoint.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.monitoring.getDataCollectionEndpoint({
    name: "example-mdce",
    resourceGroupName: exampleAzurermResourceGroup.name,
});
export const endpointId = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.monitoring.get_data_collection_endpoint(name="example-mdce",
    resource_group_name=example_azurerm_resource_group["name"])
pulumi.export("endpointId", example.id)
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/monitoring"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := monitoring.LookupDataCollectionEndpoint(ctx, &monitoring.LookupDataCollectionEndpointArgs{
			Name:              "example-mdce",
			ResourceGroupName: exampleAzurermResourceGroup.Name,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("endpointId", example.Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = Azure.Monitoring.GetDataCollectionEndpoint.Invoke(new()
    {
        Name = "example-mdce",
        ResourceGroupName = exampleAzurermResourceGroup.Name,
    });
    return new Dictionary<string, object?>
    {
        ["endpointId"] = example.Apply(getDataCollectionEndpointResult => getDataCollectionEndpointResult.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.monitoring.MonitoringFunctions;
import com.pulumi.azure.monitoring.inputs.GetDataCollectionEndpointArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = MonitoringFunctions.getDataCollectionEndpoint(GetDataCollectionEndpointArgs.builder()
            .name("example-mdce")
            .resourceGroupName(exampleAzurermResourceGroup.name())
            .build());
        ctx.export("endpointId", example.applyValue(getDataCollectionEndpointResult -> getDataCollectionEndpointResult.id()));
    }
}
variables:
  example:
    fn::invoke:
      function: azure:monitoring:getDataCollectionEndpoint
      arguments:
        name: example-mdce
        resourceGroupName: ${exampleAzurermResourceGroup.name}
outputs:
  endpointId: ${example.id}
Using getDataCollectionEndpoint
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 getDataCollectionEndpoint(args: GetDataCollectionEndpointArgs, opts?: InvokeOptions): Promise<GetDataCollectionEndpointResult>
function getDataCollectionEndpointOutput(args: GetDataCollectionEndpointOutputArgs, opts?: InvokeOptions): Output<GetDataCollectionEndpointResult>def get_data_collection_endpoint(name: Optional[str] = None,
                                 resource_group_name: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetDataCollectionEndpointResult
def get_data_collection_endpoint_output(name: Optional[pulumi.Input[str]] = None,
                                 resource_group_name: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetDataCollectionEndpointResult]func LookupDataCollectionEndpoint(ctx *Context, args *LookupDataCollectionEndpointArgs, opts ...InvokeOption) (*LookupDataCollectionEndpointResult, error)
func LookupDataCollectionEndpointOutput(ctx *Context, args *LookupDataCollectionEndpointOutputArgs, opts ...InvokeOption) LookupDataCollectionEndpointResultOutput> Note: This function is named LookupDataCollectionEndpoint in the Go SDK.
public static class GetDataCollectionEndpoint 
{
    public static Task<GetDataCollectionEndpointResult> InvokeAsync(GetDataCollectionEndpointArgs args, InvokeOptions? opts = null)
    public static Output<GetDataCollectionEndpointResult> Invoke(GetDataCollectionEndpointInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDataCollectionEndpointResult> getDataCollectionEndpoint(GetDataCollectionEndpointArgs args, InvokeOptions options)
public static Output<GetDataCollectionEndpointResult> getDataCollectionEndpoint(GetDataCollectionEndpointArgs args, InvokeOptions options)
fn::invoke:
  function: azure:monitoring/getDataCollectionEndpoint:getDataCollectionEndpoint
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- Specifies the name of the Data Collection Endpoint.
- ResourceGroup stringName 
- Specifies the name of the resource group the Data Collection Endpoint is located in.
- Name string
- Specifies the name of the Data Collection Endpoint.
- ResourceGroup stringName 
- Specifies the name of the resource group the Data Collection Endpoint is located in.
- name String
- Specifies the name of the Data Collection Endpoint.
- resourceGroup StringName 
- Specifies the name of the resource group the Data Collection Endpoint is located in.
- name string
- Specifies the name of the Data Collection Endpoint.
- resourceGroup stringName 
- Specifies the name of the resource group the Data Collection Endpoint is located in.
- name str
- Specifies the name of the Data Collection Endpoint.
- resource_group_ strname 
- Specifies the name of the resource group the Data Collection Endpoint is located in.
- name String
- Specifies the name of the Data Collection Endpoint.
- resourceGroup StringName 
- Specifies the name of the resource group the Data Collection Endpoint is located in.
getDataCollectionEndpoint Result
The following output properties are available:
- ConfigurationAccess stringEndpoint 
- The endpoint used for accessing configuration, e.g., https://mydce-abcd.eastus-1.control.monitor.azure.com.
- Description string
- Specifies a description for the Data Collection Endpoint.
- Id string
- The provider-assigned unique ID for this managed resource.
- ImmutableId string
- The immutable ID of the Data Collection Endpoint.
- Kind string
- The kind of the Data Collection Endpoint. Possible values are LinuxandWindows.
- Location string
- The Azure Region where the Data Collection Endpoint should exist.
- LogsIngestion stringEndpoint 
- The endpoint used for ingesting logs, e.g., https://mydce-abcd.eastus-1.ingest.monitor.azure.com.
- Name string
- PublicNetwork boolAccess Enabled 
- Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are trueandfalse.
- ResourceGroup stringName 
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Data Collection Endpoint.
- ConfigurationAccess stringEndpoint 
- The endpoint used for accessing configuration, e.g., https://mydce-abcd.eastus-1.control.monitor.azure.com.
- Description string
- Specifies a description for the Data Collection Endpoint.
- Id string
- The provider-assigned unique ID for this managed resource.
- ImmutableId string
- The immutable ID of the Data Collection Endpoint.
- Kind string
- The kind of the Data Collection Endpoint. Possible values are LinuxandWindows.
- Location string
- The Azure Region where the Data Collection Endpoint should exist.
- LogsIngestion stringEndpoint 
- The endpoint used for ingesting logs, e.g., https://mydce-abcd.eastus-1.ingest.monitor.azure.com.
- Name string
- PublicNetwork boolAccess Enabled 
- Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are trueandfalse.
- ResourceGroup stringName 
- map[string]string
- A mapping of tags which should be assigned to the Data Collection Endpoint.
- configurationAccess StringEndpoint 
- The endpoint used for accessing configuration, e.g., https://mydce-abcd.eastus-1.control.monitor.azure.com.
- description String
- Specifies a description for the Data Collection Endpoint.
- id String
- The provider-assigned unique ID for this managed resource.
- immutableId String
- The immutable ID of the Data Collection Endpoint.
- kind String
- The kind of the Data Collection Endpoint. Possible values are LinuxandWindows.
- location String
- The Azure Region where the Data Collection Endpoint should exist.
- logsIngestion StringEndpoint 
- The endpoint used for ingesting logs, e.g., https://mydce-abcd.eastus-1.ingest.monitor.azure.com.
- name String
- publicNetwork BooleanAccess Enabled 
- Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are trueandfalse.
- resourceGroup StringName 
- Map<String,String>
- A mapping of tags which should be assigned to the Data Collection Endpoint.
- configurationAccess stringEndpoint 
- The endpoint used for accessing configuration, e.g., https://mydce-abcd.eastus-1.control.monitor.azure.com.
- description string
- Specifies a description for the Data Collection Endpoint.
- id string
- The provider-assigned unique ID for this managed resource.
- immutableId string
- The immutable ID of the Data Collection Endpoint.
- kind string
- The kind of the Data Collection Endpoint. Possible values are LinuxandWindows.
- location string
- The Azure Region where the Data Collection Endpoint should exist.
- logsIngestion stringEndpoint 
- The endpoint used for ingesting logs, e.g., https://mydce-abcd.eastus-1.ingest.monitor.azure.com.
- name string
- publicNetwork booleanAccess Enabled 
- Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are trueandfalse.
- resourceGroup stringName 
- {[key: string]: string}
- A mapping of tags which should be assigned to the Data Collection Endpoint.
- configuration_access_ strendpoint 
- The endpoint used for accessing configuration, e.g., https://mydce-abcd.eastus-1.control.monitor.azure.com.
- description str
- Specifies a description for the Data Collection Endpoint.
- id str
- The provider-assigned unique ID for this managed resource.
- immutable_id str
- The immutable ID of the Data Collection Endpoint.
- kind str
- The kind of the Data Collection Endpoint. Possible values are LinuxandWindows.
- location str
- The Azure Region where the Data Collection Endpoint should exist.
- logs_ingestion_ strendpoint 
- The endpoint used for ingesting logs, e.g., https://mydce-abcd.eastus-1.ingest.monitor.azure.com.
- name str
- public_network_ boolaccess_ enabled 
- Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are trueandfalse.
- resource_group_ strname 
- Mapping[str, str]
- A mapping of tags which should be assigned to the Data Collection Endpoint.
- configurationAccess StringEndpoint 
- The endpoint used for accessing configuration, e.g., https://mydce-abcd.eastus-1.control.monitor.azure.com.
- description String
- Specifies a description for the Data Collection Endpoint.
- id String
- The provider-assigned unique ID for this managed resource.
- immutableId String
- The immutable ID of the Data Collection Endpoint.
- kind String
- The kind of the Data Collection Endpoint. Possible values are LinuxandWindows.
- location String
- The Azure Region where the Data Collection Endpoint should exist.
- logsIngestion StringEndpoint 
- The endpoint used for ingesting logs, e.g., https://mydce-abcd.eastus-1.ingest.monitor.azure.com.
- name String
- publicNetwork BooleanAccess Enabled 
- Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are trueandfalse.
- resourceGroup StringName 
- Map<String>
- A mapping of tags which should be assigned to the Data Collection Endpoint.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.