get Namespace Disaster Recovery Config
suspend fun getNamespaceDisasterRecoveryConfig(argument: GetNamespaceDisasterRecoveryConfigPlainArgs): GetNamespaceDisasterRecoveryConfigResult
Use this data source to access information about an existing Service Bus Disaster Recovery Config.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.servicebus.getNamespaceDisasterRecoveryConfig({
name: "existing",
namespaceId: "example-namespace-id",
});
export const id = example.then(example => example.id);
Content copied to clipboard
import pulumi
import pulumi_azure as azure
example = azure.servicebus.get_namespace_disaster_recovery_config(name="existing",
namespace_id="example-namespace-id")
pulumi.export("id", example.id)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.ServiceBus.GetNamespaceDisasterRecoveryConfig.Invoke(new()
{
Name = "existing",
NamespaceId = "example-namespace-id",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getNamespaceDisasterRecoveryConfigResult => getNamespaceDisasterRecoveryConfigResult.Id),
};
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/servicebus"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := servicebus.LookupNamespaceDisasterRecoveryConfig(ctx, &servicebus.LookupNamespaceDisasterRecoveryConfigArgs{
Name: "existing",
NamespaceId: pulumi.StringRef("example-namespace-id"),
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}
Content copied to clipboard
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.GetNamespaceDisasterRecoveryConfigArgs;
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.getNamespaceDisasterRecoveryConfig(GetNamespaceDisasterRecoveryConfigArgs.builder()
.name("existing")
.namespaceId("example-namespace-id")
.build());
ctx.export("id", example.id());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: azure:servicebus:getNamespaceDisasterRecoveryConfig
arguments:
name: existing
namespaceId: example-namespace-id
outputs:
id: ${example.id}
Content copied to clipboard
API Providers
This data source uses the following Azure API Providers:
Microsoft.ServiceBus
: 2021-06-01-preview
Return
A collection of values returned by getNamespaceDisasterRecoveryConfig.
Parameters
argument
A collection of arguments for invoking getNamespaceDisasterRecoveryConfig.
suspend fun getNamespaceDisasterRecoveryConfig(aliasAuthorizationRuleId: String? = null, name: String, namespaceId: String? = null, namespaceName: String? = null, resourceGroupName: String? = null): GetNamespaceDisasterRecoveryConfigResult
Return
A collection of values returned by getNamespaceDisasterRecoveryConfig.
Parameters
alias Authorization Rule Id
The Shared access policies used to access the connection string for the alias.
name
The name of this Service Bus Disaster Recovery Config.
namespace Id
The ID of the Service Bus Namespace.
namespace Name
resource Group Name
See also
suspend fun getNamespaceDisasterRecoveryConfig(argument: suspend GetNamespaceDisasterRecoveryConfigPlainArgsBuilder.() -> Unit): GetNamespaceDisasterRecoveryConfigResult
Return
A collection of values returned by getNamespaceDisasterRecoveryConfig.
Parameters
argument
Builder for com.pulumi.azure.servicebus.kotlin.inputs.GetNamespaceDisasterRecoveryConfigPlainArgs.