Querying Function

Last updated: 2023-09-27 20:43:30

A function can be queried in the console or on Serverless Cloud Framework CLI.

Viewing a Function in the Console

1. Log in to the Serverless console and select Function Service from the left navigation bar.
2. At the top of the "Functions" page, select the desired region and namespace where the function is located. Through the function list, you can view all functions within the specified region and namespace, as shown in the figure below:


3. The function list includes the function name, monitoring, function type, runtime environment, log configuration, creation time, etc. You can customize the list fields according to your needs. Click on the right side of the function list

, as shown in the figure below:

In the pop-up window, check the list details you want to display and click OK, as shown in the figure below:


4. Click on the function name to enter its details page, as shown in the figure below:

The function details page includes the following content:
Function management: View and manage the configurations, codes, and layers of the function.
Version management: Fixate the code and configuration of the function by publishing a version. For more information, see Overview.
Alias Management: Use aliases to invoke bound functions. For more information, see Alias Management.
Trigger management: View the triggers configured for the function and create triggers. For more information, see Creating Triggers.
Monitoring information: View the monitoring information of function execution. For more information, see Descriptions of monitoring metrics.
Log query: View the execution logs of the function and filter logs by certain criteria. For more information, see Viewing Execution Logs.
Concurrency quota: View the concurrency quota of the function and set the reserved quota and provisioned concurrency of the function. For more information, see Concurrency Overview.
Deployment logs: View the deployment logs of the function.

Getting Deployment Information on Serverless Cloud Framework CLI

Description
Before using the Serverless Cloud Framework tool, please refer to Installing Serverless Cloud Framework to complete the installation.
You can run the scf info command on Serverless Cloud Framework CLI to view deployment information.