1. Packages
  2. Azure Classic
  3. API Docs
  4. eventgrid
  5. getDomainTopic

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Use this data source to access information about an existing EventGrid Domain Topic

    Example Usage

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var example = Output.Create(Azure.EventGrid.GetDomainTopic.InvokeAsync(new Azure.EventGrid.GetDomainTopicArgs
            {
                Name = "my-eventgrid-domain-topic",
                ResourceGroupName = "example-resources",
            }));
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/eventgrid"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := eventgrid.LookupDomainTopic(ctx, &eventgrid.LookupDomainTopicArgs{
    			Name:              "my-eventgrid-domain-topic",
    			ResourceGroupName: "example-resources",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = pulumi.output(azure.eventgrid.getDomainTopic({
        name: "my-eventgrid-domain-topic",
        resourceGroupName: "example-resources",
    }));
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.eventgrid.get_domain_topic(name="my-eventgrid-domain-topic",
        resource_group_name="example-resources")
    

    Example coming soon!

    Using getDomainTopic

    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 getDomainTopic(args: GetDomainTopicArgs, opts?: InvokeOptions): Promise<GetDomainTopicResult>
    function getDomainTopicOutput(args: GetDomainTopicOutputArgs, opts?: InvokeOptions): Output<GetDomainTopicResult>
    def get_domain_topic(domain_name: Optional[str] = None,
                         name: Optional[str] = None,
                         resource_group_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetDomainTopicResult
    def get_domain_topic_output(domain_name: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         resource_group_name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetDomainTopicResult]
    func LookupDomainTopic(ctx *Context, args *LookupDomainTopicArgs, opts ...InvokeOption) (*LookupDomainTopicResult, error)
    func LookupDomainTopicOutput(ctx *Context, args *LookupDomainTopicOutputArgs, opts ...InvokeOption) LookupDomainTopicResultOutput

    > Note: This function is named LookupDomainTopic in the Go SDK.

    public static class GetDomainTopic 
    {
        public static Task<GetDomainTopicResult> InvokeAsync(GetDomainTopicArgs args, InvokeOptions? opts = null)
        public static Output<GetDomainTopicResult> Invoke(GetDomainTopicInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDomainTopicResult> getDomainTopic(GetDomainTopicArgs args, InvokeOptions options)
    public static Output<GetDomainTopicResult> getDomainTopic(GetDomainTopicArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure:eventgrid/getDomainTopic:getDomainTopic
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DomainName string
    The name of the EventGrid Domain Topic domain.
    Name string
    The name of the EventGrid Domain Topic resource.
    ResourceGroupName string
    The name of the resource group in which the EventGrid Domain Topic exists.
    DomainName string
    The name of the EventGrid Domain Topic domain.
    Name string
    The name of the EventGrid Domain Topic resource.
    ResourceGroupName string
    The name of the resource group in which the EventGrid Domain Topic exists.
    domainName String
    The name of the EventGrid Domain Topic domain.
    name String
    The name of the EventGrid Domain Topic resource.
    resourceGroupName String
    The name of the resource group in which the EventGrid Domain Topic exists.
    domainName string
    The name of the EventGrid Domain Topic domain.
    name string
    The name of the EventGrid Domain Topic resource.
    resourceGroupName string
    The name of the resource group in which the EventGrid Domain Topic exists.
    domain_name str
    The name of the EventGrid Domain Topic domain.
    name str
    The name of the EventGrid Domain Topic resource.
    resource_group_name str
    The name of the resource group in which the EventGrid Domain Topic exists.
    domainName String
    The name of the EventGrid Domain Topic domain.
    name String
    The name of the EventGrid Domain Topic resource.
    resourceGroupName String
    The name of the resource group in which the EventGrid Domain Topic exists.

    getDomainTopic Result

    The following output properties are available:

    DomainName string
    The EventGrid Domain Topic Domain name.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    ResourceGroupName string
    DomainName string
    The EventGrid Domain Topic Domain name.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    ResourceGroupName string
    domainName String
    The EventGrid Domain Topic Domain name.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    resourceGroupName String
    domainName string
    The EventGrid Domain Topic Domain name.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    resourceGroupName string
    domain_name str
    The EventGrid Domain Topic Domain name.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    resource_group_name str
    domainName String
    The EventGrid Domain Topic Domain name.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    resourceGroupName String

    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.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.