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

We recommend using Azure Native.

Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi

azure.eventgrid.getSystemTopic

Explore with Pulumi AI

We recommend using Azure Native.

Azure v6.21.0 published on Friday, Mar 7, 2025 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",
});
Copy
import pulumi
import pulumi_azure as azure

example = azure.eventgrid.get_system_topic(name="eventgrid-system-topic",
    resource_group_name="example-resources")
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azure:eventgrid:getSystemTopic
      arguments:
        name: eventgrid-system-topic
        resourceGroupName: example-resources
Copy

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>
Copy
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]
Copy
func LookupSystemTopic(ctx *Context, args *LookupSystemTopicArgs, opts ...InvokeOption) (*LookupSystemTopicResult, error)
func LookupSystemTopicOutput(ctx *Context, args *LookupSystemTopicOutputArgs, opts ...InvokeOption) LookupSystemTopicResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetSystemTopicResult> getSystemTopic(GetSystemTopicArgs args, InvokeOptions options)
public static Output<GetSystemTopicResult> getSystemTopic(GetSystemTopicArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure:eventgrid/getSystemTopic:getSystemTopic
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of the EventGrid System Topic resource.
ResourceGroupName This property is required. string
The name of the resource group in which the EventGrid System Topic exists.
Name This property is required. string
The name of the EventGrid System Topic resource.
ResourceGroupName This property is required. string
The name of the resource group in which the EventGrid System Topic exists.
name This property is required. String
The name of the EventGrid System Topic resource.
resourceGroupName This property is required. String
The name of the resource group in which the EventGrid System Topic exists.
name This property is required. string
The name of the EventGrid System Topic resource.
resourceGroupName This property is required. string
The name of the resource group in which the EventGrid System Topic exists.
name This property is required. str
The name of the EventGrid System Topic resource.
resource_group_name This property is required. str
The name of the resource group in which the EventGrid System Topic exists.
name This property is required. String
The name of the EventGrid System Topic resource.
resourceGroupName This property is required. 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 This property is required. List<string>
The list of User Assigned Managed Identity IDs assigned to this Event Grid System Topic.
PrincipalId This property is required. string
The Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
TenantId This property is required. string
The Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
Type This property is required. string
The type of Managed Service Identity that is configured on this Event Grid System Topic.
IdentityIds This property is required. []string
The list of User Assigned Managed Identity IDs assigned to this Event Grid System Topic.
PrincipalId This property is required. string
The Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
TenantId This property is required. string
The Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
Type This property is required. string
The type of Managed Service Identity that is configured on this Event Grid System Topic.
identityIds This property is required. List<String>
The list of User Assigned Managed Identity IDs assigned to this Event Grid System Topic.
principalId This property is required. String
The Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
tenantId This property is required. String
The Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
type This property is required. String
The type of Managed Service Identity that is configured on this Event Grid System Topic.
identityIds This property is required. string[]
The list of User Assigned Managed Identity IDs assigned to this Event Grid System Topic.
principalId This property is required. string
The Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
tenantId This property is required. string
The Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
type This property is required. string
The type of Managed Service Identity that is configured on this Event Grid System Topic.
identity_ids This property is required. Sequence[str]
The list of User Assigned Managed Identity IDs assigned to this Event Grid System Topic.
principal_id This property is required. str
The Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
tenant_id This property is required. str
The Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
type This property is required. str
The type of Managed Service Identity that is configured on this Event Grid System Topic.
identityIds This property is required. List<String>
The list of User Assigned Managed Identity IDs assigned to this Event Grid System Topic.
principalId This property is required. String
The Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
tenantId This property is required. String
The Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
type This property is required. 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.

We recommend using Azure Native.

Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi