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

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.eventgrid.getSystemTopic

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.eventgrid.getSystemTopic({
        name: "eventgrid-system-topic",
        resourceGroupName: "example-resources",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.eventgrid.get_system_topic(name="eventgrid-system-topic",
        resource_group_name="example-resources")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/eventgrid"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := eventgrid.LookupSystemTopic(ctx, &eventgrid.LookupSystemTopicArgs{
    			Name:              "eventgrid-system-topic",
    			ResourceGroupName: "example-resources",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.EventGrid.GetSystemTopic.Invoke(new()
        {
            Name = "eventgrid-system-topic",
            ResourceGroupName = "example-resources",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.eventgrid.EventgridFunctions;
    import com.pulumi.azure.eventgrid.inputs.GetSystemTopicArgs;
    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 = EventgridFunctions.getSystemTopic(GetSystemTopicArgs.builder()
                .name("eventgrid-system-topic")
                .resourceGroupName("example-resources")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: azure:eventgrid:getSystemTopic
          Arguments:
            name: eventgrid-system-topic
            resourceGroupName: example-resources
    

    Using getSystemTopic

    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 getSystemTopic(args: GetSystemTopicArgs, opts?: InvokeOptions): Promise<GetSystemTopicResult>
    function getSystemTopicOutput(args: GetSystemTopicOutputArgs, opts?: InvokeOptions): Output<GetSystemTopicResult>
    def get_system_topic(name: Optional[str] = None,
                         resource_group_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetSystemTopicResult
    def get_system_topic_output(name: Optional[pulumi.Input[str]] = None,
                         resource_group_name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetSystemTopicResult]
    func LookupSystemTopic(ctx *Context, args *LookupSystemTopicArgs, opts ...InvokeOption) (*LookupSystemTopicResult, error)
    func LookupSystemTopicOutput(ctx *Context, args *LookupSystemTopicOutputArgs, opts ...InvokeOption) LookupSystemTopicResultOutput

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

    public static class GetSystemTopic 
    {
        public static Task<GetSystemTopicResult> InvokeAsync(GetSystemTopicArgs args, InvokeOptions? opts = null)
        public static Output<GetSystemTopicResult> Invoke(GetSystemTopicInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSystemTopicResult> getSystemTopic(GetSystemTopicArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:eventgrid/getSystemTopic:getSystemTopic
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the EventGrid System Topic resource.
    ResourceGroupName string
    The name of the resource group in which the EventGrid System Topic exists.
    Name string
    The name of the EventGrid System Topic resource.
    ResourceGroupName string
    The name of the resource group in which the EventGrid System Topic exists.
    name String
    The name of the EventGrid System Topic resource.
    resourceGroupName String
    The name of the resource group in which the EventGrid System Topic exists.
    name string
    The name of the EventGrid System Topic resource.
    resourceGroupName string
    The name of the resource group in which the EventGrid System Topic exists.
    name str
    The name of the EventGrid System Topic resource.
    resource_group_name str
    The name of the resource group in which the EventGrid System Topic exists.
    name String
    The name of the EventGrid System Topic resource.
    resourceGroupName String
    The name of the resource group in which the EventGrid System Topic exists.

    getSystemTopic Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Identities List<GetSystemTopicIdentity>
    An identity block as defined below, which contains the Managed Service Identity information for this Event Grid System Topic.
    Location string
    MetricArmResourceId string
    The Metric ARM Resource ID of the Event Grid System Topic.
    Name string
    ResourceGroupName string
    SourceArmResourceId string
    The ID of the Event Grid System Topic ARM Source.
    Tags Dictionary<string, string>
    A mapping of tags which are assigned to the Event Grid System Topic.
    TopicType string
    The Topic Type of the Event Grid System Topic.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identities []GetSystemTopicIdentity
    An identity block as defined below, which contains the Managed Service Identity information for this Event Grid System Topic.
    Location string
    MetricArmResourceId string
    The Metric ARM Resource ID of the Event Grid System Topic.
    Name string
    ResourceGroupName string
    SourceArmResourceId string
    The ID of the Event Grid System Topic ARM Source.
    Tags map[string]string
    A mapping of tags which are assigned to the Event Grid System Topic.
    TopicType string
    The Topic Type of the Event Grid System Topic.
    id String
    The provider-assigned unique ID for this managed resource.
    identities List<GetSystemTopicIdentity>
    An identity block as defined below, which contains the Managed Service Identity information for this Event Grid System Topic.
    location String
    metricArmResourceId String
    The Metric ARM Resource ID of the Event Grid System Topic.
    name String
    resourceGroupName String
    sourceArmResourceId String
    The ID of the Event Grid System Topic ARM Source.
    tags Map<String,String>
    A mapping of tags which are assigned to the Event Grid System Topic.
    topicType String
    The Topic Type of the Event Grid System Topic.
    id string
    The provider-assigned unique ID for this managed resource.
    identities GetSystemTopicIdentity[]
    An identity block as defined below, which contains the Managed Service Identity information for this Event Grid System Topic.
    location string
    metricArmResourceId string
    The Metric ARM Resource ID of the Event Grid System Topic.
    name string
    resourceGroupName string
    sourceArmResourceId string
    The ID of the Event Grid System Topic ARM Source.
    tags {[key: string]: string}
    A mapping of tags which are assigned to the Event Grid System Topic.
    topicType string
    The Topic Type of the Event Grid System Topic.
    id str
    The provider-assigned unique ID for this managed resource.
    identities Sequence[GetSystemTopicIdentity]
    An identity block as defined below, which contains the Managed Service Identity information for this Event Grid System Topic.
    location str
    metric_arm_resource_id str
    The Metric ARM Resource ID of the Event Grid System Topic.
    name str
    resource_group_name str
    source_arm_resource_id str
    The ID of the Event Grid System Topic ARM Source.
    tags Mapping[str, str]
    A mapping of tags which are assigned to the Event Grid System Topic.
    topic_type str
    The Topic Type of the Event Grid System Topic.
    id String
    The provider-assigned unique ID for this managed resource.
    identities List<Property Map>
    An identity block as defined below, which contains the Managed Service Identity information for this Event Grid System Topic.
    location String
    metricArmResourceId String
    The Metric ARM Resource ID of the Event Grid System Topic.
    name String
    resourceGroupName String
    sourceArmResourceId String
    The ID of the Event Grid System Topic ARM Source.
    tags Map<String>
    A mapping of tags which are assigned to the Event Grid System Topic.
    topicType String
    The Topic Type of the Event Grid System Topic.

    Supporting Types

    GetSystemTopicIdentity

    IdentityIds List<string>
    The list of User Assigned Managed Identity IDs assigned to this Event Grid System Topic.
    PrincipalId string
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
    TenantId string
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
    Type string
    The type of Managed Service Identity that is configured on this Event Grid System Topic.
    IdentityIds []string
    The list of User Assigned Managed Identity IDs assigned to this Event Grid System Topic.
    PrincipalId string
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
    TenantId string
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
    Type string
    The type of Managed Service Identity that is configured on this Event Grid System Topic.
    identityIds List<String>
    The list of User Assigned Managed Identity IDs assigned to this Event Grid System Topic.
    principalId String
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
    tenantId String
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
    type String
    The type of Managed Service Identity that is configured on this Event Grid System Topic.
    identityIds string[]
    The list of User Assigned Managed Identity IDs assigned to this Event Grid System Topic.
    principalId string
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
    tenantId string
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
    type string
    The type of Managed Service Identity that is configured on this Event Grid System Topic.
    identity_ids Sequence[str]
    The list of User Assigned Managed Identity IDs assigned to this Event Grid System Topic.
    principal_id str
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
    tenant_id str
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
    type str
    The type of Managed Service Identity that is configured on this Event Grid System Topic.
    identityIds List<String>
    The list of User Assigned Managed Identity IDs assigned to this Event Grid System Topic.
    principalId String
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
    tenantId String
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
    type String
    The type of Managed Service Identity that is configured on this Event Grid System Topic.

    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.81.0 published on Monday, Jun 24, 2024 by Pulumi