1. Packages
  2. Azure Classic
  3. API Docs
  4. monitoring
  5. getDataCollectionEndpoint

We recommend using Azure Native.

Azure Classic v5.67.1 published on Tuesday, Feb 27, 2024 by Pulumi

azure.monitoring.getDataCollectionEndpoint

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.67.1 published on Tuesday, Feb 27, 2024 by Pulumi

    Use this data source to access information about an existing Data Collection Endpoint.

    Example Usage

    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 main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/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
    	})
    }
    
    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()));
        }
    }
    
    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)
    
    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);
    
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:monitoring/getDataCollectionEndpoint:getDataCollectionEndpoint
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Specifies the name of the Data Collection Endpoint.
    ResourceGroupName string
    Specifies the name of the resource group the Data Collection Endpoint is located in.
    Name string
    Specifies the name of the Data Collection Endpoint.
    ResourceGroupName string
    Specifies the name of the resource group the Data Collection Endpoint is located in.
    name String
    Specifies the name of the Data Collection Endpoint.
    resourceGroupName String
    Specifies the name of the resource group the Data Collection Endpoint is located in.
    name string
    Specifies the name of the Data Collection Endpoint.
    resourceGroupName string
    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_name str
    Specifies the name of the resource group the Data Collection Endpoint is located in.
    name String
    Specifies the name of the Data Collection Endpoint.
    resourceGroupName String
    Specifies the name of the resource group the Data Collection Endpoint is located in.

    getDataCollectionEndpoint Result

    The following output properties are available:

    ConfigurationAccessEndpoint string
    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.
    Kind string
    The kind of the Data Collection Endpoint. Possible values are Linux and Windows.
    Location string
    The Azure Region where the Data Collection Endpoint should exist.
    LogsIngestionEndpoint string
    The endpoint used for ingesting logs, e.g., https://mydce-abcd.eastus-1.ingest.monitor.azure.com.
    Name string
    PublicNetworkAccessEnabled bool
    Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are true and false.
    ResourceGroupName string
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Data Collection Endpoint.
    ConfigurationAccessEndpoint string
    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.
    Kind string
    The kind of the Data Collection Endpoint. Possible values are Linux and Windows.
    Location string
    The Azure Region where the Data Collection Endpoint should exist.
    LogsIngestionEndpoint string
    The endpoint used for ingesting logs, e.g., https://mydce-abcd.eastus-1.ingest.monitor.azure.com.
    Name string
    PublicNetworkAccessEnabled bool
    Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are true and false.
    ResourceGroupName string
    Tags map[string]string
    A mapping of tags which should be assigned to the Data Collection Endpoint.
    configurationAccessEndpoint String
    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.
    kind String
    The kind of the Data Collection Endpoint. Possible values are Linux and Windows.
    location String
    The Azure Region where the Data Collection Endpoint should exist.
    logsIngestionEndpoint String
    The endpoint used for ingesting logs, e.g., https://mydce-abcd.eastus-1.ingest.monitor.azure.com.
    name String
    publicNetworkAccessEnabled Boolean
    Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are true and false.
    resourceGroupName String
    tags Map<String,String>
    A mapping of tags which should be assigned to the Data Collection Endpoint.
    configurationAccessEndpoint string
    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.
    kind string
    The kind of the Data Collection Endpoint. Possible values are Linux and Windows.
    location string
    The Azure Region where the Data Collection Endpoint should exist.
    logsIngestionEndpoint string
    The endpoint used for ingesting logs, e.g., https://mydce-abcd.eastus-1.ingest.monitor.azure.com.
    name string
    publicNetworkAccessEnabled boolean
    Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are true and false.
    resourceGroupName string
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Data Collection Endpoint.
    configuration_access_endpoint str
    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.
    kind str
    The kind of the Data Collection Endpoint. Possible values are Linux and Windows.
    location str
    The Azure Region where the Data Collection Endpoint should exist.
    logs_ingestion_endpoint str
    The endpoint used for ingesting logs, e.g., https://mydce-abcd.eastus-1.ingest.monitor.azure.com.
    name str
    public_network_access_enabled bool
    Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are true and false.
    resource_group_name str
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Data Collection Endpoint.
    configurationAccessEndpoint String
    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.
    kind String
    The kind of the Data Collection Endpoint. Possible values are Linux and Windows.
    location String
    The Azure Region where the Data Collection Endpoint should exist.
    logsIngestionEndpoint String
    The endpoint used for ingesting logs, e.g., https://mydce-abcd.eastus-1.ingest.monitor.azure.com.
    name String
    publicNetworkAccessEnabled Boolean
    Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are true and false.
    resourceGroupName String
    tags 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 azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.67.1 published on Tuesday, Feb 27, 2024 by Pulumi