Function Templates
FunctionGraph provides templates to automatically complete code, and running environment configurations when you create a function, helping you quickly build applications.
Template Usage
Creating a Function
- Log in to the FunctionGraph console, and choose Templates in the navigation pane.
- On the page that is displayed, select the FunctionGraph service, select the context-class-introduction template for Python 2.7, and click Configure.
- After you select a function template, the built-in code and configurations of the template are automatically loaded. The Create Function page is displayed.
- Set the function name to context, retain the default settings for other parameters, and click Create Now.
Triggering a Function
- On the Code tab page of the context function, click Test in the upper right corner.
- In the Configure Test Event dialog box that is displayed, click Save and Test. After the test is complete, view the test result.
Last Article: Advanced Operations
Next Article: Mounting a File System
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.