These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
azure-native.eventgrid.getTopic
Explore with Pulumi AI
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
Get properties of a topic. API Version: 2020-06-01.
Using getTopic
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 getTopic(args: GetTopicArgs, opts?: InvokeOptions): Promise<GetTopicResult>
function getTopicOutput(args: GetTopicOutputArgs, opts?: InvokeOptions): Output<GetTopicResult>def get_topic(resource_group_name: Optional[str] = None,
              topic_name: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetTopicResult
def get_topic_output(resource_group_name: Optional[pulumi.Input[str]] = None,
              topic_name: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetTopicResult]func LookupTopic(ctx *Context, args *LookupTopicArgs, opts ...InvokeOption) (*LookupTopicResult, error)
func LookupTopicOutput(ctx *Context, args *LookupTopicOutputArgs, opts ...InvokeOption) LookupTopicResultOutput> Note: This function is named LookupTopic in the Go SDK.
public static class GetTopic 
{
    public static Task<GetTopicResult> InvokeAsync(GetTopicArgs args, InvokeOptions? opts = null)
    public static Output<GetTopicResult> Invoke(GetTopicInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTopicResult> getTopic(GetTopicArgs args, InvokeOptions options)
public static Output<GetTopicResult> getTopic(GetTopicArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:eventgrid:getTopic
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ResourceGroup stringName 
- The name of the resource group within the user's subscription.
- TopicName string
- Name of the topic.
- ResourceGroup stringName 
- The name of the resource group within the user's subscription.
- TopicName string
- Name of the topic.
- resourceGroup StringName 
- The name of the resource group within the user's subscription.
- topicName String
- Name of the topic.
- resourceGroup stringName 
- The name of the resource group within the user's subscription.
- topicName string
- Name of the topic.
- resource_group_ strname 
- The name of the resource group within the user's subscription.
- topic_name str
- Name of the topic.
- resourceGroup StringName 
- The name of the resource group within the user's subscription.
- topicName String
- Name of the topic.
getTopic Result
The following output properties are available:
- Endpoint string
- Endpoint for the topic.
- Id string
- Fully qualified identifier of the resource.
- Location string
- Location of the resource.
- MetricResource stringId 
- Metric resource id for the topic.
- Name string
- Name of the resource.
- PrivateEndpoint List<Pulumi.Connections Azure Native. Event Grid. Outputs. Private Endpoint Connection Response> 
- ProvisioningState string
- Provisioning state of the topic.
- SystemData Pulumi.Azure Native. Event Grid. Outputs. System Data Response 
- The system metadata relating to Topic resource.
- Type string
- Type of the resource.
- InboundIp List<Pulumi.Rules Azure Native. Event Grid. Outputs. Inbound Ip Rule Response> 
- This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
- InputSchema string
- This determines the format that Event Grid should expect for incoming events published to the topic.
- InputSchema Pulumi.Mapping Azure Native. Event Grid. Outputs. Json Input Schema Mapping Response 
- This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema.
- PublicNetwork stringAccess 
- This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring
- Dictionary<string, string>
- Tags of the resource.
- Endpoint string
- Endpoint for the topic.
- Id string
- Fully qualified identifier of the resource.
- Location string
- Location of the resource.
- MetricResource stringId 
- Metric resource id for the topic.
- Name string
- Name of the resource.
- PrivateEndpoint []PrivateConnections Endpoint Connection Response 
- ProvisioningState string
- Provisioning state of the topic.
- SystemData SystemData Response 
- The system metadata relating to Topic resource.
- Type string
- Type of the resource.
- InboundIp []InboundRules Ip Rule Response 
- This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
- InputSchema string
- This determines the format that Event Grid should expect for incoming events published to the topic.
- InputSchema JsonMapping Input Schema Mapping Response 
- This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema.
- PublicNetwork stringAccess 
- This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring
- map[string]string
- Tags of the resource.
- endpoint String
- Endpoint for the topic.
- id String
- Fully qualified identifier of the resource.
- location String
- Location of the resource.
- metricResource StringId 
- Metric resource id for the topic.
- name String
- Name of the resource.
- privateEndpoint List<PrivateConnections Endpoint Connection Response> 
- provisioningState String
- Provisioning state of the topic.
- systemData SystemData Response 
- The system metadata relating to Topic resource.
- type String
- Type of the resource.
- inboundIp List<InboundRules Ip Rule Response> 
- This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
- inputSchema String
- This determines the format that Event Grid should expect for incoming events published to the topic.
- inputSchema JsonMapping Input Schema Mapping Response 
- This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema.
- publicNetwork StringAccess 
- This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring
- Map<String,String>
- Tags of the resource.
- endpoint string
- Endpoint for the topic.
- id string
- Fully qualified identifier of the resource.
- location string
- Location of the resource.
- metricResource stringId 
- Metric resource id for the topic.
- name string
- Name of the resource.
- privateEndpoint PrivateConnections Endpoint Connection Response[] 
- provisioningState string
- Provisioning state of the topic.
- systemData SystemData Response 
- The system metadata relating to Topic resource.
- type string
- Type of the resource.
- inboundIp InboundRules Ip Rule Response[] 
- This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
- inputSchema string
- This determines the format that Event Grid should expect for incoming events published to the topic.
- inputSchema JsonMapping Input Schema Mapping Response 
- This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema.
- publicNetwork stringAccess 
- This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring
- {[key: string]: string}
- Tags of the resource.
- endpoint str
- Endpoint for the topic.
- id str
- Fully qualified identifier of the resource.
- location str
- Location of the resource.
- metric_resource_ strid 
- Metric resource id for the topic.
- name str
- Name of the resource.
- private_endpoint_ Sequence[Privateconnections Endpoint Connection Response] 
- provisioning_state str
- Provisioning state of the topic.
- system_data SystemData Response 
- The system metadata relating to Topic resource.
- type str
- Type of the resource.
- inbound_ip_ Sequence[Inboundrules Ip Rule Response] 
- This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
- input_schema str
- This determines the format that Event Grid should expect for incoming events published to the topic.
- input_schema_ Jsonmapping Input Schema Mapping Response 
- This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema.
- public_network_ straccess 
- This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring
- Mapping[str, str]
- Tags of the resource.
- endpoint String
- Endpoint for the topic.
- id String
- Fully qualified identifier of the resource.
- location String
- Location of the resource.
- metricResource StringId 
- Metric resource id for the topic.
- name String
- Name of the resource.
- privateEndpoint List<Property Map>Connections 
- provisioningState String
- Provisioning state of the topic.
- systemData Property Map
- The system metadata relating to Topic resource.
- type String
- Type of the resource.
- inboundIp List<Property Map>Rules 
- This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
- inputSchema String
- This determines the format that Event Grid should expect for incoming events published to the topic.
- inputSchema Property MapMapping 
- This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema.
- publicNetwork StringAccess 
- This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring
- Map<String>
- Tags of the resource.
Supporting Types
ConnectionStateResponse  
- ActionsRequired string
- Actions required (if any).
- Description string
- Description of the connection state.
- Status string
- Status of the connection.
- ActionsRequired string
- Actions required (if any).
- Description string
- Description of the connection state.
- Status string
- Status of the connection.
- actionsRequired String
- Actions required (if any).
- description String
- Description of the connection state.
- status String
- Status of the connection.
- actionsRequired string
- Actions required (if any).
- description string
- Description of the connection state.
- status string
- Status of the connection.
- actions_required str
- Actions required (if any).
- description str
- Description of the connection state.
- status str
- Status of the connection.
- actionsRequired String
- Actions required (if any).
- description String
- Description of the connection state.
- status String
- Status of the connection.
InboundIpRuleResponse   
JsonFieldResponse  
- SourceField string
- Name of a field in the input event schema that's to be used as the source of a mapping.
- SourceField string
- Name of a field in the input event schema that's to be used as the source of a mapping.
- sourceField String
- Name of a field in the input event schema that's to be used as the source of a mapping.
- sourceField string
- Name of a field in the input event schema that's to be used as the source of a mapping.
- source_field str
- Name of a field in the input event schema that's to be used as the source of a mapping.
- sourceField String
- Name of a field in the input event schema that's to be used as the source of a mapping.
JsonFieldWithDefaultResponse    
- DefaultValue string
- The default value to be used for mapping when a SourceField is not provided or if there's no property with the specified name in the published JSON event payload.
- SourceField string
- Name of a field in the input event schema that's to be used as the source of a mapping.
- DefaultValue string
- The default value to be used for mapping when a SourceField is not provided or if there's no property with the specified name in the published JSON event payload.
- SourceField string
- Name of a field in the input event schema that's to be used as the source of a mapping.
- defaultValue String
- The default value to be used for mapping when a SourceField is not provided or if there's no property with the specified name in the published JSON event payload.
- sourceField String
- Name of a field in the input event schema that's to be used as the source of a mapping.
- defaultValue string
- The default value to be used for mapping when a SourceField is not provided or if there's no property with the specified name in the published JSON event payload.
- sourceField string
- Name of a field in the input event schema that's to be used as the source of a mapping.
- default_value str
- The default value to be used for mapping when a SourceField is not provided or if there's no property with the specified name in the published JSON event payload.
- source_field str
- Name of a field in the input event schema that's to be used as the source of a mapping.
- defaultValue String
- The default value to be used for mapping when a SourceField is not provided or if there's no property with the specified name in the published JSON event payload.
- sourceField String
- Name of a field in the input event schema that's to be used as the source of a mapping.
JsonInputSchemaMappingResponse    
- DataVersion Pulumi.Azure Native. Event Grid. Inputs. Json Field With Default Response 
- The mapping information for the DataVersion property of the Event Grid Event.
- EventTime Pulumi.Azure Native. Event Grid. Inputs. Json Field Response 
- The mapping information for the EventTime property of the Event Grid Event.
- EventType Pulumi.Azure Native. Event Grid. Inputs. Json Field With Default Response 
- The mapping information for the EventType property of the Event Grid Event.
- Id
Pulumi.Azure Native. Event Grid. Inputs. Json Field Response 
- The mapping information for the Id property of the Event Grid Event.
- Subject
Pulumi.Azure Native. Event Grid. Inputs. Json Field With Default Response 
- The mapping information for the Subject property of the Event Grid Event.
- Topic
Pulumi.Azure Native. Event Grid. Inputs. Json Field Response 
- The mapping information for the Topic property of the Event Grid Event.
- DataVersion JsonField With Default Response 
- The mapping information for the DataVersion property of the Event Grid Event.
- EventTime JsonField Response 
- The mapping information for the EventTime property of the Event Grid Event.
- EventType JsonField With Default Response 
- The mapping information for the EventType property of the Event Grid Event.
- Id
JsonField Response 
- The mapping information for the Id property of the Event Grid Event.
- Subject
JsonField With Default Response 
- The mapping information for the Subject property of the Event Grid Event.
- Topic
JsonField Response 
- The mapping information for the Topic property of the Event Grid Event.
- dataVersion JsonField With Default Response 
- The mapping information for the DataVersion property of the Event Grid Event.
- eventTime JsonField Response 
- The mapping information for the EventTime property of the Event Grid Event.
- eventType JsonField With Default Response 
- The mapping information for the EventType property of the Event Grid Event.
- id
JsonField Response 
- The mapping information for the Id property of the Event Grid Event.
- subject
JsonField With Default Response 
- The mapping information for the Subject property of the Event Grid Event.
- topic
JsonField Response 
- The mapping information for the Topic property of the Event Grid Event.
- dataVersion JsonField With Default Response 
- The mapping information for the DataVersion property of the Event Grid Event.
- eventTime JsonField Response 
- The mapping information for the EventTime property of the Event Grid Event.
- eventType JsonField With Default Response 
- The mapping information for the EventType property of the Event Grid Event.
- id
JsonField Response 
- The mapping information for the Id property of the Event Grid Event.
- subject
JsonField With Default Response 
- The mapping information for the Subject property of the Event Grid Event.
- topic
JsonField Response 
- The mapping information for the Topic property of the Event Grid Event.
- data_version JsonField With Default Response 
- The mapping information for the DataVersion property of the Event Grid Event.
- event_time JsonField Response 
- The mapping information for the EventTime property of the Event Grid Event.
- event_type JsonField With Default Response 
- The mapping information for the EventType property of the Event Grid Event.
- id
JsonField Response 
- The mapping information for the Id property of the Event Grid Event.
- subject
JsonField With Default Response 
- The mapping information for the Subject property of the Event Grid Event.
- topic
JsonField Response 
- The mapping information for the Topic property of the Event Grid Event.
- dataVersion Property Map
- The mapping information for the DataVersion property of the Event Grid Event.
- eventTime Property Map
- The mapping information for the EventTime property of the Event Grid Event.
- eventType Property Map
- The mapping information for the EventType property of the Event Grid Event.
- id Property Map
- The mapping information for the Id property of the Event Grid Event.
- subject Property Map
- The mapping information for the Subject property of the Event Grid Event.
- topic Property Map
- The mapping information for the Topic property of the Event Grid Event.
PrivateEndpointConnectionResponse   
- Id string
- Fully qualified identifier of the resource.
- Name string
- Name of the resource.
- Type string
- Type of the resource.
- GroupIds List<string>
- GroupIds from the private link service resource.
- PrivateEndpoint Pulumi.Azure Native. Event Grid. Inputs. Private Endpoint Response 
- The Private Endpoint resource for this Connection.
- PrivateLink Pulumi.Service Connection State Azure Native. Event Grid. Inputs. Connection State Response 
- Details about the state of the connection.
- ProvisioningState string
- Provisioning state of the Private Endpoint Connection.
- Id string
- Fully qualified identifier of the resource.
- Name string
- Name of the resource.
- Type string
- Type of the resource.
- GroupIds []string
- GroupIds from the private link service resource.
- PrivateEndpoint PrivateEndpoint Response 
- The Private Endpoint resource for this Connection.
- PrivateLink ConnectionService Connection State State Response 
- Details about the state of the connection.
- ProvisioningState string
- Provisioning state of the Private Endpoint Connection.
- id String
- Fully qualified identifier of the resource.
- name String
- Name of the resource.
- type String
- Type of the resource.
- groupIds List<String>
- GroupIds from the private link service resource.
- privateEndpoint PrivateEndpoint Response 
- The Private Endpoint resource for this Connection.
- privateLink ConnectionService Connection State State Response 
- Details about the state of the connection.
- provisioningState String
- Provisioning state of the Private Endpoint Connection.
- id string
- Fully qualified identifier of the resource.
- name string
- Name of the resource.
- type string
- Type of the resource.
- groupIds string[]
- GroupIds from the private link service resource.
- privateEndpoint PrivateEndpoint Response 
- The Private Endpoint resource for this Connection.
- privateLink ConnectionService Connection State State Response 
- Details about the state of the connection.
- provisioningState string
- Provisioning state of the Private Endpoint Connection.
- id str
- Fully qualified identifier of the resource.
- name str
- Name of the resource.
- type str
- Type of the resource.
- group_ids Sequence[str]
- GroupIds from the private link service resource.
- private_endpoint PrivateEndpoint Response 
- The Private Endpoint resource for this Connection.
- private_link_ Connectionservice_ connection_ state State Response 
- Details about the state of the connection.
- provisioning_state str
- Provisioning state of the Private Endpoint Connection.
- id String
- Fully qualified identifier of the resource.
- name String
- Name of the resource.
- type String
- Type of the resource.
- groupIds List<String>
- GroupIds from the private link service resource.
- privateEndpoint Property Map
- The Private Endpoint resource for this Connection.
- privateLink Property MapService Connection State 
- Details about the state of the connection.
- provisioningState String
- Provisioning state of the Private Endpoint Connection.
PrivateEndpointResponse  
- Id string
- The ARM identifier for Private Endpoint.
- Id string
- The ARM identifier for Private Endpoint.
- id String
- The ARM identifier for Private Endpoint.
- id string
- The ARM identifier for Private Endpoint.
- id str
- The ARM identifier for Private Endpoint.
- id String
- The ARM identifier for Private Endpoint.
SystemDataResponse  
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi