Interface FunctionApp

All Superinterfaces:
FunctionAppBasic, GroupableResource<AppServiceManager,SiteInner>, HasId, HasInnerModel<SiteInner>, HasManager<AppServiceManager>, HasName, HasResourceGroup, Indexable, Refreshable<FunctionApp>, Resource, SupportsListingPrivateEndpointConnection, SupportsListingPrivateLinkResource, SupportsOneDeploy, SupportsUpdatingPrivateEndpointConnection, Updatable<FunctionApp.Update>, WebAppBase, WebSiteBase

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

    • deploymentSlots

      FunctionDeploymentSlots deploymentSlots()
      Gets the entry point to deployment slot management API under the function app.
      Returns:
      the entry point to deployment slot management API under the function app
    • storageAccount

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

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

      Mono<String> getMasterKeyAsync()
      Gets the master key for the function app.
      Returns:
      the master key for the function app
    • listFunctions

      com.azure.core.http.rest.PagedIterable<FunctionEnvelope> listFunctions()
      List function information elements.
      Returns:
      list of function information elements
    • 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

      Mono<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

      Mono<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

      Mono<Void> 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

      Mono<Void> 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

      Mono<Void> syncTriggersAsync()
      Syncs the triggers on the function app.
      Returns:
      a completable for the operation
    • managedEnvironmentId

      String managedEnvironmentId()
      Retrieve the ID of the Azure Container Apps environment that the Function App runs on.
      Returns:
      the ID of the Azure Container Apps environment
      See Also:
    • maxReplicas

      Integer maxReplicas()
      Retrieves the maximum replica count.
      Returns:
      the maximum replica count
    • minReplicas

      Integer minReplicas()
      Retrieves the minimum replica count.
      Returns:
      the minimum replica count