We recommend using Azure Native.
azure.monitoring.getDataCollectionEndpoint
Explore with Pulumi AI
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 = azurerm_resource_group.Example.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: azurerm_resource_group.Example.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(azurerm_resource_group.example().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=azurerm_resource_group["example"]["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: azurerm_resource_group.example.name,
});
export const endpointId = example.then(example => example.id);
variables:
example:
fn::invoke:
Function: azure:monitoring:getDataCollectionEndpoint
Arguments:
name: example-mdce
resourceGroupName: ${azurerm_resource_group.example.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.
- Resource
Group 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.
- Resource
Group 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.
- resource
Group 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.
- resource
Group 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.
- resource
Group StringName Specifies the name of the resource group the Data Collection Endpoint is located in.
getDataCollectionEndpoint Result
The following output properties are available:
- Configuration
Access 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.
- Kind string
The kind of the Data Collection Endpoint. Possible values are
Linux
andWindows
.- Location string
The Azure Region where the Data Collection Endpoint should exist.
- Logs
Ingestion stringEndpoint The endpoint used for ingesting logs, e.g.,
https://mydce-abcd.eastus-1.ingest.monitor.azure.com
.- Name string
- Public
Network boolAccess Enabled Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are
true
andfalse
.- Resource
Group stringName - Dictionary<string, string>
A mapping of tags which should be assigned to the Data Collection Endpoint.
- Configuration
Access 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.
- Kind string
The kind of the Data Collection Endpoint. Possible values are
Linux
andWindows
.- Location string
The Azure Region where the Data Collection Endpoint should exist.
- Logs
Ingestion stringEndpoint The endpoint used for ingesting logs, e.g.,
https://mydce-abcd.eastus-1.ingest.monitor.azure.com
.- Name string
- Public
Network boolAccess Enabled Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are
true
andfalse
.- Resource
Group stringName - map[string]string
A mapping of tags which should be assigned to the Data Collection Endpoint.
- configuration
Access 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.
- kind String
The kind of the Data Collection Endpoint. Possible values are
Linux
andWindows
.- location String
The Azure Region where the Data Collection Endpoint should exist.
- logs
Ingestion StringEndpoint The endpoint used for ingesting logs, e.g.,
https://mydce-abcd.eastus-1.ingest.monitor.azure.com
.- name String
- public
Network BooleanAccess Enabled Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are
true
andfalse
.- resource
Group StringName - Map<String,String>
A mapping of tags which should be assigned to the Data Collection Endpoint.
- configuration
Access 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.
- kind string
The kind of the Data Collection Endpoint. Possible values are
Linux
andWindows
.- location string
The Azure Region where the Data Collection Endpoint should exist.
- logs
Ingestion stringEndpoint The endpoint used for ingesting logs, e.g.,
https://mydce-abcd.eastus-1.ingest.monitor.azure.com
.- name string
- public
Network booleanAccess Enabled Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are
true
andfalse
.- resource
Group 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.
- kind str
The kind of the Data Collection Endpoint. Possible values are
Linux
andWindows
.- 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
true
andfalse
.- resource_
group_ strname - Mapping[str, str]
A mapping of tags which should be assigned to the Data Collection Endpoint.
- configuration
Access 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.
- kind String
The kind of the Data Collection Endpoint. Possible values are
Linux
andWindows
.- location String
The Azure Region where the Data Collection Endpoint should exist.
- logs
Ingestion StringEndpoint The endpoint used for ingesting logs, e.g.,
https://mydce-abcd.eastus-1.ingest.monitor.azure.com
.- name String
- public
Network BooleanAccess Enabled Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are
true
andfalse
.- resource
Group 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
azurerm
Terraform Provider.