Class GetNamespaceAuthorizationRule
Inheritance
System.Object
GetNamespaceAuthorizationRule
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.ServiceBus
Assembly: Pulumi.Azure.dll
Syntax
public static class GetNamespaceAuthorizationRule
Methods
View SourceInvokeAsync(GetNamespaceAuthorizationRuleArgs, InvokeOptions)
Use this data source to access information about an existing ServiceBus Namespace Authorization Rule.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.ServiceBus.GetNamespaceAuthorizationRule.InvokeAsync(new Azure.ServiceBus.GetNamespaceAuthorizationRuleArgs
{
Name = "examplerule",
NamespaceName = "examplenamespace",
ResourceGroupName = "example-resources",
}));
this.RuleId = example.Apply(example => example.Id);
}
[Output("ruleId")]
public Output<string> RuleId { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetNamespaceAuthorizationRuleResult> InvokeAsync(GetNamespaceAuthorizationRuleArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetNamespaceAuthorizationRuleArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetNamespaceAuthorizationRuleResult> |