Compartilhar via


WebAppBase Interface

Implements

public interface WebAppBase
extends HasName, GroupableResource<AppServiceManager,SiteInner>, WebSiteBase

An immutable client-side representation of an Azure Web App or deployment slot.

Method Summary

Modifier and Type Method and Description
abstract boolean alwaysOn()

Check whether the web app is always on.

abstract void applySlotConfigurations(String slotName)

Apply the slot (or sticky) configurations from the specified slot to the current one.

abstract Mono<Void> applySlotConfigurationsAsync(String slotName)

Apply the slot (or sticky) configurations from the specified slot to the current one.

abstract String autoSwapSlotName()

Gets the auto swap slot name.

abstract List<String> defaultDocuments()

Gets the default documents.

abstract WithPackageUri deploy()

First step specifying the parameters to make a web deployment (MS Deploy) to the web app.

abstract WebAppDiagnosticLogs diagnosticLogsConfig()

Gets the diagnostic logs configuration.

abstract String documentRoot()

Gets the root directory for the web app.

abstract FtpsState ftpsState()

Gets the state of FTP / FTPS service.

abstract Map<String,AppSetting> getAppSettings()

Gets the app settings defined on the web app

abstract Mono<Map<String,AppSetting>> getAppSettingsAsync()

Gets the app settings defined on the web app.

abstract WebAppAuthentication getAuthenticationConfig()

Gets the authentication configuration defined on the web app.

abstract Mono<WebAppAuthentication> getAuthenticationConfigAsync()

Gets the authentication configuration defined on the web app.

abstract Map<String,ConnectionString> getConnectionStrings()

Gets the connection strings defined on the web app.

abstract Mono<Map<String,ConnectionString>> getConnectionStringsAsync()

Gets the connection strings defined on the web app.

abstract byte[] getContainerLogs()

Gets the last lines of docker logs for a Linux web app.

abstract Mono<byte[]> getContainerLogsAsync()

Gets the last lines of docker logs for a Linux web app.

abstract byte[] getContainerLogsZip()

Gets the zipped archive of docker logs for a Linux web app.

abstract Mono<byte[]> getContainerLogsZipAsync()

Gets the zipped archive of docker logs for a Linux web app.

abstract Map<String,HostnameBinding> getHostnameBindings()

Gets the mapping from host names and the host name bindings.

abstract Mono<Map<String,HostnameBinding>> getHostnameBindingsAsync()

Gets the mapping from host names and the host name bindings.

abstract PublishingProfile getPublishingProfile()

Gets the URL and credentials for publishing through FTP or Git.

abstract Mono<PublishingProfile> getPublishingProfileAsync()

Gets the URL and credentials for publishing through FTP or Git.

abstract Map<String,String> getSiteAppSettings()

Gets the App Settings on site from Kudu client.

abstract Mono<Map<String,String>> getSiteAppSettingsAsync()

Gets the App Settings on site from Kudu client.

abstract WebAppSourceControl getSourceControl()

Gets the source control information for the web app.

abstract Mono<WebAppSourceControl> getSourceControlAsync()

Gets the source control information for the web app.

abstract boolean http20Enabled()

Check whether to allow clients to connect over HTTP/2.

abstract List<IpSecurityRestriction> ipSecurityRules()

Gets the list of ip security rules.

abstract String javaContainer()

Gets Java container.

abstract String javaContainerVersion()

Gets Java container version.

abstract JavaVersion javaVersion()

Gets Java version.

abstract String linuxFxVersion()

Gets the Linux app framework and version if this is a Linux web app.

abstract boolean localMySqlEnabled()

Check whether local MySQL is enabled.

abstract ManagedPipelineMode managedPipelineMode()

Gets managed pipeline mode.

abstract SupportedTlsVersions minTlsVersion()

Gets the minimum version of TLS required for SSL requests.

abstract NetFrameworkVersion netFrameworkVersion()

Gets the .NET Framework version.

abstract String nodeVersion()

Gets the version of Node.JS.

abstract PhpVersion phpVersion()

Gets the version of PHP.

abstract PlatformArchitecture platformArchitecture()

Gets the architecture of the platform.

abstract PublicNetworkAccess publicNetworkAccess()

Whether the web app can be accessed from public network.

abstract PythonVersion pythonVersion()

