GetTopicAuthorizationRule

Use this data source to access information about a ServiceBus Topic Authorization Rule within a ServiceBus Topic.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.ServiceBus.GetTopicAuthorizationRule.InvokeAsync(new Azure.ServiceBus.GetTopicAuthorizationRuleArgs
        {
            Name = "example-tfex_name",
            NamespaceName = "example-namespace",
            ResourceGroupName = "example-resources",
            TopicName = "example-servicebus_topic",
        }));
        this.ServicebusAuthorizationRuleId = data.Azurem_servicebus_topic_authorization_rule.Example.Id;
    }

    [Output("servicebusAuthorizationRuleId")]
    public Output<string> ServicebusAuthorizationRuleId { get; set; }
}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/servicebus"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := servicebus.LookupTopicAuthorizationRule(ctx, &servicebus.LookupTopicAuthorizationRuleArgs{
            Name:              "example-tfex_name",
            NamespaceName:     "example-namespace",
            ResourceGroupName: "example-resources",
            TopicName:         "example-servicebus_topic",
        }, nil)
        if err != nil {
            return err
        }
        ctx.Export("servicebusAuthorizationRuleId", data.Azurem_servicebus_topic_authorization_rule.Example.Id)
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example = azure.servicebus.get_topic_authorization_rule(name="example-tfex_name",
    namespace_name="example-namespace",
    resource_group_name="example-resources",
    topic_name="example-servicebus_topic")
pulumi.export("servicebusAuthorizationRuleId", data["azurem_servicebus_topic_authorization_rule"]["example"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = pulumi.output(azure.servicebus.getTopicAuthorizationRule({
    name: "example-tfex_name",
    namespaceName: "example-namespace",
    resourceGroupName: "example-resources",
    topicName: "example-servicebus_topic",
}, { async: true }));

export const servicebusAuthorizationRuleId = azurem_servicebus_topic_authorization_rule_example.id;

Using GetTopicAuthorizationRule

function getTopicAuthorizationRule(args: GetTopicAuthorizationRuleArgs, opts?: InvokeOptions): Promise<GetTopicAuthorizationRuleResult>
function  get_topic_authorization_rule(name=None, namespace_name=None, resource_group_name=None, topic_name=None, opts=None)
func LookupTopicAuthorizationRule(ctx *Context, args *LookupTopicAuthorizationRuleArgs, opts ...InvokeOption) (*LookupTopicAuthorizationRuleResult, error)

Note: This function is named LookupTopicAuthorizationRule in the Go SDK.

public static class GetTopicAuthorizationRule {
    public static Task<GetTopicAuthorizationRuleResult> InvokeAsync(GetTopicAuthorizationRuleArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the ServiceBus Topic Authorization Rule resource.

NamespaceName string

The name of the ServiceBus Namespace.

ResourceGroupName string

The name of the resource group in which the ServiceBus Namespace exists.

TopicName string

The name of the ServiceBus Topic.

Name string

The name of the ServiceBus Topic Authorization Rule resource.

NamespaceName string

The name of the ServiceBus Namespace.

ResourceGroupName string

The name of the resource group in which the ServiceBus Namespace exists.

TopicName string

The name of the ServiceBus Topic.

name string

The name of the ServiceBus Topic Authorization Rule resource.

namespaceName string

The name of the ServiceBus Namespace.

resourceGroupName string

The name of the resource group in which the ServiceBus Namespace exists.

topicName string

The name of the ServiceBus Topic.

name str

The name of the ServiceBus Topic Authorization Rule resource.

namespace_name str

The name of the ServiceBus Namespace.

resource_group_name str

The name of the resource group in which the ServiceBus Namespace exists.

topic_name str

The name of the ServiceBus Topic.

GetTopicAuthorizationRule Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Listen bool
Manage bool
Name string
NamespaceName string
PrimaryConnectionString string

The Primary Connection String for the ServiceBus Topic authorization Rule.

PrimaryKey string

The Primary Key for the ServiceBus Topic authorization Rule.

ResourceGroupName string
SecondaryConnectionString string

The Secondary Connection String for the ServiceBus Topic authorization Rule.

SecondaryKey string

The Secondary Key for the ServiceBus Topic authorization Rule.

Send bool
TopicName string
Id string

The provider-assigned unique ID for this managed resource.

Listen bool
Manage bool
Name string
NamespaceName string
PrimaryConnectionString string

The Primary Connection String for the ServiceBus Topic authorization Rule.

PrimaryKey string

The Primary Key for the ServiceBus Topic authorization Rule.

ResourceGroupName string
SecondaryConnectionString string

The Secondary Connection String for the ServiceBus Topic authorization Rule.

SecondaryKey string

The Secondary Key for the ServiceBus Topic authorization Rule.

Send bool
TopicName string
id string

The provider-assigned unique ID for this managed resource.

listen boolean
manage boolean
name string
namespaceName string
primaryConnectionString string

The Primary Connection String for the ServiceBus Topic authorization Rule.

primaryKey string

The Primary Key for the ServiceBus Topic authorization Rule.

resourceGroupName string
secondaryConnectionString string

The Secondary Connection String for the ServiceBus Topic authorization Rule.

secondaryKey string

The Secondary Key for the ServiceBus Topic authorization Rule.

send boolean
topicName string
id str

The provider-assigned unique ID for this managed resource.

listen bool
manage bool
name str
namespace_name str
primary_connection_string str

The Primary Connection String for the ServiceBus Topic authorization Rule.

primary_key str

The Primary Key for the ServiceBus Topic authorization Rule.

resource_group_name str
secondary_connection_string str

The Secondary Connection String for the ServiceBus Topic authorization Rule.

secondary_key str

The Secondary Key for the ServiceBus Topic authorization Rule.

send bool
topic_name str

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.