getNamespaceAuthorizationRule

Use this data source to access information about an existing ServiceBus Namespace Authorization Rule.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.servicebus.ServicebusFunctions;
import com.pulumi.azure.servicebus.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 = ServicebusFunctions.getNamespaceAuthorizationRule(GetNamespaceAuthorizationRuleArgs.builder()
.name("examplerule")
.namespaceId("examplenamespace")
.build());
ctx.export("ruleId", example.applyValue(getNamespaceAuthorizationRuleResult -> getNamespaceAuthorizationRuleResult.id()));
}
}

Return

A collection of values returned by getNamespaceAuthorizationRule.

Parameters

argument

A collection of arguments for invoking getNamespaceAuthorizationRule.


suspend fun getNamespaceAuthorizationRule(name: String, namespaceId: String? = null, namespaceName: String? = null, resourceGroupName: String? = null): GetNamespaceAuthorizationRuleResult

Return

A collection of values returned by getNamespaceAuthorizationRule.

See also

Parameters

name

Specifies the name of the ServiceBus Namespace Authorization Rule.

namespaceId

Specifies the ID of the ServiceBus Namespace where the Service Bus Namespace Authorization Rule exists.

namespaceName

Specifies the name of the ServiceBus Namespace.

resourceGroupName

Specifies the name of the Resource Group where the ServiceBus Namespace exists.

Note: namespace_name and resource_group_name has been deprecated and will be removed in version 4.0 of the provider in favour of namespace_id.


Return

A collection of values returned by getNamespaceAuthorizationRule.

See also

Parameters

argument

Builder for com.pulumi.azure.servicebus.kotlin.inputs.GetNamespaceAuthorizationRulePlainArgs.