Gets the version of Python.

abstract boolean remoteDebuggingEnabled()

Check whether the remote eebugging is enabled.

abstract RemoteVisualStudioVersion remoteDebuggingVersion()

Gets the remote debugging version.

abstract void resetSlotConfigurations()

Reset the slot to its original configurations.

abstract Mono<Void> resetSlotConfigurationsAsync()

Reset the slot to its original configurations.

abstract void restart()

Restarts the web app or deployment slot.

abstract Mono<Void> restartAsync()

Restarts the web app or deployment slot.

abstract ScmType scmType()

Gets the SCM configuration for the web app.

abstract void start()

Starts the web app or deployment slot.

abstract Mono<Void> startAsync()

Starts the web app or deployment slot.

abstract void stop()

Stops the web app or deployment slot.

abstract Mono<Void> stopAsync()

Stops the web app or deployment slot.

abstract InputStream streamAllLogs()

Gets an open stream to all logs.

abstract Flux<String> streamAllLogsAsync()

Gets an Observable streaming all logs.

abstract InputStream streamApplicationLogs()

Gets a open stream to the application logs.

abstract Flux<String> streamApplicationLogsAsync()

Gets an Observable streaming application logs.

abstract InputStream streamDeploymentLogs()

Gets a open stream to the deployment logs.

abstract Flux<String> streamDeploymentLogsAsync()

Gets an Observable streaming deployment logs.

abstract InputStream streamHttpLogs()

Gets a open stream to the HTTP logs.

abstract Flux<String> streamHttpLogsAsync()

Gets an Observable streaming HTTP logs

abstract InputStream streamTraceLogs()

Gets a open stream to the trace logs.

abstract Flux<String> streamTraceLogsAsync()

Gets an Observable streaming trace logs.

abstract void swap(String slotName)

Swaps the app running in the current web app / slot with the app running in the specified slot.

abstract Mono<Void> swapAsync(String slotName)

Swaps the app running in the current web app / slot with the app running in the specified slot.

abstract String systemAssignedManagedServiceIdentityPrincipalId()

Gets the System Assigned (Local) Managed Service Identity specific Active Directory service principal ID assigned to the web app.

abstract String systemAssignedManagedServiceIdentityTenantId()

Gets the System Assigned (Local) Managed Service Identity specific Active Directory tenant ID assigned to the web app.

abstract Set<String> userAssignedManagedServiceIdentityIds()

Gets the ids of the user assigned identities .

abstract void verifyDomainOwnership(String certificateOrderName, String domainVerificationToken)

Verifies the ownership of the domain for a certificate order by verifying a hostname of the domain is bound to this web app.

abstract Mono<Void> verifyDomainOwnershipAsync(String certificateOrderName, String domainVerificationToken)

Verifies the ownership of the domain for a certificate order by verifying a hostname of the domain is bound to this web app.

abstract List<VirtualApplication> virtualApplications()

Gets the virtual applications and their virtual directories in this web app.

abstract boolean webSocketsEnabled()

Check whether web socket is enabled.

abstract String windowsFxVersion()

Gets the Windows app framework and version if this is a Windows web app.

abstract void zipDeploy(File zipFile)

Deploys a ZIP file onto the Azure specialized Java SE image on this web app.

abstract void zipDeploy(InputStream zipFile, long length)

Deploys a ZIP file onto the Azure specialized Java SE image on this web app.

abstract Mono<Void> zipDeployAsync(File zipFile)

Deploys a ZIP file onto the Azure specialized Java SE image on this web app.

abstract Mono<Void> zipDeployAsync(InputStream zipFile, long length)

Deploys a ZIP file onto the Azure specialized Java SE image on this web app.

Method Details

alwaysOn

public abstract boolean alwaysOn()

Check whether the web app is always on.

Returns:

if the web app is always on

applySlotConfigurations

public abstract void applySlotConfigurations(String slotName)

Apply the slot (or sticky) configurations from the specified slot to the current one. This is useful for "Swap with Preview".

Parameters:

slotName - the target slot to apply configurations from

applySlotConfigurationsAsync

public abstract Mono applySlotConfigurationsAsync(String slotName)

Apply the slot (or sticky) configurations from the specified slot to the current one. This is useful for "Swap with Preview".

Parameters:

