tencent cloud

Feedback

Obtaining a Function List

Last updated: 2022-03-15 16:14:11
This document is currently invalid. Please refer to the documentation page of the product.

    SCF CLI can be accessed through scf function list Command to view a list of functions that have been deployed to the cloud.

    Parameter description

    scf function list The parameters supported by the command are as follows:

    Parameters Abbreviated Required Description Example
    Namespace -ns No Specify the namespace where the function resides -ns test-ns
    Region -r No To specify the area where the function is located, see Region list -r ap-shanghai
    • When region and namespace are not specified, the region and default namespaces in configure are used by default.
    • Executable scf configure get View configure configuration information.

    Usage Examples

    • Execute the following command to get a list of functions under the configure default area, the default namespace.
    $ scf function list
    [>] Region:ap-guangzhou
    [>] Namespace:default 
    Runtime              Status          AddTime              ModTime              FunctionName 
    Python2.7            Active          2019-07-10 19:19:41  2019-08-01 17:15:48  proxy_test<br>
    • Execute the following command to get a list of functions under all namespaces in the Beijing area.
    $ scf function list -r ap-beijing
    [>] Region:ap-beijing
    [>] Namespace:toywang 
    Runtime              Status          AddTime              ModTime              FunctionName 
    Python2.7            Active          2019-07-10 19:19:41  2019-08-01 17:15:48  proxy_test  <br> 
    [>] Region:ap-beijing
    [>] Namespace:Mason_test 
    Runtime              Status          AddTime              ModTime              FunctionName  
    Python2.7            Active          2019-06-08 19:37:21  2019-07-30 21:39:42  Thumbnail 
    • Execute the following command to get the list of functions under the default namespace in Beijing area.
    $ scf function list -r ap-beijing -ns default
    [>] Region:ap-beijing
    [>] Namespace:default 
    Runtime              Status          AddTime              ModTime              FunctionName           
    Nodejs8.9-service    Active          2019-08-06 11:28:05  2019-08-06 11:28:05  max_log_test 
    Nodejs8.9-service    Active          2019-08-05 20:20:18  2019-08-05 20:40:02  nuxt-dev    
    Nodejs8.9-service    Active          2019-08-04 19:35:50  2019-08-04 19:35:50  servicetest0805 
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support