get Namespace Authorization Rule
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
A collection of arguments for invoking getNamespaceAuthorizationRule.
Return
A collection of values returned by getNamespaceAuthorizationRule.
See also
Parameters
Specifies the name of the ServiceBus Namespace Authorization Rule.
Specifies the ID of the ServiceBus Namespace where the Service Bus Namespace Authorization Rule exists.
Specifies the name of the ServiceBus Namespace.
Specifies the name of the Resource Group where the ServiceBus Namespace exists.
Note:
namespace_name
andresource_group_name
has been deprecated and will be removed in version 4.0 of the provider in favour ofnamespace_id
.
Return
A collection of values returned by getNamespaceAuthorizationRule.
See also
Parameters
Builder for com.pulumi.azure.servicebus.kotlin.inputs.GetNamespaceAuthorizationRulePlainArgs.