slotName - the target slot to apply configurations from

Returns:

a representation of the deferred computation of this call

autoSwapSlotName

public abstract String autoSwapSlotName()

Gets the auto swap slot name.

Returns:

the auto swap slot name

defaultDocuments

public abstract List defaultDocuments()

Gets the default documents.

Returns:

the default documents

deploy

public abstract WebDeployment.DefinitionStages.WithPackageUri deploy()

First step specifying the parameters to make a web deployment (MS Deploy) to the web app.

Returns:

a stage to create web deployment

diagnosticLogsConfig

public abstract WebAppDiagnosticLogs diagnosticLogsConfig()

Gets the diagnostic logs configuration.

Returns:

the diagnostic logs configuration

documentRoot

public abstract String documentRoot()

Gets the root directory for the web app.

Returns:

the root directory for the web app

ftpsState

public abstract FtpsState ftpsState()

Gets the state of FTP / FTPS service.

Returns:

the state of FTP / FTPS service

getAppSettings

public abstract Map getAppSettings()

Gets the app settings defined on the web app

Returns:

the app settings defined on the web app

getAppSettingsAsync

public abstract Mono> getAppSettingsAsync()

Gets the app settings defined on the web app.

Returns:

the app settings defined on the web app

getAuthenticationConfig

public abstract WebAppAuthentication getAuthenticationConfig()

Gets the authentication configuration defined on the web app.

Returns:

the authentication configuration defined on the web app

getAuthenticationConfigAsync

public abstract Mono getAuthenticationConfigAsync()

Gets the authentication configuration defined on the web app.

Returns:

the authentication configuration defined on the web app

getConnectionStrings

public abstract Map getConnectionStrings()

Gets the connection strings defined on the web app.

Returns:

the connection strings defined on the web app

getConnectionStringsAsync

public abstract Mono> getConnectionStringsAsync()

Gets the connection strings defined on the web app.

Returns:

the connection strings defined on the web app

getContainerLogs

public abstract byte[] getContainerLogs()

Gets the last lines of docker logs for a Linux web app.

Returns:

the last lines of docker logs for a Linux web app

getContainerLogsAsync

public abstract Mono getContainerLogsAsync()

Gets the last lines of docker logs for a Linux web app.

Returns:

the last lines of docker logs for a Linux web app

getContainerLogsZip

public abstract byte[] getContainerLogsZip()

Gets the zipped archive of docker logs for a Linux web app.

Returns:

the zipped archive of docker logs for a Linux web app

getContainerLogsZipAsync

public abstract Mono getContainerLogsZipAsync()

Gets the zipped archive of docker logs for a Linux web app.

Returns:

the zipped archive of docker logs for a Linux web app

getHostnameBindings

public abstract Map getHostnameBindings()

Gets the mapping from host names and the host name bindings.

Returns:

the mapping from host names and the host name bindings

getHostnameBindingsAsync

public abstract Mono> getHostnameBindingsAsync()

Gets the mapping from host names and the host name bindings.

Returns:

the mapping from host names and the host name bindings

getPublishingProfile

public abstract PublishingProfile getPublishingProfile()

Gets the URL and credentials for publishing through FTP or Git.

Returns:

the URL and credentials for publishing through FTP or Git

getPublishingProfileAsync

public abstract Mono getPublishingProfileAsync()

Gets the URL and credentials for publishing through FTP or Git.

Returns:

the URL and credentials for publishing through FTP or Git

getSiteAppSettings

public abstract Map getSiteAppSettings()

Gets the App Settings on site from Kudu client. It might lag after App Setting update to the site.

Returns:

the App Settings on site from Kudu client

getSiteAppSettingsAsync

public abstract Mono> getSiteAppSettingsAsync()

Gets the App Settings on site from Kudu client. It might lag after App Setting update to the site.

Returns:

the App Settings on site from Kudu client

getSourceControl

public abstract WebAppSourceControl getSourceControl()

Gets the source control information for the web app.

Returns:

the source control information for the web app

getSourceControlAsync

public abstract Mono getSourceControlAsync()

Gets the source control information for the web app.

Returns:

the source control information for the web app

http20Enabled

public abstract boolean http20Enabled()

Check whether to allow clients to connect over HTTP/2.

Returns:

