get Queue
Use this data source to access information about an existing Service Bus Queue.
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.GetQueueArgs;
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.getQueue(GetQueueArgs.builder()
.name("existing")
.namespaceId("existing")
.build());
ctx.export("id", example.applyValue(getQueueResult -> getQueueResult.id()));
}
}
Content copied to clipboard
Return
A collection of values returned by getQueue.
Parameters
argument
A collection of arguments for invoking getQueue.
suspend fun getQueue(name: String, namespaceId: String? = null, namespaceName: String? = null, resourceGroupName: String? = null): GetQueueResult
Return
A collection of values returned by getQueue.
See also
Parameters
name
The name of this Service Bus Queue.
namespace Id
The ID of the ServiceBus Namespace where the Service Bus Queue exists.
namespace Name
The name of the ServiceBus Namespace.
resource Group Name
The name of the Resource Group where the Service Bus Queue 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 getQueue.
See also
Parameters
argument
Builder for com.pulumi.azure.servicebus.kotlin.inputs.GetQueuePlainArgs.