Namespace
Manages an Azure Relay Namespace.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleNamespace = new Azure.Relay.Namespace("exampleNamespace", new Azure.Relay.NamespaceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
SkuName = "Standard",
Tags =
{
{ "source", "example" },
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/relay"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = relay.NewNamespace(ctx, "exampleNamespace", &relay.NamespaceArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
SkuName: pulumi.String("Standard"),
Tags: pulumi.Map{
"source": pulumi.String("example"),
},
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_namespace = azure.relay.Namespace("exampleNamespace",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
sku_name="Standard",
tags={
"source": "example",
})import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleNamespace = new azure.relay.Namespace("exampleNamespace", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
skuName: "Standard",
tags: {
source: "example",
},
});Create a Namespace Resource
new Namespace(name: string, args: NamespaceArgs, opts?: CustomResourceOptions);def Namespace(resource_name, opts=None, location=None, name=None, resource_group_name=None, sku_name=None, tags=None, __props__=None);func NewNamespace(ctx *Context, name string, args NamespaceArgs, opts ...ResourceOption) (*Namespace, error)public Namespace(string name, NamespaceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Namespace Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Namespace resource accepts the following input properties:
- Resource
Group stringName The name of the resource group in which to create the Azure Relay Namespace.
- Sku
Name string The name of the SKU to use. At this time the only supported value is
Standard.- Location string
Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Resource
Group stringName The name of the resource group in which to create the Azure Relay Namespace.
- Sku
Name string The name of the SKU to use. At this time the only supported value is
Standard.- Location string
Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags to assign to the resource.
- resource
Group stringName The name of the resource group in which to create the Azure Relay Namespace.
- sku
Name string The name of the SKU to use. At this time the only supported value is
Standard.- location string
Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created.
- name string
Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- resource_
group_ strname The name of the resource group in which to create the Azure Relay Namespace.
- sku_
name str The name of the SKU to use. At this time the only supported value is
Standard.- location str
Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created.
- name str
Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created.
- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Namespace resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Metric
Id string The Identifier for Azure Insights metrics.
- Primary
Connection stringString The primary connection string for the authorization rule
RootManageSharedAccessKey.- Primary
Key string The primary access key for the authorization rule
RootManageSharedAccessKey.- Secondary
Connection stringString The secondary connection string for the authorization rule
RootManageSharedAccessKey.- Secondary
Key string The secondary access key for the authorization rule
RootManageSharedAccessKey.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metric
Id string The Identifier for Azure Insights metrics.
- Primary
Connection stringString The primary connection string for the authorization rule
RootManageSharedAccessKey.- Primary
Key string The primary access key for the authorization rule
RootManageSharedAccessKey.- Secondary
Connection stringString The secondary connection string for the authorization rule
RootManageSharedAccessKey.- Secondary
Key string The secondary access key for the authorization rule
RootManageSharedAccessKey.
- id string
- The provider-assigned unique ID for this managed resource.
- metric
Id string The Identifier for Azure Insights metrics.
- primary
Connection stringString The primary connection string for the authorization rule
RootManageSharedAccessKey.- primary
Key string The primary access key for the authorization rule
RootManageSharedAccessKey.- secondary
Connection stringString The secondary connection string for the authorization rule
RootManageSharedAccessKey.- secondary
Key string The secondary access key for the authorization rule
RootManageSharedAccessKey.
- id str
- The provider-assigned unique ID for this managed resource.
- metric_
id str The Identifier for Azure Insights metrics.
- primary_
connection_ strstring The primary connection string for the authorization rule
RootManageSharedAccessKey.- primary_
key str The primary access key for the authorization rule
RootManageSharedAccessKey.- secondary_
connection_ strstring The secondary connection string for the authorization rule
RootManageSharedAccessKey.- secondary_
key str The secondary access key for the authorization rule
RootManageSharedAccessKey.
Look up an Existing Namespace Resource
Get an existing Namespace resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NamespaceState, opts?: CustomResourceOptions): Namespacestatic get(resource_name, id, opts=None, location=None, metric_id=None, name=None, primary_connection_string=None, primary_key=None, resource_group_name=None, secondary_connection_string=None, secondary_key=None, sku_name=None, tags=None, __props__=None);func GetNamespace(ctx *Context, name string, id IDInput, state *NamespaceState, opts ...ResourceOption) (*Namespace, error)public static Namespace Get(string name, Input<string> id, NamespaceState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Location string
Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created.
- Metric
Id string The Identifier for Azure Insights metrics.
- Name string
Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created.
- Primary
Connection stringString The primary connection string for the authorization rule
RootManageSharedAccessKey.- Primary
Key string The primary access key for the authorization rule
RootManageSharedAccessKey.- Resource
Group stringName The name of the resource group in which to create the Azure Relay Namespace.
- Secondary
Connection stringString The secondary connection string for the authorization rule
RootManageSharedAccessKey.- Secondary
Key string The secondary access key for the authorization rule
RootManageSharedAccessKey.- Sku
Name string The name of the SKU to use. At this time the only supported value is
Standard.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Location string
Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created.
- Metric
Id string The Identifier for Azure Insights metrics.
- Name string
Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created.
- Primary
Connection stringString The primary connection string for the authorization rule
RootManageSharedAccessKey.- Primary
Key string The primary access key for the authorization rule
RootManageSharedAccessKey.- Resource
Group stringName The name of the resource group in which to create the Azure Relay Namespace.
- Secondary
Connection stringString The secondary connection string for the authorization rule
RootManageSharedAccessKey.- Secondary
Key string The secondary access key for the authorization rule
RootManageSharedAccessKey.- Sku
Name string The name of the SKU to use. At this time the only supported value is
Standard.- map[string]string
A mapping of tags to assign to the resource.
- location string
Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created.
- metric
Id string The Identifier for Azure Insights metrics.
- name string
Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created.
- primary
Connection stringString The primary connection string for the authorization rule
RootManageSharedAccessKey.- primary
Key string The primary access key for the authorization rule
RootManageSharedAccessKey.- resource
Group stringName The name of the resource group in which to create the Azure Relay Namespace.
- secondary
Connection stringString The secondary connection string for the authorization rule
RootManageSharedAccessKey.- secondary
Key string The secondary access key for the authorization rule
RootManageSharedAccessKey.- sku
Name string The name of the SKU to use. At this time the only supported value is
Standard.- {[key: string]: string}
A mapping of tags to assign to the resource.
- location str
Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created.
- metric_
id str The Identifier for Azure Insights metrics.
- name str
Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created.
- primary_
connection_ strstring The primary connection string for the authorization rule
RootManageSharedAccessKey.- primary_
key str The primary access key for the authorization rule
RootManageSharedAccessKey.- resource_
group_ strname The name of the resource group in which to create the Azure Relay Namespace.
- secondary_
connection_ strstring The secondary connection string for the authorization rule
RootManageSharedAccessKey.- secondary_
key str The secondary access key for the authorization rule
RootManageSharedAccessKey.- sku_
name str The name of the SKU to use. At this time the only supported value is
Standard.- Dict[str, str]
A mapping of tags to assign to the resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.