Show / Hide Table of Contents

Class CustomHostnameBinding

Manages a Hostname Binding within an App Service.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;
using Random = Pulumi.Random;

class MyStack : Stack
{
public MyStack()
{
    var server = new Random.RandomId("server", new Random.RandomIdArgs
    {
        Keepers = 
        {
            { "azi_id", 1 },
        },
        ByteLength = 8,
    });
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
    {
        Location = "West Europe",
    });
    var examplePlan = new Azure.AppService.Plan("examplePlan", new Azure.AppService.PlanArgs
    {
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
        Sku = new Azure.AppService.Inputs.PlanSkuArgs
        {
            Tier = "Standard",
            Size = "S1",
        },
    });
    var exampleAppService = new Azure.AppService.AppService("exampleAppService", new Azure.AppService.AppServiceArgs
    {
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
        AppServicePlanId = examplePlan.Id,
    });
    var exampleCustomHostnameBinding = new Azure.AppService.CustomHostnameBinding("exampleCustomHostnameBinding", new Azure.AppService.CustomHostnameBindingArgs
    {
        Hostname = "www.mywebsite.com",
        AppServiceName = exampleAppService.Name,
        ResourceGroupName = exampleResourceGroup.Name,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
CustomHostnameBinding
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.AppService
Assembly: Pulumi.Azure.dll
Syntax
public class CustomHostnameBinding : CustomResource

Constructors

View Source

CustomHostnameBinding(String, CustomHostnameBindingArgs, CustomResourceOptions)

Create a CustomHostnameBinding resource with the given unique name, arguments, and options.

Declaration
public CustomHostnameBinding(string name, CustomHostnameBindingArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

CustomHostnameBindingArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AppServiceName

The name of the App Service in which to add the Custom Hostname Binding. Changing this forces a new resource to be created.

Declaration
public Output<string> AppServiceName { get; }
Property Value
Type Description
Output<System.String>
View Source

Hostname

Specifies the Custom Hostname to use for the App Service, example www.example.com. Changing this forces a new resource to be created.

Declaration
public Output<string> Hostname { get; }
Property Value
Type Description
Output<System.String>
View Source

ResourceGroupName

The name of the resource group in which the App Service exists. Changing this forces a new resource to be created.

Declaration
public Output<string> ResourceGroupName { get; }
Property Value
Type Description
Output<System.String>
View Source

SslState

The SSL type. Possible values are IpBasedEnabled and SniEnabled. Changing this forces a new resource to be created.

Declaration
public Output<string> SslState { get; }
Property Value
Type Description
Output<System.String>
View Source

Thumbprint

The SSL certificate thumbprint. Changing this forces a new resource to be created.

Declaration
public Output<string> Thumbprint { get; }
Property Value
Type Description
Output<System.String>
View Source

VirtualIp

The virtual IP address assigned to the hostname if IP based SSL is enabled.

Declaration
public Output<string> VirtualIp { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, CustomHostnameBindingState, CustomResourceOptions)

Get an existing CustomHostnameBinding resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static CustomHostnameBinding Get(string name, Input<string> id, CustomHostnameBindingState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

CustomHostnameBindingState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
CustomHostnameBinding
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.