get Namespace Authorization Rule
suspend fun getNamespaceAuthorizationRule(argument: GetNamespaceAuthorizationRulePlainArgs): GetNamespaceAuthorizationRuleResult
Use this data source to access information about an Authorization Rule for an Event Hub Namespace.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.eventhub.EventhubFunctions;
import com.pulumi.azure.eventhub.inputs.GetNamespaceAuthorizationRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = EventhubFunctions.getNamespaceAuthorizationRule(GetNamespaceAuthorizationRuleArgs.builder()
.name("navi")
.resourceGroupName("example-resources")
.namespaceName("example-ns")
.build());
ctx.export("eventhubAuthorizationRuleId", data.azurem_eventhub_namespace_authorization_rule().example().id());
}
}
Content copied to clipboard
Return
A collection of values returned by getNamespaceAuthorizationRule.
Parameters
argument
A collection of arguments for invoking getNamespaceAuthorizationRule.
suspend fun getNamespaceAuthorizationRule(name: String, namespaceName: String, resourceGroupName: String): GetNamespaceAuthorizationRuleResult
Return
A collection of values returned by getNamespaceAuthorizationRule.
See also
Parameters
name
The name of the EventHub Authorization Rule resource.
namespace Name
Specifies the name of the EventHub Namespace.
resource Group Name
The name of the resource group in which the EventHub Namespace exists.
suspend fun getNamespaceAuthorizationRule(argument: suspend GetNamespaceAuthorizationRulePlainArgsBuilder.() -> Unit): GetNamespaceAuthorizationRuleResult
Return
A collection of values returned by getNamespaceAuthorizationRule.
See also
Parameters
argument
Builder for com.pulumi.azure.eventhub.kotlin.inputs.GetNamespaceAuthorizationRulePlainArgs.