whether to allow clients to connect over HTTP/2

ipSecurityRules

public abstract List ipSecurityRules()

Gets the list of ip security rules.

Returns:

the list of ip security rules.

javaContainer

public abstract String javaContainer()

Gets Java container.

Returns:

Java container

javaContainerVersion

public abstract String javaContainerVersion()

Gets Java container version.

Returns:

Java container version

javaVersion

public abstract JavaVersion javaVersion()

Gets Java version.

Returns:

Java version

linuxFxVersion

public abstract String linuxFxVersion()

Gets the Linux app framework and version if this is a Linux web app.

Returns:

the Linux app framework and version if this is a Linux web app.

localMySqlEnabled

public abstract boolean localMySqlEnabled()

Check whether local MySQL is enabled.

Returns:

whether local MySQL is enabled

managedPipelineMode

public abstract ManagedPipelineMode managedPipelineMode()

Gets managed pipeline mode.

Returns:

managed pipeline mode

minTlsVersion

public abstract SupportedTlsVersions minTlsVersion()

Gets the minimum version of TLS required for SSL requests.

Returns:

the minimum version of TLS required for SSL requests.

netFrameworkVersion

public abstract NetFrameworkVersion netFrameworkVersion()

Gets the .NET Framework version.

Returns:

the .NET Framework version

nodeVersion

public abstract String nodeVersion()

Gets the version of Node.JS.

Returns:

the version of Node.JS

phpVersion

public abstract PhpVersion phpVersion()

Gets the version of PHP.

Returns:

the version of PHP

platformArchitecture

public abstract PlatformArchitecture platformArchitecture()

Gets the architecture of the platform.

Returns:

the architecture of the platform, either 32 bit (x86) or 64 bit (x64).

publicNetworkAccess

public abstract PublicNetworkAccess publicNetworkAccess()

Whether the web app can be accessed from public network.

Returns:

whether the web app can be accessed from public network.

pythonVersion

public abstract PythonVersion pythonVersion()

Gets the version of Python.

Returns:

the version of Python

remoteDebuggingEnabled

public abstract boolean remoteDebuggingEnabled()

Check whether the remote eebugging is enabled.

Returns:

if the remote eebugging is enabled

remoteDebuggingVersion

public abstract RemoteVisualStudioVersion remoteDebuggingVersion()

Gets the remote debugging version.

Returns:

the remote debugging version

resetSlotConfigurations

public abstract void resetSlotConfigurations()

Reset the slot to its original configurations.

resetSlotConfigurationsAsync

public abstract Mono resetSlotConfigurationsAsync()

Reset the slot to its original configurations.

Returns:

a representation of the deferred computation of this call

restart

public abstract void restart()

Restarts the web app or deployment slot.

restartAsync

public abstract Mono restartAsync()

Restarts the web app or deployment slot.

Returns:

a representation of the deferred computation of this call

scmType

public abstract ScmType scmType()

Gets the SCM configuration for the web app.

Returns:

the SCM configuration for the web app

start

public abstract void start()

Starts the web app or deployment slot.

startAsync

public abstract Mono startAsync()

Starts the web app or deployment slot.

Returns:

a representation of the deferred computation of this call

stop

public abstract void stop()

Stops the web app or deployment slot.

stopAsync

public abstract Mono stopAsync()

Stops the web app or deployment slot.

Returns:

a representation of the deferred computation of this call

streamAllLogs

public abstract InputStream streamAllLogs()

Gets an open stream to all logs.

Returns:

an open stream to all logs

streamAllLogsAsync

public abstract Flux streamAllLogsAsync()

Gets an Observable streaming all logs.

Returns:

an Observable streaming all logs

streamApplicationLogs

public abstract InputStream streamApplicationLogs()

Gets a open stream to the application logs.

Returns:

a open stream to the application logs

streamApplicationLogsAsync

public abstract Flux streamApplicationLogsAsync()

Gets an Observable streaming application logs.

Returns:

an Observable streaming application logs

streamDeploymentLogs

public abstract InputStream streamDeploymentLogs()

Gets a open stream to the deployment logs.

Returns:

a open stream to the deployment logs

streamDeploymentLogsAsync

public abstract Flux streamDeploymentLogsAsync()

Gets an Observable streaming deployment logs.

Returns:

an Observable streaming deployment logs

streamHttpLogs

public abstract InputStream streamHttpLogs()

Gets a open stream to the HTTP logs.

Returns:

a open stream to the HTTP logs

streamHttpLogsAsync

public abstract Flux streamHttpLogsAsync()

Gets an Observable streaming HTTP logs

Returns:

an Observable streaming HTTP logs

streamTraceLogs

public abstract InputStream streamTraceLogs()

Gets a open stream to the trace logs.

Returns:

a open stream to the trace logs

streamTraceLogsAsync

public abstract Flux streamTraceLogsAsync()

Gets an Observable streaming trace logs.

Returns:

an Observable streaming trace logs

swap

public abstract void swap(String slotName)

Swaps the app running in the current web app / slot with the app running in the specified slot.

Parameters:

slotName - the target slot to swap with. Use 'production' for the production slot.

swapAsync

public abstract Mono swapAsync(String slotName)

Swaps the app running in the current web app / slot with the app running in the specified slot.

Parameters:

slotName - the target slot to swap with. Use 'production' for the production slot.

Returns:

a representation of the deferred computation of this call

systemAssignedManagedServiceIdentityPrincipalId

public abstract String systemAssignedManagedServiceIdentityPrincipalId()

Gets the System Assigned (Local) Managed Service Identity specific Active Directory service principal ID assigned to the web app.

Returns:

the System Assigned (Local) Managed Service Identity specific Active Directory service principal ID assigned to the web app.

systemAssignedManagedServiceIdentityTenantId

public abstract String systemAssignedManagedServiceIdentityTenantId()

Gets the System Assigned (Local) Managed Service Identity specific Active Directory tenant ID assigned to the web app.

Returns:

the System Assigned (Local) Managed Service Identity specific Active Directory tenant ID assigned to the web app.

userAssignedManagedServiceIdentityIds

public abstract Set userAssignedManagedServiceIdentityIds()

Gets the ids of the user assigned identities .

Returns:

The ids of the user assigned identities

verifyDomainOwnership

public abstract void verifyDomainOwnership(String certificateOrderName, String domainVerificationToken)

Verifies the ownership of the domain for a certificate order by verifying a hostname of the domain is bound to this web app.

Parameters:

certificateOrderName - the name of the certificate order
domainVerificationToken - the domain verification token for the certificate order

verifyDomainOwnershipAsync

public abstract Mono verifyDomainOwnershipAsync(String certificateOrderName, String domainVerificationToken)

Verifies the ownership of the domain for a certificate order by verifying a hostname of the domain is bound to this web app.

Parameters:

certificateOrderName - the name of the certificate order
domainVerificationToken - the domain verification token for the certificate order

Returns:

a representation of the deferred computation of this call

virtualApplications

public abstract List virtualApplications()

Gets the virtual applications and their virtual directories in this web app.

Returns:

the virtual applications and their virtual directories in this web app

webSocketsEnabled

public abstract boolean webSocketsEnabled()

Check whether web socket is enabled.

Returns:

if web socket is enabled

windowsFxVersion

public abstract String windowsFxVersion()

Gets the Windows app framework and version if this is a Windows web app.

Returns:

the Windows app framework and version if this is a Windows web app.

zipDeploy

public abstract void zipDeploy(File zipFile)

Deploys a ZIP file onto the Azure specialized Java SE image on this web app.

Parameters:

zipFile - the ZIP file to upload

zipDeploy

public abstract void zipDeploy(InputStream zipFile, long length)

Deploys a ZIP file onto the Azure specialized Java SE image on this web app.

Retry by client is required if error happens, due to nature of the stream.

Parameters:

zipFile - the ZIP file to upload
length - the length of the file

zipDeployAsync

public abstract Mono zipDeployAsync(File zipFile)

Deploys a ZIP file onto the Azure specialized Java SE image on this web app.

Parameters:

zipFile - the ZIP file to upload

Returns:

a completable of the operation

zipDeployAsync

public abstract Mono zipDeployAsync(InputStream zipFile, long length)

Deploys a ZIP file onto the Azure specialized Java SE image on this web app.

Retry by client is required if error happens, due to nature of the stream.

Parameters:

zipFile - the ZIP file to upload
length - the length of the file

Returns:

a completable of the operation

Applies to