Namespace
Description of a namespace resource. Uses Azure REST API version 2021-11-01. In version 1.x of the Azure Native provider, it used API version 2017-04-01. Other available API versions: 2024-01-01.
Example Usage
RelayNamespaceCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var @namespace = new AzureNative.Relay.Namespace("namespace", new()
{
Location = "South Central US",
NamespaceName = "example-RelayNamespace-5849",
ResourceGroupName = "resourcegroup",
Sku = new AzureNative.Relay.Inputs.SkuArgs
{
Name = AzureNative.Relay.SkuName.Standard,
Tier = AzureNative.Relay.SkuTier.Standard,
},
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
});
});
Content copied to clipboard
package main
import (
relay "github.com/pulumi/pulumi-azure-native-sdk/relay/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := relay.NewNamespace(ctx, "namespace", &relay.NamespaceArgs{
Location: pulumi.String("South Central US"),
NamespaceName: pulumi.String("example-RelayNamespace-5849"),
ResourceGroupName: pulumi.String("resourcegroup"),
Sku: &relay.SkuArgs{
Name: pulumi.String(relay.SkuNameStandard),
Tier: pulumi.String(relay.SkuTierStandard),
},
Tags: pulumi.StringMap{
"tag1": pulumi.String("value1"),
"tag2": pulumi.String("value2"),
},
})
if err != nil {
return err
}
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.azurenative.relay.Namespace;
import com.pulumi.azurenative.relay.NamespaceArgs;
import com.pulumi.azurenative.relay.inputs.SkuArgs;
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) {
var namespace = new Namespace("namespace", NamespaceArgs.builder()
.location("South Central US")
.namespaceName("example-RelayNamespace-5849")
.resourceGroupName("resourcegroup")
.sku(SkuArgs.builder()
.name("Standard")
.tier("Standard")
.build())
.tags(Map.ofEntries(
Map.entry("tag1", "value1"),
Map.entry("tag2", "value2")
))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:relay:Namespace example-RelayNamespace-5849 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}
Content copied to clipboard
Properties
Link copied to clipboard
List of private endpoint connections.
Link copied to clipboard
Provisioning state of the Namespace.
Link copied to clipboard
This determines if traffic is allowed over public network. By default it is enabled.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Endpoint you can use to perform Service Bus operations.
Link copied to clipboard
SKU of the namespace.
Link copied to clipboard
The system meta data relating to this resource.