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,
});
}
}
Inherited Members
Namespace: Pulumi.Azure.AppService
Assembly: Pulumi.Azure.dll
Syntax
public class CustomHostnameBinding : CustomResource
Constructors
View SourceCustomHostnameBinding(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 SourceAppServiceName
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> |
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> |
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> |
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> |
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> |
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 SourceGet(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 |