HybridConnection

Manages an Azure Relay Hybrid Connection.

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", "managed" },
            },
        });
        var exampleHybridConnection = new Azure.Relay.HybridConnection("exampleHybridConnection", new Azure.Relay.HybridConnectionArgs
        {
            ResourceGroupName = exampleResourceGroup.Name,
            RelayNamespaceName = exampleNamespace.Name,
            RequiresClientAuthorization = false,
            UserMetadata = "testmetadata",
        });
    }

}
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
        }
        exampleNamespace, err := relay.NewNamespace(ctx, "exampleNamespace", &relay.NamespaceArgs{
            Location:          exampleResourceGroup.Location,
            ResourceGroupName: exampleResourceGroup.Name,
            SkuName:           pulumi.String("Standard"),
            Tags: pulumi.Map{
                "source": pulumi.String("managed"),
            },
        })
        if err != nil {
            return err
        }
        _, err = relay.NewHybridConnection(ctx, "exampleHybridConnection", &relay.HybridConnectionArgs{
            ResourceGroupName:           exampleResourceGroup.Name,
            RelayNamespaceName:          exampleNamespace.Name,
            RequiresClientAuthorization: pulumi.Bool(false),
            UserMetadata:                pulumi.String("testmetadata"),
        })
        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": "managed",
    })
example_hybrid_connection = azure.relay.HybridConnection("exampleHybridConnection",
    resource_group_name=example_resource_group.name,
    relay_namespace_name=example_namespace.name,
    requires_client_authorization=False,
    user_metadata="testmetadata")
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: "managed",
    },
});
const exampleHybridConnection = new azure.relay.HybridConnection("exampleHybridConnection", {
    resourceGroupName: exampleResourceGroup.name,
    relayNamespaceName: exampleNamespace.name,
    requiresClientAuthorization: false,
    userMetadata: "testmetadata",
});

Create a HybridConnection Resource

def HybridConnection(resource_name, opts=None, name=None, relay_namespace_name=None, requires_client_authorization=None, resource_group_name=None, user_metadata=None, __props__=None);
name string
The unique name of the resource.
args HybridConnectionArgs
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 HybridConnectionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args HybridConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

HybridConnection Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The HybridConnection resource accepts the following input properties:

RelayNamespaceName string

The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

Name string

Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

RequiresClientAuthorization bool

Specify if client authorization is needed for this hybrid connection. True by default. Changing this forces a new resource to be created.

UserMetadata string

The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored.

RelayNamespaceName string

The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

Name string

Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

RequiresClientAuthorization bool

Specify if client authorization is needed for this hybrid connection. True by default. Changing this forces a new resource to be created.

UserMetadata string

The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored.

relayNamespaceName string

The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

resourceGroupName string

The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

name string

Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

requiresClientAuthorization boolean

Specify if client authorization is needed for this hybrid connection. True by default. Changing this forces a new resource to be created.

userMetadata string

The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored.

relay_namespace_name str

The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

resource_group_name str

The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

name str

Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

requires_client_authorization bool

Specify if client authorization is needed for this hybrid connection. True by default. Changing this forces a new resource to be created.

user_metadata str

The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored.

Outputs

All input properties are implicitly available as output properties. Additionally, the HybridConnection resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing HybridConnection Resource

Get an existing HybridConnection 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?: HybridConnectionState, opts?: CustomResourceOptions): HybridConnection
static get(resource_name, id, opts=None, name=None, relay_namespace_name=None, requires_client_authorization=None, resource_group_name=None, user_metadata=None, __props__=None);
func GetHybridConnection(ctx *Context, name string, id IDInput, state *HybridConnectionState, opts ...ResourceOption) (*HybridConnection, error)
public static HybridConnection Get(string name, Input<string> id, HybridConnectionState? 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:

Name string

Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

RelayNamespaceName string

The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

RequiresClientAuthorization bool

Specify if client authorization is needed for this hybrid connection. True by default. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

UserMetadata string

The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored.

Name string

Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

RelayNamespaceName string

The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

RequiresClientAuthorization bool

Specify if client authorization is needed for this hybrid connection. True by default. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

UserMetadata string

The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored.

name string

Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

relayNamespaceName string

The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

requiresClientAuthorization boolean

Specify if client authorization is needed for this hybrid connection. True by default. Changing this forces a new resource to be created.

resourceGroupName string

The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

userMetadata string

The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored.

name str

Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

relay_namespace_name str

The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

requires_client_authorization bool

Specify if client authorization is needed for this hybrid connection. True by default. Changing this forces a new resource to be created.

resource_group_name str

The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

user_metadata str

The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.