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
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.
- Resource
Group stringName - The name of the resource group in which the EventGrid System Topic exists.
- Name string
- The name of the EventGrid System Topic resource.
- Resource
Group stringName - The name of the resource group in which the EventGrid System Topic exists.
- name String
- The name of the EventGrid System Topic resource.
- resource
Group StringName - The name of the resource group in which the EventGrid System Topic exists.
- name string
- The name of the EventGrid System Topic resource.
- resource
Group stringName - 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_ strname - The name of the resource group in which the EventGrid System Topic exists.
- name String
- The name of the EventGrid System Topic resource.
- resource
Group StringName - 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<Get
System Topic Identity> - An
identity
block as defined below, which contains the Managed Service Identity information for this Event Grid System Topic. - Location string
- Metric
Arm stringResource Id - The Metric ARM Resource ID of the Event Grid System Topic.
- Name string
- Resource
Group stringName - Source
Arm stringResource Id - The ID of the Event Grid System Topic ARM Source.
- Dictionary<string, string>
- A mapping of tags which are assigned to the Event Grid System Topic.
- Topic
Type string - The Topic Type of the Event Grid System Topic.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identities
[]Get
System Topic Identity - An
identity
block as defined below, which contains the Managed Service Identity information for this Event Grid System Topic. - Location string
- Metric
Arm stringResource Id - The Metric ARM Resource ID of the Event Grid System Topic.
- Name string
- Resource
Group stringName - Source
Arm stringResource Id - The ID of the Event Grid System Topic ARM Source.
- map[string]string
- A mapping of tags which are assigned to the Event Grid System Topic.
- Topic
Type string - The Topic Type of the Event Grid System Topic.
- id String
- The provider-assigned unique ID for this managed resource.
- identities
List<Get
System Topic Identity> - An
identity
block as defined below, which contains the Managed Service Identity information for this Event Grid System Topic. - location String
- metric
Arm StringResource Id - The Metric ARM Resource ID of the Event Grid System Topic.
- name String
- resource
Group StringName - source
Arm StringResource Id - The ID of the Event Grid System Topic ARM Source.
- Map<String,String>
- A mapping of tags which are assigned to the Event Grid System Topic.
- topic
Type String - The Topic Type of the Event Grid System Topic.
- id string
- The provider-assigned unique ID for this managed resource.
- identities
Get
System Topic Identity[] - An
identity
block as defined below, which contains the Managed Service Identity information for this Event Grid System Topic. - location string
- metric
Arm stringResource Id - The Metric ARM Resource ID of the Event Grid System Topic.
- name string
- resource
Group stringName - source
Arm stringResource Id - The ID of the Event Grid System Topic ARM Source.
- {[key: string]: string}
- A mapping of tags which are assigned to the Event Grid System Topic.
- topic
Type string - The Topic Type of the Event Grid System Topic.
- id str
- The provider-assigned unique ID for this managed resource.
- identities
Sequence[Get
System Topic Identity] - An
identity
block as defined below, which contains the Managed Service Identity information for this Event Grid System Topic. - location str
- metric_
arm_ strresource_ id - The Metric ARM Resource ID of the Event Grid System Topic.
- name str
- resource_
group_ strname - source_
arm_ strresource_ id - The ID of the Event Grid System Topic ARM Source.
- 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
- metric
Arm StringResource Id - The Metric ARM Resource ID of the Event Grid System Topic.
- name String
- resource
Group StringName - source
Arm StringResource Id - The ID of the Event Grid System Topic ARM Source.
- Map<String>
- A mapping of tags which are assigned to the Event Grid System Topic.
- topic
Type String - The Topic Type of the Event Grid System Topic.
Supporting Types
GetSystemTopicIdentity
- Identity
Ids List<string> - The list of User Assigned Managed Identity IDs assigned to this Event Grid System Topic.
- Principal
Id string - The Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
- Tenant
Id 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 []string - The list of User Assigned Managed Identity IDs assigned to this Event Grid System Topic.
- Principal
Id string - The Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
- Tenant
Id 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 List<String> - The list of User Assigned Managed Identity IDs assigned to this Event Grid System Topic.
- principal
Id String - The Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
- tenant
Id 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 string[] - The list of User Assigned Managed Identity IDs assigned to this Event Grid System Topic.
- principal
Id string - The Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
- tenant
Id 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.
- identity
Ids List<String> - The list of User Assigned Managed Identity IDs assigned to this Event Grid System Topic.
- principal
Id String - The Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid System Topic.
- tenant
Id 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.