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
LookupTopicAuthorizationRulein 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.
- Namespace
Name string The name of the ServiceBus Namespace.
- Resource
Group stringName The name of the resource group in which the ServiceBus Namespace exists.
- Topic
Name string The name of the ServiceBus Topic.
- Name string
The name of the ServiceBus Topic Authorization Rule resource.
- Namespace
Name string The name of the ServiceBus Namespace.
- Resource
Group stringName The name of the resource group in which the ServiceBus Namespace exists.
- Topic
Name string The name of the ServiceBus Topic.
- name string
The name of the ServiceBus Topic Authorization Rule resource.
- namespace
Name string The name of the ServiceBus Namespace.
- resource
Group stringName The name of the resource group in which the ServiceBus Namespace exists.
- topic
Name 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_ strname 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
- Namespace
Name string - Primary
Connection stringString The Primary Connection String for the ServiceBus Topic authorization Rule.
- Primary
Key string The Primary Key for the ServiceBus Topic authorization Rule.
- Resource
Group stringName - Secondary
Connection stringString The Secondary Connection String for the ServiceBus Topic authorization Rule.
- Secondary
Key string The Secondary Key for the ServiceBus Topic authorization Rule.
- Send bool
- Topic
Name string
- Id string
The provider-assigned unique ID for this managed resource.
- Listen bool
- Manage bool
- Name string
- Namespace
Name string - Primary
Connection stringString The Primary Connection String for the ServiceBus Topic authorization Rule.
- Primary
Key string The Primary Key for the ServiceBus Topic authorization Rule.
- Resource
Group stringName - Secondary
Connection stringString The Secondary Connection String for the ServiceBus Topic authorization Rule.
- Secondary
Key string The Secondary Key for the ServiceBus Topic authorization Rule.
- Send bool
- Topic
Name string
- id string
The provider-assigned unique ID for this managed resource.
- listen boolean
- manage boolean
- name string
- namespace
Name string - primary
Connection stringString The Primary Connection String for the ServiceBus Topic authorization Rule.
- primary
Key string The Primary Key for the ServiceBus Topic authorization Rule.
- resource
Group stringName - secondary
Connection stringString The Secondary Connection String for the ServiceBus Topic authorization Rule.
- secondary
Key string The Secondary Key for the ServiceBus Topic authorization Rule.
- send boolean
- topic
Name string
- id str
The provider-assigned unique ID for this managed resource.
- listen bool
- manage bool
- name str
- namespace_
name str - primary_
connection_ strstring The Primary Connection String for the ServiceBus Topic authorization Rule.
- primary_
key str The Primary Key for the ServiceBus Topic authorization Rule.
- resource_
group_ strname - secondary_
connection_ strstring 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
azurermTerraform Provider.