Updating an Application

Find out how to update applications with OCI Functions.

Having previously created an application in OCI Functions, you can change some, but not all, of the application's details. For example, you can change the application's signature verification policy.

For more information about applications, see Applications.

    1. On the Applications list page, select the application that you want to update. If you need help finding the list page or the application, see Listing Applications.
    2. On the details page, update some or all the following information:
  • Using the Fn Project CLI

    Tip

    From time to time, new versions of the Fn Project CLI are released. We recommend you regularly check that the latest version is installed. For more information, see Steps to upgrade the Fn Project CLI.

    To use the Fn Project CLI to update an existing application in the OCI Functions server:

    1. Log in to your development environment as a functions developer.

    2. In a terminal window, update properties of an existing application by entering:

      fn update app <app-name> --<property> <value>

      where:

      • <app-name> is the name of the existing application you want to update.
      • --<property> <value> is the property you want to update, and the new value you want it to have. Enter fn update app --help to see a list of properties and valid values.

      For example:

      fn update app acmeapp --syslog-url tcp://my.papertrail.com:4242

      The properties of the existing application are updated with the values you specified.

    3. Verify that the application has been updated by entering:

      fn inspect app <app-name>

      For example:

      fn inspect app acme-app

      Output:

      {
              "annotations": {
                      "oracle.com/oci/compartmentId": "ocid1.compartment.oc1..aaaaaaaaw______nyq",
                      "oracle.com/oci/subnetIds": [
                              "ocid1.subnet.oc1.iad.aaaaaaaa7______5qa"
                      ]
              },
              "created_at": "2020-02-18T11:53:07.375Z",
              "id": "ocid1.fnapp.oc1.iad.aaaaaaaaaf______r3ca",
              "name": "acme-app",
              "syslog_url": "tcp://my.papertrail.com:4242",
              "updated_at": "2020-03-25T10:13:32.163Z"
      }

    Using the OCI CLI

    Use the oci fn application update command and required parameters to update an application:

    oci fn application update --application-id <application-ocid> [OPTIONS]

    For a complete list of flags and variable options for OCI CLI commands, see the Command Line Reference.

  • Run the UpdateApplication API operation to update applications.