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 LookupNamespaceAuthorizationRule in 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.

NamespaceName string

Specifies the name of the EventHub Namespace.

ResourceGroupName string

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

Name string

The name of the EventHub Authorization Rule resource.

NamespaceName string

Specifies the name of the EventHub Namespace.

ResourceGroupName string

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

name string

The name of the EventHub Authorization Rule resource.

namespaceName string

Specifies the name of the EventHub Namespace.

resourceGroupName string

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_name str

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
NamespaceName string
PrimaryConnectionString string

The Primary Connection String for the Event Hubs authorization Rule.

PrimaryConnectionStringAlias string

The alias of the Primary Connection String for the Event Hubs authorization Rule.

PrimaryKey string

The Primary Key for the Event Hubs authorization Rule.

ResourceGroupName string
SecondaryConnectionString string

The Secondary Connection String for the Event Hubs authorization Rule.

SecondaryConnectionStringAlias string

The alias of the Secondary Connection String for the Event Hubs authorization Rule.

SecondaryKey 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
NamespaceName string
PrimaryConnectionString string

The Primary Connection String for the Event Hubs authorization Rule.

PrimaryConnectionStringAlias string

The alias of the Primary Connection String for the Event Hubs authorization Rule.

PrimaryKey string

The Primary Key for the Event Hubs authorization Rule.

ResourceGroupName string
SecondaryConnectionString string

The Secondary Connection String for the Event Hubs authorization Rule.

SecondaryConnectionStringAlias string

The alias of the Secondary Connection String for the Event Hubs authorization Rule.

SecondaryKey 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
namespaceName string
primaryConnectionString string

The Primary Connection String for the Event Hubs authorization Rule.

primaryConnectionStringAlias string

The alias of the Primary Connection String for the Event Hubs authorization Rule.

primaryKey string

The Primary Key for the Event Hubs authorization Rule.

resourceGroupName string
secondaryConnectionString string

The Secondary Connection String for the Event Hubs authorization Rule.

secondaryConnectionStringAlias string

The alias of the Secondary Connection String for the Event Hubs authorization Rule.

secondaryKey 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_string str

The Primary Connection String for the Event Hubs authorization Rule.

primary_connection_string_alias str

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_name str
secondary_connection_string str

The Secondary Connection String for the Event Hubs authorization Rule.

secondary_connection_string_alias str

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 azurerm Terraform Provider.