Getting a Function's Details

Find out how to get details of a function deployed to OCI Functions.

For more information about functions, see Functions.

    1. On the Applications list page, select the application that contains the function that you want to work with. If you need help finding the list page or the application, see Listing Applications.
    2. Under Resources, select Functions.

      The Functions list page opens. All functions in the selected application are displayed in a table.

      The Functions list page shows particularly significant information about all the functions in the application that you selected, including the following:

      • The Docker image created for each function.
      • The function's invoke endpoint.
      • When the function was last updated.
    3. On the Functions list page, select the function that you want to work with.

      The function's details page opens and displays more information about the function. Some items on the page are read-only, and other items enable you to edit and update the function's configuration. Access the various resources associated with the function by selecting their links or tabs.

  • 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 get details of a function deployed to OCI Functions using the Fn Project CLI:

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

    2. Enter the following command to get details about a particular function:

      fn inspect function <app-name> <function-name>

      For example:

      $ fn inspect function acme-app acme-func
      
      {
          "annotations": {
              "fnproject.io/fn/invokeEndpoint": "https://fht7ns4mn2q.us-phoenix-1.functions.oci.oraclecloud.com/20181201/functions/ocid1.fnfunc.oc1.phx.aaaa____uxoa/actions/invoke",							
              "oracle.com/oci/compartmentId": "ocid1.compartment.oc1..aaaaaaaaw______nyq"
          },
          "app_id": "ocid1.fnapp.oc1.phx.aaaaaaaaaf______r3ca",
          "created_at": "2018-07-26T12:50:53.000Z",
          "format": "default",
          "id": "ocid1.fnfunc.oc1.phx.aaaa____uxoa",
          "image": "phx.ocir.io/ansh81vru1zp/acme-repo/acme-func:0.0.3",
          "memory": 128,
          "name": "acme-func",
          "timeout": 30,
          "updated_at": "2018-07-26T13:59:18.000Z"
      }

    Using the OCI CLI

    Use the oci fn function get command and required parameters to get details about a function:

    oci fn function get --function-id <function-ocid> [OPTIONS]

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

  • Run the GetFunction operation to get details of a function.