你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

FunctionApp Interface

public interface FunctionApp extends WebAppBase,Refreshable,Updatable<FunctionApp.Update>

An immutable client-side representation of an Azure Function App.

Method Summary

Modifier and Type Method and Description
NameValuePair addFunctionKey(String functionName, String keyName, String keyValue)

Adds a key to a function in this function app.

Observable<NameValuePair> addFunctionKeyAsync(String functionName, String keyName, String keyValue)

Adds a key to a function in this function app.

FunctionDeploymentSlots deploymentSlots()
String getMasterKey()
Observable<String> getMasterKeyAsync()
Map<String, String> listFunctionKeys(String functionName)

Retrieve the function key for a specific function.

Observable<Map<String, String>> listFunctionKeysAsync(String functionName)

Retrieve the function key for a specific function.

void removeFunctionKey(String functionName, String keyName)

Removes a key to a function in this function app.

Completable removeFunctionKeyAsync(String functionName, String keyName)

Removes a key to a function in this function app.

StorageAccount storageAccount()
void syncTriggers()

Syncs the triggers on the function app.

Completable syncTriggersAsync()

Syncs the triggers on the function app.

Inherited Members

WebAppBase.alwaysOn() WebAppBase.applySlotConfigurations(String slotName) WebAppBase.applySlotConfigurationsAsync(String slotName) WebAppBase.appServicePlanId() WebAppBase.appSettings() WebAppBase.autoSwapSlotName() WebAppBase.availabilityState() WebAppBase.clientAffinityEnabled() WebAppBase.clientCertEnabled() WebAppBase.cloningInfo() WebAppBase.connectionStrings() WebAppBase.containerSize() WebAppBase.defaultDocuments() WebAppBase.defaultHostName() WebAppBase.deploy() WebAppBase.enabled() WebAppBase.enabledHostNames() WebAppBase.gatewaySiteName() WebAppBase.getHostNameBindings() WebAppBase.getHostNameBindingsAsync() WebAppBase.getPublishingProfile() WebAppBase.getPublishingProfileAsync() WebAppBase.getSourceControl() WebAppBase.getSourceControlAsync() WebAppBase.hostNames() WebAppBase.hostNamesDisabled() WebAppBase.hostNameSslStates() HasId.id() HasInner<T>.inner() WebAppBase.isDefaultContainer() WebAppBase.isPremiumApp() WebAppBase.javaContainer() WebAppBase.javaContainerVersion() WebAppBase.javaVersion() Indexable.key() WebAppBase.lastModifiedTime() WebAppBase.linuxFxVersion() WebAppBase.managedPipelineMode() HasManager<ManagerT>.manager() WebAppBase.microService() HasName.name() WebAppBase.netFrameworkVersion() WebAppBase.nodeVersion() WebAppBase.operatingSystem() WebAppBase.outboundIPAddresses() WebAppBase.phpVersion() WebAppBase.platformArchitecture() WebAppBase.pythonVersion() Refreshable<T>.refresh() Refreshable<T>.refreshAsync() Resource.region() Resource.regionName() WebAppBase.remoteDebuggingEnabled() WebAppBase.remoteDebuggingVersion() WebAppBase.repositorySiteName() WebAppBase.resetSlotConfigurations() WebAppBase.resetSlotConfigurationsAsync() HasResourceGroup.resourceGroupName() WebAppBase.restart() WebAppBase.restartAsync() WebAppBase.scmSiteAlsoStopped() WebAppBase.start() WebAppBase.startAsync() WebAppBase.state() WebAppBase.stop() WebAppBase.stopAsync() WebAppBase.swap(String slotName) WebAppBase.swapAsync(String slotName) Resource.tags() WebAppBase.targetSwapSlot() WebAppBase.trafficManagerHostNames() Resource.type() Updatable<T>.update() WebAppBase.usageState() WebAppBase.verifyDomainOwnership(String certificateOrderName, String domainVerificationToken) WebAppBase.verifyDomainOwnershipAsync(String certificateOrderName, String domainVerificationToken) WebAppBase.webSocketsEnabled()

Method Details

addFunctionKey

public NameValuePair addFunctionKey(String functionName, String keyName, String keyValue)

Adds a key to a function in this function app.

Parameters:

functionName - the name of the function
keyName - the name of the key to add
keyValue - optional. If not provided, a value will be generated.

Returns:

the added function key

addFunctionKeyAsync

public Observable addFunctionKeyAsync(String functionName, String keyName, String keyValue)

Adds a key to a function in this function app.

Parameters:

functionName - the name of the function
keyName - the name of the key to add
keyValue - optional. If not provided, a value will be generated.

Returns:

the added function key

deploymentSlots

public FunctionDeploymentSlots deploymentSlots()

Returns:

the entry point to deployment slot management API under the function app

getMasterKey

public String getMasterKey()

Returns:

the master key for the function app

getMasterKeyAsync

public Observable getMasterKeyAsync()

Returns:

the master key for the function app

listFunctionKeys

public Map listFunctionKeys(String functionName)

Retrieve the function key for a specific function.

Parameters:

functionName - the name of the function

Returns:

the function key

listFunctionKeysAsync

public Observable<>> listFunctionKeysAsync(String functionName)

Retrieve the function key for a specific function.

Parameters:

functionName - the name of the function

Returns:

the function key

removeFunctionKey

public void removeFunctionKey(String functionName, String keyName)

Removes a key to a function in this function app.

Parameters:

functionName - the name of the function
keyName - the name of the key to remove

removeFunctionKeyAsync

public Completable removeFunctionKeyAsync(String functionName, String keyName)

Removes a key to a function in this function app.

Parameters:

functionName - the name of the function
keyName - the name of the key to remove

Returns:

the completable of the operation

storageAccount

public StorageAccount storageAccount()

Returns:

the storage account associated with the function app

syncTriggers

public void syncTriggers()

Syncs the triggers on the function app.

syncTriggersAsync

public Completable syncTriggersAsync()

Syncs the triggers on the function app.

Returns:

a completable for the operation

Applies to