你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
WebAppBase Interface
public interface WebAppBase extends HasName,GroupableResource<AppServiceManager, SiteInner>
An immutable client-side representation of an Azure Web App or deployment slot.
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean | alwaysOn() |
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". |
Completable |
applySlotConfigurationsAsync(String slotName)
Apply the slot (or sticky) configurations from the specified slot to the current one. This is useful for "Swap with Preview". |
String | appServicePlanId() |
Map<String, App |
appSettings() |
String | autoSwapSlotName() |
Site |
availabilityState() |
boolean | clientAffinityEnabled() |
boolean | clientCertEnabled() |
Cloning |
cloningInfo() |
Map<String, Connection |
connectionStrings() |
int | containerSize() |
List<String> | defaultDocuments() |
String | defaultHostName() |
WebDeployment.DefinitionStages.WithPackageUri |
deploy()
First step specifying the parameters to make a web deployment (MS Deploy) to the web app. |
boolean | enabled() |
Set<String> | enabledHostNames() |
String | gatewaySiteName() |
Map<String, Host |
getHostNameBindings() |
Observable<Map<String, Host |
getHostNameBindingsAsync() |
Publishing |
getPublishingProfile() |
Observable<Publishing |
getPublishingProfileAsync() |
Web |
getSourceControl() |
Observable<Web |
getSourceControlAsync() |
Set<String> | hostNames() |
boolean | hostNamesDisabled() |
Map<String, Host |
hostNameSslStates() |
boolean | isDefaultContainer() |
boolean | isPremiumApp() |
String | javaContainer() |
String | javaContainerVersion() |
Java |
javaVersion() |
DateTime | lastModifiedTime() |
String | linuxFxVersion() |
Managed |
managedPipelineMode() |
String | microService() |
Net |
netFrameworkVersion() |
String | nodeVersion() |
Operating |
operatingSystem() |
Set<String> | outboundIPAddresses() |
Php |
phpVersion() |
Platform |
platformArchitecture() |
Python |
pythonVersion() |
boolean | remoteDebuggingEnabled() |
Remote |
remoteDebuggingVersion() |
String | repositorySiteName() |
void |
resetSlotConfigurations()
Reset the slot to its original configurations. |
Completable |
resetSlotConfigurationsAsync()
Reset the slot to its original configurations. |
void |
restart()
Restarts the web app or deployment slot. |
Completable |
restartAsync()
Restarts the web app or deployment slot. |
boolean | scmSiteAlsoStopped() |
void |
start()
Starts the web app or deployment slot. |
Completable |
startAsync()
Starts the web app or deployment slot. |
String | state() |
void |
stop()
Stops the web app or deployment slot. |
Completable |
stopAsync()
Stops the web app or deployment slot. |
void |
swap(String slotName)
Swaps the app running in the current web app / slot with the app running in the specified slot. |
Completable |
swapAsync(String slotName)
Swaps the app running in the current web app / slot with the app running in the specified slot. |
String | targetSwapSlot() |
Set<String> | trafficManagerHostNames() |
Usage |
usageState() |
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. |
Completable |
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. |
boolean | webSocketsEnabled() |
Inherited Members
Method Details
alwaysOn
public boolean alwaysOn()
Returns:
applySlotConfigurations
public 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:
applySlotConfigurationsAsync
public Completable 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:
Returns:
appServicePlanId
public String appServicePlanId()
Returns:
appSettings
public Map
Returns:
autoSwapSlotName
public String autoSwapSlotName()
Returns:
availabilityState
public SiteAvailabilityState availabilityState()
Returns:
clientAffinityEnabled
public boolean clientAffinityEnabled()
Returns:
clientCertEnabled
public boolean clientCertEnabled()
Returns:
cloningInfo
public CloningInfo cloningInfo()
Returns:
connectionStrings
public Map
Returns:
containerSize
public int containerSize()
Returns:
defaultDocuments
public List
Returns:
defaultHostName
public String defaultHostName()
Returns:
deploy
public WebDeployment.DefinitionStages.WithPackageUri deploy()
First step specifying the parameters to make a web deployment (MS Deploy) to the web app.
Returns:
enabled
public boolean enabled()
Returns:
enabledHostNames
public Set
Returns:
gatewaySiteName
public String gatewaySiteName()
Returns:
getHostNameBindings
public Map
Returns:
getHostNameBindingsAsync
public Observable
Returns:
getPublishingProfile
public PublishingProfile getPublishingProfile()
Returns:
getPublishingProfileAsync
public Observable
Returns:
getSourceControl
public WebAppSourceControl getSourceControl()
Returns:
getSourceControlAsync
public Observable
Returns:
hostNames
public Set
Returns:
hostNamesDisabled
public boolean hostNamesDisabled()
Returns:
hostNameSslStates
public Map
Returns:
isDefaultContainer
public boolean isDefaultContainer()
Returns:
isPremiumApp
public boolean isPremiumApp()
Returns:
javaContainer
public String javaContainer()
Returns:
javaContainerVersion
public String javaContainerVersion()
Returns:
javaVersion
public JavaVersion javaVersion()
Returns:
lastModifiedTime
public DateTime lastModifiedTime()
Returns:
linuxFxVersion
public String linuxFxVersion()
Returns:
managedPipelineMode
public ManagedPipelineMode managedPipelineMode()
Returns:
microService
public String microService()
Returns:
netFrameworkVersion
public NetFrameworkVersion netFrameworkVersion()
Returns:
nodeVersion
public String nodeVersion()
Returns:
operatingSystem
public OperatingSystem operatingSystem()
Returns:
outboundIPAddresses
public Set
Returns:
phpVersion
public PhpVersion phpVersion()
Returns:
platformArchitecture
public PlatformArchitecture platformArchitecture()
Returns:
pythonVersion
public PythonVersion pythonVersion()
Returns:
remoteDebuggingEnabled
public boolean remoteDebuggingEnabled()
Returns:
remoteDebuggingVersion
public RemoteVisualStudioVersion remoteDebuggingVersion()
Returns:
repositorySiteName
public String repositorySiteName()
Returns:
resetSlotConfigurations
public void resetSlotConfigurations()
Reset the slot to its original configurations.
resetSlotConfigurationsAsync
public Completable resetSlotConfigurationsAsync()
Reset the slot to its original configurations.
Returns:
restart
public void restart()
Restarts the web app or deployment slot.
restartAsync
public Completable restartAsync()
Restarts the web app or deployment slot.
Returns:
scmSiteAlsoStopped
public boolean scmSiteAlsoStopped()
Returns:
start
public void start()
Starts the web app or deployment slot.
startAsync
public Completable startAsync()
Starts the web app or deployment slot.
Returns:
state
public String state()
Returns:
stop
public void stop()
Stops the web app or deployment slot.
stopAsync
public Completable stopAsync()
Stops the web app or deployment slot.
Returns:
swap
public void swap(String slotName)
Swaps the app running in the current web app / slot with the app running in the specified slot.
Parameters:
swapAsync
public Completable swapAsync(String slotName)
Swaps the app running in the current web app / slot with the app running in the specified slot.
Parameters:
Returns:
targetSwapSlot
public String targetSwapSlot()
Returns:
trafficManagerHostNames
public Set
Returns:
usageState
public UsageState usageState()
Returns:
verifyDomainOwnership
public 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:
verifyDomainOwnershipAsync
public Completable 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:
Returns:
webSocketsEnabled
public boolean webSocketsEnabled()
Returns: