Interface FunctionApp

All Superinterfaces:
GroupableResource<com.microsoft.azure.management.appservice.implementation.AppServiceManager,com.microsoft.azure.management.appservice.implementation.SiteInner>, HasId, HasInner<com.microsoft.azure.management.appservice.implementation.SiteInner>, HasManager<com.microsoft.azure.management.appservice.implementation.AppServiceManager>, HasName, HasResourceGroup, Indexable, Refreshable<FunctionApp>, Resource, Updatable<FunctionApp.Update>, WebAppBase

@Beta public interface FunctionApp extends WebAppBase, Refreshable<FunctionApp>, Updatable<FunctionApp.Update>
An immutable client-side representation of an Azure Function App.
  • Method Details

    • deploymentSlots

      @Beta(V1_3_0) FunctionDeploymentSlots deploymentSlots()
      Returns:
      the entry point to deployment slot management API under the function app
    • storageAccount

      StorageAccount storageAccount()
      Returns:
      the storage account associated with the function app
    • getMasterKey

      String getMasterKey()
      Returns:
      the master key for the function app
    • getMasterKeyAsync

      rx.Observable<String> getMasterKeyAsync()
      Returns:
      the master key for the function app
    • listFunctionKeys

      Map<String,String> listFunctionKeys(String functionName)
      Retrieve the function key for a specific function.
      Parameters:
      functionName - the name of the function
      Returns:
      the function key
    • listFunctionKeysAsync

      rx.Observable<Map<String,String>> listFunctionKeysAsync(String functionName)
      Retrieve the function key for a specific function.
      Parameters:
      functionName - the name of the function
      Returns:
      the function key
    • addFunctionKey

      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

      rx.Observable<NameValuePair> 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
    • removeFunctionKey

      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

      rx.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
    • triggerFunction

      void triggerFunction(String functionName, Object payload)
      Triggers a function.
      Parameters:
      functionName - the name of the function
      payload - the payload to be serialized to JSON
    • triggerFunctionAsync

      rx.Completable triggerFunctionAsync(String functionName, Object payload)
      Triggers a function.
      Parameters:
      functionName - the name of the function
      payload - the payload to be serialized to JSON
      Returns:
      the completable of the operation
    • syncTriggers

      void syncTriggers()
      Syncs the triggers on the function app.
    • syncTriggersAsync

      rx.Completable syncTriggersAsync()
      Syncs the triggers on the function app.
      Returns:
      a completable for the operation