getQueue

suspend fun getQueue(argument: GetQueuePlainArgs): GetQueueResult

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()));
}
}

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.

namespaceId

The ID of the ServiceBus Namespace where the Service Bus Queue exists.

namespaceName

The name of the ServiceBus Namespace.

resourceGroupName

The name of the Resource Group where the Service Bus Queue 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.


suspend fun getQueue(argument: suspend GetQueuePlainArgsBuilder.() -> Unit): GetQueueResult

Return

A collection of values returned by getQueue.

See also

Parameters

argument

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