azure.servicebus.getQueueAuthorizationRule
Use this data source to access information about an existing ServiceBus Queue Authorisation Rule within a ServiceBus Queue.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.ServiceBus.GetQueueAuthorizationRule.Invoke(new()
{
Name = "example-tfex_name",
ResourceGroupName = "example-resources",
QueueName = "example-servicebus_queue",
NamespaceName = "example-namespace",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getQueueAuthorizationRuleResult => getQueueAuthorizationRuleResult.Id),
};
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/servicebus"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := servicebus.LookupQueueAuthorizationRule(ctx, &servicebus.LookupQueueAuthorizationRuleArgs{
Name: "example-tfex_name",
ResourceGroupName: pulumi.StringRef("example-resources"),
QueueName: pulumi.StringRef("example-servicebus_queue"),
NamespaceName: pulumi.StringRef("example-namespace"),
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}
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.GetQueueAuthorizationRuleArgs;
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.getQueueAuthorizationRule(GetQueueAuthorizationRuleArgs.builder()
.name("example-tfex_name")
.resourceGroupName("example-resources")
.queueName("example-servicebus_queue")
.namespaceName("example-namespace")
.build());
ctx.export("id", example.applyValue(getQueueAuthorizationRuleResult -> getQueueAuthorizationRuleResult.id()));
}
}
import pulumi
import pulumi_azure as azure
example = azure.servicebus.get_queue_authorization_rule(name="example-tfex_name",
resource_group_name="example-resources",
queue_name="example-servicebus_queue",
namespace_name="example-namespace")
pulumi.export("id", example.id)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.servicebus.getQueueAuthorizationRule({
name: "example-tfex_name",
resourceGroupName: "example-resources",
queueName: "example-servicebus_queue",
namespaceName: "example-namespace",
});
export const id = example.then(example => example.id);
variables:
example:
fn::invoke:
Function: azure:servicebus:getQueueAuthorizationRule
Arguments:
name: example-tfex_name
resourceGroupName: example-resources
queueName: example-servicebus_queue
namespaceName: example-namespace
outputs:
id: ${example.id}
Using getQueueAuthorizationRule
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getQueueAuthorizationRule(args: GetQueueAuthorizationRuleArgs, opts?: InvokeOptions): Promise<GetQueueAuthorizationRuleResult>
function getQueueAuthorizationRuleOutput(args: GetQueueAuthorizationRuleOutputArgs, opts?: InvokeOptions): Output<GetQueueAuthorizationRuleResult>
def get_queue_authorization_rule(name: Optional[str] = None,
namespace_name: Optional[str] = None,
queue_id: Optional[str] = None,
queue_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetQueueAuthorizationRuleResult
def get_queue_authorization_rule_output(name: Optional[pulumi.Input[str]] = None,
namespace_name: Optional[pulumi.Input[str]] = None,
queue_id: Optional[pulumi.Input[str]] = None,
queue_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetQueueAuthorizationRuleResult]
func LookupQueueAuthorizationRule(ctx *Context, args *LookupQueueAuthorizationRuleArgs, opts ...InvokeOption) (*LookupQueueAuthorizationRuleResult, error)
func LookupQueueAuthorizationRuleOutput(ctx *Context, args *LookupQueueAuthorizationRuleOutputArgs, opts ...InvokeOption) LookupQueueAuthorizationRuleResultOutput
> Note: This function is named LookupQueueAuthorizationRule
in the Go SDK.
public static class GetQueueAuthorizationRule
{
public static Task<GetQueueAuthorizationRuleResult> InvokeAsync(GetQueueAuthorizationRuleArgs args, InvokeOptions? opts = null)
public static Output<GetQueueAuthorizationRuleResult> Invoke(GetQueueAuthorizationRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetQueueAuthorizationRuleResult> getQueueAuthorizationRule(GetQueueAuthorizationRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:servicebus/getQueueAuthorizationRule:getQueueAuthorizationRule
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
The name of this ServiceBus Queue Authorisation Rule.
- Namespace
Name string The name of the ServiceBus Namespace.
- Queue
Id string - Queue
Name string The name of the ServiceBus Queue.
- Resource
Group stringName The name of the Resource Group where the ServiceBus Queue Authorisation Rule exists.
- Name string
The name of this ServiceBus Queue Authorisation Rule.
- Namespace
Name string The name of the ServiceBus Namespace.
- Queue
Id string - Queue
Name string The name of the ServiceBus Queue.
- Resource
Group stringName The name of the Resource Group where the ServiceBus Queue Authorisation Rule exists.
- name String
The name of this ServiceBus Queue Authorisation Rule.
- namespace
Name String The name of the ServiceBus Namespace.
- queue
Id String - queue
Name String The name of the ServiceBus Queue.
- resource
Group StringName The name of the Resource Group where the ServiceBus Queue Authorisation Rule exists.
- name string
The name of this ServiceBus Queue Authorisation Rule.
- namespace
Name string The name of the ServiceBus Namespace.
- queue
Id string - queue
Name string The name of the ServiceBus Queue.
- resource
Group stringName The name of the Resource Group where the ServiceBus Queue Authorisation Rule exists.
- name str
The name of this ServiceBus Queue Authorisation Rule.
- namespace_
name str The name of the ServiceBus Namespace.
- queue_
id str - queue_
name str The name of the ServiceBus Queue.
- resource_
group_ strname The name of the Resource Group where the ServiceBus Queue Authorisation Rule exists.
- name String
The name of this ServiceBus Queue Authorisation Rule.
- namespace
Name String The name of the ServiceBus Namespace.
- queue
Id String - queue
Name String The name of the ServiceBus Queue.
- resource
Group StringName The name of the Resource Group where the ServiceBus Queue Authorisation Rule exists.
getQueueAuthorizationRule Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Listen bool
- Manage bool
- Name string
- Primary
Connection stringString The Primary Connection String for the ServiceBus Queue authorization Rule.
- Primary
Connection stringString Alias The alias Primary Connection String for the ServiceBus Namespace, if the namespace is Geo DR paired.
- Primary
Key string The Primary Key for the ServiceBus Queue authorization Rule.
- Secondary
Connection stringString The Secondary Connection String for the ServiceBus Queue authorization Rule.
- Secondary
Connection stringString Alias The alias Secondary Connection String for the ServiceBus Namespace
- Secondary
Key string The Secondary Key for the ServiceBus Queue authorization Rule.
- Send bool
- Namespace
Name string - Queue
Id string - Queue
Name string - Resource
Group stringName
- Id string
The provider-assigned unique ID for this managed resource.
- Listen bool
- Manage bool
- Name string
- Primary
Connection stringString The Primary Connection String for the ServiceBus Queue authorization Rule.
- Primary
Connection stringString Alias The alias Primary Connection String for the ServiceBus Namespace, if the namespace is Geo DR paired.
- Primary
Key string The Primary Key for the ServiceBus Queue authorization Rule.
- Secondary
Connection stringString The Secondary Connection String for the ServiceBus Queue authorization Rule.
- Secondary
Connection stringString Alias The alias Secondary Connection String for the ServiceBus Namespace
- Secondary
Key string The Secondary Key for the ServiceBus Queue authorization Rule.
- Send bool
- Namespace
Name string - Queue
Id string - Queue
Name string - Resource
Group stringName
- id String
The provider-assigned unique ID for this managed resource.
- listen Boolean
- manage Boolean
- name String
- primary
Connection StringString The Primary Connection String for the ServiceBus Queue authorization Rule.
- primary
Connection StringString Alias The alias Primary Connection String for the ServiceBus Namespace, if the namespace is Geo DR paired.
- primary
Key String The Primary Key for the ServiceBus Queue authorization Rule.
- secondary
Connection StringString The Secondary Connection String for the ServiceBus Queue authorization Rule.
- secondary
Connection StringString Alias The alias Secondary Connection String for the ServiceBus Namespace
- secondary
Key String The Secondary Key for the ServiceBus Queue authorization Rule.
- send Boolean
- namespace
Name String - queue
Id String - queue
Name String - resource
Group StringName
- id string
The provider-assigned unique ID for this managed resource.
- listen boolean
- manage boolean
- name string
- primary
Connection stringString The Primary Connection String for the ServiceBus Queue authorization Rule.
- primary
Connection stringString Alias The alias Primary Connection String for the ServiceBus Namespace, if the namespace is Geo DR paired.
- primary
Key string The Primary Key for the ServiceBus Queue authorization Rule.
- secondary
Connection stringString The Secondary Connection String for the ServiceBus Queue authorization Rule.
- secondary
Connection stringString Alias The alias Secondary Connection String for the ServiceBus Namespace
- secondary
Key string The Secondary Key for the ServiceBus Queue authorization Rule.
- send boolean
- namespace
Name string - queue
Id string - queue
Name string - resource
Group stringName
- id str
The provider-assigned unique ID for this managed resource.
- listen bool
- manage bool
- name str
- primary_
connection_ strstring The Primary Connection String for the ServiceBus Queue authorization Rule.
- primary_
connection_ strstring_ alias The alias Primary Connection String for the ServiceBus Namespace, if the namespace is Geo DR paired.
- primary_
key str The Primary Key for the ServiceBus Queue authorization Rule.
- secondary_
connection_ strstring The Secondary Connection String for the ServiceBus Queue authorization Rule.
- secondary_
connection_ strstring_ alias The alias Secondary Connection String for the ServiceBus Namespace
- secondary_
key str The Secondary Key for the ServiceBus Queue authorization Rule.
- send bool
- namespace_
name str - queue_
id str - queue_
name str - resource_
group_ strname
- id String
The provider-assigned unique ID for this managed resource.
- listen Boolean
- manage Boolean
- name String
- primary
Connection StringString The Primary Connection String for the ServiceBus Queue authorization Rule.
- primary
Connection StringString Alias The alias Primary Connection String for the ServiceBus Namespace, if the namespace is Geo DR paired.
- primary
Key String The Primary Key for the ServiceBus Queue authorization Rule.
- secondary
Connection StringString The Secondary Connection String for the ServiceBus Queue authorization Rule.
- secondary
Connection StringString Alias The alias Secondary Connection String for the ServiceBus Namespace
- secondary
Key String The Secondary Key for the ServiceBus Queue authorization Rule.
- send Boolean
- namespace
Name String - queue
Id String - queue
Name String - resource
Group StringName
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.