Interface WebAppBase.UpdateStages.WithHostNameBinding<FluentT>
- Type Parameters:
FluentT- the type of the resource
- All Known Subinterfaces:
DeploymentSlot.Update,DeploymentSlotBase.Update<FluentT>,FunctionApp.Update,WebApp.Update,WebApp.UpdateStages.WithStartUpCommand,WebAppBase.Update<FluentT>
- Enclosing interface:
- WebAppBase.UpdateStages
public static interface WebAppBase.UpdateStages.WithHostNameBinding<FluentT>
The stage of the web app update allowing host name binding to be set.
-
Method Summary
Modifier and TypeMethodDescriptionStarts the definition of a new host name binding.withManagedHostnameBindings(AppServiceDomain domain, String... hostnames) Defines a list of host names of an Azure managed domain.withoutHostnameBinding(String hostname) Unbinds a hostname from the web app.withThirdPartyHostnameBinding(String domain, String... hostnames) Defines a list of host names of an externally purchased domain.
-
Method Details
-
defineHostnameBinding
HostNameBinding.UpdateDefinitionStages.Blank<WebAppBase.Update<FluentT>> defineHostnameBinding()Starts the definition of a new host name binding.- Returns:
- the first stage of a hostname binding update
-
withManagedHostnameBindings
WebAppBase.Update<FluentT> withManagedHostnameBindings(AppServiceDomain domain, String... hostnames) Defines a list of host names of an Azure managed domain. The DNS record type is defaulted to be CNAME except for the root level domain ("@").- Parameters:
domain- the Azure managed domainhostnames- the list of sub-domains- Returns:
- the next stage of web app update
-
withThirdPartyHostnameBinding
Defines a list of host names of an externally purchased domain. The hostnames must be configured before hand to point to the web app.- Parameters:
domain- the external domain namehostnames- the list of sub-domains- Returns:
- the next stage of web app update
-
withoutHostnameBinding
Unbinds a hostname from the web app.- Parameters:
hostname- the hostname to unbind- Returns:
- the next stage of web app update
-