GetNamespaceAuthorizationRule
Use this data source to access information about an Authorization Rule for an Event Hub Namespace.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.EventHub.GetNamespaceAuthorizationRule.InvokeAsync(new Azure.EventHub.GetNamespaceAuthorizationRuleArgs
{
Name = "navi",
ResourceGroupName = "example-resources",
NamespaceName = "example-ns",
}));
this.EventhubAuthorizationRuleId = data.Azurem_eventhub_namespace_authorization_rule.Example.Id;
}
[Output("eventhubAuthorizationRuleId")]
public Output<string> EventhubAuthorizationRuleId { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/eventhub"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eventhub.LookupNamespaceAuthorizationRule(ctx, &eventhub.LookupNamespaceAuthorizationRuleArgs{
Name: "navi",
ResourceGroupName: "example-resources",
NamespaceName: "example-ns",
}, nil)
if err != nil {
return err
}
ctx.Export("eventhubAuthorizationRuleId", data.Azurem_eventhub_namespace_authorization_rule.Example.Id)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.eventhub.get_namespace_authorization_rule(name="navi",
resource_group_name="example-resources",
namespace_name="example-ns")
pulumi.export("eventhubAuthorizationRuleId", data["azurem_eventhub_namespace_authorization_rule"]["example"]["id"])import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.eventhub.getNamespaceAuthorizationRule({
name: "navi",
resourceGroupName: "example-resources",
namespaceName: "example-ns",
});
export const eventhubAuthorizationRuleId = data.azurem_eventhub_namespace_authorization_rule.example.id;Using GetNamespaceAuthorizationRule
function getNamespaceAuthorizationRule(args: GetNamespaceAuthorizationRuleArgs, opts?: InvokeOptions): Promise<GetNamespaceAuthorizationRuleResult>function get_namespace_authorization_rule(name=None, namespace_name=None, resource_group_name=None, opts=None)func LookupNamespaceAuthorizationRule(ctx *Context, args *LookupNamespaceAuthorizationRuleArgs, opts ...InvokeOption) (*LookupNamespaceAuthorizationRuleResult, error)Note: This function is named
LookupNamespaceAuthorizationRulein the Go SDK.
public static class GetNamespaceAuthorizationRule {
public static Task<GetNamespaceAuthorizationRuleResult> InvokeAsync(GetNamespaceAuthorizationRuleArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the EventHub Authorization Rule resource.
- Namespace
Name string Specifies the name of the EventHub Namespace.
- Resource
Group stringName The name of the resource group in which the EventHub Namespace exists.
- Name string
The name of the EventHub Authorization Rule resource.
- Namespace
Name string Specifies the name of the EventHub Namespace.
- Resource
Group stringName The name of the resource group in which the EventHub Namespace exists.
- name string
The name of the EventHub Authorization Rule resource.
- namespace
Name string Specifies the name of the EventHub Namespace.
- resource
Group stringName The name of the resource group in which the EventHub Namespace exists.
- name str
The name of the EventHub Authorization Rule resource.
- namespace_
name str Specifies the name of the EventHub Namespace.
- resource_
group_ strname The name of the resource group in which the EventHub Namespace exists.
GetNamespaceAuthorizationRule Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Listen bool
Does this Authorization Rule have permissions to Listen to the Event Hub?
- Manage bool
Does this Authorization Rule have permissions to Manage to the Event Hub?
- Name string
- Namespace
Name string - Primary
Connection stringString The Primary Connection String for the Event Hubs authorization Rule.
- Primary
Connection stringString Alias The alias of the Primary Connection String for the Event Hubs authorization Rule.
- Primary
Key string The Primary Key for the Event Hubs authorization Rule.
- Resource
Group stringName - Secondary
Connection stringString The Secondary Connection String for the Event Hubs authorization Rule.
- Secondary
Connection stringString Alias The alias of the Secondary Connection String for the Event Hubs authorization Rule.
- Secondary
Key string The Secondary Key for the Event Hubs authorization Rule.
- Send bool
Does this Authorization Rule have permissions to Send to the Event Hub?
- Id string
The provider-assigned unique ID for this managed resource.
- Listen bool
Does this Authorization Rule have permissions to Listen to the Event Hub?
- Manage bool
Does this Authorization Rule have permissions to Manage to the Event Hub?
- Name string
- Namespace
Name string - Primary
Connection stringString The Primary Connection String for the Event Hubs authorization Rule.
- Primary
Connection stringString Alias The alias of the Primary Connection String for the Event Hubs authorization Rule.
- Primary
Key string The Primary Key for the Event Hubs authorization Rule.
- Resource
Group stringName - Secondary
Connection stringString The Secondary Connection String for the Event Hubs authorization Rule.
- Secondary
Connection stringString Alias The alias of the Secondary Connection String for the Event Hubs authorization Rule.
- Secondary
Key string The Secondary Key for the Event Hubs authorization Rule.
- Send bool
Does this Authorization Rule have permissions to Send to the Event Hub?
- id string
The provider-assigned unique ID for this managed resource.
- listen boolean
Does this Authorization Rule have permissions to Listen to the Event Hub?
- manage boolean
Does this Authorization Rule have permissions to Manage to the Event Hub?
- name string
- namespace
Name string - primary
Connection stringString The Primary Connection String for the Event Hubs authorization Rule.
- primary
Connection stringString Alias The alias of the Primary Connection String for the Event Hubs authorization Rule.
- primary
Key string The Primary Key for the Event Hubs authorization Rule.
- resource
Group stringName - secondary
Connection stringString The Secondary Connection String for the Event Hubs authorization Rule.
- secondary
Connection stringString Alias The alias of the Secondary Connection String for the Event Hubs authorization Rule.
- secondary
Key string The Secondary Key for the Event Hubs authorization Rule.
- send boolean
Does this Authorization Rule have permissions to Send to the Event Hub?
- id str
The provider-assigned unique ID for this managed resource.
- listen bool
Does this Authorization Rule have permissions to Listen to the Event Hub?
- manage bool
Does this Authorization Rule have permissions to Manage to the Event Hub?
- name str
- namespace_
name str - primary_
connection_ strstring The Primary Connection String for the Event Hubs authorization Rule.
- primary_
connection_ strstring_ alias The alias of the Primary Connection String for the Event Hubs authorization Rule.
- primary_
key str The Primary Key for the Event Hubs authorization Rule.
- resource_
group_ strname - secondary_
connection_ strstring The Secondary Connection String for the Event Hubs authorization Rule.
- secondary_
connection_ strstring_ alias The alias of the Secondary Connection String for the Event Hubs authorization Rule.
- secondary_
key str The Secondary Key for the Event Hubs authorization Rule.
- send bool
Does this Authorization Rule have permissions to Send to the Event Hub?
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.